diff --git a/.next/BUILD_ID b/.next/BUILD_ID index 8d55a2bce5286b9839d70f4b8aa1a7b59b34022c..337031a3f2fa9b063328ba447fb7f2f5b8014b1f 100644 --- a/.next/BUILD_ID +++ b/.next/BUILD_ID @@ -1 +1 @@ -Dj_mU3ym-gcopP6URA30w \ No newline at end of file +6U79IAVVts3v8bcNT6dWz \ No newline at end of file diff --git a/.next/app-build-manifest.json b/.next/app-build-manifest.json index 0863aa8656ab2712d18ad6f848bcb14dcad5dd14..d5916699e26a771d3a20ae771dc5b84e2da3ffb5 100644 --- a/.next/app-build-manifest.json +++ b/.next/app-build-manifest.json @@ -1,445 +1,465 @@ { "pages": { "/_not-found/page": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", "static/chunks/app/_not-found/page-456a9067b36694a4.js" ], - "/api/admin/dashboard/route": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", - "static/chunks/4bd1b696-100b9d70ed4e49c1.js", - "static/chunks/1255-8befde0980f5cba9.js", - "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/app/api/admin/dashboard/route-9827d50f68dba9a6.js" - ], "/layout": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", - "static/css/634e649c3cc2540f.css", + "static/css/7a4f097ac51b20a7.css", "static/chunks/8720-c9ee040177c11cae.js", "static/chunks/4841-9c023033845750e4.js", "static/chunks/app/layout-f8fe6cebce585a15.js" ], - "/api/admin/run-migrations/route": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "/api/admin/deployments/[id]/database/logs/route": [ + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/app/api/admin/run-migrations/route-9827d50f68dba9a6.js" + "static/chunks/app/api/admin/deployments/[id]/database/logs/route-4cd8f68137bb4a2e.js" ], - "/api/admin/sites/[id]/functions/[functionId]/logs/route": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "/api/admin/deployments/[id]/functions/[functionId]/logs/route": [ + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/app/api/admin/sites/[id]/functions/[functionId]/logs/route-9827d50f68dba9a6.js" + "static/chunks/app/api/admin/deployments/[id]/functions/[functionId]/logs/route-4cd8f68137bb4a2e.js" ], - "/api/admin/sites/[id]/functions/[functionId]/route": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "/api/admin/deployments/[id]/database/schema/route": [ + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/app/api/admin/sites/[id]/functions/[functionId]/route-9827d50f68dba9a6.js" + "static/chunks/app/api/admin/deployments/[id]/database/schema/route-4cd8f68137bb4a2e.js" ], - "/api/admin/sites/[id]/database/logs/route": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "/api/admin/deployments/[id]/database/query/route": [ + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/app/api/admin/sites/[id]/database/logs/route-9827d50f68dba9a6.js" + "static/chunks/app/api/admin/deployments/[id]/database/query/route-4cd8f68137bb4a2e.js" ], - "/api/admin/sites/[id]/provision/route": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "/api/admin/deployments/[id]/functions/[functionId]/route": [ + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/app/api/admin/sites/[id]/provision/route-9827d50f68dba9a6.js" + "static/chunks/app/api/admin/deployments/[id]/functions/[functionId]/route-4cd8f68137bb4a2e.js" ], - "/api/admin/sites/[id]/database/query/route": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "/api/admin/deployments/[id]/scheduled-functions/[scheduledFunctionId]/route": [ + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/app/api/admin/sites/[id]/database/query/route-9827d50f68dba9a6.js" + "static/chunks/app/api/admin/deployments/[id]/scheduled-functions/[scheduledFunctionId]/route-4cd8f68137bb4a2e.js" ], - "/api/admin/sites/[id]/database/schema/route": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "/api/admin/deployments/[id]/functions/route": [ + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/app/api/admin/sites/[id]/database/schema/route-9827d50f68dba9a6.js" + "static/chunks/app/api/admin/deployments/[id]/functions/route-4cd8f68137bb4a2e.js" ], - "/api/admin/sites/[id]/secrets/[secretId]/route": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "/api/admin/deployments/[id]/scheduled-functions/route": [ + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/app/api/admin/sites/[id]/secrets/[secretId]/route-9827d50f68dba9a6.js" + "static/chunks/app/api/admin/deployments/[id]/scheduled-functions/route-4cd8f68137bb4a2e.js" ], - "/api/admin/sites/[id]/functions/route": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "/api/admin/deployments/[id]/provision/route": [ + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/app/api/admin/sites/[id]/functions/route-9827d50f68dba9a6.js" + "static/chunks/app/api/admin/deployments/[id]/provision/route-4cd8f68137bb4a2e.js" ], - "/api/admin/sites/[id]/secrets/route": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "/api/admin/deployments/[id]/secrets/route": [ + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/app/api/admin/sites/[id]/secrets/route-9827d50f68dba9a6.js" + "static/chunks/app/api/admin/deployments/[id]/secrets/route-4cd8f68137bb4a2e.js" ], - "/api/admin/sites/[id]/scheduled-functions/route": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "/api/admin/deployments/[id]/secrets/[secretId]/route": [ + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/app/api/admin/sites/[id]/scheduled-functions/route-9827d50f68dba9a6.js" + "static/chunks/app/api/admin/deployments/[id]/secrets/[secretId]/route-4cd8f68137bb4a2e.js" ], - "/api/admin/sites/[id]/server-context/route": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "/api/admin/deployments/[id]/server-functions/[functionId]/route": [ + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/app/api/admin/sites/[id]/server-context/route-9827d50f68dba9a6.js" + "static/chunks/app/api/admin/deployments/[id]/server-functions/[functionId]/route-4cd8f68137bb4a2e.js" ], - "/api/admin/sites/[id]/server-context/mutate/route": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "/api/admin/deployments/[id]/server-context/mutate/route": [ + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/app/api/admin/sites/[id]/server-context/mutate/route-9827d50f68dba9a6.js" + "static/chunks/app/api/admin/deployments/[id]/server-context/mutate/route-4cd8f68137bb4a2e.js" ], - "/api/admin/sites/[id]/server-functions/[functionId]/route": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "/api/admin/deployments/[id]/server-functions/route": [ + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/app/api/admin/sites/[id]/server-functions/[functionId]/route-9827d50f68dba9a6.js" + "static/chunks/app/api/admin/deployments/[id]/server-functions/route-4cd8f68137bb4a2e.js" ], - "/api/admin/sites/[id]/server-functions/route": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "/api/admin/run-migrations/route": [ + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/app/api/admin/sites/[id]/server-functions/route-9827d50f68dba9a6.js" + "static/chunks/app/api/admin/run-migrations/route-4cd8f68137bb4a2e.js" ], - "/api/analytics/[siteId]/engagement/route": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "/api/analytics/[deploymentId]/clear/route": [ + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/app/api/analytics/[siteId]/engagement/route-9827d50f68dba9a6.js" + "static/chunks/app/api/analytics/[deploymentId]/clear/route-4cd8f68137bb4a2e.js" ], - "/api/analytics/[siteId]/clear/route": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "/api/analytics/[deploymentId]/engagement/route": [ + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/app/api/analytics/[siteId]/clear/route-9827d50f68dba9a6.js" + "static/chunks/app/api/analytics/[deploymentId]/engagement/route-4cd8f68137bb4a2e.js" ], - "/api/analytics/[siteId]/export/route": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "/api/analytics/[deploymentId]/export/route": [ + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/app/api/analytics/[siteId]/export/route-9827d50f68dba9a6.js" + "static/chunks/app/api/analytics/[deploymentId]/export/route-4cd8f68137bb4a2e.js" ], - "/api/analytics/[siteId]/heatmap/route": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "/api/analytics/[deploymentId]/overview/route": [ + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/app/api/analytics/[siteId]/heatmap/route-9827d50f68dba9a6.js" + "static/chunks/app/api/analytics/[deploymentId]/overview/route-4cd8f68137bb4a2e.js" ], - "/api/analytics/[siteId]/sessions/route": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "/api/analytics/[deploymentId]/route": [ + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/app/api/analytics/[siteId]/sessions/route-9827d50f68dba9a6.js" + "static/chunks/app/api/analytics/[deploymentId]/route-4cd8f68137bb4a2e.js" ], - "/api/analytics/[siteId]/overview/route": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "/api/analytics/[deploymentId]/heatmap/route": [ + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/app/api/analytics/[siteId]/overview/route-9827d50f68dba9a6.js" + "static/chunks/app/api/analytics/[deploymentId]/heatmap/route-4cd8f68137bb4a2e.js" ], - "/api/analytics/[siteId]/storage/route": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "/api/analytics/[deploymentId]/sessions/route": [ + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/app/api/analytics/[siteId]/storage/route-9827d50f68dba9a6.js" + "static/chunks/app/api/analytics/[deploymentId]/sessions/route-4cd8f68137bb4a2e.js" + ], + "/api/analytics/[deploymentId]/storage/route": [ + "static/chunks/webpack-6a7eac135ffbf936.js", + "static/chunks/4bd1b696-100b9d70ed4e49c1.js", + "static/chunks/1255-8befde0980f5cba9.js", + "static/chunks/main-app-6796e1116c8e92de.js", + "static/chunks/app/api/analytics/[deploymentId]/storage/route-4cd8f68137bb4a2e.js" ], "/api/analytics/interaction/route": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/app/api/analytics/interaction/route-9827d50f68dba9a6.js" + "static/chunks/app/api/analytics/interaction/route-4cd8f68137bb4a2e.js" ], "/api/analytics/track/route": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/app/api/analytics/track/route-9827d50f68dba9a6.js" + "static/chunks/app/api/analytics/track/route-4cd8f68137bb4a2e.js" ], "/api/auth/check/route": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/app/api/auth/check/route-9827d50f68dba9a6.js" + "static/chunks/app/api/auth/check/route-4cd8f68137bb4a2e.js" ], "/api/auth/codex/disconnect/route": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/app/api/auth/codex/disconnect/route-9827d50f68dba9a6.js" + "static/chunks/app/api/auth/codex/disconnect/route-4cd8f68137bb4a2e.js" ], "/api/auth/codex/status/route": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/app/api/auth/codex/status/route-9827d50f68dba9a6.js" + "static/chunks/app/api/auth/codex/status/route-4cd8f68137bb4a2e.js" ], - "/api/auth/hf/capabilities/route": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "/api/auth/codex/connect/route": [ + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/app/api/auth/hf/capabilities/route-9827d50f68dba9a6.js" + "static/chunks/app/api/auth/codex/connect/route-4cd8f68137bb4a2e.js" ], "/api/auth/codex/token/route": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/app/api/auth/codex/token/route-9827d50f68dba9a6.js" + "static/chunks/app/api/auth/codex/token/route-4cd8f68137bb4a2e.js" ], "/api/auth/login/route": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/app/api/auth/login/route-9827d50f68dba9a6.js" + "static/chunks/app/api/auth/login/route-4cd8f68137bb4a2e.js" + ], + "/api/auth/hf/capabilities/route": [ + "static/chunks/webpack-6a7eac135ffbf936.js", + "static/chunks/4bd1b696-100b9d70ed4e49c1.js", + "static/chunks/1255-8befde0980f5cba9.js", + "static/chunks/main-app-6796e1116c8e92de.js", + "static/chunks/app/api/auth/hf/capabilities/route-4cd8f68137bb4a2e.js" ], "/api/auth/logout/route": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/app/api/auth/logout/route-9827d50f68dba9a6.js" + "static/chunks/app/api/auth/logout/route-4cd8f68137bb4a2e.js" ], - "/api/auth/codex/connect/route": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "/api/auth/me/route": [ + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/app/api/auth/codex/connect/route-9827d50f68dba9a6.js" + "static/chunks/app/api/auth/me/route-4cd8f68137bb4a2e.js" ], - "/api/docs/[...path]/route": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "/api/deployments/[id]/route": [ + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/app/api/docs/[...path]/route-9827d50f68dba9a6.js" + "static/chunks/app/api/deployments/[id]/route-4cd8f68137bb4a2e.js" ], - "/api/auth/me/route": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "/api/deployments/[id]/settings/route": [ + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/app/api/auth/me/route-9827d50f68dba9a6.js" + "static/chunks/app/api/deployments/[id]/settings/route-4cd8f68137bb4a2e.js" ], - "/api/models/route": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "/api/deployments/[id]/publish/route": [ + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/app/api/models/route-9827d50f68dba9a6.js" + "static/chunks/app/api/deployments/[id]/publish/route-4cd8f68137bb4a2e.js" ], - "/api/generate/route": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "/api/deployments/[id]/thumbnail/route": [ + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/app/api/generate/route-9827d50f68dba9a6.js" + "static/chunks/app/api/deployments/[id]/thumbnail/route-4cd8f68137bb4a2e.js" ], - "/api/projects/[id]/sites/route": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "/api/docs/[...path]/route": [ + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/app/api/projects/[id]/sites/route-9827d50f68dba9a6.js" + "static/chunks/app/api/docs/[...path]/route-4cd8f68137bb4a2e.js" ], - "/api/projects/route": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "/api/deployments/route": [ + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/app/api/projects/route-9827d50f68dba9a6.js" + "static/chunks/app/api/deployments/route-4cd8f68137bb4a2e.js" ], - "/api/shell/execute/route": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "/api/deployments/[id]/swap-project/route": [ + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/app/api/shell/execute/route-9827d50f68dba9a6.js" + "static/chunks/app/api/deployments/[id]/swap-project/route-4cd8f68137bb4a2e.js" ], - "/api/sites/[id]/publish/route": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "/api/generate/route": [ + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/app/api/sites/[id]/publish/route-9827d50f68dba9a6.js" + "static/chunks/app/api/generate/route-4cd8f68137bb4a2e.js" ], - "/api/sites/[id]/route": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "/api/projects/[id]/database/schema/route": [ + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/app/api/sites/[id]/route-9827d50f68dba9a6.js" + "static/chunks/app/api/projects/[id]/database/schema/route-4cd8f68137bb4a2e.js" ], - "/api/sites/[id]/settings/route": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "/api/models/route": [ + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/app/api/sites/[id]/settings/route-9827d50f68dba9a6.js" + "static/chunks/app/api/models/route-4cd8f68137bb4a2e.js" ], - "/api/sites/route": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "/api/projects/[id]/database/query/route": [ + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/app/api/sites/route-9827d50f68dba9a6.js" + "static/chunks/app/api/projects/[id]/database/query/route-4cd8f68137bb4a2e.js" ], - "/api/sites/[id]/thumbnail/route": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "/api/projects/route": [ + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/app/api/sites/[id]/thumbnail/route-9827d50f68dba9a6.js" + "static/chunks/app/api/projects/route-4cd8f68137bb4a2e.js" ], - "/api/sync/projects/[id]/route": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "/api/shell/execute/route": [ + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/app/api/sync/projects/[id]/route-9827d50f68dba9a6.js" + "static/chunks/app/api/shell/execute/route-4cd8f68137bb4a2e.js" ], - "/api/sync/files/route": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "/api/projects/[id]/deployments/route": [ + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/app/api/sync/files/route-9827d50f68dba9a6.js" + "static/chunks/app/api/projects/[id]/deployments/route-4cd8f68137bb4a2e.js" ], - "/api/sync/skills/[id]/route": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "/api/sync/files/route": [ + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/app/api/sync/skills/[id]/route-9827d50f68dba9a6.js" + "static/chunks/app/api/sync/files/route-4cd8f68137bb4a2e.js" ], "/api/sync/projects/route": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/app/api/sync/projects/route-9827d50f68dba9a6.js" + "static/chunks/app/api/sync/projects/route-4cd8f68137bb4a2e.js" ], - "/api/sync/status/route": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "/api/sync/projects/[id]/route": [ + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/app/api/sync/status/route-9827d50f68dba9a6.js" + "static/chunks/app/api/sync/projects/[id]/route-4cd8f68137bb4a2e.js" ], - "/api/sync/skills/route": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "/api/sync/backend-features/[projectId]/route": [ + "static/chunks/webpack-6a7eac135ffbf936.js", + "static/chunks/4bd1b696-100b9d70ed4e49c1.js", + "static/chunks/1255-8befde0980f5cba9.js", + "static/chunks/main-app-6796e1116c8e92de.js", + "static/chunks/app/api/sync/backend-features/[projectId]/route-4cd8f68137bb4a2e.js" + ], + "/api/sync/skills/[id]/route": [ + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/app/api/sync/skills/route-9827d50f68dba9a6.js" + "static/chunks/app/api/sync/skills/[id]/route-4cd8f68137bb4a2e.js" + ], + "/api/sync/status/route": [ + "static/chunks/webpack-6a7eac135ffbf936.js", + "static/chunks/4bd1b696-100b9d70ed4e49c1.js", + "static/chunks/1255-8befde0980f5cba9.js", + "static/chunks/main-app-6796e1116c8e92de.js", + "static/chunks/app/api/sync/status/route-4cd8f68137bb4a2e.js" ], "/api/sync/templates/[id]/route": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "static/chunks/webpack-6a7eac135ffbf936.js", + "static/chunks/4bd1b696-100b9d70ed4e49c1.js", + "static/chunks/1255-8befde0980f5cba9.js", + "static/chunks/main-app-6796e1116c8e92de.js", + "static/chunks/app/api/sync/templates/[id]/route-4cd8f68137bb4a2e.js" + ], + "/api/validate-key/route": [ + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/app/api/sync/templates/[id]/route-9827d50f68dba9a6.js" + "static/chunks/app/api/validate-key/route-4cd8f68137bb4a2e.js" ], "/api/sync/templates/route": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/app/api/sync/templates/route-9827d50f68dba9a6.js" + "static/chunks/app/api/sync/templates/route-4cd8f68137bb4a2e.js" ], - "/api/validate-key/route": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "/api/sync/skills/route": [ + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/app/api/validate-key/route-9827d50f68dba9a6.js" + "static/chunks/app/api/sync/skills/route-4cd8f68137bb4a2e.js" ], - "/sites/[id]/route": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "/deployments/[id]/[...path]/route": [ + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/app/sites/[id]/route-9827d50f68dba9a6.js" + "static/chunks/app/deployments/[id]/[...path]/route-4cd8f68137bb4a2e.js" ], - "/sites/[id]/[...path]/route": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "/deployments/[id]/route": [ + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/app/sites/[id]/[...path]/route-9827d50f68dba9a6.js" + "static/chunks/app/deployments/[id]/route-4cd8f68137bb4a2e.js" ], - "/api/admin/sites/[id]/scheduled-functions/[scheduledFunctionId]/route": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "/api/admin/deployments/[id]/server-context/route": [ + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/app/api/admin/sites/[id]/scheduled-functions/[scheduledFunctionId]/route-9827d50f68dba9a6.js" + "static/chunks/app/api/admin/deployments/[id]/server-context/route-4cd8f68137bb4a2e.js" ], - "/api/analytics/[siteId]/route": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "/api/deployments/[id]/functions/[...path]/route": [ + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/app/api/analytics/[siteId]/route-9827d50f68dba9a6.js" + "static/chunks/app/api/deployments/[id]/functions/[...path]/route-4cd8f68137bb4a2e.js" ], - "/admin/docs/page": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "/api/admin/dashboard/route": [ + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/06bf0ff1-101744fe776a5109.js", - "static/chunks/14258b02-ed7689e3556981a7.js", - "static/chunks/ad2866b8-e13a3cf75ccf0eb8.js", - "static/chunks/8720-c9ee040177c11cae.js", - "static/chunks/9401-d7ee14e1932b9afd.js", - "static/chunks/5160-7fad12b18cc710d2.js", - "static/chunks/9519-d81bd1404a321000.js", - "static/chunks/5705-4413c7555ebad1a5.js", - "static/chunks/app/admin/docs/page-cd3396dba1a5acbf.js" + "static/chunks/app/api/admin/dashboard/route-4cd8f68137bb4a2e.js" ], - "/admin/projects/page": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "/admin/dashboard/page": [ + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", @@ -448,13 +468,13 @@ "static/chunks/ad2866b8-e13a3cf75ccf0eb8.js", "static/chunks/8720-c9ee040177c11cae.js", "static/chunks/9401-d7ee14e1932b9afd.js", - "static/chunks/5160-7fad12b18cc710d2.js", - "static/chunks/9519-d81bd1404a321000.js", - "static/chunks/5705-4413c7555ebad1a5.js", - "static/chunks/app/admin/projects/page-cd3396dba1a5acbf.js" + "static/chunks/5088-f1f2539e3759b7ac.js", + "static/chunks/9519-f829657823927036.js", + "static/chunks/9177-1cbd5678f2905715.js", + "static/chunks/app/admin/dashboard/page-93d978d4bcb74918.js" ], - "/admin/settings/application/page": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "/admin/docs/page": [ + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", @@ -463,20 +483,20 @@ "static/chunks/ad2866b8-e13a3cf75ccf0eb8.js", "static/chunks/8720-c9ee040177c11cae.js", "static/chunks/9401-d7ee14e1932b9afd.js", - "static/chunks/5160-7fad12b18cc710d2.js", - "static/chunks/9519-d81bd1404a321000.js", - "static/chunks/5705-4413c7555ebad1a5.js", - "static/chunks/app/admin/settings/application/page-cd3396dba1a5acbf.js" + "static/chunks/5088-f1f2539e3759b7ac.js", + "static/chunks/9519-f829657823927036.js", + "static/chunks/9177-1cbd5678f2905715.js", + "static/chunks/app/admin/docs/page-93d978d4bcb74918.js" ], - "/admin/page": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "/admin/login/page": [ + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/app/admin/page-700ea05bb99f3aa7.js" + "static/chunks/app/admin/login/page-5f069849d073f76f.js" ], - "/admin/settings/model/page": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "/admin/projects/page": [ + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", @@ -485,13 +505,13 @@ "static/chunks/ad2866b8-e13a3cf75ccf0eb8.js", "static/chunks/8720-c9ee040177c11cae.js", "static/chunks/9401-d7ee14e1932b9afd.js", - "static/chunks/5160-7fad12b18cc710d2.js", - "static/chunks/9519-d81bd1404a321000.js", - "static/chunks/5705-4413c7555ebad1a5.js", - "static/chunks/app/admin/settings/model/page-cd3396dba1a5acbf.js" + "static/chunks/5088-f1f2539e3759b7ac.js", + "static/chunks/9519-f829657823927036.js", + "static/chunks/9177-1cbd5678f2905715.js", + "static/chunks/app/admin/projects/page-93d978d4bcb74918.js" ], - "/admin/settings/page": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "/admin/deployments/page": [ + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", @@ -500,13 +520,13 @@ "static/chunks/ad2866b8-e13a3cf75ccf0eb8.js", "static/chunks/8720-c9ee040177c11cae.js", "static/chunks/9401-d7ee14e1932b9afd.js", - "static/chunks/5160-7fad12b18cc710d2.js", - "static/chunks/9519-d81bd1404a321000.js", - "static/chunks/5705-4413c7555ebad1a5.js", - "static/chunks/app/admin/settings/page-cd3396dba1a5acbf.js" + "static/chunks/5088-f1f2539e3759b7ac.js", + "static/chunks/9519-f829657823927036.js", + "static/chunks/9177-1cbd5678f2905715.js", + "static/chunks/app/admin/deployments/page-93d978d4bcb74918.js" ], - "/admin/skills/page": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "/admin/settings/application/page": [ + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", @@ -515,13 +535,20 @@ "static/chunks/ad2866b8-e13a3cf75ccf0eb8.js", "static/chunks/8720-c9ee040177c11cae.js", "static/chunks/9401-d7ee14e1932b9afd.js", - "static/chunks/5160-7fad12b18cc710d2.js", - "static/chunks/9519-d81bd1404a321000.js", - "static/chunks/5705-4413c7555ebad1a5.js", - "static/chunks/app/admin/skills/page-cd3396dba1a5acbf.js" + "static/chunks/5088-f1f2539e3759b7ac.js", + "static/chunks/9519-f829657823927036.js", + "static/chunks/9177-1cbd5678f2905715.js", + "static/chunks/app/admin/settings/application/page-93d978d4bcb74918.js" ], - "/admin/templates/page": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "/admin/page": [ + "static/chunks/webpack-6a7eac135ffbf936.js", + "static/chunks/4bd1b696-100b9d70ed4e49c1.js", + "static/chunks/1255-8befde0980f5cba9.js", + "static/chunks/main-app-6796e1116c8e92de.js", + "static/chunks/app/admin/page-700ea05bb99f3aa7.js" + ], + "/admin/settings/model/page": [ + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", @@ -530,13 +557,13 @@ "static/chunks/ad2866b8-e13a3cf75ccf0eb8.js", "static/chunks/8720-c9ee040177c11cae.js", "static/chunks/9401-d7ee14e1932b9afd.js", - "static/chunks/5160-7fad12b18cc710d2.js", - "static/chunks/9519-d81bd1404a321000.js", - "static/chunks/5705-4413c7555ebad1a5.js", - "static/chunks/app/admin/templates/page-cd3396dba1a5acbf.js" + "static/chunks/5088-f1f2539e3759b7ac.js", + "static/chunks/9519-f829657823927036.js", + "static/chunks/9177-1cbd5678f2905715.js", + "static/chunks/app/admin/settings/model/page-93d978d4bcb74918.js" ], - "/admin/sites/page": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "/admin/skills/page": [ + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", @@ -545,13 +572,13 @@ "static/chunks/ad2866b8-e13a3cf75ccf0eb8.js", "static/chunks/8720-c9ee040177c11cae.js", "static/chunks/9401-d7ee14e1932b9afd.js", - "static/chunks/5160-7fad12b18cc710d2.js", - "static/chunks/9519-d81bd1404a321000.js", - "static/chunks/5705-4413c7555ebad1a5.js", - "static/chunks/app/admin/sites/page-cd3396dba1a5acbf.js" + "static/chunks/5088-f1f2539e3759b7ac.js", + "static/chunks/9519-f829657823927036.js", + "static/chunks/9177-1cbd5678f2905715.js", + "static/chunks/app/admin/skills/page-93d978d4bcb74918.js" ], - "/admin/dashboard/page": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "/admin/settings/page": [ + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", @@ -560,20 +587,28 @@ "static/chunks/ad2866b8-e13a3cf75ccf0eb8.js", "static/chunks/8720-c9ee040177c11cae.js", "static/chunks/9401-d7ee14e1932b9afd.js", - "static/chunks/5160-7fad12b18cc710d2.js", - "static/chunks/9519-d81bd1404a321000.js", - "static/chunks/5705-4413c7555ebad1a5.js", - "static/chunks/app/admin/dashboard/page-cd3396dba1a5acbf.js" + "static/chunks/5088-f1f2539e3759b7ac.js", + "static/chunks/9519-f829657823927036.js", + "static/chunks/9177-1cbd5678f2905715.js", + "static/chunks/app/admin/settings/page-93d978d4bcb74918.js" ], - "/admin/login/page": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "/admin/templates/page": [ + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/app/admin/login/page-5f069849d073f76f.js" + "static/chunks/06bf0ff1-101744fe776a5109.js", + "static/chunks/14258b02-ed7689e3556981a7.js", + "static/chunks/ad2866b8-e13a3cf75ccf0eb8.js", + "static/chunks/8720-c9ee040177c11cae.js", + "static/chunks/9401-d7ee14e1932b9afd.js", + "static/chunks/5088-f1f2539e3759b7ac.js", + "static/chunks/9519-f829657823927036.js", + "static/chunks/9177-1cbd5678f2905715.js", + "static/chunks/app/admin/templates/page-93d978d4bcb74918.js" ], "/page": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", @@ -582,13 +617,13 @@ "static/chunks/ad2866b8-e13a3cf75ccf0eb8.js", "static/chunks/8720-c9ee040177c11cae.js", "static/chunks/9401-d7ee14e1932b9afd.js", - "static/chunks/5160-7fad12b18cc710d2.js", - "static/chunks/9519-d81bd1404a321000.js", - "static/chunks/5705-4413c7555ebad1a5.js", - "static/chunks/app/page-a9a0ed5816ebc83c.js" + "static/chunks/5088-f1f2539e3759b7ac.js", + "static/chunks/9519-f829657823927036.js", + "static/chunks/9177-1cbd5678f2905715.js", + "static/chunks/app/page-da122e29b692f6bc.js" ], "/test-generation/page": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js", @@ -596,15 +631,8 @@ "static/chunks/14258b02-ed7689e3556981a7.js", "static/chunks/8720-c9ee040177c11cae.js", "static/chunks/9401-d7ee14e1932b9afd.js", - "static/chunks/9519-d81bd1404a321000.js", + "static/chunks/9519-f829657823927036.js", "static/chunks/app/test-generation/page-1c466d2b12c4a866.js" - ], - "/api/sites/[id]/functions/[...path]/route": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", - "static/chunks/4bd1b696-100b9d70ed4e49c1.js", - "static/chunks/1255-8befde0980f5cba9.js", - "static/chunks/main-app-6796e1116c8e92de.js", - "static/chunks/app/api/sites/[id]/functions/[...path]/route-9827d50f68dba9a6.js" ] } } \ No newline at end of file diff --git a/.next/app-path-routes-manifest.json b/.next/app-path-routes-manifest.json index f72b2d7ef45d19b8dd9e6a64b52844200ba4c822..72b2c1ad018784d550c4276032abb7b2051fc2a7 100644 --- a/.next/app-path-routes-manifest.json +++ b/.next/app-path-routes-manifest.json @@ -1,75 +1,79 @@ { - "/api/admin/dashboard/route": "/api/admin/dashboard", "/_not-found/page": "/_not-found", + "/api/admin/deployments/[id]/database/logs/route": "/api/admin/deployments/[id]/database/logs", + "/api/admin/deployments/[id]/functions/[functionId]/logs/route": "/api/admin/deployments/[id]/functions/[functionId]/logs", + "/api/admin/deployments/[id]/database/schema/route": "/api/admin/deployments/[id]/database/schema", + "/api/admin/deployments/[id]/database/query/route": "/api/admin/deployments/[id]/database/query", + "/api/admin/deployments/[id]/functions/[functionId]/route": "/api/admin/deployments/[id]/functions/[functionId]", + "/api/admin/deployments/[id]/scheduled-functions/[scheduledFunctionId]/route": "/api/admin/deployments/[id]/scheduled-functions/[scheduledFunctionId]", + "/api/admin/deployments/[id]/functions/route": "/api/admin/deployments/[id]/functions", + "/api/admin/deployments/[id]/scheduled-functions/route": "/api/admin/deployments/[id]/scheduled-functions", + "/api/admin/deployments/[id]/provision/route": "/api/admin/deployments/[id]/provision", + "/api/admin/deployments/[id]/secrets/route": "/api/admin/deployments/[id]/secrets", + "/api/admin/deployments/[id]/secrets/[secretId]/route": "/api/admin/deployments/[id]/secrets/[secretId]", + "/api/admin/deployments/[id]/server-functions/[functionId]/route": "/api/admin/deployments/[id]/server-functions/[functionId]", + "/api/admin/deployments/[id]/server-context/mutate/route": "/api/admin/deployments/[id]/server-context/mutate", + "/api/admin/deployments/[id]/server-functions/route": "/api/admin/deployments/[id]/server-functions", "/api/admin/run-migrations/route": "/api/admin/run-migrations", - "/api/admin/sites/[id]/functions/[functionId]/logs/route": "/api/admin/sites/[id]/functions/[functionId]/logs", - "/api/admin/sites/[id]/functions/[functionId]/route": "/api/admin/sites/[id]/functions/[functionId]", - "/api/admin/sites/[id]/database/logs/route": "/api/admin/sites/[id]/database/logs", - "/api/admin/sites/[id]/provision/route": "/api/admin/sites/[id]/provision", - "/api/admin/sites/[id]/database/query/route": "/api/admin/sites/[id]/database/query", - "/api/admin/sites/[id]/database/schema/route": "/api/admin/sites/[id]/database/schema", - "/api/admin/sites/[id]/secrets/[secretId]/route": "/api/admin/sites/[id]/secrets/[secretId]", - "/api/admin/sites/[id]/functions/route": "/api/admin/sites/[id]/functions", - "/api/admin/sites/[id]/secrets/route": "/api/admin/sites/[id]/secrets", - "/api/admin/sites/[id]/scheduled-functions/route": "/api/admin/sites/[id]/scheduled-functions", - "/api/admin/sites/[id]/server-context/route": "/api/admin/sites/[id]/server-context", - "/api/admin/sites/[id]/server-context/mutate/route": "/api/admin/sites/[id]/server-context/mutate", - "/api/admin/sites/[id]/server-functions/[functionId]/route": "/api/admin/sites/[id]/server-functions/[functionId]", - "/api/admin/sites/[id]/server-functions/route": "/api/admin/sites/[id]/server-functions", - "/api/analytics/[siteId]/engagement/route": "/api/analytics/[siteId]/engagement", - "/api/analytics/[siteId]/clear/route": "/api/analytics/[siteId]/clear", - "/api/analytics/[siteId]/export/route": "/api/analytics/[siteId]/export", - "/api/analytics/[siteId]/heatmap/route": "/api/analytics/[siteId]/heatmap", - "/api/analytics/[siteId]/sessions/route": "/api/analytics/[siteId]/sessions", - "/api/analytics/[siteId]/overview/route": "/api/analytics/[siteId]/overview", - "/api/analytics/[siteId]/storage/route": "/api/analytics/[siteId]/storage", + "/api/analytics/[deploymentId]/clear/route": "/api/analytics/[deploymentId]/clear", + "/api/analytics/[deploymentId]/engagement/route": "/api/analytics/[deploymentId]/engagement", + "/api/analytics/[deploymentId]/export/route": "/api/analytics/[deploymentId]/export", + "/api/analytics/[deploymentId]/overview/route": "/api/analytics/[deploymentId]/overview", + "/api/analytics/[deploymentId]/route": "/api/analytics/[deploymentId]", + "/api/analytics/[deploymentId]/heatmap/route": "/api/analytics/[deploymentId]/heatmap", + "/api/analytics/[deploymentId]/sessions/route": "/api/analytics/[deploymentId]/sessions", + "/api/analytics/[deploymentId]/storage/route": "/api/analytics/[deploymentId]/storage", "/api/analytics/interaction/route": "/api/analytics/interaction", "/api/analytics/track/route": "/api/analytics/track", "/api/auth/check/route": "/api/auth/check", "/api/auth/codex/disconnect/route": "/api/auth/codex/disconnect", "/api/auth/codex/status/route": "/api/auth/codex/status", - "/api/auth/hf/capabilities/route": "/api/auth/hf/capabilities", + "/api/auth/codex/connect/route": "/api/auth/codex/connect", "/api/auth/codex/token/route": "/api/auth/codex/token", "/api/auth/login/route": "/api/auth/login", + "/api/auth/hf/capabilities/route": "/api/auth/hf/capabilities", "/api/auth/logout/route": "/api/auth/logout", - "/api/auth/codex/connect/route": "/api/auth/codex/connect", - "/api/docs/[...path]/route": "/api/docs/[...path]", "/api/auth/me/route": "/api/auth/me", - "/api/models/route": "/api/models", + "/api/deployments/[id]/route": "/api/deployments/[id]", + "/api/deployments/[id]/settings/route": "/api/deployments/[id]/settings", + "/api/deployments/[id]/publish/route": "/api/deployments/[id]/publish", + "/api/deployments/[id]/thumbnail/route": "/api/deployments/[id]/thumbnail", + "/api/docs/[...path]/route": "/api/docs/[...path]", + "/api/deployments/route": "/api/deployments", + "/api/deployments/[id]/swap-project/route": "/api/deployments/[id]/swap-project", "/api/generate/route": "/api/generate", - "/api/projects/[id]/sites/route": "/api/projects/[id]/sites", + "/api/projects/[id]/database/schema/route": "/api/projects/[id]/database/schema", + "/api/models/route": "/api/models", + "/api/projects/[id]/database/query/route": "/api/projects/[id]/database/query", "/api/projects/route": "/api/projects", "/api/shell/execute/route": "/api/shell/execute", - "/api/sites/[id]/publish/route": "/api/sites/[id]/publish", - "/api/sites/[id]/route": "/api/sites/[id]", - "/api/sites/[id]/settings/route": "/api/sites/[id]/settings", - "/api/sites/route": "/api/sites", - "/api/sites/[id]/thumbnail/route": "/api/sites/[id]/thumbnail", - "/api/sync/projects/[id]/route": "/api/sync/projects/[id]", + "/api/projects/[id]/deployments/route": "/api/projects/[id]/deployments", "/api/sync/files/route": "/api/sync/files", - "/api/sync/skills/[id]/route": "/api/sync/skills/[id]", "/api/sync/projects/route": "/api/sync/projects", + "/api/sync/projects/[id]/route": "/api/sync/projects/[id]", + "/api/sync/backend-features/[projectId]/route": "/api/sync/backend-features/[projectId]", + "/api/sync/skills/[id]/route": "/api/sync/skills/[id]", "/api/sync/status/route": "/api/sync/status", - "/api/sync/skills/route": "/api/sync/skills", "/api/sync/templates/[id]/route": "/api/sync/templates/[id]", - "/api/sync/templates/route": "/api/sync/templates", "/api/validate-key/route": "/api/validate-key", - "/sites/[id]/route": "/sites/[id]", - "/sites/[id]/[...path]/route": "/sites/[id]/[...path]", - "/api/admin/sites/[id]/scheduled-functions/[scheduledFunctionId]/route": "/api/admin/sites/[id]/scheduled-functions/[scheduledFunctionId]", - "/api/analytics/[siteId]/route": "/api/analytics/[siteId]", + "/api/sync/templates/route": "/api/sync/templates", + "/api/sync/skills/route": "/api/sync/skills", + "/deployments/[id]/[...path]/route": "/deployments/[id]/[...path]", + "/deployments/[id]/route": "/deployments/[id]", + "/api/admin/deployments/[id]/server-context/route": "/api/admin/deployments/[id]/server-context", + "/api/deployments/[id]/functions/[...path]/route": "/api/deployments/[id]/functions/[...path]", + "/api/admin/dashboard/route": "/api/admin/dashboard", + "/admin/dashboard/page": "/admin/dashboard", "/admin/docs/page": "/admin/docs", + "/admin/login/page": "/admin/login", "/admin/projects/page": "/admin/projects", + "/admin/deployments/page": "/admin/deployments", "/admin/settings/application/page": "/admin/settings/application", "/admin/page": "/admin", "/admin/settings/model/page": "/admin/settings/model", - "/admin/settings/page": "/admin/settings", "/admin/skills/page": "/admin/skills", + "/admin/settings/page": "/admin/settings", "/admin/templates/page": "/admin/templates", - "/admin/sites/page": "/admin/sites", - "/admin/dashboard/page": "/admin/dashboard", - "/admin/login/page": "/admin/login", "/page": "/", - "/test-generation/page": "/test-generation", - "/api/sites/[id]/functions/[...path]/route": "/api/sites/[id]/functions/[...path]" + "/test-generation/page": "/test-generation" } \ No newline at end of file diff --git a/.next/build-manifest.json b/.next/build-manifest.json index 28ba198745454ff650423ac9bc0f0100d199e183..272968c04c1a609c2983057d370f6f67c7812123 100644 --- a/.next/build-manifest.json +++ b/.next/build-manifest.json @@ -5,11 +5,11 @@ "devFiles": [], "ampDevFiles": [], "lowPriorityFiles": [ - "static/Dj_mU3ym-gcopP6URA30w/_buildManifest.js", - "static/Dj_mU3ym-gcopP6URA30w/_ssgManifest.js" + "static/6U79IAVVts3v8bcNT6dWz/_buildManifest.js", + "static/6U79IAVVts3v8bcNT6dWz/_ssgManifest.js" ], "rootMainFiles": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/4bd1b696-100b9d70ed4e49c1.js", "static/chunks/1255-8befde0980f5cba9.js", "static/chunks/main-app-6796e1116c8e92de.js" @@ -17,13 +17,13 @@ "rootMainFilesTree": {}, "pages": { "/_app": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/framework-bd61ec64032c2de7.js", "static/chunks/main-73443a1a35107593.js", "static/chunks/pages/_app-4b3fb5e477a0267f.js" ], "/_error": [ - "static/chunks/webpack-6a42fdfdafb7575a.js", + "static/chunks/webpack-6a7eac135ffbf936.js", "static/chunks/framework-bd61ec64032c2de7.js", "static/chunks/main-73443a1a35107593.js", "static/chunks/pages/_error-c970d8b55ace1b48.js" diff --git a/.next/prerender-manifest.json b/.next/prerender-manifest.json index 8541af1b24482548738c3d5f5514e9e3162095a0..69a8b063bd6a2f87dce5d08997f22899c8affdaf 100644 --- a/.next/prerender-manifest.json +++ b/.next/prerender-manifest.json @@ -1,7 +1,8 @@ { "version": 4, "routes": { - "/admin/login": { + "/_not-found": { + "initialStatus": 404, "experimentalBypassFor": [ { "type": "header", @@ -14,8 +15,8 @@ } ], "initialRevalidateSeconds": false, - "srcRoute": "/admin/login", - "dataRoute": "/admin/login.rsc", + "srcRoute": "/_not-found", + "dataRoute": "/_not-found.rsc", "allowHeader": [ "host", "x-matched-path", @@ -25,7 +26,7 @@ "x-next-revalidate-tag-token" ] }, - "/admin/docs": { + "/admin/login": { "experimentalBypassFor": [ { "type": "header", @@ -38,8 +39,8 @@ } ], "initialRevalidateSeconds": false, - "srcRoute": "/admin/docs", - "dataRoute": "/admin/docs.rsc", + "srcRoute": "/admin/login", + "dataRoute": "/admin/login.rsc", "allowHeader": [ "host", "x-matched-path", @@ -49,7 +50,7 @@ "x-next-revalidate-tag-token" ] }, - "/admin/sites": { + "/admin/projects": { "experimentalBypassFor": [ { "type": "header", @@ -62,8 +63,8 @@ } ], "initialRevalidateSeconds": false, - "srcRoute": "/admin/sites", - "dataRoute": "/admin/sites.rsc", + "srcRoute": "/admin/projects", + "dataRoute": "/admin/projects.rsc", "allowHeader": [ "host", "x-matched-path", @@ -73,7 +74,7 @@ "x-next-revalidate-tag-token" ] }, - "/admin/settings": { + "/admin": { "experimentalBypassFor": [ { "type": "header", @@ -86,8 +87,8 @@ } ], "initialRevalidateSeconds": false, - "srcRoute": "/admin/settings", - "dataRoute": "/admin/settings.rsc", + "srcRoute": "/admin", + "dataRoute": "/admin.rsc", "allowHeader": [ "host", "x-matched-path", @@ -97,7 +98,7 @@ "x-next-revalidate-tag-token" ] }, - "/": { + "/admin/skills": { "experimentalBypassFor": [ { "type": "header", @@ -110,8 +111,8 @@ } ], "initialRevalidateSeconds": false, - "srcRoute": "/", - "dataRoute": "/index.rsc", + "srcRoute": "/admin/skills", + "dataRoute": "/admin/skills.rsc", "allowHeader": [ "host", "x-matched-path", @@ -121,7 +122,7 @@ "x-next-revalidate-tag-token" ] }, - "/admin/dashboard": { + "/admin/settings": { "experimentalBypassFor": [ { "type": "header", @@ -134,8 +135,8 @@ } ], "initialRevalidateSeconds": false, - "srcRoute": "/admin/dashboard", - "dataRoute": "/admin/dashboard.rsc", + "srcRoute": "/admin/settings", + "dataRoute": "/admin/settings.rsc", "allowHeader": [ "host", "x-matched-path", @@ -145,7 +146,7 @@ "x-next-revalidate-tag-token" ] }, - "/admin/projects": { + "/admin/deployments": { "experimentalBypassFor": [ { "type": "header", @@ -158,8 +159,8 @@ } ], "initialRevalidateSeconds": false, - "srcRoute": "/admin/projects", - "dataRoute": "/admin/projects.rsc", + "srcRoute": "/admin/deployments", + "dataRoute": "/admin/deployments.rsc", "allowHeader": [ "host", "x-matched-path", @@ -169,7 +170,7 @@ "x-next-revalidate-tag-token" ] }, - "/admin": { + "/": { "experimentalBypassFor": [ { "type": "header", @@ -182,8 +183,8 @@ } ], "initialRevalidateSeconds": false, - "srcRoute": "/admin", - "dataRoute": "/admin.rsc", + "srcRoute": "/", + "dataRoute": "/index.rsc", "allowHeader": [ "host", "x-matched-path", @@ -217,8 +218,7 @@ "x-next-revalidate-tag-token" ] }, - "/_not-found": { - "initialStatus": 404, + "/admin/dashboard": { "experimentalBypassFor": [ { "type": "header", @@ -231,8 +231,8 @@ } ], "initialRevalidateSeconds": false, - "srcRoute": "/_not-found", - "dataRoute": "/_not-found.rsc", + "srcRoute": "/admin/dashboard", + "dataRoute": "/admin/dashboard.rsc", "allowHeader": [ "host", "x-matched-path", @@ -242,7 +242,7 @@ "x-next-revalidate-tag-token" ] }, - "/admin/settings/application": { + "/admin/docs": { "experimentalBypassFor": [ { "type": "header", @@ -255,8 +255,8 @@ } ], "initialRevalidateSeconds": false, - "srcRoute": "/admin/settings/application", - "dataRoute": "/admin/settings/application.rsc", + "srcRoute": "/admin/docs", + "dataRoute": "/admin/docs.rsc", "allowHeader": [ "host", "x-matched-path", @@ -290,7 +290,7 @@ "x-next-revalidate-tag-token" ] }, - "/admin/skills": { + "/admin/settings/model": { "experimentalBypassFor": [ { "type": "header", @@ -303,8 +303,8 @@ } ], "initialRevalidateSeconds": false, - "srcRoute": "/admin/skills", - "dataRoute": "/admin/skills.rsc", + "srcRoute": "/admin/settings/model", + "dataRoute": "/admin/settings/model.rsc", "allowHeader": [ "host", "x-matched-path", @@ -314,7 +314,7 @@ "x-next-revalidate-tag-token" ] }, - "/admin/settings/model": { + "/admin/settings/application": { "experimentalBypassFor": [ { "type": "header", @@ -327,8 +327,8 @@ } ], "initialRevalidateSeconds": false, - "srcRoute": "/admin/settings/model", - "dataRoute": "/admin/settings/model.rsc", + "srcRoute": "/admin/settings/application", + "dataRoute": "/admin/settings/application.rsc", "allowHeader": [ "host", "x-matched-path", @@ -342,8 +342,8 @@ "dynamicRoutes": {}, "notFoundRoutes": [], "preview": { - "previewModeId": "9664e3819029b9cae7a0b4cc06e05681", - "previewModeSigningKey": "ec50251289ff47d9a3399c535ade80092b835a889c1f041762c6312681261565", - "previewModeEncryptionKey": "2db42a7f17d06c1f12552bcd759256e1d99f6b8c2c60b3cb1e921667566b9d1d" + "previewModeId": "286d8fb8dd494eab5bda069a2ea4e0d5", + "previewModeSigningKey": "569df3850c5a3af5028937eb4c0a8667962fd705e00c0be0a9fc75d6bb7d59b7", + "previewModeEncryptionKey": "a595dcde69cf6934a928c81d59cd443ac2d0d2fdacec7d85b4cac8b97e32f430" } } \ No newline at end of file diff --git a/.next/react-loadable-manifest.json b/.next/react-loadable-manifest.json index f19ed433681513504d07eaca47d9e423776e2e43..4808cc015cc03392752095bfda454fc76c4d91fc 100644 --- a/.next/react-loadable-manifest.json +++ b/.next/react-loadable-manifest.json @@ -28,11 +28,11 @@ "files": [] }, "lib/vfs/adapters/factory.ts -> ./sqlite-adapter": { - "id": 87739, + "id": 34481, "files": [ "static/chunks/aaea2bcf.143d3b0dc8132bc4.js", "static/chunks/8231.2a53dd09caf3dd99.js", - "static/chunks/7739.52e833cd492517c8.js" + "static/chunks/4481.42d49ebcb8c10deb.js" ] }, "lib/vfs/backup-service.ts -> @/lib/vfs": { @@ -46,7 +46,7 @@ "lib/vfs/index.ts -> ./auto-sync": { "id": 37714, "files": [ - "static/chunks/7714.ccb74eca63677a95.js" + "static/chunks/7714.7621501a80d6df6d.js" ] }, "lib/vfs/index.ts -> ./server-context": { @@ -56,6 +56,16 @@ "static/chunks/1577.53b9baa9b34232a8.js" ] }, + "lib/vfs/index.ts -> uuid": { + "id": 67108, + "files": [ + "static/chunks/7108.a799c23dcf87acfd.js" + ] + }, + "lib/vfs/sync-manager.ts -> @/lib/vfs": { + "id": 94318, + "files": [] + }, "lib/vfs/template-service.ts -> ./index": { "id": 94318, "files": [] diff --git a/.next/required-server-files.json b/.next/required-server-files.json index 9d2b43c0361ff2d69f4801f264ce29927b26155f..678cb683060193a8a9c63b6aaabd33ccf111cf89 100644 --- a/.next/required-server-files.json +++ b/.next/required-server-files.json @@ -297,16 +297,16 @@ "beforeFiles": [], "afterFiles": [ { - "source": "/sites/:projectId", - "destination": "/sites/:projectId/index.html" + "source": "/deployments/:projectId", + "destination": "/deployments/:projectId/index.html" }, { - "source": "/sites/:projectId/", - "destination": "/sites/:projectId/index.html" + "source": "/deployments/:projectId/", + "destination": "/deployments/:projectId/index.html" }, { - "source": "/sites/:projectId/:path([^.]+)", - "destination": "/sites/:projectId/:path.html" + "source": "/deployments/:projectId/:path([^.]+)", + "destination": "/deployments/:projectId/:path.html" } ], "fallback": [] diff --git a/.next/routes-manifest.json b/.next/routes-manifest.json index cfb354d0de3ae020a7411c61fdad946804cc7020..5dbfb55d3a103755e34bdfb10e64912c340775d9 100644 --- a/.next/routes-manifest.json +++ b/.next/routes-manifest.json @@ -17,269 +17,301 @@ "beforeFiles": [], "afterFiles": [ { - "source": "/sites/:projectId", - "destination": "/sites/:projectId/index.html", - "regex": "^/sites(?:/([^/]+?))(?:/)?$" + "source": "/deployments/:projectId", + "destination": "/deployments/:projectId/index.html", + "regex": "^/deployments(?:/([^/]+?))(?:/)?$" }, { - "source": "/sites/:projectId/", - "destination": "/sites/:projectId/index.html", - "regex": "^/sites(?:/([^/]+?))/(?:/)?$" + "source": "/deployments/:projectId/", + "destination": "/deployments/:projectId/index.html", + "regex": "^/deployments(?:/([^/]+?))/(?:/)?$" }, { - "source": "/sites/:projectId/:path([^.]+)", - "destination": "/sites/:projectId/:path.html", - "regex": "^/sites(?:/([^/]+?))(?:/([^.]+))(?:/)?$" + "source": "/deployments/:projectId/:path([^.]+)", + "destination": "/deployments/:projectId/:path.html", + "regex": "^/deployments(?:/([^/]+?))(?:/([^.]+))(?:/)?$" } ], "fallback": [] }, "dynamicRoutes": [ { - "page": "/api/admin/sites/[id]/database/logs", - "regex": "^/api/admin/sites/([^/]+?)/database/logs(?:/)?$", + "page": "/api/admin/deployments/[id]/database/logs", + "regex": "^/api/admin/deployments/([^/]+?)/database/logs(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, - "namedRegex": "^/api/admin/sites/(?[^/]+?)/database/logs(?:/)?$" + "namedRegex": "^/api/admin/deployments/(?[^/]+?)/database/logs(?:/)?$" }, { - "page": "/api/admin/sites/[id]/database/query", - "regex": "^/api/admin/sites/([^/]+?)/database/query(?:/)?$", + "page": "/api/admin/deployments/[id]/database/query", + "regex": "^/api/admin/deployments/([^/]+?)/database/query(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, - "namedRegex": "^/api/admin/sites/(?[^/]+?)/database/query(?:/)?$" + "namedRegex": "^/api/admin/deployments/(?[^/]+?)/database/query(?:/)?$" }, { - "page": "/api/admin/sites/[id]/database/schema", - "regex": "^/api/admin/sites/([^/]+?)/database/schema(?:/)?$", + "page": "/api/admin/deployments/[id]/database/schema", + "regex": "^/api/admin/deployments/([^/]+?)/database/schema(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, - "namedRegex": "^/api/admin/sites/(?[^/]+?)/database/schema(?:/)?$" + "namedRegex": "^/api/admin/deployments/(?[^/]+?)/database/schema(?:/)?$" }, { - "page": "/api/admin/sites/[id]/functions", - "regex": "^/api/admin/sites/([^/]+?)/functions(?:/)?$", + "page": "/api/admin/deployments/[id]/functions", + "regex": "^/api/admin/deployments/([^/]+?)/functions(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, - "namedRegex": "^/api/admin/sites/(?[^/]+?)/functions(?:/)?$" + "namedRegex": "^/api/admin/deployments/(?[^/]+?)/functions(?:/)?$" }, { - "page": "/api/admin/sites/[id]/functions/[functionId]", - "regex": "^/api/admin/sites/([^/]+?)/functions/([^/]+?)(?:/)?$", + "page": "/api/admin/deployments/[id]/functions/[functionId]", + "regex": "^/api/admin/deployments/([^/]+?)/functions/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid", "nxtPfunctionId": "nxtPfunctionId" }, - "namedRegex": "^/api/admin/sites/(?[^/]+?)/functions/(?[^/]+?)(?:/)?$" + "namedRegex": "^/api/admin/deployments/(?[^/]+?)/functions/(?[^/]+?)(?:/)?$" }, { - "page": "/api/admin/sites/[id]/functions/[functionId]/logs", - "regex": "^/api/admin/sites/([^/]+?)/functions/([^/]+?)/logs(?:/)?$", + "page": "/api/admin/deployments/[id]/functions/[functionId]/logs", + "regex": "^/api/admin/deployments/([^/]+?)/functions/([^/]+?)/logs(?:/)?$", "routeKeys": { "nxtPid": "nxtPid", "nxtPfunctionId": "nxtPfunctionId" }, - "namedRegex": "^/api/admin/sites/(?[^/]+?)/functions/(?[^/]+?)/logs(?:/)?$" + "namedRegex": "^/api/admin/deployments/(?[^/]+?)/functions/(?[^/]+?)/logs(?:/)?$" }, { - "page": "/api/admin/sites/[id]/provision", - "regex": "^/api/admin/sites/([^/]+?)/provision(?:/)?$", + "page": "/api/admin/deployments/[id]/provision", + "regex": "^/api/admin/deployments/([^/]+?)/provision(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, - "namedRegex": "^/api/admin/sites/(?[^/]+?)/provision(?:/)?$" + "namedRegex": "^/api/admin/deployments/(?[^/]+?)/provision(?:/)?$" }, { - "page": "/api/admin/sites/[id]/scheduled-functions", - "regex": "^/api/admin/sites/([^/]+?)/scheduled\\-functions(?:/)?$", + "page": "/api/admin/deployments/[id]/scheduled-functions", + "regex": "^/api/admin/deployments/([^/]+?)/scheduled\\-functions(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, - "namedRegex": "^/api/admin/sites/(?[^/]+?)/scheduled\\-functions(?:/)?$" + "namedRegex": "^/api/admin/deployments/(?[^/]+?)/scheduled\\-functions(?:/)?$" }, { - "page": "/api/admin/sites/[id]/scheduled-functions/[scheduledFunctionId]", - "regex": "^/api/admin/sites/([^/]+?)/scheduled\\-functions/([^/]+?)(?:/)?$", + "page": "/api/admin/deployments/[id]/scheduled-functions/[scheduledFunctionId]", + "regex": "^/api/admin/deployments/([^/]+?)/scheduled\\-functions/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid", "nxtPscheduledFunctionId": "nxtPscheduledFunctionId" }, - "namedRegex": "^/api/admin/sites/(?[^/]+?)/scheduled\\-functions/(?[^/]+?)(?:/)?$" + "namedRegex": "^/api/admin/deployments/(?[^/]+?)/scheduled\\-functions/(?[^/]+?)(?:/)?$" }, { - "page": "/api/admin/sites/[id]/secrets", - "regex": "^/api/admin/sites/([^/]+?)/secrets(?:/)?$", + "page": "/api/admin/deployments/[id]/secrets", + "regex": "^/api/admin/deployments/([^/]+?)/secrets(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, - "namedRegex": "^/api/admin/sites/(?[^/]+?)/secrets(?:/)?$" + "namedRegex": "^/api/admin/deployments/(?[^/]+?)/secrets(?:/)?$" }, { - "page": "/api/admin/sites/[id]/secrets/[secretId]", - "regex": "^/api/admin/sites/([^/]+?)/secrets/([^/]+?)(?:/)?$", + "page": "/api/admin/deployments/[id]/secrets/[secretId]", + "regex": "^/api/admin/deployments/([^/]+?)/secrets/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid", "nxtPsecretId": "nxtPsecretId" }, - "namedRegex": "^/api/admin/sites/(?[^/]+?)/secrets/(?[^/]+?)(?:/)?$" + "namedRegex": "^/api/admin/deployments/(?[^/]+?)/secrets/(?[^/]+?)(?:/)?$" }, { - "page": "/api/admin/sites/[id]/server-context", - "regex": "^/api/admin/sites/([^/]+?)/server\\-context(?:/)?$", + "page": "/api/admin/deployments/[id]/server-context", + "regex": "^/api/admin/deployments/([^/]+?)/server\\-context(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, - "namedRegex": "^/api/admin/sites/(?[^/]+?)/server\\-context(?:/)?$" + "namedRegex": "^/api/admin/deployments/(?[^/]+?)/server\\-context(?:/)?$" }, { - "page": "/api/admin/sites/[id]/server-context/mutate", - "regex": "^/api/admin/sites/([^/]+?)/server\\-context/mutate(?:/)?$", + "page": "/api/admin/deployments/[id]/server-context/mutate", + "regex": "^/api/admin/deployments/([^/]+?)/server\\-context/mutate(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, - "namedRegex": "^/api/admin/sites/(?[^/]+?)/server\\-context/mutate(?:/)?$" + "namedRegex": "^/api/admin/deployments/(?[^/]+?)/server\\-context/mutate(?:/)?$" }, { - "page": "/api/admin/sites/[id]/server-functions", - "regex": "^/api/admin/sites/([^/]+?)/server\\-functions(?:/)?$", + "page": "/api/admin/deployments/[id]/server-functions", + "regex": "^/api/admin/deployments/([^/]+?)/server\\-functions(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, - "namedRegex": "^/api/admin/sites/(?[^/]+?)/server\\-functions(?:/)?$" + "namedRegex": "^/api/admin/deployments/(?[^/]+?)/server\\-functions(?:/)?$" }, { - "page": "/api/admin/sites/[id]/server-functions/[functionId]", - "regex": "^/api/admin/sites/([^/]+?)/server\\-functions/([^/]+?)(?:/)?$", + "page": "/api/admin/deployments/[id]/server-functions/[functionId]", + "regex": "^/api/admin/deployments/([^/]+?)/server\\-functions/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid", "nxtPfunctionId": "nxtPfunctionId" }, - "namedRegex": "^/api/admin/sites/(?[^/]+?)/server\\-functions/(?[^/]+?)(?:/)?$" + "namedRegex": "^/api/admin/deployments/(?[^/]+?)/server\\-functions/(?[^/]+?)(?:/)?$" }, { - "page": "/api/analytics/[siteId]", + "page": "/api/analytics/[deploymentId]", "regex": "^/api/analytics/([^/]+?)(?:/)?$", "routeKeys": { - "nxtPsiteId": "nxtPsiteId" + "nxtPdeploymentId": "nxtPdeploymentId" }, - "namedRegex": "^/api/analytics/(?[^/]+?)(?:/)?$" + "namedRegex": "^/api/analytics/(?[^/]+?)(?:/)?$" }, { - "page": "/api/analytics/[siteId]/clear", + "page": "/api/analytics/[deploymentId]/clear", "regex": "^/api/analytics/([^/]+?)/clear(?:/)?$", "routeKeys": { - "nxtPsiteId": "nxtPsiteId" + "nxtPdeploymentId": "nxtPdeploymentId" }, - "namedRegex": "^/api/analytics/(?[^/]+?)/clear(?:/)?$" + "namedRegex": "^/api/analytics/(?[^/]+?)/clear(?:/)?$" }, { - "page": "/api/analytics/[siteId]/engagement", + "page": "/api/analytics/[deploymentId]/engagement", "regex": "^/api/analytics/([^/]+?)/engagement(?:/)?$", "routeKeys": { - "nxtPsiteId": "nxtPsiteId" + "nxtPdeploymentId": "nxtPdeploymentId" }, - "namedRegex": "^/api/analytics/(?[^/]+?)/engagement(?:/)?$" + "namedRegex": "^/api/analytics/(?[^/]+?)/engagement(?:/)?$" }, { - "page": "/api/analytics/[siteId]/export", + "page": "/api/analytics/[deploymentId]/export", "regex": "^/api/analytics/([^/]+?)/export(?:/)?$", "routeKeys": { - "nxtPsiteId": "nxtPsiteId" + "nxtPdeploymentId": "nxtPdeploymentId" }, - "namedRegex": "^/api/analytics/(?[^/]+?)/export(?:/)?$" + "namedRegex": "^/api/analytics/(?[^/]+?)/export(?:/)?$" }, { - "page": "/api/analytics/[siteId]/heatmap", + "page": "/api/analytics/[deploymentId]/heatmap", "regex": "^/api/analytics/([^/]+?)/heatmap(?:/)?$", "routeKeys": { - "nxtPsiteId": "nxtPsiteId" + "nxtPdeploymentId": "nxtPdeploymentId" }, - "namedRegex": "^/api/analytics/(?[^/]+?)/heatmap(?:/)?$" + "namedRegex": "^/api/analytics/(?[^/]+?)/heatmap(?:/)?$" }, { - "page": "/api/analytics/[siteId]/overview", + "page": "/api/analytics/[deploymentId]/overview", "regex": "^/api/analytics/([^/]+?)/overview(?:/)?$", "routeKeys": { - "nxtPsiteId": "nxtPsiteId" + "nxtPdeploymentId": "nxtPdeploymentId" }, - "namedRegex": "^/api/analytics/(?[^/]+?)/overview(?:/)?$" + "namedRegex": "^/api/analytics/(?[^/]+?)/overview(?:/)?$" }, { - "page": "/api/analytics/[siteId]/sessions", + "page": "/api/analytics/[deploymentId]/sessions", "regex": "^/api/analytics/([^/]+?)/sessions(?:/)?$", "routeKeys": { - "nxtPsiteId": "nxtPsiteId" + "nxtPdeploymentId": "nxtPdeploymentId" }, - "namedRegex": "^/api/analytics/(?[^/]+?)/sessions(?:/)?$" + "namedRegex": "^/api/analytics/(?[^/]+?)/sessions(?:/)?$" }, { - "page": "/api/analytics/[siteId]/storage", + "page": "/api/analytics/[deploymentId]/storage", "regex": "^/api/analytics/([^/]+?)/storage(?:/)?$", "routeKeys": { - "nxtPsiteId": "nxtPsiteId" + "nxtPdeploymentId": "nxtPdeploymentId" }, - "namedRegex": "^/api/analytics/(?[^/]+?)/storage(?:/)?$" + "namedRegex": "^/api/analytics/(?[^/]+?)/storage(?:/)?$" }, { - "page": "/api/docs/[...path]", - "regex": "^/api/docs/(.+?)(?:/)?$", + "page": "/api/deployments/[id]", + "regex": "^/api/deployments/([^/]+?)(?:/)?$", "routeKeys": { + "nxtPid": "nxtPid" + }, + "namedRegex": "^/api/deployments/(?[^/]+?)(?:/)?$" + }, + { + "page": "/api/deployments/[id]/functions/[...path]", + "regex": "^/api/deployments/([^/]+?)/functions/(.+?)(?:/)?$", + "routeKeys": { + "nxtPid": "nxtPid", "nxtPpath": "nxtPpath" }, - "namedRegex": "^/api/docs/(?.+?)(?:/)?$" + "namedRegex": "^/api/deployments/(?[^/]+?)/functions/(?.+?)(?:/)?$" }, { - "page": "/api/projects/[id]/sites", - "regex": "^/api/projects/([^/]+?)/sites(?:/)?$", + "page": "/api/deployments/[id]/publish", + "regex": "^/api/deployments/([^/]+?)/publish(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, - "namedRegex": "^/api/projects/(?[^/]+?)/sites(?:/)?$" + "namedRegex": "^/api/deployments/(?[^/]+?)/publish(?:/)?$" }, { - "page": "/api/sites/[id]", - "regex": "^/api/sites/([^/]+?)(?:/)?$", + "page": "/api/deployments/[id]/settings", + "regex": "^/api/deployments/([^/]+?)/settings(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, - "namedRegex": "^/api/sites/(?[^/]+?)(?:/)?$" + "namedRegex": "^/api/deployments/(?[^/]+?)/settings(?:/)?$" }, { - "page": "/api/sites/[id]/functions/[...path]", - "regex": "^/api/sites/([^/]+?)/functions/(.+?)(?:/)?$", + "page": "/api/deployments/[id]/swap-project", + "regex": "^/api/deployments/([^/]+?)/swap\\-project(?:/)?$", + "routeKeys": { + "nxtPid": "nxtPid" + }, + "namedRegex": "^/api/deployments/(?[^/]+?)/swap\\-project(?:/)?$" + }, + { + "page": "/api/deployments/[id]/thumbnail", + "regex": "^/api/deployments/([^/]+?)/thumbnail(?:/)?$", + "routeKeys": { + "nxtPid": "nxtPid" + }, + "namedRegex": "^/api/deployments/(?[^/]+?)/thumbnail(?:/)?$" + }, + { + "page": "/api/docs/[...path]", + "regex": "^/api/docs/(.+?)(?:/)?$", "routeKeys": { - "nxtPid": "nxtPid", "nxtPpath": "nxtPpath" }, - "namedRegex": "^/api/sites/(?[^/]+?)/functions/(?.+?)(?:/)?$" + "namedRegex": "^/api/docs/(?.+?)(?:/)?$" }, { - "page": "/api/sites/[id]/publish", - "regex": "^/api/sites/([^/]+?)/publish(?:/)?$", + "page": "/api/projects/[id]/database/query", + "regex": "^/api/projects/([^/]+?)/database/query(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, - "namedRegex": "^/api/sites/(?[^/]+?)/publish(?:/)?$" + "namedRegex": "^/api/projects/(?[^/]+?)/database/query(?:/)?$" }, { - "page": "/api/sites/[id]/settings", - "regex": "^/api/sites/([^/]+?)/settings(?:/)?$", + "page": "/api/projects/[id]/database/schema", + "regex": "^/api/projects/([^/]+?)/database/schema(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, - "namedRegex": "^/api/sites/(?[^/]+?)/settings(?:/)?$" + "namedRegex": "^/api/projects/(?[^/]+?)/database/schema(?:/)?$" }, { - "page": "/api/sites/[id]/thumbnail", - "regex": "^/api/sites/([^/]+?)/thumbnail(?:/)?$", + "page": "/api/projects/[id]/deployments", + "regex": "^/api/projects/([^/]+?)/deployments(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, - "namedRegex": "^/api/sites/(?[^/]+?)/thumbnail(?:/)?$" + "namedRegex": "^/api/projects/(?[^/]+?)/deployments(?:/)?$" + }, + { + "page": "/api/sync/backend-features/[projectId]", + "regex": "^/api/sync/backend\\-features/([^/]+?)(?:/)?$", + "routeKeys": { + "nxtPprojectId": "nxtPprojectId" + }, + "namedRegex": "^/api/sync/backend\\-features/(?[^/]+?)(?:/)?$" }, { "page": "/api/sync/projects/[id]", @@ -306,21 +338,21 @@ "namedRegex": "^/api/sync/templates/(?[^/]+?)(?:/)?$" }, { - "page": "/sites/[id]", - "regex": "^/sites/([^/]+?)(?:/)?$", + "page": "/deployments/[id]", + "regex": "^/deployments/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, - "namedRegex": "^/sites/(?[^/]+?)(?:/)?$" + "namedRegex": "^/deployments/(?[^/]+?)(?:/)?$" }, { - "page": "/sites/[id]/[...path]", - "regex": "^/sites/([^/]+?)/(.+?)(?:/)?$", + "page": "/deployments/[id]/[...path]", + "regex": "^/deployments/([^/]+?)/(.+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid", "nxtPpath": "nxtPpath" }, - "namedRegex": "^/sites/(?[^/]+?)/(?.+?)(?:/)?$" + "namedRegex": "^/deployments/(?[^/]+?)/(?.+?)(?:/)?$" } ], "staticRoutes": [ @@ -348,6 +380,12 @@ "routeKeys": {}, "namedRegex": "^/admin/dashboard(?:/)?$" }, + { + "page": "/admin/deployments", + "regex": "^/admin/deployments(?:/)?$", + "routeKeys": {}, + "namedRegex": "^/admin/deployments(?:/)?$" + }, { "page": "/admin/docs", "regex": "^/admin/docs(?:/)?$", @@ -384,12 +422,6 @@ "routeKeys": {}, "namedRegex": "^/admin/settings/model(?:/)?$" }, - { - "page": "/admin/sites", - "regex": "^/admin/sites(?:/)?$", - "routeKeys": {}, - "namedRegex": "^/admin/sites(?:/)?$" - }, { "page": "/admin/skills", "regex": "^/admin/skills(?:/)?$", diff --git a/.next/server/app-paths-manifest.json b/.next/server/app-paths-manifest.json index 95f82d104f86eca0d74af71fef4c4b3d6f61c3b7..3c5aa995b0ade3828e6c1c3303b06a4f1cfb39ca 100644 --- a/.next/server/app-paths-manifest.json +++ b/.next/server/app-paths-manifest.json @@ -1,75 +1,79 @@ { - "/api/admin/dashboard/route": "app/api/admin/dashboard/route.js", "/_not-found/page": "app/_not-found/page.js", + "/api/admin/deployments/[id]/database/logs/route": "app/api/admin/deployments/[id]/database/logs/route.js", + "/api/admin/deployments/[id]/functions/[functionId]/logs/route": "app/api/admin/deployments/[id]/functions/[functionId]/logs/route.js", + "/api/admin/deployments/[id]/database/schema/route": "app/api/admin/deployments/[id]/database/schema/route.js", + "/api/admin/deployments/[id]/database/query/route": "app/api/admin/deployments/[id]/database/query/route.js", + "/api/admin/deployments/[id]/functions/[functionId]/route": "app/api/admin/deployments/[id]/functions/[functionId]/route.js", + "/api/admin/deployments/[id]/scheduled-functions/[scheduledFunctionId]/route": "app/api/admin/deployments/[id]/scheduled-functions/[scheduledFunctionId]/route.js", + "/api/admin/deployments/[id]/functions/route": "app/api/admin/deployments/[id]/functions/route.js", + "/api/admin/deployments/[id]/scheduled-functions/route": "app/api/admin/deployments/[id]/scheduled-functions/route.js", + "/api/admin/deployments/[id]/provision/route": "app/api/admin/deployments/[id]/provision/route.js", + "/api/admin/deployments/[id]/secrets/route": "app/api/admin/deployments/[id]/secrets/route.js", + "/api/admin/deployments/[id]/secrets/[secretId]/route": "app/api/admin/deployments/[id]/secrets/[secretId]/route.js", + "/api/admin/deployments/[id]/server-functions/[functionId]/route": "app/api/admin/deployments/[id]/server-functions/[functionId]/route.js", + "/api/admin/deployments/[id]/server-context/mutate/route": "app/api/admin/deployments/[id]/server-context/mutate/route.js", + "/api/admin/deployments/[id]/server-functions/route": "app/api/admin/deployments/[id]/server-functions/route.js", "/api/admin/run-migrations/route": "app/api/admin/run-migrations/route.js", - "/api/admin/sites/[id]/functions/[functionId]/logs/route": "app/api/admin/sites/[id]/functions/[functionId]/logs/route.js", - "/api/admin/sites/[id]/functions/[functionId]/route": "app/api/admin/sites/[id]/functions/[functionId]/route.js", - "/api/admin/sites/[id]/database/logs/route": "app/api/admin/sites/[id]/database/logs/route.js", - "/api/admin/sites/[id]/provision/route": "app/api/admin/sites/[id]/provision/route.js", - "/api/admin/sites/[id]/database/query/route": "app/api/admin/sites/[id]/database/query/route.js", - "/api/admin/sites/[id]/database/schema/route": "app/api/admin/sites/[id]/database/schema/route.js", - "/api/admin/sites/[id]/secrets/[secretId]/route": "app/api/admin/sites/[id]/secrets/[secretId]/route.js", - "/api/admin/sites/[id]/functions/route": "app/api/admin/sites/[id]/functions/route.js", - "/api/admin/sites/[id]/secrets/route": "app/api/admin/sites/[id]/secrets/route.js", - "/api/admin/sites/[id]/scheduled-functions/route": "app/api/admin/sites/[id]/scheduled-functions/route.js", - "/api/admin/sites/[id]/server-context/route": "app/api/admin/sites/[id]/server-context/route.js", - "/api/admin/sites/[id]/server-context/mutate/route": "app/api/admin/sites/[id]/server-context/mutate/route.js", - "/api/admin/sites/[id]/server-functions/[functionId]/route": "app/api/admin/sites/[id]/server-functions/[functionId]/route.js", - "/api/admin/sites/[id]/server-functions/route": "app/api/admin/sites/[id]/server-functions/route.js", - "/api/analytics/[siteId]/engagement/route": "app/api/analytics/[siteId]/engagement/route.js", - "/api/analytics/[siteId]/clear/route": "app/api/analytics/[siteId]/clear/route.js", - "/api/analytics/[siteId]/export/route": "app/api/analytics/[siteId]/export/route.js", - "/api/analytics/[siteId]/heatmap/route": "app/api/analytics/[siteId]/heatmap/route.js", - "/api/analytics/[siteId]/sessions/route": "app/api/analytics/[siteId]/sessions/route.js", - "/api/analytics/[siteId]/overview/route": "app/api/analytics/[siteId]/overview/route.js", - "/api/analytics/[siteId]/storage/route": "app/api/analytics/[siteId]/storage/route.js", + "/api/analytics/[deploymentId]/clear/route": "app/api/analytics/[deploymentId]/clear/route.js", + "/api/analytics/[deploymentId]/engagement/route": "app/api/analytics/[deploymentId]/engagement/route.js", + "/api/analytics/[deploymentId]/export/route": "app/api/analytics/[deploymentId]/export/route.js", + "/api/analytics/[deploymentId]/overview/route": "app/api/analytics/[deploymentId]/overview/route.js", + "/api/analytics/[deploymentId]/route": "app/api/analytics/[deploymentId]/route.js", + "/api/analytics/[deploymentId]/heatmap/route": "app/api/analytics/[deploymentId]/heatmap/route.js", + "/api/analytics/[deploymentId]/sessions/route": "app/api/analytics/[deploymentId]/sessions/route.js", + "/api/analytics/[deploymentId]/storage/route": "app/api/analytics/[deploymentId]/storage/route.js", "/api/analytics/interaction/route": "app/api/analytics/interaction/route.js", "/api/analytics/track/route": "app/api/analytics/track/route.js", "/api/auth/check/route": "app/api/auth/check/route.js", "/api/auth/codex/disconnect/route": "app/api/auth/codex/disconnect/route.js", "/api/auth/codex/status/route": "app/api/auth/codex/status/route.js", - "/api/auth/hf/capabilities/route": "app/api/auth/hf/capabilities/route.js", + "/api/auth/codex/connect/route": "app/api/auth/codex/connect/route.js", "/api/auth/codex/token/route": "app/api/auth/codex/token/route.js", "/api/auth/login/route": "app/api/auth/login/route.js", + "/api/auth/hf/capabilities/route": "app/api/auth/hf/capabilities/route.js", "/api/auth/logout/route": "app/api/auth/logout/route.js", - "/api/auth/codex/connect/route": "app/api/auth/codex/connect/route.js", - "/api/docs/[...path]/route": "app/api/docs/[...path]/route.js", "/api/auth/me/route": "app/api/auth/me/route.js", - "/api/models/route": "app/api/models/route.js", + "/api/deployments/[id]/route": "app/api/deployments/[id]/route.js", + "/api/deployments/[id]/settings/route": "app/api/deployments/[id]/settings/route.js", + "/api/deployments/[id]/publish/route": "app/api/deployments/[id]/publish/route.js", + "/api/deployments/[id]/thumbnail/route": "app/api/deployments/[id]/thumbnail/route.js", + "/api/docs/[...path]/route": "app/api/docs/[...path]/route.js", + "/api/deployments/route": "app/api/deployments/route.js", + "/api/deployments/[id]/swap-project/route": "app/api/deployments/[id]/swap-project/route.js", "/api/generate/route": "app/api/generate/route.js", - "/api/projects/[id]/sites/route": "app/api/projects/[id]/sites/route.js", + "/api/projects/[id]/database/schema/route": "app/api/projects/[id]/database/schema/route.js", + "/api/models/route": "app/api/models/route.js", + "/api/projects/[id]/database/query/route": "app/api/projects/[id]/database/query/route.js", "/api/projects/route": "app/api/projects/route.js", "/api/shell/execute/route": "app/api/shell/execute/route.js", - "/api/sites/[id]/publish/route": "app/api/sites/[id]/publish/route.js", - "/api/sites/[id]/route": "app/api/sites/[id]/route.js", - "/api/sites/[id]/settings/route": "app/api/sites/[id]/settings/route.js", - "/api/sites/route": "app/api/sites/route.js", - "/api/sites/[id]/thumbnail/route": "app/api/sites/[id]/thumbnail/route.js", - "/api/sync/projects/[id]/route": "app/api/sync/projects/[id]/route.js", + "/api/projects/[id]/deployments/route": "app/api/projects/[id]/deployments/route.js", "/api/sync/files/route": "app/api/sync/files/route.js", - "/api/sync/skills/[id]/route": "app/api/sync/skills/[id]/route.js", "/api/sync/projects/route": "app/api/sync/projects/route.js", + "/api/sync/projects/[id]/route": "app/api/sync/projects/[id]/route.js", + "/api/sync/backend-features/[projectId]/route": "app/api/sync/backend-features/[projectId]/route.js", + "/api/sync/skills/[id]/route": "app/api/sync/skills/[id]/route.js", "/api/sync/status/route": "app/api/sync/status/route.js", - "/api/sync/skills/route": "app/api/sync/skills/route.js", "/api/sync/templates/[id]/route": "app/api/sync/templates/[id]/route.js", - "/api/sync/templates/route": "app/api/sync/templates/route.js", "/api/validate-key/route": "app/api/validate-key/route.js", - "/sites/[id]/route": "app/sites/[id]/route.js", - "/sites/[id]/[...path]/route": "app/sites/[id]/[...path]/route.js", - "/api/admin/sites/[id]/scheduled-functions/[scheduledFunctionId]/route": "app/api/admin/sites/[id]/scheduled-functions/[scheduledFunctionId]/route.js", - "/api/analytics/[siteId]/route": "app/api/analytics/[siteId]/route.js", + "/api/sync/templates/route": "app/api/sync/templates/route.js", + "/api/sync/skills/route": "app/api/sync/skills/route.js", + "/deployments/[id]/[...path]/route": "app/deployments/[id]/[...path]/route.js", + "/deployments/[id]/route": "app/deployments/[id]/route.js", + "/api/admin/deployments/[id]/server-context/route": "app/api/admin/deployments/[id]/server-context/route.js", + "/api/deployments/[id]/functions/[...path]/route": "app/api/deployments/[id]/functions/[...path]/route.js", + "/api/admin/dashboard/route": "app/api/admin/dashboard/route.js", + "/admin/dashboard/page": "app/admin/dashboard/page.js", "/admin/docs/page": "app/admin/docs/page.js", + "/admin/login/page": "app/admin/login/page.js", "/admin/projects/page": "app/admin/projects/page.js", + "/admin/deployments/page": "app/admin/deployments/page.js", "/admin/settings/application/page": "app/admin/settings/application/page.js", "/admin/page": "app/admin/page.js", "/admin/settings/model/page": "app/admin/settings/model/page.js", - "/admin/settings/page": "app/admin/settings/page.js", "/admin/skills/page": "app/admin/skills/page.js", + "/admin/settings/page": "app/admin/settings/page.js", "/admin/templates/page": "app/admin/templates/page.js", - "/admin/sites/page": "app/admin/sites/page.js", - "/admin/dashboard/page": "app/admin/dashboard/page.js", - "/admin/login/page": "app/admin/login/page.js", "/page": "app/page.js", - "/test-generation/page": "app/test-generation/page.js", - "/api/sites/[id]/functions/[...path]/route": "app/api/sites/[id]/functions/[...path]/route.js" + "/test-generation/page": "app/test-generation/page.js" } \ No newline at end of file diff --git a/.next/server/app/_not-found.html b/.next/server/app/_not-found.html index e8c24b5a17bd5ac6a8fad5c4ac75f18be138256c..636f6888be954a906a72beee6ba70217d03c484d 100644 --- a/.next/server/app/_not-found.html +++ b/.next/server/app/_not-found.html @@ -1 +1 @@ -404: This page could not be found.Open Source Web Studio | Agentic AI Development 🎨

404

This page could not be found.

\ No newline at end of file +404: This page could not be found.Open Source Web Studio | Agentic AI Development 🎨

404

This page could not be found.

\ No newline at end of file diff --git a/.next/server/app/_not-found.rsc b/.next/server/app/_not-found.rsc index 4d1f52f37b93c70d645b88605658fd86ae853506..4b253bb30b8f647a44f2d6046891732ca14f8582 100644 --- a/.next/server/app/_not-found.rsc +++ b/.next/server/app/_not-found.rsc @@ -13,8 +13,8 @@ e:"$Sreact.suspense" :HL["/_next/static/media/58f662ed5ba12a72-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}] :HL["/_next/static/media/c3f6eb667c0186c5-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}] :HL["/_next/static/media/e4af272ccee01ff0-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}] -:HL["/_next/static/css/634e649c3cc2540f.css","style"] -0:{"P":null,"b":"Dj_mU3ym-gcopP6URA30w","p":"","c":["","_not-found"],"i":false,"f":[[["",{"children":["/_not-found",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/634e649c3cc2540f.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"__variable_f367f3 __variable_438d47 antialiased bg-background h-[100dvh] overflow-hidden","suppressHydrationWarning":true,"children":["$","$L2",null,{"children":[["$","$L3",null,{"richColors":true,"position":"bottom-center"}],["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]}]]}]}]}]]}],{"children":["/_not-found",["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],null,["$","$L7",null,{"children":["$L8",["$","$L9",null,{"promise":"$@a"}]]}]]}],{},null,false]},null,false]},null,false],["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],[["$","$Lb",null,{"children":"$Lc"}],["$","meta",null,{"name":"next-size-adjust","content":""}]],["$","$Ld",null,{"children":["$","div",null,{"hidden":true,"children":["$","$e",null,{"fallback":null,"children":"$Lf"}]}]}]]}],false]],"m":"$undefined","G":["$10",[]],"s":false,"S":true} +:HL["/_next/static/css/7a4f097ac51b20a7.css","style"] +0:{"P":null,"b":"6U79IAVVts3v8bcNT6dWz","p":"","c":["","_not-found"],"i":false,"f":[[["",{"children":["/_not-found",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/7a4f097ac51b20a7.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"__variable_f367f3 __variable_438d47 antialiased bg-background h-[100dvh] overflow-hidden","suppressHydrationWarning":true,"children":["$","$L2",null,{"children":[["$","$L3",null,{"richColors":true,"position":"bottom-center"}],["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]}]]}]}]}]]}],{"children":["/_not-found",["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],null,["$","$L7",null,{"children":["$L8",["$","$L9",null,{"promise":"$@a"}]]}]]}],{},null,false]},null,false]},null,false],["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],[["$","$Lb",null,{"children":"$Lc"}],["$","meta",null,{"name":"next-size-adjust","content":""}]],["$","$Ld",null,{"children":["$","div",null,{"hidden":true,"children":["$","$e",null,{"fallback":null,"children":"$Lf"}]}]}]]}],false]],"m":"$undefined","G":["$10",[]],"s":false,"S":true} c:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1, maximum-scale=1"}],["$","meta","2",{"name":"theme-color","content":"#000000"}]] 8:null 11:I[80622,[],"IconMark"] diff --git a/.next/server/app/_not-found/page_client-reference-manifest.js b/.next/server/app/_not-found/page_client-reference-manifest.js index 5f5135fd39caad21adb8dbe9c8a36a92a1c2e13b..cb38830846979b19691089147e119b0ba98b3f37 100644 --- a/.next/server/app/_not-found/page_client-reference-manifest.js +++ b/.next/server/app/_not-found/page_client-reference-manifest.js @@ -1 +1 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/_not-found/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/_not-found/page":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/_not-found/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/_not-found/page":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/admin.html b/.next/server/app/admin.html index 7c9f6a8fd6202ba32f5b9550eb35a0f5b5d3f85d..51ac660ceab729a23a054d6f1e31bd6f0b0e2f67 100644 --- a/.next/server/app/admin.html +++ b/.next/server/app/admin.html @@ -1 +1 @@ -Open Source Web Studio | Agentic AI Development 🎨

Redirecting...

\ No newline at end of file +Open Source Web Studio | Agentic AI Development 🎨

Redirecting...

\ No newline at end of file diff --git a/.next/server/app/admin.rsc b/.next/server/app/admin.rsc index 959d44a9b0561465522bc34567b87ceb8ea2b28a..b9718bd99866dd79d254c684c06a1b49a12facd8 100644 --- a/.next/server/app/admin.rsc +++ b/.next/server/app/admin.rsc @@ -15,8 +15,8 @@ f:I[24431,[],"ViewportBoundary"] :HL["/_next/static/media/58f662ed5ba12a72-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}] :HL["/_next/static/media/c3f6eb667c0186c5-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}] :HL["/_next/static/media/e4af272ccee01ff0-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}] -:HL["/_next/static/css/634e649c3cc2540f.css","style"] -0:{"P":null,"b":"Dj_mU3ym-gcopP6URA30w","p":"","c":["","admin"],"i":false,"f":[[["",{"children":["admin",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/634e649c3cc2540f.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"__variable_f367f3 __variable_438d47 antialiased bg-background h-[100dvh] overflow-hidden","suppressHydrationWarning":true,"children":["$","$L2",null,{"children":[["$","$L3",null,{"richColors":true,"position":"bottom-center"}],["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]]}]}]}]]}],{"children":["admin",["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L7",null,{"Component":"$8","searchParams":{},"params":{},"promises":["$@9","$@a"]}],null,["$","$Lb",null,{"children":["$Lc",["$","$Ld",null,{"promise":"$@e"}]]}]]}],{},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$Lf",null,{"children":"$L10"}],["$","meta",null,{"name":"next-size-adjust","content":""}]],["$","$L11",null,{"children":["$","div",null,{"hidden":true,"children":["$","$12",null,{"fallback":null,"children":"$L13"}]}]}]]}],false]],"m":"$undefined","G":["$14",[]],"s":false,"S":true} +:HL["/_next/static/css/7a4f097ac51b20a7.css","style"] +0:{"P":null,"b":"6U79IAVVts3v8bcNT6dWz","p":"","c":["","admin"],"i":false,"f":[[["",{"children":["admin",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/7a4f097ac51b20a7.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"__variable_f367f3 __variable_438d47 antialiased bg-background h-[100dvh] overflow-hidden","suppressHydrationWarning":true,"children":["$","$L2",null,{"children":[["$","$L3",null,{"richColors":true,"position":"bottom-center"}],["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]]}]}]}]]}],{"children":["admin",["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L7",null,{"Component":"$8","searchParams":{},"params":{},"promises":["$@9","$@a"]}],null,["$","$Lb",null,{"children":["$Lc",["$","$Ld",null,{"promise":"$@e"}]]}]]}],{},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$Lf",null,{"children":"$L10"}],["$","meta",null,{"name":"next-size-adjust","content":""}]],["$","$L11",null,{"children":["$","div",null,{"hidden":true,"children":["$","$12",null,{"fallback":null,"children":"$L13"}]}]}]]}],false]],"m":"$undefined","G":["$14",[]],"s":false,"S":true} 9:{} a:"$0:f:0:1:2:children:2:children:1:props:children:0:props:params" 10:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1, maximum-scale=1"}],["$","meta","2",{"name":"theme-color","content":"#000000"}]] diff --git a/.next/server/app/admin/dashboard.html b/.next/server/app/admin/dashboard.html index 0463fafcb40d7cb080141e691aa58638be6ddb71..07e3602308d66d11f2399a217d9d48bc5b256f15 100644 --- a/.next/server/app/admin/dashboard.html +++ b/.next/server/app/admin/dashboard.html @@ -1,4 +1,4 @@ -Open Source Web Studio | Agentic AI Development 🎨
+Open Source Web Studio | Agentic AI Development 🎨
-
Dashboard

Loading dashboard...

\ No newline at end of file +
Dashboard

Loading dashboard...

\ No newline at end of file diff --git a/.next/server/app/admin/dashboard.rsc b/.next/server/app/admin/dashboard.rsc index 0da13190d14067e0ec779fe8c9b1d12d2ebac8a2..2df6b7ffd710fbc7bcabe714d914c8c3a0914588 100644 --- a/.next/server/app/admin/dashboard.rsc +++ b/.next/server/app/admin/dashboard.rsc @@ -4,7 +4,7 @@ 4:I[46131,["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"default"] 5:I[9766,[],""] 6:I[98924,[],""] -7:I[43688,["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","5957","static/chunks/app/admin/dashboard/page-cd3396dba1a5acbf.js"],"PageWrapper"] +7:I[43688,["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","5957","static/chunks/app/admin/dashboard/page-93d978d4bcb74918.js"],"PageWrapper"] 8:I[24431,[],"OutletBoundary"] a:I[15278,[],"AsyncMetadataOutlet"] c:I[24431,[],"ViewportBoundary"] @@ -14,8 +14,8 @@ f:"$Sreact.suspense" :HL["/_next/static/media/58f662ed5ba12a72-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}] :HL["/_next/static/media/c3f6eb667c0186c5-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}] :HL["/_next/static/media/e4af272ccee01ff0-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}] -:HL["/_next/static/css/634e649c3cc2540f.css","style"] -0:{"P":null,"b":"Dj_mU3ym-gcopP6URA30w","p":"","c":["","admin","dashboard"],"i":false,"f":[[["",{"children":["admin",{"children":["dashboard",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/634e649c3cc2540f.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"__variable_f367f3 __variable_438d47 antialiased bg-background h-[100dvh] overflow-hidden","suppressHydrationWarning":true,"children":["$","$L2",null,{"children":[["$","$L3",null,{"richColors":true,"position":"bottom-center"}],["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]]}]}]}]]}],{"children":["admin",["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["dashboard",["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L7",null,{"view":"dashboard"}],null,["$","$L8",null,{"children":["$L9",["$","$La",null,{"promise":"$@b"}]]}]]}],{},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$Lc",null,{"children":"$Ld"}],["$","meta",null,{"name":"next-size-adjust","content":""}]],["$","$Le",null,{"children":["$","div",null,{"hidden":true,"children":["$","$f",null,{"fallback":null,"children":"$L10"}]}]}]]}],false]],"m":"$undefined","G":["$11",[]],"s":false,"S":true} +:HL["/_next/static/css/7a4f097ac51b20a7.css","style"] +0:{"P":null,"b":"6U79IAVVts3v8bcNT6dWz","p":"","c":["","admin","dashboard"],"i":false,"f":[[["",{"children":["admin",{"children":["dashboard",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/7a4f097ac51b20a7.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"__variable_f367f3 __variable_438d47 antialiased bg-background h-[100dvh] overflow-hidden","suppressHydrationWarning":true,"children":["$","$L2",null,{"children":[["$","$L3",null,{"richColors":true,"position":"bottom-center"}],["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]]}]}]}]]}],{"children":["admin",["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["dashboard",["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L7",null,{"view":"dashboard"}],null,["$","$L8",null,{"children":["$L9",["$","$La",null,{"promise":"$@b"}]]}]]}],{},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$Lc",null,{"children":"$Ld"}],["$","meta",null,{"name":"next-size-adjust","content":""}]],["$","$Le",null,{"children":["$","div",null,{"hidden":true,"children":["$","$f",null,{"fallback":null,"children":"$L10"}]}]}]]}],false]],"m":"$undefined","G":["$11",[]],"s":false,"S":true} d:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1, maximum-scale=1"}],["$","meta","2",{"name":"theme-color","content":"#000000"}]] 9:null 12:I[80622,[],"IconMark"] diff --git a/.next/server/app/admin/dashboard/page.js b/.next/server/app/admin/dashboard/page.js index cccad5a6ccab1b1b48003d4611486214ae4eb2ce..a645dbb601291114fa7d36ac904e52343dfbc109 100644 --- a/.next/server/app/admin/dashboard/page.js +++ b/.next/server/app/admin/dashboard/page.js @@ -1,2 +1,2 @@ -(()=>{var a={};a.id=5957,a.ids=[5957],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1708:a=>{"use strict";a.exports=require("node:process")},2054:(a,b,c)=>{"use strict";c.d(b,{PageWrapper:()=>d});let d=(0,c(97954).registerClientReference)(function(){throw Error("Attempted to call PageWrapper() from the server but PageWrapper is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx","PageWrapper")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},5549:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>f});var d=c(75338),e=c(2054);function f(){return(0,d.jsx)(e.PageWrapper,{view:"dashboard"})}},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},26713:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/is-bot")},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31152:(a,b,c)=>{"use strict";c.d(b,{PageWrapper:()=>o});var d=c(21124),e=c(38301),f=c(42378),g=c(11610),h=c(69188),i=c(83374),j=c(95919),k=c(14258),l=c(45914);let m={dashboard:"/admin",projects:"/admin/projects",templates:"/admin/templates",skills:"/admin/skills",sites:"/admin/sites",docs:"/admin/docs",settings:"/admin/settings"};function n({view:a,settingsTab:b}){let c=(0,f.useRouter)(),[j,n]=(0,e.useState)(null),[o,p]=(0,e.useState)(!1),q=(0,e.useCallback)(a=>{let b=m[a]||`/admin/${a}`;c.push(b)},[c]),r=j?(0,d.jsx)(i.a,{project:j,onBack:()=>n(null)}):(0,d.jsx)(h.f,{view:a,onProjectSelect:n,settingsTab:b,onNavigate:q});return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(g.M,{currentView:a,onNavigate:q,onProjectSelect:n,onOpenAbout:()=>p(!0),showSidebar:!j,children:r}),(0,d.jsx)(k.V,{location:"global"}),(0,d.jsx)(l.V,{open:o,onOpenChange:p})]})}function o({view:a,settingsTab:b}){return(0,d.jsx)(j.g,{children:(0,d.jsx)(n,{view:a,settingsTab:b})})}},33873:a=>{"use strict";a.exports=require("path")},36167:(a,b,c)=>{Promise.resolve().then(c.bind(c,2054))},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},55511:a=>{"use strict";a.exports=require("crypto")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},66431:(a,b,c)=>{Promise.resolve().then(c.bind(c,31152))},71912:(a,b,c)=>{"use strict";c.r(b),c.d(b,{GlobalError:()=>D.a,__next_app__:()=>J,handler:()=>L,pages:()=>I,routeModule:()=>K,tree:()=>H});var d=c(49754),e=c(9117),f=c(46595),g=c(32324),h=c(39326),i=c(38928),j=c(20175),k=c(12),l=c(54290),m=c(12696),n=c(82802),o=c(77533),p=c(45229),q=c(32822),r=c(261),s=c(26453),t=c(52474),u=c(26713),v=c(51356),w=c(62685),x=c(36225),y=c(63446),z=c(2762),A=c(45742),B=c(86439),C=c(81170),D=c.n(C),E=c(62506),F=c(91203),G={};for(let a in E)0>["default","tree","pages","GlobalError","__next_app__","routeModule","handler"].indexOf(a)&&(G[a]=()=>E[a]);c.d(b,G);let H={children:["",{children:["admin",{children:["dashboard",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(c.bind(c,5549)),"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/dashboard/page.tsx"]}]},{}]},{}]},{layout:[()=>Promise.resolve().then(c.bind(c,16953)),"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout.tsx"],"global-error":[()=>Promise.resolve().then(c.t.bind(c,81170,23)),"next/dist/client/components/builtin/global-error.js"],"not-found":[()=>Promise.resolve().then(c.t.bind(c,87028,23)),"next/dist/client/components/builtin/not-found.js"],forbidden:[()=>Promise.resolve().then(c.t.bind(c,90461,23)),"next/dist/client/components/builtin/forbidden.js"],unauthorized:[()=>Promise.resolve().then(c.t.bind(c,32768,23)),"next/dist/client/components/builtin/unauthorized.js"]}]}.children,I=["/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/dashboard/page.tsx"],J={require:c,loadChunk:()=>Promise.resolve()},K=new d.AppPageRouteModule({definition:{kind:e.RouteKind.APP_PAGE,page:"/admin/dashboard/page",pathname:"/admin/dashboard",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:H},distDir:".next",relativeProjectDir:""});async function L(a,b,d){var C;let G="/admin/dashboard/page";"/index"===G&&(G="/");let M=(0,h.getRequestMeta)(a,"postponed"),N=(0,h.getRequestMeta)(a,"minimalMode"),O=await K.prepare(a,b,{srcPage:G,multiZoneDraftMode:!1});if(!O)return b.statusCode=400,b.end("Bad Request"),null==d.waitUntil||d.waitUntil.call(d,Promise.resolve()),null;let{buildId:P,query:Q,params:R,parsedUrl:S,pageIsDynamic:T,buildManifest:U,nextFontManifest:V,reactLoadableManifest:W,serverActionsManifest:X,clientReferenceManifest:Y,subresourceIntegrityManifest:Z,prerenderManifest:$,isDraftMode:_,resolvedPathname:aa,revalidateOnlyGenerated:ab,routerServerContext:ac,nextConfig:ad,interceptionRoutePatterns:ae}=O,af=S.pathname||"/",ag=(0,r.normalizeAppPath)(G),{isOnDemandRevalidate:ah}=O,ai=K.match(af,$),aj=!!$.routes[aa],ak=!!(ai||aj||$.routes[ag]),al=a.headers["user-agent"]||"",am=(0,u.getBotType)(al),an=(0,p.isHtmlBotRequest)(a),ao=(0,h.getRequestMeta)(a,"isPrefetchRSCRequest")??"1"===a.headers[t.NEXT_ROUTER_PREFETCH_HEADER],ap=(0,h.getRequestMeta)(a,"isRSCRequest")??!!a.headers[t.RSC_HEADER],aq=(0,s.getIsPossibleServerAction)(a),ar=(0,m.checkIsAppPPREnabled)(ad.experimental.ppr)&&(null==(C=$.routes[ag]??$.dynamicRoutes[ag])?void 0:C.renderingMode)==="PARTIALLY_STATIC",as=!1,at=!1,au=ar?M:void 0,av=ar&&ap&&!ao,aw=(0,h.getRequestMeta)(a,"segmentPrefetchRSCRequest"),ax=!al||(0,p.shouldServeStreamingMetadata)(al,ad.htmlLimitedBots);an&&ar&&(ak=!1,ax=!1);let ay=!0===K.isDev||!ak||"string"==typeof M||av,az=an&&ar,aA=null;_||!ak||ay||aq||au||av||(aA=aa);let aB=aA;!aB&&K.isDev&&(aB=aa),K.isDev||_||!ak||!ap||av||(0,k.d)(a.headers);let aC={...E,tree:H,pages:I,GlobalError:D(),handler:L,routeModule:K,__next_app__:J};X&&Y&&(0,o.setReferenceManifestsSingleton)({page:G,clientReferenceManifest:Y,serverActionsManifest:X,serverModuleMap:(0,q.createServerModuleMap)({serverActionsManifest:X})});let aD=a.method||"GET",aE=(0,g.getTracer)(),aF=aE.getActiveScopeSpan();try{let f=K.getVaryHeader(aa,ae);b.setHeader("Vary",f);let k=async(c,d)=>{let e=new l.NodeNextRequest(a),f=new l.NodeNextResponse(b);return K.render(e,f,d).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=aE.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==i.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${aD} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${aD} ${a.url}`)})},m=async({span:e,postponed:f,fallbackRouteParams:g})=>{let i={query:Q,params:R,page:ag,sharedContext:{buildId:P},serverComponentsHmrCache:(0,h.getRequestMeta)(a,"serverComponentsHmrCache"),fallbackRouteParams:g,renderOpts:{App:()=>null,Document:()=>null,pageConfig:{},ComponentMod:aC,Component:(0,j.T)(aC),params:R,routeModule:K,page:G,postponed:f,shouldWaitOnAllReady:az,serveStreamingMetadata:ax,supportsDynamicResponse:"string"==typeof f||ay,buildManifest:U,nextFontManifest:V,reactLoadableManifest:W,subresourceIntegrityManifest:Z,serverActionsManifest:X,clientReferenceManifest:Y,setIsrStatus:null==ac?void 0:ac.setIsrStatus,dir:c(33873).join(process.cwd(),K.relativeProjectDir),isDraftMode:_,isRevalidate:ak&&!f&&!av,botType:am,isOnDemandRevalidate:ah,isPossibleServerAction:aq,assetPrefix:ad.assetPrefix,nextConfigOutput:ad.output,crossOrigin:ad.crossOrigin,trailingSlash:ad.trailingSlash,previewProps:$.preview,deploymentId:ad.deploymentId,enableTainting:ad.experimental.taint,htmlLimitedBots:ad.htmlLimitedBots,devtoolSegmentExplorer:ad.experimental.devtoolSegmentExplorer,reactMaxHeadersLength:ad.reactMaxHeadersLength,multiZoneDraftMode:!1,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:ad.experimental.cacheLife,basePath:ad.basePath,serverActions:ad.experimental.serverActions,...as?{nextExport:!0,supportsDynamicResponse:!1,isStaticGeneration:!0,isRevalidate:!0,isDebugDynamicAccesses:as}:{},experimental:{isRoutePPREnabled:ar,expireTime:ad.expireTime,staleTimes:ad.experimental.staleTimes,cacheComponents:!!ad.experimental.cacheComponents,clientSegmentCache:!!ad.experimental.clientSegmentCache,clientParamParsing:!!ad.experimental.clientParamParsing,dynamicOnHover:!!ad.experimental.dynamicOnHover,inlineCss:!!ad.experimental.inlineCss,authInterrupts:!!ad.experimental.authInterrupts,clientTraceMetadata:ad.experimental.clientTraceMetadata||[]},waitUntil:d.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:()=>{},onInstrumentationRequestError:(b,c,d)=>K.onRequestError(a,b,d,ac),err:(0,h.getRequestMeta)(a,"invokeError"),dev:K.isDev}},l=await k(e,i),{metadata:m}=l,{cacheControl:n,headers:o={},fetchTags:p}=m;if(p&&(o[y.NEXT_CACHE_TAGS_HEADER]=p),a.fetchMetrics=m.fetchMetrics,ak&&(null==n?void 0:n.revalidate)===0&&!K.isDev&&!ar){let a=m.staticBailoutInfo,b=Object.defineProperty(Error(`Page changed from static to dynamic at runtime ${aa}${(null==a?void 0:a.description)?`, reason: ${a.description}`:""} -see more here https://nextjs.org/docs/messages/app-static-to-dynamic-error`),"__NEXT_ERROR_CODE",{value:"E132",enumerable:!1,configurable:!0});if(null==a?void 0:a.stack){let c=a.stack;b.stack=b.message+c.substring(c.indexOf("\n"))}throw b}return{value:{kind:v.CachedRouteKind.APP_PAGE,html:l,headers:o,rscData:m.flightData,postponed:m.postponed,status:m.statusCode,segmentData:m.segmentData},cacheControl:n}},o=async({hasResolved:c,previousCacheEntry:f,isRevalidating:g,span:i})=>{let j,k=!1===K.isDev,l=c||b.writableEnded;if(ah&&ab&&!f&&!N)return(null==ac?void 0:ac.render404)?await ac.render404(a,b):(b.statusCode=404,b.end("This page could not be found")),null;if(ai&&(j=(0,w.parseFallbackField)(ai.fallback)),j===w.FallbackMode.PRERENDER&&(0,u.isBot)(al)&&(!ar||an)&&(j=w.FallbackMode.BLOCKING_STATIC_RENDER),(null==f?void 0:f.isStale)===-1&&(ah=!0),ah&&(j!==w.FallbackMode.NOT_FOUND||f)&&(j=w.FallbackMode.BLOCKING_STATIC_RENDER),!N&&j!==w.FallbackMode.BLOCKING_STATIC_RENDER&&aB&&!l&&!_&&T&&(k||!aj)){let b;if((k||ai)&&j===w.FallbackMode.NOT_FOUND)throw new B.NoFallbackError;if(ar&&!ap){let c="string"==typeof(null==ai?void 0:ai.fallback)?ai.fallback:k?ag:null;if(b=await K.handleResponse({cacheKey:c,req:a,nextConfig:ad,routeKind:e.RouteKind.APP_PAGE,isFallback:!0,prerenderManifest:$,isRoutePPREnabled:ar,responseGenerator:async()=>m({span:i,postponed:void 0,fallbackRouteParams:k||at?(0,n.u)(ag):null}),waitUntil:d.waitUntil}),null===b)return null;if(b)return delete b.cacheControl,b}}let o=ah||g||!au?void 0:au;if(as&&void 0!==o)return{cacheControl:{revalidate:1,expire:void 0},value:{kind:v.CachedRouteKind.PAGES,html:x.default.EMPTY,pageData:{},headers:void 0,status:void 0}};let p=T&&ar&&((0,h.getRequestMeta)(a,"renderFallbackShell")||at)?(0,n.u)(af):null;return m({span:i,postponed:o,fallbackRouteParams:p})},p=async c=>{var f,g,i,j,k;let l,n=await K.handleResponse({cacheKey:aA,responseGenerator:a=>o({span:c,...a}),routeKind:e.RouteKind.APP_PAGE,isOnDemandRevalidate:ah,isRoutePPREnabled:ar,req:a,nextConfig:ad,prerenderManifest:$,waitUntil:d.waitUntil});if(_&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate"),K.isDev&&b.setHeader("Cache-Control","no-store, must-revalidate"),!n){if(aA)throw Object.defineProperty(Error("invariant: cache entry required but not generated"),"__NEXT_ERROR_CODE",{value:"E62",enumerable:!1,configurable:!0});return null}if((null==(f=n.value)?void 0:f.kind)!==v.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant app-page handler received invalid cache entry ${null==(i=n.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E707",enumerable:!1,configurable:!0});let p="string"==typeof n.value.postponed;ak&&!av&&(!p||ao)&&(N||b.setHeader("x-nextjs-cache",ah?"REVALIDATED":n.isMiss?"MISS":n.isStale?"STALE":"HIT"),b.setHeader(t.NEXT_IS_PRERENDER_HEADER,"1"));let{value:q}=n;if(au)l={revalidate:0,expire:void 0};else if(N&&ap&&!ao&&ar)l={revalidate:0,expire:void 0};else if(!K.isDev)if(_)l={revalidate:0,expire:void 0};else if(ak){if(n.cacheControl)if("number"==typeof n.cacheControl.revalidate){if(n.cacheControl.revalidate<1)throw Object.defineProperty(Error(`Invalid revalidate configuration provided: ${n.cacheControl.revalidate} < 1`),"__NEXT_ERROR_CODE",{value:"E22",enumerable:!1,configurable:!0});l={revalidate:n.cacheControl.revalidate,expire:(null==(j=n.cacheControl)?void 0:j.expire)??ad.expireTime}}else l={revalidate:y.CACHE_ONE_YEAR,expire:void 0}}else b.getHeader("Cache-Control")||(l={revalidate:0,expire:void 0});if(n.cacheControl=l,"string"==typeof aw&&(null==q?void 0:q.kind)===v.CachedRouteKind.APP_PAGE&&q.segmentData){b.setHeader(t.NEXT_DID_POSTPONE_HEADER,"2");let c=null==(k=q.headers)?void 0:k[y.NEXT_CACHE_TAGS_HEADER];N&&ak&&c&&"string"==typeof c&&b.setHeader(y.NEXT_CACHE_TAGS_HEADER,c);let d=q.segmentData.get(aw);return void 0!==d?(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.fromStatic(d,t.RSC_CONTENT_TYPE_HEADER),cacheControl:n.cacheControl}):(b.statusCode=204,(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.EMPTY,cacheControl:n.cacheControl}))}let r=(0,h.getRequestMeta)(a,"onCacheEntry");if(r&&await r({...n,value:{...n.value,kind:"PAGE"}},{url:(0,h.getRequestMeta)(a,"initURL")}))return null;if(p&&au)throw Object.defineProperty(Error("Invariant: postponed state should not be present on a resume request"),"__NEXT_ERROR_CODE",{value:"E396",enumerable:!1,configurable:!0});if(q.headers){let a={...q.headers};for(let[c,d]of(N&&ak||delete a[y.NEXT_CACHE_TAGS_HEADER],Object.entries(a)))if(void 0!==d)if(Array.isArray(d))for(let a of d)b.appendHeader(c,a);else"number"==typeof d&&(d=d.toString()),b.appendHeader(c,d)}let s=null==(g=q.headers)?void 0:g[y.NEXT_CACHE_TAGS_HEADER];if(N&&ak&&s&&"string"==typeof s&&b.setHeader(y.NEXT_CACHE_TAGS_HEADER,s),!q.status||ap&&ar||(b.statusCode=q.status),!N&&q.status&&F.RedirectStatusCode[q.status]&&ap&&(b.statusCode=200),p&&b.setHeader(t.NEXT_DID_POSTPONE_HEADER,"1"),ap&&!_){if(void 0===q.rscData){if(q.postponed)throw Object.defineProperty(Error("Invariant: Expected postponed to be undefined"),"__NEXT_ERROR_CODE",{value:"E372",enumerable:!1,configurable:!0});return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:q.html,cacheControl:av?{revalidate:0,expire:void 0}:n.cacheControl})}return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.fromStatic(q.rscData,t.RSC_CONTENT_TYPE_HEADER),cacheControl:n.cacheControl})}let u=q.html;if(!p||N||ap)return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:n.cacheControl});if(as)return u.push(new ReadableStream({start(a){a.enqueue(z.ENCODED_TAGS.CLOSED.BODY_AND_HTML),a.close()}})),(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:{revalidate:0,expire:void 0}});let w=new TransformStream;return u.push(w.readable),m({span:c,postponed:q.postponed,fallbackRouteParams:null}).then(async a=>{var b,c;if(!a)throw Object.defineProperty(Error("Invariant: expected a result to be returned"),"__NEXT_ERROR_CODE",{value:"E463",enumerable:!1,configurable:!0});if((null==(b=a.value)?void 0:b.kind)!==v.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant: expected a page response, got ${null==(c=a.value)?void 0:c.kind}`),"__NEXT_ERROR_CODE",{value:"E305",enumerable:!1,configurable:!0});await a.value.html.pipeTo(w.writable)}).catch(a=>{w.writable.abort(a).catch(a=>{console.error("couldn't abort transformer",a)})}),(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:{revalidate:0,expire:void 0}})};if(!aF)return await aE.withPropagatedContext(a.headers,()=>aE.trace(i.BaseServerSpan.handleRequest,{spanName:`${aD} ${a.url}`,kind:g.SpanKind.SERVER,attributes:{"http.method":aD,"http.target":a.url}},p));await p(aF)}catch(b){throw b instanceof B.NoFallbackError||await K.onRequestError(a,b,{routerKind:"App Router",routePath:G,routeType:"render",revalidateReason:(0,f.c)({isRevalidate:ak,isOnDemandRevalidate:ah})},ac),b}}},73136:a=>{"use strict";a.exports=require("node:url")},76760:a=>{"use strict";a.exports=require("node:path")},77725:a=>{"use strict";a.exports=require("stream/promises")},79428:a=>{"use strict";a.exports=require("buffer")},79551:a=>{"use strict";a.exports=require("url")},79748:a=>{"use strict";a.exports=require("fs/promises")},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{"use strict";a.exports=require("better-sqlite3")},94735:a=>{"use strict";a.exports=require("events")}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,495,4606,570,7894,8476],()=>b(b.s=71912));module.exports=c})(); \ No newline at end of file +(()=>{var a={};a.id=5957,a.ids=[5957],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1708:a=>{"use strict";a.exports=require("node:process")},2054:(a,b,c)=>{"use strict";c.d(b,{PageWrapper:()=>d});let d=(0,c(97954).registerClientReference)(function(){throw Error("Attempted to call PageWrapper() from the server but PageWrapper is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx","PageWrapper")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},5549:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>f});var d=c(75338),e=c(2054);function f(){return(0,d.jsx)(e.PageWrapper,{view:"dashboard"})}},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},26713:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/is-bot")},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31152:(a,b,c)=>{"use strict";c.d(b,{PageWrapper:()=>o});var d=c(21124),e=c(38301),f=c(42378),g=c(11610),h=c(83330),i=c(44215),j=c(95919),k=c(14258),l=c(45914);let m={dashboard:"/admin",projects:"/admin/projects",templates:"/admin/templates",skills:"/admin/skills",deployments:"/admin/deployments",docs:"/admin/docs",settings:"/admin/settings"};function n({view:a,settingsTab:b}){let c=(0,f.useRouter)(),[j,n]=(0,e.useState)(null),[o,p]=(0,e.useState)(!1),q=(0,e.useCallback)(a=>{let b=m[a]||`/admin/${a}`;c.push(b)},[c]),r=j?(0,d.jsx)(i.a,{project:j,onBack:()=>n(null)}):(0,d.jsx)(h.f,{view:a,onProjectSelect:n,settingsTab:b,onNavigate:q});return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(g.M,{currentView:a,onNavigate:q,onProjectSelect:n,onOpenAbout:()=>p(!0),showSidebar:!j,children:r}),(0,d.jsx)(k.V,{location:"global"}),(0,d.jsx)(l.V,{open:o,onOpenChange:p})]})}function o({view:a,settingsTab:b}){return(0,d.jsx)(j.g,{children:(0,d.jsx)(n,{view:a,settingsTab:b})})}},33873:a=>{"use strict";a.exports=require("path")},36167:(a,b,c)=>{Promise.resolve().then(c.bind(c,2054))},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},55511:a=>{"use strict";a.exports=require("crypto")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},66431:(a,b,c)=>{Promise.resolve().then(c.bind(c,31152))},71912:(a,b,c)=>{"use strict";c.r(b),c.d(b,{GlobalError:()=>D.a,__next_app__:()=>J,handler:()=>L,pages:()=>I,routeModule:()=>K,tree:()=>H});var d=c(49754),e=c(9117),f=c(46595),g=c(32324),h=c(39326),i=c(38928),j=c(20175),k=c(12),l=c(54290),m=c(12696),n=c(82802),o=c(77533),p=c(45229),q=c(32822),r=c(261),s=c(26453),t=c(52474),u=c(26713),v=c(51356),w=c(62685),x=c(36225),y=c(63446),z=c(2762),A=c(45742),B=c(86439),C=c(81170),D=c.n(C),E=c(62506),F=c(91203),G={};for(let a in E)0>["default","tree","pages","GlobalError","__next_app__","routeModule","handler"].indexOf(a)&&(G[a]=()=>E[a]);c.d(b,G);let H={children:["",{children:["admin",{children:["dashboard",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(c.bind(c,5549)),"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/dashboard/page.tsx"]}]},{}]},{}]},{layout:[()=>Promise.resolve().then(c.bind(c,16953)),"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout.tsx"],"global-error":[()=>Promise.resolve().then(c.t.bind(c,81170,23)),"next/dist/client/components/builtin/global-error.js"],"not-found":[()=>Promise.resolve().then(c.t.bind(c,87028,23)),"next/dist/client/components/builtin/not-found.js"],forbidden:[()=>Promise.resolve().then(c.t.bind(c,90461,23)),"next/dist/client/components/builtin/forbidden.js"],unauthorized:[()=>Promise.resolve().then(c.t.bind(c,32768,23)),"next/dist/client/components/builtin/unauthorized.js"]}]}.children,I=["/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/dashboard/page.tsx"],J={require:c,loadChunk:()=>Promise.resolve()},K=new d.AppPageRouteModule({definition:{kind:e.RouteKind.APP_PAGE,page:"/admin/dashboard/page",pathname:"/admin/dashboard",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:H},distDir:".next",relativeProjectDir:""});async function L(a,b,d){var C;let G="/admin/dashboard/page";"/index"===G&&(G="/");let M=(0,h.getRequestMeta)(a,"postponed"),N=(0,h.getRequestMeta)(a,"minimalMode"),O=await K.prepare(a,b,{srcPage:G,multiZoneDraftMode:!1});if(!O)return b.statusCode=400,b.end("Bad Request"),null==d.waitUntil||d.waitUntil.call(d,Promise.resolve()),null;let{buildId:P,query:Q,params:R,parsedUrl:S,pageIsDynamic:T,buildManifest:U,nextFontManifest:V,reactLoadableManifest:W,serverActionsManifest:X,clientReferenceManifest:Y,subresourceIntegrityManifest:Z,prerenderManifest:$,isDraftMode:_,resolvedPathname:aa,revalidateOnlyGenerated:ab,routerServerContext:ac,nextConfig:ad,interceptionRoutePatterns:ae}=O,af=S.pathname||"/",ag=(0,r.normalizeAppPath)(G),{isOnDemandRevalidate:ah}=O,ai=K.match(af,$),aj=!!$.routes[aa],ak=!!(ai||aj||$.routes[ag]),al=a.headers["user-agent"]||"",am=(0,u.getBotType)(al),an=(0,p.isHtmlBotRequest)(a),ao=(0,h.getRequestMeta)(a,"isPrefetchRSCRequest")??"1"===a.headers[t.NEXT_ROUTER_PREFETCH_HEADER],ap=(0,h.getRequestMeta)(a,"isRSCRequest")??!!a.headers[t.RSC_HEADER],aq=(0,s.getIsPossibleServerAction)(a),ar=(0,m.checkIsAppPPREnabled)(ad.experimental.ppr)&&(null==(C=$.routes[ag]??$.dynamicRoutes[ag])?void 0:C.renderingMode)==="PARTIALLY_STATIC",as=!1,at=!1,au=ar?M:void 0,av=ar&&ap&&!ao,aw=(0,h.getRequestMeta)(a,"segmentPrefetchRSCRequest"),ax=!al||(0,p.shouldServeStreamingMetadata)(al,ad.htmlLimitedBots);an&&ar&&(ak=!1,ax=!1);let ay=!0===K.isDev||!ak||"string"==typeof M||av,az=an&&ar,aA=null;_||!ak||ay||aq||au||av||(aA=aa);let aB=aA;!aB&&K.isDev&&(aB=aa),K.isDev||_||!ak||!ap||av||(0,k.d)(a.headers);let aC={...E,tree:H,pages:I,GlobalError:D(),handler:L,routeModule:K,__next_app__:J};X&&Y&&(0,o.setReferenceManifestsSingleton)({page:G,clientReferenceManifest:Y,serverActionsManifest:X,serverModuleMap:(0,q.createServerModuleMap)({serverActionsManifest:X})});let aD=a.method||"GET",aE=(0,g.getTracer)(),aF=aE.getActiveScopeSpan();try{let f=K.getVaryHeader(aa,ae);b.setHeader("Vary",f);let k=async(c,d)=>{let e=new l.NodeNextRequest(a),f=new l.NodeNextResponse(b);return K.render(e,f,d).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=aE.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==i.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${aD} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${aD} ${a.url}`)})},m=async({span:e,postponed:f,fallbackRouteParams:g})=>{let i={query:Q,params:R,page:ag,sharedContext:{buildId:P},serverComponentsHmrCache:(0,h.getRequestMeta)(a,"serverComponentsHmrCache"),fallbackRouteParams:g,renderOpts:{App:()=>null,Document:()=>null,pageConfig:{},ComponentMod:aC,Component:(0,j.T)(aC),params:R,routeModule:K,page:G,postponed:f,shouldWaitOnAllReady:az,serveStreamingMetadata:ax,supportsDynamicResponse:"string"==typeof f||ay,buildManifest:U,nextFontManifest:V,reactLoadableManifest:W,subresourceIntegrityManifest:Z,serverActionsManifest:X,clientReferenceManifest:Y,setIsrStatus:null==ac?void 0:ac.setIsrStatus,dir:c(33873).join(process.cwd(),K.relativeProjectDir),isDraftMode:_,isRevalidate:ak&&!f&&!av,botType:am,isOnDemandRevalidate:ah,isPossibleServerAction:aq,assetPrefix:ad.assetPrefix,nextConfigOutput:ad.output,crossOrigin:ad.crossOrigin,trailingSlash:ad.trailingSlash,previewProps:$.preview,deploymentId:ad.deploymentId,enableTainting:ad.experimental.taint,htmlLimitedBots:ad.htmlLimitedBots,devtoolSegmentExplorer:ad.experimental.devtoolSegmentExplorer,reactMaxHeadersLength:ad.reactMaxHeadersLength,multiZoneDraftMode:!1,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:ad.experimental.cacheLife,basePath:ad.basePath,serverActions:ad.experimental.serverActions,...as?{nextExport:!0,supportsDynamicResponse:!1,isStaticGeneration:!0,isRevalidate:!0,isDebugDynamicAccesses:as}:{},experimental:{isRoutePPREnabled:ar,expireTime:ad.expireTime,staleTimes:ad.experimental.staleTimes,cacheComponents:!!ad.experimental.cacheComponents,clientSegmentCache:!!ad.experimental.clientSegmentCache,clientParamParsing:!!ad.experimental.clientParamParsing,dynamicOnHover:!!ad.experimental.dynamicOnHover,inlineCss:!!ad.experimental.inlineCss,authInterrupts:!!ad.experimental.authInterrupts,clientTraceMetadata:ad.experimental.clientTraceMetadata||[]},waitUntil:d.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:()=>{},onInstrumentationRequestError:(b,c,d)=>K.onRequestError(a,b,d,ac),err:(0,h.getRequestMeta)(a,"invokeError"),dev:K.isDev}},l=await k(e,i),{metadata:m}=l,{cacheControl:n,headers:o={},fetchTags:p}=m;if(p&&(o[y.NEXT_CACHE_TAGS_HEADER]=p),a.fetchMetrics=m.fetchMetrics,ak&&(null==n?void 0:n.revalidate)===0&&!K.isDev&&!ar){let a=m.staticBailoutInfo,b=Object.defineProperty(Error(`Page changed from static to dynamic at runtime ${aa}${(null==a?void 0:a.description)?`, reason: ${a.description}`:""} +see more here https://nextjs.org/docs/messages/app-static-to-dynamic-error`),"__NEXT_ERROR_CODE",{value:"E132",enumerable:!1,configurable:!0});if(null==a?void 0:a.stack){let c=a.stack;b.stack=b.message+c.substring(c.indexOf("\n"))}throw b}return{value:{kind:v.CachedRouteKind.APP_PAGE,html:l,headers:o,rscData:m.flightData,postponed:m.postponed,status:m.statusCode,segmentData:m.segmentData},cacheControl:n}},o=async({hasResolved:c,previousCacheEntry:f,isRevalidating:g,span:i})=>{let j,k=!1===K.isDev,l=c||b.writableEnded;if(ah&&ab&&!f&&!N)return(null==ac?void 0:ac.render404)?await ac.render404(a,b):(b.statusCode=404,b.end("This page could not be found")),null;if(ai&&(j=(0,w.parseFallbackField)(ai.fallback)),j===w.FallbackMode.PRERENDER&&(0,u.isBot)(al)&&(!ar||an)&&(j=w.FallbackMode.BLOCKING_STATIC_RENDER),(null==f?void 0:f.isStale)===-1&&(ah=!0),ah&&(j!==w.FallbackMode.NOT_FOUND||f)&&(j=w.FallbackMode.BLOCKING_STATIC_RENDER),!N&&j!==w.FallbackMode.BLOCKING_STATIC_RENDER&&aB&&!l&&!_&&T&&(k||!aj)){let b;if((k||ai)&&j===w.FallbackMode.NOT_FOUND)throw new B.NoFallbackError;if(ar&&!ap){let c="string"==typeof(null==ai?void 0:ai.fallback)?ai.fallback:k?ag:null;if(b=await K.handleResponse({cacheKey:c,req:a,nextConfig:ad,routeKind:e.RouteKind.APP_PAGE,isFallback:!0,prerenderManifest:$,isRoutePPREnabled:ar,responseGenerator:async()=>m({span:i,postponed:void 0,fallbackRouteParams:k||at?(0,n.u)(ag):null}),waitUntil:d.waitUntil}),null===b)return null;if(b)return delete b.cacheControl,b}}let o=ah||g||!au?void 0:au;if(as&&void 0!==o)return{cacheControl:{revalidate:1,expire:void 0},value:{kind:v.CachedRouteKind.PAGES,html:x.default.EMPTY,pageData:{},headers:void 0,status:void 0}};let p=T&&ar&&((0,h.getRequestMeta)(a,"renderFallbackShell")||at)?(0,n.u)(af):null;return m({span:i,postponed:o,fallbackRouteParams:p})},p=async c=>{var f,g,i,j,k;let l,n=await K.handleResponse({cacheKey:aA,responseGenerator:a=>o({span:c,...a}),routeKind:e.RouteKind.APP_PAGE,isOnDemandRevalidate:ah,isRoutePPREnabled:ar,req:a,nextConfig:ad,prerenderManifest:$,waitUntil:d.waitUntil});if(_&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate"),K.isDev&&b.setHeader("Cache-Control","no-store, must-revalidate"),!n){if(aA)throw Object.defineProperty(Error("invariant: cache entry required but not generated"),"__NEXT_ERROR_CODE",{value:"E62",enumerable:!1,configurable:!0});return null}if((null==(f=n.value)?void 0:f.kind)!==v.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant app-page handler received invalid cache entry ${null==(i=n.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E707",enumerable:!1,configurable:!0});let p="string"==typeof n.value.postponed;ak&&!av&&(!p||ao)&&(N||b.setHeader("x-nextjs-cache",ah?"REVALIDATED":n.isMiss?"MISS":n.isStale?"STALE":"HIT"),b.setHeader(t.NEXT_IS_PRERENDER_HEADER,"1"));let{value:q}=n;if(au)l={revalidate:0,expire:void 0};else if(N&&ap&&!ao&&ar)l={revalidate:0,expire:void 0};else if(!K.isDev)if(_)l={revalidate:0,expire:void 0};else if(ak){if(n.cacheControl)if("number"==typeof n.cacheControl.revalidate){if(n.cacheControl.revalidate<1)throw Object.defineProperty(Error(`Invalid revalidate configuration provided: ${n.cacheControl.revalidate} < 1`),"__NEXT_ERROR_CODE",{value:"E22",enumerable:!1,configurable:!0});l={revalidate:n.cacheControl.revalidate,expire:(null==(j=n.cacheControl)?void 0:j.expire)??ad.expireTime}}else l={revalidate:y.CACHE_ONE_YEAR,expire:void 0}}else b.getHeader("Cache-Control")||(l={revalidate:0,expire:void 0});if(n.cacheControl=l,"string"==typeof aw&&(null==q?void 0:q.kind)===v.CachedRouteKind.APP_PAGE&&q.segmentData){b.setHeader(t.NEXT_DID_POSTPONE_HEADER,"2");let c=null==(k=q.headers)?void 0:k[y.NEXT_CACHE_TAGS_HEADER];N&&ak&&c&&"string"==typeof c&&b.setHeader(y.NEXT_CACHE_TAGS_HEADER,c);let d=q.segmentData.get(aw);return void 0!==d?(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.fromStatic(d,t.RSC_CONTENT_TYPE_HEADER),cacheControl:n.cacheControl}):(b.statusCode=204,(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.EMPTY,cacheControl:n.cacheControl}))}let r=(0,h.getRequestMeta)(a,"onCacheEntry");if(r&&await r({...n,value:{...n.value,kind:"PAGE"}},{url:(0,h.getRequestMeta)(a,"initURL")}))return null;if(p&&au)throw Object.defineProperty(Error("Invariant: postponed state should not be present on a resume request"),"__NEXT_ERROR_CODE",{value:"E396",enumerable:!1,configurable:!0});if(q.headers){let a={...q.headers};for(let[c,d]of(N&&ak||delete a[y.NEXT_CACHE_TAGS_HEADER],Object.entries(a)))if(void 0!==d)if(Array.isArray(d))for(let a of d)b.appendHeader(c,a);else"number"==typeof d&&(d=d.toString()),b.appendHeader(c,d)}let s=null==(g=q.headers)?void 0:g[y.NEXT_CACHE_TAGS_HEADER];if(N&&ak&&s&&"string"==typeof s&&b.setHeader(y.NEXT_CACHE_TAGS_HEADER,s),!q.status||ap&&ar||(b.statusCode=q.status),!N&&q.status&&F.RedirectStatusCode[q.status]&&ap&&(b.statusCode=200),p&&b.setHeader(t.NEXT_DID_POSTPONE_HEADER,"1"),ap&&!_){if(void 0===q.rscData){if(q.postponed)throw Object.defineProperty(Error("Invariant: Expected postponed to be undefined"),"__NEXT_ERROR_CODE",{value:"E372",enumerable:!1,configurable:!0});return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:q.html,cacheControl:av?{revalidate:0,expire:void 0}:n.cacheControl})}return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.fromStatic(q.rscData,t.RSC_CONTENT_TYPE_HEADER),cacheControl:n.cacheControl})}let u=q.html;if(!p||N||ap)return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:n.cacheControl});if(as)return u.push(new ReadableStream({start(a){a.enqueue(z.ENCODED_TAGS.CLOSED.BODY_AND_HTML),a.close()}})),(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:{revalidate:0,expire:void 0}});let w=new TransformStream;return u.push(w.readable),m({span:c,postponed:q.postponed,fallbackRouteParams:null}).then(async a=>{var b,c;if(!a)throw Object.defineProperty(Error("Invariant: expected a result to be returned"),"__NEXT_ERROR_CODE",{value:"E463",enumerable:!1,configurable:!0});if((null==(b=a.value)?void 0:b.kind)!==v.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant: expected a page response, got ${null==(c=a.value)?void 0:c.kind}`),"__NEXT_ERROR_CODE",{value:"E305",enumerable:!1,configurable:!0});await a.value.html.pipeTo(w.writable)}).catch(a=>{w.writable.abort(a).catch(a=>{console.error("couldn't abort transformer",a)})}),(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:{revalidate:0,expire:void 0}})};if(!aF)return await aE.withPropagatedContext(a.headers,()=>aE.trace(i.BaseServerSpan.handleRequest,{spanName:`${aD} ${a.url}`,kind:g.SpanKind.SERVER,attributes:{"http.method":aD,"http.target":a.url}},p));await p(aF)}catch(b){throw b instanceof B.NoFallbackError||await K.onRequestError(a,b,{routerKind:"App Router",routePath:G,routeType:"render",revalidateReason:(0,f.c)({isRevalidate:ak,isOnDemandRevalidate:ah})},ac),b}}},73136:a=>{"use strict";a.exports=require("node:url")},76760:a=>{"use strict";a.exports=require("node:path")},77725:a=>{"use strict";a.exports=require("stream/promises")},79428:a=>{"use strict";a.exports=require("buffer")},79551:a=>{"use strict";a.exports=require("url")},79748:a=>{"use strict";a.exports=require("fs/promises")},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{"use strict";a.exports=require("better-sqlite3")},94735:a=>{"use strict";a.exports=require("events")}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,495,4606,1732,7894,9815],()=>b(b.s=71912));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/admin/dashboard/page.js.nft.json b/.next/server/app/admin/dashboard/page.js.nft.json index 6a38478bf798b1cdfb1fe6abb1f5e942cbee7836..bbed00b703325e5be0c4a873935dbe99e26351a8 100644 --- a/.next/server/app/admin/dashboard/page.js.nft.json +++ b/.next/server/app/admin/dashboard/page.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../node_modules/better-sqlite3/package.json","../../../../../node_modules/bindings/bindings.js","../../../../../node_modules/bindings/package.json","../../../../../node_modules/file-uri-to-path/index.js","../../../../../node_modules/file-uri-to-path/package.json","../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../node_modules/next/dist/lib/constants.js","../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../node_modules/next/dist/lib/is-error.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../node_modules/next/dist/shared/lib/router/utils/html-bots.js","../../../../../node_modules/next/dist/shared/lib/router/utils/is-bot.js","../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../node_modules/next/package.json","../../../../../package.json","../../../../package.json","../../../chunks/2671.js","../../../chunks/4078.js","../../../chunks/4277.js","../../../chunks/4586.js","../../../chunks/4606.js","../../../chunks/4681.js","../../../chunks/495.js","../../../chunks/570.js","../../../chunks/6085.js","../../../chunks/740.js","../../../chunks/7894.js","../../../chunks/8476.js","../../../chunks/9206.js","../../../chunks/9975.js","../../../webpack-runtime.js","page_client-reference-manifest.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../node_modules/better-sqlite3/package.json","../../../../../node_modules/bindings/bindings.js","../../../../../node_modules/bindings/package.json","../../../../../node_modules/file-uri-to-path/index.js","../../../../../node_modules/file-uri-to-path/package.json","../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../node_modules/next/dist/lib/constants.js","../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../node_modules/next/dist/lib/is-error.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../node_modules/next/dist/shared/lib/router/utils/html-bots.js","../../../../../node_modules/next/dist/shared/lib/router/utils/is-bot.js","../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../node_modules/next/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1732.js","../../../chunks/2671.js","../../../chunks/4078.js","../../../chunks/4141.js","../../../chunks/4277.js","../../../chunks/4586.js","../../../chunks/4606.js","../../../chunks/495.js","../../../chunks/6085.js","../../../chunks/740.js","../../../chunks/7894.js","../../../chunks/9050.js","../../../chunks/9206.js","../../../chunks/9815.js","../../../chunks/9975.js","../../../webpack-runtime.js","page_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/admin/dashboard/page_client-reference-manifest.js b/.next/server/app/admin/dashboard/page_client-reference-manifest.js index 22b544e4614bc91cf10b818cdc34fb06f10a727c..e37649cc0d43ed73c15c9a2bbe6e9527ac809d5e 100644 --- a/.next/server/app/admin/dashboard/page_client-reference-manifest.js +++ b/.next/server/app/admin/dashboard/page_client-reference-manifest.js @@ -1 +1 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/admin/dashboard/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","5957","static/chunks/app/admin/dashboard/page-cd3396dba1a5acbf.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":["3698","static/chunks/app/admin/page-700ea05bb99f3aa7.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/dashboard/page":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/admin/dashboard/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","5957","static/chunks/app/admin/dashboard/page-93d978d4bcb74918.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":["3698","static/chunks/app/admin/page-700ea05bb99f3aa7.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/dashboard/page":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/admin/deployments.html b/.next/server/app/admin/deployments.html new file mode 100644 index 0000000000000000000000000000000000000000..1d299ea6aee4e2824e15ce4c00fa82f38d46abc9 --- /dev/null +++ b/.next/server/app/admin/deployments.html @@ -0,0 +1,39 @@ +Open Source Web Studio | Agentic AI Development 🎨
+ + + + + + + +
Deployments

Deployments feature is only available in Server Mode

\ No newline at end of file diff --git a/.next/server/app/admin/sites.meta b/.next/server/app/admin/deployments.meta similarity index 65% rename from .next/server/app/admin/sites.meta rename to .next/server/app/admin/deployments.meta index 70a9e9313a6db1ab89ff99daee84f41a983fe5bc..a465739d5df813a0b9eaa8ed57a32a278611a2ad 100644 --- a/.next/server/app/admin/sites.meta +++ b/.next/server/app/admin/deployments.meta @@ -2,6 +2,6 @@ "headers": { "x-nextjs-stale-time": "300", "x-nextjs-prerender": "1", - "x-next-cache-tags": "_N_T_/layout,_N_T_/admin/layout,_N_T_/admin/sites/layout,_N_T_/admin/sites/page,_N_T_/admin/sites" + "x-next-cache-tags": "_N_T_/layout,_N_T_/admin/layout,_N_T_/admin/deployments/layout,_N_T_/admin/deployments/page,_N_T_/admin/deployments" } } \ No newline at end of file diff --git a/.next/server/app/admin/sites.rsc b/.next/server/app/admin/deployments.rsc similarity index 51% rename from .next/server/app/admin/sites.rsc rename to .next/server/app/admin/deployments.rsc index c70f0f2e623c33ed710d01caf8cc8d5069bbdc40..569bcc7194ae9d9cca3507012e5537e8afff3dab 100644 --- a/.next/server/app/admin/sites.rsc +++ b/.next/server/app/admin/deployments.rsc @@ -4,7 +4,7 @@ 4:I[46131,["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"default"] 5:I[9766,[],""] 6:I[98924,[],""] -7:I[43688,["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","921","static/chunks/app/admin/sites/page-cd3396dba1a5acbf.js"],"PageWrapper"] +7:I[43688,["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","105","static/chunks/app/admin/deployments/page-93d978d4bcb74918.js"],"PageWrapper"] 8:I[24431,[],"OutletBoundary"] a:I[15278,[],"AsyncMetadataOutlet"] c:I[24431,[],"ViewportBoundary"] @@ -14,8 +14,8 @@ f:"$Sreact.suspense" :HL["/_next/static/media/58f662ed5ba12a72-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}] :HL["/_next/static/media/c3f6eb667c0186c5-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}] :HL["/_next/static/media/e4af272ccee01ff0-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}] -:HL["/_next/static/css/634e649c3cc2540f.css","style"] -0:{"P":null,"b":"Dj_mU3ym-gcopP6URA30w","p":"","c":["","admin","sites"],"i":false,"f":[[["",{"children":["admin",{"children":["sites",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/634e649c3cc2540f.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"__variable_f367f3 __variable_438d47 antialiased bg-background h-[100dvh] overflow-hidden","suppressHydrationWarning":true,"children":["$","$L2",null,{"children":[["$","$L3",null,{"richColors":true,"position":"bottom-center"}],["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]]}]}]}]]}],{"children":["admin",["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["sites",["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L7",null,{"view":"sites"}],null,["$","$L8",null,{"children":["$L9",["$","$La",null,{"promise":"$@b"}]]}]]}],{},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$Lc",null,{"children":"$Ld"}],["$","meta",null,{"name":"next-size-adjust","content":""}]],["$","$Le",null,{"children":["$","div",null,{"hidden":true,"children":["$","$f",null,{"fallback":null,"children":"$L10"}]}]}]]}],false]],"m":"$undefined","G":["$11",[]],"s":false,"S":true} +:HL["/_next/static/css/7a4f097ac51b20a7.css","style"] +0:{"P":null,"b":"6U79IAVVts3v8bcNT6dWz","p":"","c":["","admin","deployments"],"i":false,"f":[[["",{"children":["admin",{"children":["deployments",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/7a4f097ac51b20a7.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"__variable_f367f3 __variable_438d47 antialiased bg-background h-[100dvh] overflow-hidden","suppressHydrationWarning":true,"children":["$","$L2",null,{"children":[["$","$L3",null,{"richColors":true,"position":"bottom-center"}],["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]]}]}]}]]}],{"children":["admin",["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["deployments",["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L7",null,{"view":"deployments"}],null,["$","$L8",null,{"children":["$L9",["$","$La",null,{"promise":"$@b"}]]}]]}],{},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$Lc",null,{"children":"$Ld"}],["$","meta",null,{"name":"next-size-adjust","content":""}]],["$","$Le",null,{"children":["$","div",null,{"hidden":true,"children":["$","$f",null,{"fallback":null,"children":"$L10"}]}]}]]}],false]],"m":"$undefined","G":["$11",[]],"s":false,"S":true} d:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1, maximum-scale=1"}],["$","meta","2",{"name":"theme-color","content":"#000000"}]] 9:null 12:I[80622,[],"IconMark"] diff --git a/.next/server/app/admin/deployments/page.js b/.next/server/app/admin/deployments/page.js new file mode 100644 index 0000000000000000000000000000000000000000..1971f26d153655a5cc1d891515896fd8a493c01c --- /dev/null +++ b/.next/server/app/admin/deployments/page.js @@ -0,0 +1,2 @@ +(()=>{var a={};a.id=105,a.ids=[105],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1708:a=>{"use strict";a.exports=require("node:process")},2054:(a,b,c)=>{"use strict";c.d(b,{PageWrapper:()=>d});let d=(0,c(97954).registerClientReference)(function(){throw Error("Attempted to call PageWrapper() from the server but PageWrapper is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx","PageWrapper")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},26713:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/is-bot")},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31152:(a,b,c)=>{"use strict";c.d(b,{PageWrapper:()=>o});var d=c(21124),e=c(38301),f=c(42378),g=c(11610),h=c(83330),i=c(44215),j=c(95919),k=c(14258),l=c(45914);let m={dashboard:"/admin",projects:"/admin/projects",templates:"/admin/templates",skills:"/admin/skills",deployments:"/admin/deployments",docs:"/admin/docs",settings:"/admin/settings"};function n({view:a,settingsTab:b}){let c=(0,f.useRouter)(),[j,n]=(0,e.useState)(null),[o,p]=(0,e.useState)(!1),q=(0,e.useCallback)(a=>{let b=m[a]||`/admin/${a}`;c.push(b)},[c]),r=j?(0,d.jsx)(i.a,{project:j,onBack:()=>n(null)}):(0,d.jsx)(h.f,{view:a,onProjectSelect:n,settingsTab:b,onNavigate:q});return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(g.M,{currentView:a,onNavigate:q,onProjectSelect:n,onOpenAbout:()=>p(!0),showSidebar:!j,children:r}),(0,d.jsx)(k.V,{location:"global"}),(0,d.jsx)(l.V,{open:o,onOpenChange:p})]})}function o({view:a,settingsTab:b}){return(0,d.jsx)(j.g,{children:(0,d.jsx)(n,{view:a,settingsTab:b})})}},33873:a=>{"use strict";a.exports=require("path")},36167:(a,b,c)=>{Promise.resolve().then(c.bind(c,2054))},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},55511:a=>{"use strict";a.exports=require("crypto")},58349:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>f});var d=c(75338),e=c(2054);function f(){return(0,d.jsx)(e.PageWrapper,{view:"deployments"})}},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},66431:(a,b,c)=>{Promise.resolve().then(c.bind(c,31152))},67944:(a,b,c)=>{"use strict";c.r(b),c.d(b,{GlobalError:()=>D.a,__next_app__:()=>J,handler:()=>L,pages:()=>I,routeModule:()=>K,tree:()=>H});var d=c(49754),e=c(9117),f=c(46595),g=c(32324),h=c(39326),i=c(38928),j=c(20175),k=c(12),l=c(54290),m=c(12696),n=c(82802),o=c(77533),p=c(45229),q=c(32822),r=c(261),s=c(26453),t=c(52474),u=c(26713),v=c(51356),w=c(62685),x=c(36225),y=c(63446),z=c(2762),A=c(45742),B=c(86439),C=c(81170),D=c.n(C),E=c(62506),F=c(91203),G={};for(let a in E)0>["default","tree","pages","GlobalError","__next_app__","routeModule","handler"].indexOf(a)&&(G[a]=()=>E[a]);c.d(b,G);let H={children:["",{children:["admin",{children:["deployments",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(c.bind(c,58349)),"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/deployments/page.tsx"]}]},{}]},{}]},{layout:[()=>Promise.resolve().then(c.bind(c,16953)),"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout.tsx"],"global-error":[()=>Promise.resolve().then(c.t.bind(c,81170,23)),"next/dist/client/components/builtin/global-error.js"],"not-found":[()=>Promise.resolve().then(c.t.bind(c,87028,23)),"next/dist/client/components/builtin/not-found.js"],forbidden:[()=>Promise.resolve().then(c.t.bind(c,90461,23)),"next/dist/client/components/builtin/forbidden.js"],unauthorized:[()=>Promise.resolve().then(c.t.bind(c,32768,23)),"next/dist/client/components/builtin/unauthorized.js"]}]}.children,I=["/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/deployments/page.tsx"],J={require:c,loadChunk:()=>Promise.resolve()},K=new d.AppPageRouteModule({definition:{kind:e.RouteKind.APP_PAGE,page:"/admin/deployments/page",pathname:"/admin/deployments",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:H},distDir:".next",relativeProjectDir:""});async function L(a,b,d){var C;let G="/admin/deployments/page";"/index"===G&&(G="/");let M=(0,h.getRequestMeta)(a,"postponed"),N=(0,h.getRequestMeta)(a,"minimalMode"),O=await K.prepare(a,b,{srcPage:G,multiZoneDraftMode:!1});if(!O)return b.statusCode=400,b.end("Bad Request"),null==d.waitUntil||d.waitUntil.call(d,Promise.resolve()),null;let{buildId:P,query:Q,params:R,parsedUrl:S,pageIsDynamic:T,buildManifest:U,nextFontManifest:V,reactLoadableManifest:W,serverActionsManifest:X,clientReferenceManifest:Y,subresourceIntegrityManifest:Z,prerenderManifest:$,isDraftMode:_,resolvedPathname:aa,revalidateOnlyGenerated:ab,routerServerContext:ac,nextConfig:ad,interceptionRoutePatterns:ae}=O,af=S.pathname||"/",ag=(0,r.normalizeAppPath)(G),{isOnDemandRevalidate:ah}=O,ai=K.match(af,$),aj=!!$.routes[aa],ak=!!(ai||aj||$.routes[ag]),al=a.headers["user-agent"]||"",am=(0,u.getBotType)(al),an=(0,p.isHtmlBotRequest)(a),ao=(0,h.getRequestMeta)(a,"isPrefetchRSCRequest")??"1"===a.headers[t.NEXT_ROUTER_PREFETCH_HEADER],ap=(0,h.getRequestMeta)(a,"isRSCRequest")??!!a.headers[t.RSC_HEADER],aq=(0,s.getIsPossibleServerAction)(a),ar=(0,m.checkIsAppPPREnabled)(ad.experimental.ppr)&&(null==(C=$.routes[ag]??$.dynamicRoutes[ag])?void 0:C.renderingMode)==="PARTIALLY_STATIC",as=!1,at=!1,au=ar?M:void 0,av=ar&&ap&&!ao,aw=(0,h.getRequestMeta)(a,"segmentPrefetchRSCRequest"),ax=!al||(0,p.shouldServeStreamingMetadata)(al,ad.htmlLimitedBots);an&&ar&&(ak=!1,ax=!1);let ay=!0===K.isDev||!ak||"string"==typeof M||av,az=an&&ar,aA=null;_||!ak||ay||aq||au||av||(aA=aa);let aB=aA;!aB&&K.isDev&&(aB=aa),K.isDev||_||!ak||!ap||av||(0,k.d)(a.headers);let aC={...E,tree:H,pages:I,GlobalError:D(),handler:L,routeModule:K,__next_app__:J};X&&Y&&(0,o.setReferenceManifestsSingleton)({page:G,clientReferenceManifest:Y,serverActionsManifest:X,serverModuleMap:(0,q.createServerModuleMap)({serverActionsManifest:X})});let aD=a.method||"GET",aE=(0,g.getTracer)(),aF=aE.getActiveScopeSpan();try{let f=K.getVaryHeader(aa,ae);b.setHeader("Vary",f);let k=async(c,d)=>{let e=new l.NodeNextRequest(a),f=new l.NodeNextResponse(b);return K.render(e,f,d).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=aE.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==i.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${aD} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${aD} ${a.url}`)})},m=async({span:e,postponed:f,fallbackRouteParams:g})=>{let i={query:Q,params:R,page:ag,sharedContext:{buildId:P},serverComponentsHmrCache:(0,h.getRequestMeta)(a,"serverComponentsHmrCache"),fallbackRouteParams:g,renderOpts:{App:()=>null,Document:()=>null,pageConfig:{},ComponentMod:aC,Component:(0,j.T)(aC),params:R,routeModule:K,page:G,postponed:f,shouldWaitOnAllReady:az,serveStreamingMetadata:ax,supportsDynamicResponse:"string"==typeof f||ay,buildManifest:U,nextFontManifest:V,reactLoadableManifest:W,subresourceIntegrityManifest:Z,serverActionsManifest:X,clientReferenceManifest:Y,setIsrStatus:null==ac?void 0:ac.setIsrStatus,dir:c(33873).join(process.cwd(),K.relativeProjectDir),isDraftMode:_,isRevalidate:ak&&!f&&!av,botType:am,isOnDemandRevalidate:ah,isPossibleServerAction:aq,assetPrefix:ad.assetPrefix,nextConfigOutput:ad.output,crossOrigin:ad.crossOrigin,trailingSlash:ad.trailingSlash,previewProps:$.preview,deploymentId:ad.deploymentId,enableTainting:ad.experimental.taint,htmlLimitedBots:ad.htmlLimitedBots,devtoolSegmentExplorer:ad.experimental.devtoolSegmentExplorer,reactMaxHeadersLength:ad.reactMaxHeadersLength,multiZoneDraftMode:!1,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:ad.experimental.cacheLife,basePath:ad.basePath,serverActions:ad.experimental.serverActions,...as?{nextExport:!0,supportsDynamicResponse:!1,isStaticGeneration:!0,isRevalidate:!0,isDebugDynamicAccesses:as}:{},experimental:{isRoutePPREnabled:ar,expireTime:ad.expireTime,staleTimes:ad.experimental.staleTimes,cacheComponents:!!ad.experimental.cacheComponents,clientSegmentCache:!!ad.experimental.clientSegmentCache,clientParamParsing:!!ad.experimental.clientParamParsing,dynamicOnHover:!!ad.experimental.dynamicOnHover,inlineCss:!!ad.experimental.inlineCss,authInterrupts:!!ad.experimental.authInterrupts,clientTraceMetadata:ad.experimental.clientTraceMetadata||[]},waitUntil:d.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:()=>{},onInstrumentationRequestError:(b,c,d)=>K.onRequestError(a,b,d,ac),err:(0,h.getRequestMeta)(a,"invokeError"),dev:K.isDev}},l=await k(e,i),{metadata:m}=l,{cacheControl:n,headers:o={},fetchTags:p}=m;if(p&&(o[y.NEXT_CACHE_TAGS_HEADER]=p),a.fetchMetrics=m.fetchMetrics,ak&&(null==n?void 0:n.revalidate)===0&&!K.isDev&&!ar){let a=m.staticBailoutInfo,b=Object.defineProperty(Error(`Page changed from static to dynamic at runtime ${aa}${(null==a?void 0:a.description)?`, reason: ${a.description}`:""} +see more here https://nextjs.org/docs/messages/app-static-to-dynamic-error`),"__NEXT_ERROR_CODE",{value:"E132",enumerable:!1,configurable:!0});if(null==a?void 0:a.stack){let c=a.stack;b.stack=b.message+c.substring(c.indexOf("\n"))}throw b}return{value:{kind:v.CachedRouteKind.APP_PAGE,html:l,headers:o,rscData:m.flightData,postponed:m.postponed,status:m.statusCode,segmentData:m.segmentData},cacheControl:n}},o=async({hasResolved:c,previousCacheEntry:f,isRevalidating:g,span:i})=>{let j,k=!1===K.isDev,l=c||b.writableEnded;if(ah&&ab&&!f&&!N)return(null==ac?void 0:ac.render404)?await ac.render404(a,b):(b.statusCode=404,b.end("This page could not be found")),null;if(ai&&(j=(0,w.parseFallbackField)(ai.fallback)),j===w.FallbackMode.PRERENDER&&(0,u.isBot)(al)&&(!ar||an)&&(j=w.FallbackMode.BLOCKING_STATIC_RENDER),(null==f?void 0:f.isStale)===-1&&(ah=!0),ah&&(j!==w.FallbackMode.NOT_FOUND||f)&&(j=w.FallbackMode.BLOCKING_STATIC_RENDER),!N&&j!==w.FallbackMode.BLOCKING_STATIC_RENDER&&aB&&!l&&!_&&T&&(k||!aj)){let b;if((k||ai)&&j===w.FallbackMode.NOT_FOUND)throw new B.NoFallbackError;if(ar&&!ap){let c="string"==typeof(null==ai?void 0:ai.fallback)?ai.fallback:k?ag:null;if(b=await K.handleResponse({cacheKey:c,req:a,nextConfig:ad,routeKind:e.RouteKind.APP_PAGE,isFallback:!0,prerenderManifest:$,isRoutePPREnabled:ar,responseGenerator:async()=>m({span:i,postponed:void 0,fallbackRouteParams:k||at?(0,n.u)(ag):null}),waitUntil:d.waitUntil}),null===b)return null;if(b)return delete b.cacheControl,b}}let o=ah||g||!au?void 0:au;if(as&&void 0!==o)return{cacheControl:{revalidate:1,expire:void 0},value:{kind:v.CachedRouteKind.PAGES,html:x.default.EMPTY,pageData:{},headers:void 0,status:void 0}};let p=T&&ar&&((0,h.getRequestMeta)(a,"renderFallbackShell")||at)?(0,n.u)(af):null;return m({span:i,postponed:o,fallbackRouteParams:p})},p=async c=>{var f,g,i,j,k;let l,n=await K.handleResponse({cacheKey:aA,responseGenerator:a=>o({span:c,...a}),routeKind:e.RouteKind.APP_PAGE,isOnDemandRevalidate:ah,isRoutePPREnabled:ar,req:a,nextConfig:ad,prerenderManifest:$,waitUntil:d.waitUntil});if(_&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate"),K.isDev&&b.setHeader("Cache-Control","no-store, must-revalidate"),!n){if(aA)throw Object.defineProperty(Error("invariant: cache entry required but not generated"),"__NEXT_ERROR_CODE",{value:"E62",enumerable:!1,configurable:!0});return null}if((null==(f=n.value)?void 0:f.kind)!==v.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant app-page handler received invalid cache entry ${null==(i=n.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E707",enumerable:!1,configurable:!0});let p="string"==typeof n.value.postponed;ak&&!av&&(!p||ao)&&(N||b.setHeader("x-nextjs-cache",ah?"REVALIDATED":n.isMiss?"MISS":n.isStale?"STALE":"HIT"),b.setHeader(t.NEXT_IS_PRERENDER_HEADER,"1"));let{value:q}=n;if(au)l={revalidate:0,expire:void 0};else if(N&&ap&&!ao&&ar)l={revalidate:0,expire:void 0};else if(!K.isDev)if(_)l={revalidate:0,expire:void 0};else if(ak){if(n.cacheControl)if("number"==typeof n.cacheControl.revalidate){if(n.cacheControl.revalidate<1)throw Object.defineProperty(Error(`Invalid revalidate configuration provided: ${n.cacheControl.revalidate} < 1`),"__NEXT_ERROR_CODE",{value:"E22",enumerable:!1,configurable:!0});l={revalidate:n.cacheControl.revalidate,expire:(null==(j=n.cacheControl)?void 0:j.expire)??ad.expireTime}}else l={revalidate:y.CACHE_ONE_YEAR,expire:void 0}}else b.getHeader("Cache-Control")||(l={revalidate:0,expire:void 0});if(n.cacheControl=l,"string"==typeof aw&&(null==q?void 0:q.kind)===v.CachedRouteKind.APP_PAGE&&q.segmentData){b.setHeader(t.NEXT_DID_POSTPONE_HEADER,"2");let c=null==(k=q.headers)?void 0:k[y.NEXT_CACHE_TAGS_HEADER];N&&ak&&c&&"string"==typeof c&&b.setHeader(y.NEXT_CACHE_TAGS_HEADER,c);let d=q.segmentData.get(aw);return void 0!==d?(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.fromStatic(d,t.RSC_CONTENT_TYPE_HEADER),cacheControl:n.cacheControl}):(b.statusCode=204,(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.EMPTY,cacheControl:n.cacheControl}))}let r=(0,h.getRequestMeta)(a,"onCacheEntry");if(r&&await r({...n,value:{...n.value,kind:"PAGE"}},{url:(0,h.getRequestMeta)(a,"initURL")}))return null;if(p&&au)throw Object.defineProperty(Error("Invariant: postponed state should not be present on a resume request"),"__NEXT_ERROR_CODE",{value:"E396",enumerable:!1,configurable:!0});if(q.headers){let a={...q.headers};for(let[c,d]of(N&&ak||delete a[y.NEXT_CACHE_TAGS_HEADER],Object.entries(a)))if(void 0!==d)if(Array.isArray(d))for(let a of d)b.appendHeader(c,a);else"number"==typeof d&&(d=d.toString()),b.appendHeader(c,d)}let s=null==(g=q.headers)?void 0:g[y.NEXT_CACHE_TAGS_HEADER];if(N&&ak&&s&&"string"==typeof s&&b.setHeader(y.NEXT_CACHE_TAGS_HEADER,s),!q.status||ap&&ar||(b.statusCode=q.status),!N&&q.status&&F.RedirectStatusCode[q.status]&&ap&&(b.statusCode=200),p&&b.setHeader(t.NEXT_DID_POSTPONE_HEADER,"1"),ap&&!_){if(void 0===q.rscData){if(q.postponed)throw Object.defineProperty(Error("Invariant: Expected postponed to be undefined"),"__NEXT_ERROR_CODE",{value:"E372",enumerable:!1,configurable:!0});return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:q.html,cacheControl:av?{revalidate:0,expire:void 0}:n.cacheControl})}return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.fromStatic(q.rscData,t.RSC_CONTENT_TYPE_HEADER),cacheControl:n.cacheControl})}let u=q.html;if(!p||N||ap)return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:n.cacheControl});if(as)return u.push(new ReadableStream({start(a){a.enqueue(z.ENCODED_TAGS.CLOSED.BODY_AND_HTML),a.close()}})),(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:{revalidate:0,expire:void 0}});let w=new TransformStream;return u.push(w.readable),m({span:c,postponed:q.postponed,fallbackRouteParams:null}).then(async a=>{var b,c;if(!a)throw Object.defineProperty(Error("Invariant: expected a result to be returned"),"__NEXT_ERROR_CODE",{value:"E463",enumerable:!1,configurable:!0});if((null==(b=a.value)?void 0:b.kind)!==v.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant: expected a page response, got ${null==(c=a.value)?void 0:c.kind}`),"__NEXT_ERROR_CODE",{value:"E305",enumerable:!1,configurable:!0});await a.value.html.pipeTo(w.writable)}).catch(a=>{w.writable.abort(a).catch(a=>{console.error("couldn't abort transformer",a)})}),(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:{revalidate:0,expire:void 0}})};if(!aF)return await aE.withPropagatedContext(a.headers,()=>aE.trace(i.BaseServerSpan.handleRequest,{spanName:`${aD} ${a.url}`,kind:g.SpanKind.SERVER,attributes:{"http.method":aD,"http.target":a.url}},p));await p(aF)}catch(b){throw b instanceof B.NoFallbackError||await K.onRequestError(a,b,{routerKind:"App Router",routePath:G,routeType:"render",revalidateReason:(0,f.c)({isRevalidate:ak,isOnDemandRevalidate:ah})},ac),b}}},73136:a=>{"use strict";a.exports=require("node:url")},76760:a=>{"use strict";a.exports=require("node:path")},77725:a=>{"use strict";a.exports=require("stream/promises")},79428:a=>{"use strict";a.exports=require("buffer")},79551:a=>{"use strict";a.exports=require("url")},79748:a=>{"use strict";a.exports=require("fs/promises")},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{"use strict";a.exports=require("better-sqlite3")},94735:a=>{"use strict";a.exports=require("events")}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,495,4606,1732,7894,9815],()=>b(b.s=67944));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/admin/sites/page.js.nft.json b/.next/server/app/admin/deployments/page.js.nft.json similarity index 91% rename from .next/server/app/admin/sites/page.js.nft.json rename to .next/server/app/admin/deployments/page.js.nft.json index 6a38478bf798b1cdfb1fe6abb1f5e942cbee7836..bbed00b703325e5be0c4a873935dbe99e26351a8 100644 --- a/.next/server/app/admin/sites/page.js.nft.json +++ b/.next/server/app/admin/deployments/page.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../node_modules/better-sqlite3/package.json","../../../../../node_modules/bindings/bindings.js","../../../../../node_modules/bindings/package.json","../../../../../node_modules/file-uri-to-path/index.js","../../../../../node_modules/file-uri-to-path/package.json","../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../node_modules/next/dist/lib/constants.js","../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../node_modules/next/dist/lib/is-error.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../node_modules/next/dist/shared/lib/router/utils/html-bots.js","../../../../../node_modules/next/dist/shared/lib/router/utils/is-bot.js","../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../node_modules/next/package.json","../../../../../package.json","../../../../package.json","../../../chunks/2671.js","../../../chunks/4078.js","../../../chunks/4277.js","../../../chunks/4586.js","../../../chunks/4606.js","../../../chunks/4681.js","../../../chunks/495.js","../../../chunks/570.js","../../../chunks/6085.js","../../../chunks/740.js","../../../chunks/7894.js","../../../chunks/8476.js","../../../chunks/9206.js","../../../chunks/9975.js","../../../webpack-runtime.js","page_client-reference-manifest.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../node_modules/better-sqlite3/package.json","../../../../../node_modules/bindings/bindings.js","../../../../../node_modules/bindings/package.json","../../../../../node_modules/file-uri-to-path/index.js","../../../../../node_modules/file-uri-to-path/package.json","../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../node_modules/next/dist/lib/constants.js","../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../node_modules/next/dist/lib/is-error.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../node_modules/next/dist/shared/lib/router/utils/html-bots.js","../../../../../node_modules/next/dist/shared/lib/router/utils/is-bot.js","../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../node_modules/next/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1732.js","../../../chunks/2671.js","../../../chunks/4078.js","../../../chunks/4141.js","../../../chunks/4277.js","../../../chunks/4586.js","../../../chunks/4606.js","../../../chunks/495.js","../../../chunks/6085.js","../../../chunks/740.js","../../../chunks/7894.js","../../../chunks/9050.js","../../../chunks/9206.js","../../../chunks/9815.js","../../../chunks/9975.js","../../../webpack-runtime.js","page_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/admin/deployments/page_client-reference-manifest.js b/.next/server/app/admin/deployments/page_client-reference-manifest.js new file mode 100644 index 0000000000000000000000000000000000000000..ae99bea479caaba613a812381f5974033caa6551 --- /dev/null +++ b/.next/server/app/admin/deployments/page_client-reference-manifest.js @@ -0,0 +1 @@ +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/admin/deployments/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","105","static/chunks/app/admin/deployments/page-93d978d4bcb74918.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":["3698","static/chunks/app/admin/page-700ea05bb99f3aa7.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/deployments/page":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/admin/docs.html b/.next/server/app/admin/docs.html index 90c9c019a2cddb5ef792dfaf33d43b6f9bbf5e89..6cbf6757f82c26c53e959cc72e6c7052aefaa5fa 100644 --- a/.next/server/app/admin/docs.html +++ b/.next/server/app/admin/docs.html @@ -1,4 +1,4 @@ -Open Source Web Studio | Agentic AI Development 🎨
+Open Source Web Studio | Agentic AI Development 🎨
-
Docs
Loading documentation...
\ No newline at end of file +
Docs
Loading documentation...
\ No newline at end of file diff --git a/.next/server/app/admin/docs.rsc b/.next/server/app/admin/docs.rsc index e7ec233edfd7c5e8986450f759897e58234a35ff..6a7cd4bf13294762d670768dc34e517cb7323270 100644 --- a/.next/server/app/admin/docs.rsc +++ b/.next/server/app/admin/docs.rsc @@ -4,7 +4,7 @@ 4:I[46131,["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"default"] 5:I[9766,[],""] 6:I[98924,[],""] -7:I[43688,["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","4004","static/chunks/app/admin/docs/page-cd3396dba1a5acbf.js"],"PageWrapper"] +7:I[43688,["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","4004","static/chunks/app/admin/docs/page-93d978d4bcb74918.js"],"PageWrapper"] 8:I[24431,[],"OutletBoundary"] a:I[15278,[],"AsyncMetadataOutlet"] c:I[24431,[],"ViewportBoundary"] @@ -14,8 +14,8 @@ f:"$Sreact.suspense" :HL["/_next/static/media/58f662ed5ba12a72-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}] :HL["/_next/static/media/c3f6eb667c0186c5-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}] :HL["/_next/static/media/e4af272ccee01ff0-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}] -:HL["/_next/static/css/634e649c3cc2540f.css","style"] -0:{"P":null,"b":"Dj_mU3ym-gcopP6URA30w","p":"","c":["","admin","docs"],"i":false,"f":[[["",{"children":["admin",{"children":["docs",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/634e649c3cc2540f.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"__variable_f367f3 __variable_438d47 antialiased bg-background h-[100dvh] overflow-hidden","suppressHydrationWarning":true,"children":["$","$L2",null,{"children":[["$","$L3",null,{"richColors":true,"position":"bottom-center"}],["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]]}]}]}]]}],{"children":["admin",["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["docs",["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L7",null,{"view":"docs"}],null,["$","$L8",null,{"children":["$L9",["$","$La",null,{"promise":"$@b"}]]}]]}],{},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$Lc",null,{"children":"$Ld"}],["$","meta",null,{"name":"next-size-adjust","content":""}]],["$","$Le",null,{"children":["$","div",null,{"hidden":true,"children":["$","$f",null,{"fallback":null,"children":"$L10"}]}]}]]}],false]],"m":"$undefined","G":["$11",[]],"s":false,"S":true} +:HL["/_next/static/css/7a4f097ac51b20a7.css","style"] +0:{"P":null,"b":"6U79IAVVts3v8bcNT6dWz","p":"","c":["","admin","docs"],"i":false,"f":[[["",{"children":["admin",{"children":["docs",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/7a4f097ac51b20a7.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"__variable_f367f3 __variable_438d47 antialiased bg-background h-[100dvh] overflow-hidden","suppressHydrationWarning":true,"children":["$","$L2",null,{"children":[["$","$L3",null,{"richColors":true,"position":"bottom-center"}],["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]]}]}]}]]}],{"children":["admin",["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["docs",["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L7",null,{"view":"docs"}],null,["$","$L8",null,{"children":["$L9",["$","$La",null,{"promise":"$@b"}]]}]]}],{},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$Lc",null,{"children":"$Ld"}],["$","meta",null,{"name":"next-size-adjust","content":""}]],["$","$Le",null,{"children":["$","div",null,{"hidden":true,"children":["$","$f",null,{"fallback":null,"children":"$L10"}]}]}]]}],false]],"m":"$undefined","G":["$11",[]],"s":false,"S":true} d:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1, maximum-scale=1"}],["$","meta","2",{"name":"theme-color","content":"#000000"}]] 9:null 12:I[80622,[],"IconMark"] diff --git a/.next/server/app/admin/docs/page.js b/.next/server/app/admin/docs/page.js index c406202e5c80b85e67b60f595bbf768a6c817d54..b4a2e852d8714730e8660e4ffcd180cf6620094c 100644 --- a/.next/server/app/admin/docs/page.js +++ b/.next/server/app/admin/docs/page.js @@ -1,2 +1,2 @@ (()=>{var a={};a.id=4004,a.ids=[4004],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1708:a=>{"use strict";a.exports=require("node:process")},2054:(a,b,c)=>{"use strict";c.d(b,{PageWrapper:()=>d});let d=(0,c(97954).registerClientReference)(function(){throw Error("Attempted to call PageWrapper() from the server but PageWrapper is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx","PageWrapper")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},13201:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>f});var d=c(75338),e=c(2054);function f(){return(0,d.jsx)(e.PageWrapper,{view:"docs"})}},17574:(a,b,c)=>{"use strict";c.r(b),c.d(b,{GlobalError:()=>D.a,__next_app__:()=>J,handler:()=>L,pages:()=>I,routeModule:()=>K,tree:()=>H});var d=c(49754),e=c(9117),f=c(46595),g=c(32324),h=c(39326),i=c(38928),j=c(20175),k=c(12),l=c(54290),m=c(12696),n=c(82802),o=c(77533),p=c(45229),q=c(32822),r=c(261),s=c(26453),t=c(52474),u=c(26713),v=c(51356),w=c(62685),x=c(36225),y=c(63446),z=c(2762),A=c(45742),B=c(86439),C=c(81170),D=c.n(C),E=c(62506),F=c(91203),G={};for(let a in E)0>["default","tree","pages","GlobalError","__next_app__","routeModule","handler"].indexOf(a)&&(G[a]=()=>E[a]);c.d(b,G);let H={children:["",{children:["admin",{children:["docs",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(c.bind(c,13201)),"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/docs/page.tsx"]}]},{}]},{}]},{layout:[()=>Promise.resolve().then(c.bind(c,16953)),"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout.tsx"],"global-error":[()=>Promise.resolve().then(c.t.bind(c,81170,23)),"next/dist/client/components/builtin/global-error.js"],"not-found":[()=>Promise.resolve().then(c.t.bind(c,87028,23)),"next/dist/client/components/builtin/not-found.js"],forbidden:[()=>Promise.resolve().then(c.t.bind(c,90461,23)),"next/dist/client/components/builtin/forbidden.js"],unauthorized:[()=>Promise.resolve().then(c.t.bind(c,32768,23)),"next/dist/client/components/builtin/unauthorized.js"]}]}.children,I=["/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/docs/page.tsx"],J={require:c,loadChunk:()=>Promise.resolve()},K=new d.AppPageRouteModule({definition:{kind:e.RouteKind.APP_PAGE,page:"/admin/docs/page",pathname:"/admin/docs",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:H},distDir:".next",relativeProjectDir:""});async function L(a,b,d){var C;let G="/admin/docs/page";"/index"===G&&(G="/");let M=(0,h.getRequestMeta)(a,"postponed"),N=(0,h.getRequestMeta)(a,"minimalMode"),O=await K.prepare(a,b,{srcPage:G,multiZoneDraftMode:!1});if(!O)return b.statusCode=400,b.end("Bad Request"),null==d.waitUntil||d.waitUntil.call(d,Promise.resolve()),null;let{buildId:P,query:Q,params:R,parsedUrl:S,pageIsDynamic:T,buildManifest:U,nextFontManifest:V,reactLoadableManifest:W,serverActionsManifest:X,clientReferenceManifest:Y,subresourceIntegrityManifest:Z,prerenderManifest:$,isDraftMode:_,resolvedPathname:aa,revalidateOnlyGenerated:ab,routerServerContext:ac,nextConfig:ad,interceptionRoutePatterns:ae}=O,af=S.pathname||"/",ag=(0,r.normalizeAppPath)(G),{isOnDemandRevalidate:ah}=O,ai=K.match(af,$),aj=!!$.routes[aa],ak=!!(ai||aj||$.routes[ag]),al=a.headers["user-agent"]||"",am=(0,u.getBotType)(al),an=(0,p.isHtmlBotRequest)(a),ao=(0,h.getRequestMeta)(a,"isPrefetchRSCRequest")??"1"===a.headers[t.NEXT_ROUTER_PREFETCH_HEADER],ap=(0,h.getRequestMeta)(a,"isRSCRequest")??!!a.headers[t.RSC_HEADER],aq=(0,s.getIsPossibleServerAction)(a),ar=(0,m.checkIsAppPPREnabled)(ad.experimental.ppr)&&(null==(C=$.routes[ag]??$.dynamicRoutes[ag])?void 0:C.renderingMode)==="PARTIALLY_STATIC",as=!1,at=!1,au=ar?M:void 0,av=ar&&ap&&!ao,aw=(0,h.getRequestMeta)(a,"segmentPrefetchRSCRequest"),ax=!al||(0,p.shouldServeStreamingMetadata)(al,ad.htmlLimitedBots);an&&ar&&(ak=!1,ax=!1);let ay=!0===K.isDev||!ak||"string"==typeof M||av,az=an&&ar,aA=null;_||!ak||ay||aq||au||av||(aA=aa);let aB=aA;!aB&&K.isDev&&(aB=aa),K.isDev||_||!ak||!ap||av||(0,k.d)(a.headers);let aC={...E,tree:H,pages:I,GlobalError:D(),handler:L,routeModule:K,__next_app__:J};X&&Y&&(0,o.setReferenceManifestsSingleton)({page:G,clientReferenceManifest:Y,serverActionsManifest:X,serverModuleMap:(0,q.createServerModuleMap)({serverActionsManifest:X})});let aD=a.method||"GET",aE=(0,g.getTracer)(),aF=aE.getActiveScopeSpan();try{let f=K.getVaryHeader(aa,ae);b.setHeader("Vary",f);let k=async(c,d)=>{let e=new l.NodeNextRequest(a),f=new l.NodeNextResponse(b);return K.render(e,f,d).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=aE.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==i.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${aD} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${aD} ${a.url}`)})},m=async({span:e,postponed:f,fallbackRouteParams:g})=>{let i={query:Q,params:R,page:ag,sharedContext:{buildId:P},serverComponentsHmrCache:(0,h.getRequestMeta)(a,"serverComponentsHmrCache"),fallbackRouteParams:g,renderOpts:{App:()=>null,Document:()=>null,pageConfig:{},ComponentMod:aC,Component:(0,j.T)(aC),params:R,routeModule:K,page:G,postponed:f,shouldWaitOnAllReady:az,serveStreamingMetadata:ax,supportsDynamicResponse:"string"==typeof f||ay,buildManifest:U,nextFontManifest:V,reactLoadableManifest:W,subresourceIntegrityManifest:Z,serverActionsManifest:X,clientReferenceManifest:Y,setIsrStatus:null==ac?void 0:ac.setIsrStatus,dir:c(33873).join(process.cwd(),K.relativeProjectDir),isDraftMode:_,isRevalidate:ak&&!f&&!av,botType:am,isOnDemandRevalidate:ah,isPossibleServerAction:aq,assetPrefix:ad.assetPrefix,nextConfigOutput:ad.output,crossOrigin:ad.crossOrigin,trailingSlash:ad.trailingSlash,previewProps:$.preview,deploymentId:ad.deploymentId,enableTainting:ad.experimental.taint,htmlLimitedBots:ad.htmlLimitedBots,devtoolSegmentExplorer:ad.experimental.devtoolSegmentExplorer,reactMaxHeadersLength:ad.reactMaxHeadersLength,multiZoneDraftMode:!1,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:ad.experimental.cacheLife,basePath:ad.basePath,serverActions:ad.experimental.serverActions,...as?{nextExport:!0,supportsDynamicResponse:!1,isStaticGeneration:!0,isRevalidate:!0,isDebugDynamicAccesses:as}:{},experimental:{isRoutePPREnabled:ar,expireTime:ad.expireTime,staleTimes:ad.experimental.staleTimes,cacheComponents:!!ad.experimental.cacheComponents,clientSegmentCache:!!ad.experimental.clientSegmentCache,clientParamParsing:!!ad.experimental.clientParamParsing,dynamicOnHover:!!ad.experimental.dynamicOnHover,inlineCss:!!ad.experimental.inlineCss,authInterrupts:!!ad.experimental.authInterrupts,clientTraceMetadata:ad.experimental.clientTraceMetadata||[]},waitUntil:d.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:()=>{},onInstrumentationRequestError:(b,c,d)=>K.onRequestError(a,b,d,ac),err:(0,h.getRequestMeta)(a,"invokeError"),dev:K.isDev}},l=await k(e,i),{metadata:m}=l,{cacheControl:n,headers:o={},fetchTags:p}=m;if(p&&(o[y.NEXT_CACHE_TAGS_HEADER]=p),a.fetchMetrics=m.fetchMetrics,ak&&(null==n?void 0:n.revalidate)===0&&!K.isDev&&!ar){let a=m.staticBailoutInfo,b=Object.defineProperty(Error(`Page changed from static to dynamic at runtime ${aa}${(null==a?void 0:a.description)?`, reason: ${a.description}`:""} -see more here https://nextjs.org/docs/messages/app-static-to-dynamic-error`),"__NEXT_ERROR_CODE",{value:"E132",enumerable:!1,configurable:!0});if(null==a?void 0:a.stack){let c=a.stack;b.stack=b.message+c.substring(c.indexOf("\n"))}throw b}return{value:{kind:v.CachedRouteKind.APP_PAGE,html:l,headers:o,rscData:m.flightData,postponed:m.postponed,status:m.statusCode,segmentData:m.segmentData},cacheControl:n}},o=async({hasResolved:c,previousCacheEntry:f,isRevalidating:g,span:i})=>{let j,k=!1===K.isDev,l=c||b.writableEnded;if(ah&&ab&&!f&&!N)return(null==ac?void 0:ac.render404)?await ac.render404(a,b):(b.statusCode=404,b.end("This page could not be found")),null;if(ai&&(j=(0,w.parseFallbackField)(ai.fallback)),j===w.FallbackMode.PRERENDER&&(0,u.isBot)(al)&&(!ar||an)&&(j=w.FallbackMode.BLOCKING_STATIC_RENDER),(null==f?void 0:f.isStale)===-1&&(ah=!0),ah&&(j!==w.FallbackMode.NOT_FOUND||f)&&(j=w.FallbackMode.BLOCKING_STATIC_RENDER),!N&&j!==w.FallbackMode.BLOCKING_STATIC_RENDER&&aB&&!l&&!_&&T&&(k||!aj)){let b;if((k||ai)&&j===w.FallbackMode.NOT_FOUND)throw new B.NoFallbackError;if(ar&&!ap){let c="string"==typeof(null==ai?void 0:ai.fallback)?ai.fallback:k?ag:null;if(b=await K.handleResponse({cacheKey:c,req:a,nextConfig:ad,routeKind:e.RouteKind.APP_PAGE,isFallback:!0,prerenderManifest:$,isRoutePPREnabled:ar,responseGenerator:async()=>m({span:i,postponed:void 0,fallbackRouteParams:k||at?(0,n.u)(ag):null}),waitUntil:d.waitUntil}),null===b)return null;if(b)return delete b.cacheControl,b}}let o=ah||g||!au?void 0:au;if(as&&void 0!==o)return{cacheControl:{revalidate:1,expire:void 0},value:{kind:v.CachedRouteKind.PAGES,html:x.default.EMPTY,pageData:{},headers:void 0,status:void 0}};let p=T&&ar&&((0,h.getRequestMeta)(a,"renderFallbackShell")||at)?(0,n.u)(af):null;return m({span:i,postponed:o,fallbackRouteParams:p})},p=async c=>{var f,g,i,j,k;let l,n=await K.handleResponse({cacheKey:aA,responseGenerator:a=>o({span:c,...a}),routeKind:e.RouteKind.APP_PAGE,isOnDemandRevalidate:ah,isRoutePPREnabled:ar,req:a,nextConfig:ad,prerenderManifest:$,waitUntil:d.waitUntil});if(_&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate"),K.isDev&&b.setHeader("Cache-Control","no-store, must-revalidate"),!n){if(aA)throw Object.defineProperty(Error("invariant: cache entry required but not generated"),"__NEXT_ERROR_CODE",{value:"E62",enumerable:!1,configurable:!0});return null}if((null==(f=n.value)?void 0:f.kind)!==v.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant app-page handler received invalid cache entry ${null==(i=n.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E707",enumerable:!1,configurable:!0});let p="string"==typeof n.value.postponed;ak&&!av&&(!p||ao)&&(N||b.setHeader("x-nextjs-cache",ah?"REVALIDATED":n.isMiss?"MISS":n.isStale?"STALE":"HIT"),b.setHeader(t.NEXT_IS_PRERENDER_HEADER,"1"));let{value:q}=n;if(au)l={revalidate:0,expire:void 0};else if(N&&ap&&!ao&&ar)l={revalidate:0,expire:void 0};else if(!K.isDev)if(_)l={revalidate:0,expire:void 0};else if(ak){if(n.cacheControl)if("number"==typeof n.cacheControl.revalidate){if(n.cacheControl.revalidate<1)throw Object.defineProperty(Error(`Invalid revalidate configuration provided: ${n.cacheControl.revalidate} < 1`),"__NEXT_ERROR_CODE",{value:"E22",enumerable:!1,configurable:!0});l={revalidate:n.cacheControl.revalidate,expire:(null==(j=n.cacheControl)?void 0:j.expire)??ad.expireTime}}else l={revalidate:y.CACHE_ONE_YEAR,expire:void 0}}else b.getHeader("Cache-Control")||(l={revalidate:0,expire:void 0});if(n.cacheControl=l,"string"==typeof aw&&(null==q?void 0:q.kind)===v.CachedRouteKind.APP_PAGE&&q.segmentData){b.setHeader(t.NEXT_DID_POSTPONE_HEADER,"2");let c=null==(k=q.headers)?void 0:k[y.NEXT_CACHE_TAGS_HEADER];N&&ak&&c&&"string"==typeof c&&b.setHeader(y.NEXT_CACHE_TAGS_HEADER,c);let d=q.segmentData.get(aw);return void 0!==d?(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.fromStatic(d,t.RSC_CONTENT_TYPE_HEADER),cacheControl:n.cacheControl}):(b.statusCode=204,(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.EMPTY,cacheControl:n.cacheControl}))}let r=(0,h.getRequestMeta)(a,"onCacheEntry");if(r&&await r({...n,value:{...n.value,kind:"PAGE"}},{url:(0,h.getRequestMeta)(a,"initURL")}))return null;if(p&&au)throw Object.defineProperty(Error("Invariant: postponed state should not be present on a resume request"),"__NEXT_ERROR_CODE",{value:"E396",enumerable:!1,configurable:!0});if(q.headers){let a={...q.headers};for(let[c,d]of(N&&ak||delete a[y.NEXT_CACHE_TAGS_HEADER],Object.entries(a)))if(void 0!==d)if(Array.isArray(d))for(let a of d)b.appendHeader(c,a);else"number"==typeof d&&(d=d.toString()),b.appendHeader(c,d)}let s=null==(g=q.headers)?void 0:g[y.NEXT_CACHE_TAGS_HEADER];if(N&&ak&&s&&"string"==typeof s&&b.setHeader(y.NEXT_CACHE_TAGS_HEADER,s),!q.status||ap&&ar||(b.statusCode=q.status),!N&&q.status&&F.RedirectStatusCode[q.status]&&ap&&(b.statusCode=200),p&&b.setHeader(t.NEXT_DID_POSTPONE_HEADER,"1"),ap&&!_){if(void 0===q.rscData){if(q.postponed)throw Object.defineProperty(Error("Invariant: Expected postponed to be undefined"),"__NEXT_ERROR_CODE",{value:"E372",enumerable:!1,configurable:!0});return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:q.html,cacheControl:av?{revalidate:0,expire:void 0}:n.cacheControl})}return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.fromStatic(q.rscData,t.RSC_CONTENT_TYPE_HEADER),cacheControl:n.cacheControl})}let u=q.html;if(!p||N||ap)return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:n.cacheControl});if(as)return u.push(new ReadableStream({start(a){a.enqueue(z.ENCODED_TAGS.CLOSED.BODY_AND_HTML),a.close()}})),(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:{revalidate:0,expire:void 0}});let w=new TransformStream;return u.push(w.readable),m({span:c,postponed:q.postponed,fallbackRouteParams:null}).then(async a=>{var b,c;if(!a)throw Object.defineProperty(Error("Invariant: expected a result to be returned"),"__NEXT_ERROR_CODE",{value:"E463",enumerable:!1,configurable:!0});if((null==(b=a.value)?void 0:b.kind)!==v.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant: expected a page response, got ${null==(c=a.value)?void 0:c.kind}`),"__NEXT_ERROR_CODE",{value:"E305",enumerable:!1,configurable:!0});await a.value.html.pipeTo(w.writable)}).catch(a=>{w.writable.abort(a).catch(a=>{console.error("couldn't abort transformer",a)})}),(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:{revalidate:0,expire:void 0}})};if(!aF)return await aE.withPropagatedContext(a.headers,()=>aE.trace(i.BaseServerSpan.handleRequest,{spanName:`${aD} ${a.url}`,kind:g.SpanKind.SERVER,attributes:{"http.method":aD,"http.target":a.url}},p));await p(aF)}catch(b){throw b instanceof B.NoFallbackError||await K.onRequestError(a,b,{routerKind:"App Router",routePath:G,routeType:"render",revalidateReason:(0,f.c)({isRevalidate:ak,isOnDemandRevalidate:ah})},ac),b}}},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},26713:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/is-bot")},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31152:(a,b,c)=>{"use strict";c.d(b,{PageWrapper:()=>o});var d=c(21124),e=c(38301),f=c(42378),g=c(11610),h=c(69188),i=c(83374),j=c(95919),k=c(14258),l=c(45914);let m={dashboard:"/admin",projects:"/admin/projects",templates:"/admin/templates",skills:"/admin/skills",sites:"/admin/sites",docs:"/admin/docs",settings:"/admin/settings"};function n({view:a,settingsTab:b}){let c=(0,f.useRouter)(),[j,n]=(0,e.useState)(null),[o,p]=(0,e.useState)(!1),q=(0,e.useCallback)(a=>{let b=m[a]||`/admin/${a}`;c.push(b)},[c]),r=j?(0,d.jsx)(i.a,{project:j,onBack:()=>n(null)}):(0,d.jsx)(h.f,{view:a,onProjectSelect:n,settingsTab:b,onNavigate:q});return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(g.M,{currentView:a,onNavigate:q,onProjectSelect:n,onOpenAbout:()=>p(!0),showSidebar:!j,children:r}),(0,d.jsx)(k.V,{location:"global"}),(0,d.jsx)(l.V,{open:o,onOpenChange:p})]})}function o({view:a,settingsTab:b}){return(0,d.jsx)(j.g,{children:(0,d.jsx)(n,{view:a,settingsTab:b})})}},33873:a=>{"use strict";a.exports=require("path")},36167:(a,b,c)=>{Promise.resolve().then(c.bind(c,2054))},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},55511:a=>{"use strict";a.exports=require("crypto")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},66431:(a,b,c)=>{Promise.resolve().then(c.bind(c,31152))},73136:a=>{"use strict";a.exports=require("node:url")},76760:a=>{"use strict";a.exports=require("node:path")},77725:a=>{"use strict";a.exports=require("stream/promises")},79428:a=>{"use strict";a.exports=require("buffer")},79551:a=>{"use strict";a.exports=require("url")},79748:a=>{"use strict";a.exports=require("fs/promises")},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{"use strict";a.exports=require("better-sqlite3")},94735:a=>{"use strict";a.exports=require("events")}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,495,4606,570,7894,8476],()=>b(b.s=17574));module.exports=c})(); \ No newline at end of file +see more here https://nextjs.org/docs/messages/app-static-to-dynamic-error`),"__NEXT_ERROR_CODE",{value:"E132",enumerable:!1,configurable:!0});if(null==a?void 0:a.stack){let c=a.stack;b.stack=b.message+c.substring(c.indexOf("\n"))}throw b}return{value:{kind:v.CachedRouteKind.APP_PAGE,html:l,headers:o,rscData:m.flightData,postponed:m.postponed,status:m.statusCode,segmentData:m.segmentData},cacheControl:n}},o=async({hasResolved:c,previousCacheEntry:f,isRevalidating:g,span:i})=>{let j,k=!1===K.isDev,l=c||b.writableEnded;if(ah&&ab&&!f&&!N)return(null==ac?void 0:ac.render404)?await ac.render404(a,b):(b.statusCode=404,b.end("This page could not be found")),null;if(ai&&(j=(0,w.parseFallbackField)(ai.fallback)),j===w.FallbackMode.PRERENDER&&(0,u.isBot)(al)&&(!ar||an)&&(j=w.FallbackMode.BLOCKING_STATIC_RENDER),(null==f?void 0:f.isStale)===-1&&(ah=!0),ah&&(j!==w.FallbackMode.NOT_FOUND||f)&&(j=w.FallbackMode.BLOCKING_STATIC_RENDER),!N&&j!==w.FallbackMode.BLOCKING_STATIC_RENDER&&aB&&!l&&!_&&T&&(k||!aj)){let b;if((k||ai)&&j===w.FallbackMode.NOT_FOUND)throw new B.NoFallbackError;if(ar&&!ap){let c="string"==typeof(null==ai?void 0:ai.fallback)?ai.fallback:k?ag:null;if(b=await K.handleResponse({cacheKey:c,req:a,nextConfig:ad,routeKind:e.RouteKind.APP_PAGE,isFallback:!0,prerenderManifest:$,isRoutePPREnabled:ar,responseGenerator:async()=>m({span:i,postponed:void 0,fallbackRouteParams:k||at?(0,n.u)(ag):null}),waitUntil:d.waitUntil}),null===b)return null;if(b)return delete b.cacheControl,b}}let o=ah||g||!au?void 0:au;if(as&&void 0!==o)return{cacheControl:{revalidate:1,expire:void 0},value:{kind:v.CachedRouteKind.PAGES,html:x.default.EMPTY,pageData:{},headers:void 0,status:void 0}};let p=T&&ar&&((0,h.getRequestMeta)(a,"renderFallbackShell")||at)?(0,n.u)(af):null;return m({span:i,postponed:o,fallbackRouteParams:p})},p=async c=>{var f,g,i,j,k;let l,n=await K.handleResponse({cacheKey:aA,responseGenerator:a=>o({span:c,...a}),routeKind:e.RouteKind.APP_PAGE,isOnDemandRevalidate:ah,isRoutePPREnabled:ar,req:a,nextConfig:ad,prerenderManifest:$,waitUntil:d.waitUntil});if(_&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate"),K.isDev&&b.setHeader("Cache-Control","no-store, must-revalidate"),!n){if(aA)throw Object.defineProperty(Error("invariant: cache entry required but not generated"),"__NEXT_ERROR_CODE",{value:"E62",enumerable:!1,configurable:!0});return null}if((null==(f=n.value)?void 0:f.kind)!==v.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant app-page handler received invalid cache entry ${null==(i=n.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E707",enumerable:!1,configurable:!0});let p="string"==typeof n.value.postponed;ak&&!av&&(!p||ao)&&(N||b.setHeader("x-nextjs-cache",ah?"REVALIDATED":n.isMiss?"MISS":n.isStale?"STALE":"HIT"),b.setHeader(t.NEXT_IS_PRERENDER_HEADER,"1"));let{value:q}=n;if(au)l={revalidate:0,expire:void 0};else if(N&&ap&&!ao&&ar)l={revalidate:0,expire:void 0};else if(!K.isDev)if(_)l={revalidate:0,expire:void 0};else if(ak){if(n.cacheControl)if("number"==typeof n.cacheControl.revalidate){if(n.cacheControl.revalidate<1)throw Object.defineProperty(Error(`Invalid revalidate configuration provided: ${n.cacheControl.revalidate} < 1`),"__NEXT_ERROR_CODE",{value:"E22",enumerable:!1,configurable:!0});l={revalidate:n.cacheControl.revalidate,expire:(null==(j=n.cacheControl)?void 0:j.expire)??ad.expireTime}}else l={revalidate:y.CACHE_ONE_YEAR,expire:void 0}}else b.getHeader("Cache-Control")||(l={revalidate:0,expire:void 0});if(n.cacheControl=l,"string"==typeof aw&&(null==q?void 0:q.kind)===v.CachedRouteKind.APP_PAGE&&q.segmentData){b.setHeader(t.NEXT_DID_POSTPONE_HEADER,"2");let c=null==(k=q.headers)?void 0:k[y.NEXT_CACHE_TAGS_HEADER];N&&ak&&c&&"string"==typeof c&&b.setHeader(y.NEXT_CACHE_TAGS_HEADER,c);let d=q.segmentData.get(aw);return void 0!==d?(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.fromStatic(d,t.RSC_CONTENT_TYPE_HEADER),cacheControl:n.cacheControl}):(b.statusCode=204,(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.EMPTY,cacheControl:n.cacheControl}))}let r=(0,h.getRequestMeta)(a,"onCacheEntry");if(r&&await r({...n,value:{...n.value,kind:"PAGE"}},{url:(0,h.getRequestMeta)(a,"initURL")}))return null;if(p&&au)throw Object.defineProperty(Error("Invariant: postponed state should not be present on a resume request"),"__NEXT_ERROR_CODE",{value:"E396",enumerable:!1,configurable:!0});if(q.headers){let a={...q.headers};for(let[c,d]of(N&&ak||delete a[y.NEXT_CACHE_TAGS_HEADER],Object.entries(a)))if(void 0!==d)if(Array.isArray(d))for(let a of d)b.appendHeader(c,a);else"number"==typeof d&&(d=d.toString()),b.appendHeader(c,d)}let s=null==(g=q.headers)?void 0:g[y.NEXT_CACHE_TAGS_HEADER];if(N&&ak&&s&&"string"==typeof s&&b.setHeader(y.NEXT_CACHE_TAGS_HEADER,s),!q.status||ap&&ar||(b.statusCode=q.status),!N&&q.status&&F.RedirectStatusCode[q.status]&&ap&&(b.statusCode=200),p&&b.setHeader(t.NEXT_DID_POSTPONE_HEADER,"1"),ap&&!_){if(void 0===q.rscData){if(q.postponed)throw Object.defineProperty(Error("Invariant: Expected postponed to be undefined"),"__NEXT_ERROR_CODE",{value:"E372",enumerable:!1,configurable:!0});return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:q.html,cacheControl:av?{revalidate:0,expire:void 0}:n.cacheControl})}return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.fromStatic(q.rscData,t.RSC_CONTENT_TYPE_HEADER),cacheControl:n.cacheControl})}let u=q.html;if(!p||N||ap)return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:n.cacheControl});if(as)return u.push(new ReadableStream({start(a){a.enqueue(z.ENCODED_TAGS.CLOSED.BODY_AND_HTML),a.close()}})),(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:{revalidate:0,expire:void 0}});let w=new TransformStream;return u.push(w.readable),m({span:c,postponed:q.postponed,fallbackRouteParams:null}).then(async a=>{var b,c;if(!a)throw Object.defineProperty(Error("Invariant: expected a result to be returned"),"__NEXT_ERROR_CODE",{value:"E463",enumerable:!1,configurable:!0});if((null==(b=a.value)?void 0:b.kind)!==v.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant: expected a page response, got ${null==(c=a.value)?void 0:c.kind}`),"__NEXT_ERROR_CODE",{value:"E305",enumerable:!1,configurable:!0});await a.value.html.pipeTo(w.writable)}).catch(a=>{w.writable.abort(a).catch(a=>{console.error("couldn't abort transformer",a)})}),(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:{revalidate:0,expire:void 0}})};if(!aF)return await aE.withPropagatedContext(a.headers,()=>aE.trace(i.BaseServerSpan.handleRequest,{spanName:`${aD} ${a.url}`,kind:g.SpanKind.SERVER,attributes:{"http.method":aD,"http.target":a.url}},p));await p(aF)}catch(b){throw b instanceof B.NoFallbackError||await K.onRequestError(a,b,{routerKind:"App Router",routePath:G,routeType:"render",revalidateReason:(0,f.c)({isRevalidate:ak,isOnDemandRevalidate:ah})},ac),b}}},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},26713:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/is-bot")},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31152:(a,b,c)=>{"use strict";c.d(b,{PageWrapper:()=>o});var d=c(21124),e=c(38301),f=c(42378),g=c(11610),h=c(83330),i=c(44215),j=c(95919),k=c(14258),l=c(45914);let m={dashboard:"/admin",projects:"/admin/projects",templates:"/admin/templates",skills:"/admin/skills",deployments:"/admin/deployments",docs:"/admin/docs",settings:"/admin/settings"};function n({view:a,settingsTab:b}){let c=(0,f.useRouter)(),[j,n]=(0,e.useState)(null),[o,p]=(0,e.useState)(!1),q=(0,e.useCallback)(a=>{let b=m[a]||`/admin/${a}`;c.push(b)},[c]),r=j?(0,d.jsx)(i.a,{project:j,onBack:()=>n(null)}):(0,d.jsx)(h.f,{view:a,onProjectSelect:n,settingsTab:b,onNavigate:q});return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(g.M,{currentView:a,onNavigate:q,onProjectSelect:n,onOpenAbout:()=>p(!0),showSidebar:!j,children:r}),(0,d.jsx)(k.V,{location:"global"}),(0,d.jsx)(l.V,{open:o,onOpenChange:p})]})}function o({view:a,settingsTab:b}){return(0,d.jsx)(j.g,{children:(0,d.jsx)(n,{view:a,settingsTab:b})})}},33873:a=>{"use strict";a.exports=require("path")},36167:(a,b,c)=>{Promise.resolve().then(c.bind(c,2054))},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},55511:a=>{"use strict";a.exports=require("crypto")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},66431:(a,b,c)=>{Promise.resolve().then(c.bind(c,31152))},73136:a=>{"use strict";a.exports=require("node:url")},76760:a=>{"use strict";a.exports=require("node:path")},77725:a=>{"use strict";a.exports=require("stream/promises")},79428:a=>{"use strict";a.exports=require("buffer")},79551:a=>{"use strict";a.exports=require("url")},79748:a=>{"use strict";a.exports=require("fs/promises")},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{"use strict";a.exports=require("better-sqlite3")},94735:a=>{"use strict";a.exports=require("events")}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,495,4606,1732,7894,9815],()=>b(b.s=17574));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/admin/docs/page.js.nft.json b/.next/server/app/admin/docs/page.js.nft.json index 6a38478bf798b1cdfb1fe6abb1f5e942cbee7836..bbed00b703325e5be0c4a873935dbe99e26351a8 100644 --- a/.next/server/app/admin/docs/page.js.nft.json +++ b/.next/server/app/admin/docs/page.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../node_modules/better-sqlite3/package.json","../../../../../node_modules/bindings/bindings.js","../../../../../node_modules/bindings/package.json","../../../../../node_modules/file-uri-to-path/index.js","../../../../../node_modules/file-uri-to-path/package.json","../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../node_modules/next/dist/lib/constants.js","../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../node_modules/next/dist/lib/is-error.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../node_modules/next/dist/shared/lib/router/utils/html-bots.js","../../../../../node_modules/next/dist/shared/lib/router/utils/is-bot.js","../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../node_modules/next/package.json","../../../../../package.json","../../../../package.json","../../../chunks/2671.js","../../../chunks/4078.js","../../../chunks/4277.js","../../../chunks/4586.js","../../../chunks/4606.js","../../../chunks/4681.js","../../../chunks/495.js","../../../chunks/570.js","../../../chunks/6085.js","../../../chunks/740.js","../../../chunks/7894.js","../../../chunks/8476.js","../../../chunks/9206.js","../../../chunks/9975.js","../../../webpack-runtime.js","page_client-reference-manifest.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../node_modules/better-sqlite3/package.json","../../../../../node_modules/bindings/bindings.js","../../../../../node_modules/bindings/package.json","../../../../../node_modules/file-uri-to-path/index.js","../../../../../node_modules/file-uri-to-path/package.json","../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../node_modules/next/dist/lib/constants.js","../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../node_modules/next/dist/lib/is-error.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../node_modules/next/dist/shared/lib/router/utils/html-bots.js","../../../../../node_modules/next/dist/shared/lib/router/utils/is-bot.js","../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../node_modules/next/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1732.js","../../../chunks/2671.js","../../../chunks/4078.js","../../../chunks/4141.js","../../../chunks/4277.js","../../../chunks/4586.js","../../../chunks/4606.js","../../../chunks/495.js","../../../chunks/6085.js","../../../chunks/740.js","../../../chunks/7894.js","../../../chunks/9050.js","../../../chunks/9206.js","../../../chunks/9815.js","../../../chunks/9975.js","../../../webpack-runtime.js","page_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/admin/docs/page_client-reference-manifest.js b/.next/server/app/admin/docs/page_client-reference-manifest.js index 2398f01b65219024898abc64a7468b2e1801d576..53137e7856ce50b2a85e198d8b9d4507973e6345 100644 --- a/.next/server/app/admin/docs/page_client-reference-manifest.js +++ b/.next/server/app/admin/docs/page_client-reference-manifest.js @@ -1 +1 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/admin/docs/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","4004","static/chunks/app/admin/docs/page-cd3396dba1a5acbf.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":["3698","static/chunks/app/admin/page-700ea05bb99f3aa7.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/docs/page":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/admin/docs/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","4004","static/chunks/app/admin/docs/page-93d978d4bcb74918.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":["3698","static/chunks/app/admin/page-700ea05bb99f3aa7.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/docs/page":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/admin/login.html b/.next/server/app/admin/login.html index fc0d80f22b85d632223655c29b0821818aaf667c..047ede1102a79e86a22e5c716ee3838637084dff 100644 --- a/.next/server/app/admin/login.html +++ b/.next/server/app/admin/login.html @@ -1 +1 @@ -Open Source Web Studio | Agentic AI Development 🎨

OSW Studio Admin

Enter your password to continue

Powered byOSW Studio
\ No newline at end of file +Open Source Web Studio | Agentic AI Development 🎨

OSW Studio Admin

Enter your password to continue

Powered byOSW Studio
\ No newline at end of file diff --git a/.next/server/app/admin/login.rsc b/.next/server/app/admin/login.rsc index 2f6bf33469b0320392446cfd1032b8612b0d9703..63a9770dfac6f73f091c8c63d2dece901f419ef9 100644 --- a/.next/server/app/admin/login.rsc +++ b/.next/server/app/admin/login.rsc @@ -15,8 +15,8 @@ f:I[24431,[],"ViewportBoundary"] :HL["/_next/static/media/58f662ed5ba12a72-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}] :HL["/_next/static/media/c3f6eb667c0186c5-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}] :HL["/_next/static/media/e4af272ccee01ff0-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}] -:HL["/_next/static/css/634e649c3cc2540f.css","style"] -0:{"P":null,"b":"Dj_mU3ym-gcopP6URA30w","p":"","c":["","admin","login"],"i":false,"f":[[["",{"children":["admin",{"children":["login",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/634e649c3cc2540f.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"__variable_f367f3 __variable_438d47 antialiased bg-background h-[100dvh] overflow-hidden","suppressHydrationWarning":true,"children":["$","$L2",null,{"children":[["$","$L3",null,{"richColors":true,"position":"bottom-center"}],["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]]}]}]}]]}],{"children":["admin",["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["login",["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L7",null,{"Component":"$8","searchParams":{},"params":{},"promises":["$@9","$@a"]}],null,["$","$Lb",null,{"children":["$Lc",["$","$Ld",null,{"promise":"$@e"}]]}]]}],{},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$Lf",null,{"children":"$L10"}],["$","meta",null,{"name":"next-size-adjust","content":""}]],["$","$L11",null,{"children":["$","div",null,{"hidden":true,"children":["$","$12",null,{"fallback":null,"children":"$L13"}]}]}]]}],false]],"m":"$undefined","G":["$14",[]],"s":false,"S":true} +:HL["/_next/static/css/7a4f097ac51b20a7.css","style"] +0:{"P":null,"b":"6U79IAVVts3v8bcNT6dWz","p":"","c":["","admin","login"],"i":false,"f":[[["",{"children":["admin",{"children":["login",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/7a4f097ac51b20a7.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"__variable_f367f3 __variable_438d47 antialiased bg-background h-[100dvh] overflow-hidden","suppressHydrationWarning":true,"children":["$","$L2",null,{"children":[["$","$L3",null,{"richColors":true,"position":"bottom-center"}],["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]]}]}]}]]}],{"children":["admin",["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["login",["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L7",null,{"Component":"$8","searchParams":{},"params":{},"promises":["$@9","$@a"]}],null,["$","$Lb",null,{"children":["$Lc",["$","$Ld",null,{"promise":"$@e"}]]}]]}],{},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$Lf",null,{"children":"$L10"}],["$","meta",null,{"name":"next-size-adjust","content":""}]],["$","$L11",null,{"children":["$","div",null,{"hidden":true,"children":["$","$12",null,{"fallback":null,"children":"$L13"}]}]}]]}],false]],"m":"$undefined","G":["$14",[]],"s":false,"S":true} 9:{} a:"$0:f:0:1:2:children:2:children:2:children:1:props:children:0:props:params" 10:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1, maximum-scale=1"}],["$","meta","2",{"name":"theme-color","content":"#000000"}]] diff --git a/.next/server/app/admin/login/page_client-reference-manifest.js b/.next/server/app/admin/login/page_client-reference-manifest.js index 46046afb65379b4333f9975e73a802cfc8d80de0..3d1d986224171bbbfc731a3cffb0242bdfd7d138 100644 --- a/.next/server/app/admin/login/page_client-reference-manifest.js +++ b/.next/server/app/admin/login/page_client-reference-manifest.js @@ -1 +1 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/admin/login/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":["3698","static/chunks/app/admin/page-700ea05bb99f3aa7.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":["2116","static/chunks/app/admin/login/page-5f069849d073f76f.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/admin/login/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":["2116","static/chunks/app/admin/login/page-5f069849d073f76f.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":["3698","static/chunks/app/admin/page-700ea05bb99f3aa7.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/admin/page_client-reference-manifest.js b/.next/server/app/admin/page_client-reference-manifest.js index 04f28efc70887fdc26fd8cc65308605700c44267..4c0d6ffcc6b101d57117c60ed5e5b7370dfdcc83 100644 --- a/.next/server/app/admin/page_client-reference-manifest.js +++ b/.next/server/app/admin/page_client-reference-manifest.js @@ -1 +1 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/admin/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":["3698","static/chunks/app/admin/page-700ea05bb99f3aa7.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/admin/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":["3698","static/chunks/app/admin/page-700ea05bb99f3aa7.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/admin/projects.html b/.next/server/app/admin/projects.html index f17a5eb8ae6a7191397776dc0f00a019cea991ee..fb2e021d51e850a179372ccc2bea26d00e79d6a8 100644 --- a/.next/server/app/admin/projects.html +++ b/.next/server/app/admin/projects.html @@ -1,4 +1,4 @@ -Open Source Web Studio | Agentic AI Development 🎨
+Open Source Web Studio | Agentic AI Development 🎨
-
Projects

Loading projects...

\ No newline at end of file +
Projects

Loading projects...

\ No newline at end of file diff --git a/.next/server/app/admin/projects.rsc b/.next/server/app/admin/projects.rsc index 0629461c0efbb26a1a832ae76e6ae1070114fd66..34a4ef7a7545100fe71fe3d31fc78c796c6625f7 100644 --- a/.next/server/app/admin/projects.rsc +++ b/.next/server/app/admin/projects.rsc @@ -4,7 +4,7 @@ 4:I[46131,["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"default"] 5:I[9766,[],""] 6:I[98924,[],""] -7:I[43688,["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","3321","static/chunks/app/admin/projects/page-cd3396dba1a5acbf.js"],"PageWrapper"] +7:I[43688,["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","3321","static/chunks/app/admin/projects/page-93d978d4bcb74918.js"],"PageWrapper"] 8:I[24431,[],"OutletBoundary"] a:I[15278,[],"AsyncMetadataOutlet"] c:I[24431,[],"ViewportBoundary"] @@ -14,8 +14,8 @@ f:"$Sreact.suspense" :HL["/_next/static/media/58f662ed5ba12a72-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}] :HL["/_next/static/media/c3f6eb667c0186c5-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}] :HL["/_next/static/media/e4af272ccee01ff0-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}] -:HL["/_next/static/css/634e649c3cc2540f.css","style"] -0:{"P":null,"b":"Dj_mU3ym-gcopP6URA30w","p":"","c":["","admin","projects"],"i":false,"f":[[["",{"children":["admin",{"children":["projects",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/634e649c3cc2540f.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"__variable_f367f3 __variable_438d47 antialiased bg-background h-[100dvh] overflow-hidden","suppressHydrationWarning":true,"children":["$","$L2",null,{"children":[["$","$L3",null,{"richColors":true,"position":"bottom-center"}],["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]]}]}]}]]}],{"children":["admin",["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["projects",["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L7",null,{"view":"projects"}],null,["$","$L8",null,{"children":["$L9",["$","$La",null,{"promise":"$@b"}]]}]]}],{},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$Lc",null,{"children":"$Ld"}],["$","meta",null,{"name":"next-size-adjust","content":""}]],["$","$Le",null,{"children":["$","div",null,{"hidden":true,"children":["$","$f",null,{"fallback":null,"children":"$L10"}]}]}]]}],false]],"m":"$undefined","G":["$11",[]],"s":false,"S":true} +:HL["/_next/static/css/7a4f097ac51b20a7.css","style"] +0:{"P":null,"b":"6U79IAVVts3v8bcNT6dWz","p":"","c":["","admin","projects"],"i":false,"f":[[["",{"children":["admin",{"children":["projects",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/7a4f097ac51b20a7.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"__variable_f367f3 __variable_438d47 antialiased bg-background h-[100dvh] overflow-hidden","suppressHydrationWarning":true,"children":["$","$L2",null,{"children":[["$","$L3",null,{"richColors":true,"position":"bottom-center"}],["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]]}]}]}]]}],{"children":["admin",["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["projects",["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L7",null,{"view":"projects"}],null,["$","$L8",null,{"children":["$L9",["$","$La",null,{"promise":"$@b"}]]}]]}],{},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$Lc",null,{"children":"$Ld"}],["$","meta",null,{"name":"next-size-adjust","content":""}]],["$","$Le",null,{"children":["$","div",null,{"hidden":true,"children":["$","$f",null,{"fallback":null,"children":"$L10"}]}]}]]}],false]],"m":"$undefined","G":["$11",[]],"s":false,"S":true} d:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1, maximum-scale=1"}],["$","meta","2",{"name":"theme-color","content":"#000000"}]] 9:null 12:I[80622,[],"IconMark"] diff --git a/.next/server/app/admin/projects/page.js b/.next/server/app/admin/projects/page.js index 23c68d13c6824b604752e9db8a12ada5841942b7..a1077f4b168e74946263af901e8f6fd0c1772007 100644 --- a/.next/server/app/admin/projects/page.js +++ b/.next/server/app/admin/projects/page.js @@ -1,2 +1,2 @@ -(()=>{var a={};a.id=3321,a.ids=[3321],a.modules={100:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>f});var d=c(75338),e=c(2054);function f(){return(0,d.jsx)(e.PageWrapper,{view:"projects"})}},261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1708:a=>{"use strict";a.exports=require("node:process")},2054:(a,b,c)=>{"use strict";c.d(b,{PageWrapper:()=>d});let d=(0,c(97954).registerClientReference)(function(){throw Error("Attempted to call PageWrapper() from the server but PageWrapper is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx","PageWrapper")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},26713:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/is-bot")},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31152:(a,b,c)=>{"use strict";c.d(b,{PageWrapper:()=>o});var d=c(21124),e=c(38301),f=c(42378),g=c(11610),h=c(69188),i=c(83374),j=c(95919),k=c(14258),l=c(45914);let m={dashboard:"/admin",projects:"/admin/projects",templates:"/admin/templates",skills:"/admin/skills",sites:"/admin/sites",docs:"/admin/docs",settings:"/admin/settings"};function n({view:a,settingsTab:b}){let c=(0,f.useRouter)(),[j,n]=(0,e.useState)(null),[o,p]=(0,e.useState)(!1),q=(0,e.useCallback)(a=>{let b=m[a]||`/admin/${a}`;c.push(b)},[c]),r=j?(0,d.jsx)(i.a,{project:j,onBack:()=>n(null)}):(0,d.jsx)(h.f,{view:a,onProjectSelect:n,settingsTab:b,onNavigate:q});return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(g.M,{currentView:a,onNavigate:q,onProjectSelect:n,onOpenAbout:()=>p(!0),showSidebar:!j,children:r}),(0,d.jsx)(k.V,{location:"global"}),(0,d.jsx)(l.V,{open:o,onOpenChange:p})]})}function o({view:a,settingsTab:b}){return(0,d.jsx)(j.g,{children:(0,d.jsx)(n,{view:a,settingsTab:b})})}},33873:a=>{"use strict";a.exports=require("path")},36167:(a,b,c)=>{Promise.resolve().then(c.bind(c,2054))},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},55511:a=>{"use strict";a.exports=require("crypto")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},66431:(a,b,c)=>{Promise.resolve().then(c.bind(c,31152))},72114:(a,b,c)=>{"use strict";c.r(b),c.d(b,{GlobalError:()=>D.a,__next_app__:()=>J,handler:()=>L,pages:()=>I,routeModule:()=>K,tree:()=>H});var d=c(49754),e=c(9117),f=c(46595),g=c(32324),h=c(39326),i=c(38928),j=c(20175),k=c(12),l=c(54290),m=c(12696),n=c(82802),o=c(77533),p=c(45229),q=c(32822),r=c(261),s=c(26453),t=c(52474),u=c(26713),v=c(51356),w=c(62685),x=c(36225),y=c(63446),z=c(2762),A=c(45742),B=c(86439),C=c(81170),D=c.n(C),E=c(62506),F=c(91203),G={};for(let a in E)0>["default","tree","pages","GlobalError","__next_app__","routeModule","handler"].indexOf(a)&&(G[a]=()=>E[a]);c.d(b,G);let H={children:["",{children:["admin",{children:["projects",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(c.bind(c,100)),"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/projects/page.tsx"]}]},{}]},{}]},{layout:[()=>Promise.resolve().then(c.bind(c,16953)),"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout.tsx"],"global-error":[()=>Promise.resolve().then(c.t.bind(c,81170,23)),"next/dist/client/components/builtin/global-error.js"],"not-found":[()=>Promise.resolve().then(c.t.bind(c,87028,23)),"next/dist/client/components/builtin/not-found.js"],forbidden:[()=>Promise.resolve().then(c.t.bind(c,90461,23)),"next/dist/client/components/builtin/forbidden.js"],unauthorized:[()=>Promise.resolve().then(c.t.bind(c,32768,23)),"next/dist/client/components/builtin/unauthorized.js"]}]}.children,I=["/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/projects/page.tsx"],J={require:c,loadChunk:()=>Promise.resolve()},K=new d.AppPageRouteModule({definition:{kind:e.RouteKind.APP_PAGE,page:"/admin/projects/page",pathname:"/admin/projects",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:H},distDir:".next",relativeProjectDir:""});async function L(a,b,d){var C;let G="/admin/projects/page";"/index"===G&&(G="/");let M=(0,h.getRequestMeta)(a,"postponed"),N=(0,h.getRequestMeta)(a,"minimalMode"),O=await K.prepare(a,b,{srcPage:G,multiZoneDraftMode:!1});if(!O)return b.statusCode=400,b.end("Bad Request"),null==d.waitUntil||d.waitUntil.call(d,Promise.resolve()),null;let{buildId:P,query:Q,params:R,parsedUrl:S,pageIsDynamic:T,buildManifest:U,nextFontManifest:V,reactLoadableManifest:W,serverActionsManifest:X,clientReferenceManifest:Y,subresourceIntegrityManifest:Z,prerenderManifest:$,isDraftMode:_,resolvedPathname:aa,revalidateOnlyGenerated:ab,routerServerContext:ac,nextConfig:ad,interceptionRoutePatterns:ae}=O,af=S.pathname||"/",ag=(0,r.normalizeAppPath)(G),{isOnDemandRevalidate:ah}=O,ai=K.match(af,$),aj=!!$.routes[aa],ak=!!(ai||aj||$.routes[ag]),al=a.headers["user-agent"]||"",am=(0,u.getBotType)(al),an=(0,p.isHtmlBotRequest)(a),ao=(0,h.getRequestMeta)(a,"isPrefetchRSCRequest")??"1"===a.headers[t.NEXT_ROUTER_PREFETCH_HEADER],ap=(0,h.getRequestMeta)(a,"isRSCRequest")??!!a.headers[t.RSC_HEADER],aq=(0,s.getIsPossibleServerAction)(a),ar=(0,m.checkIsAppPPREnabled)(ad.experimental.ppr)&&(null==(C=$.routes[ag]??$.dynamicRoutes[ag])?void 0:C.renderingMode)==="PARTIALLY_STATIC",as=!1,at=!1,au=ar?M:void 0,av=ar&&ap&&!ao,aw=(0,h.getRequestMeta)(a,"segmentPrefetchRSCRequest"),ax=!al||(0,p.shouldServeStreamingMetadata)(al,ad.htmlLimitedBots);an&&ar&&(ak=!1,ax=!1);let ay=!0===K.isDev||!ak||"string"==typeof M||av,az=an&&ar,aA=null;_||!ak||ay||aq||au||av||(aA=aa);let aB=aA;!aB&&K.isDev&&(aB=aa),K.isDev||_||!ak||!ap||av||(0,k.d)(a.headers);let aC={...E,tree:H,pages:I,GlobalError:D(),handler:L,routeModule:K,__next_app__:J};X&&Y&&(0,o.setReferenceManifestsSingleton)({page:G,clientReferenceManifest:Y,serverActionsManifest:X,serverModuleMap:(0,q.createServerModuleMap)({serverActionsManifest:X})});let aD=a.method||"GET",aE=(0,g.getTracer)(),aF=aE.getActiveScopeSpan();try{let f=K.getVaryHeader(aa,ae);b.setHeader("Vary",f);let k=async(c,d)=>{let e=new l.NodeNextRequest(a),f=new l.NodeNextResponse(b);return K.render(e,f,d).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=aE.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==i.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${aD} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${aD} ${a.url}`)})},m=async({span:e,postponed:f,fallbackRouteParams:g})=>{let i={query:Q,params:R,page:ag,sharedContext:{buildId:P},serverComponentsHmrCache:(0,h.getRequestMeta)(a,"serverComponentsHmrCache"),fallbackRouteParams:g,renderOpts:{App:()=>null,Document:()=>null,pageConfig:{},ComponentMod:aC,Component:(0,j.T)(aC),params:R,routeModule:K,page:G,postponed:f,shouldWaitOnAllReady:az,serveStreamingMetadata:ax,supportsDynamicResponse:"string"==typeof f||ay,buildManifest:U,nextFontManifest:V,reactLoadableManifest:W,subresourceIntegrityManifest:Z,serverActionsManifest:X,clientReferenceManifest:Y,setIsrStatus:null==ac?void 0:ac.setIsrStatus,dir:c(33873).join(process.cwd(),K.relativeProjectDir),isDraftMode:_,isRevalidate:ak&&!f&&!av,botType:am,isOnDemandRevalidate:ah,isPossibleServerAction:aq,assetPrefix:ad.assetPrefix,nextConfigOutput:ad.output,crossOrigin:ad.crossOrigin,trailingSlash:ad.trailingSlash,previewProps:$.preview,deploymentId:ad.deploymentId,enableTainting:ad.experimental.taint,htmlLimitedBots:ad.htmlLimitedBots,devtoolSegmentExplorer:ad.experimental.devtoolSegmentExplorer,reactMaxHeadersLength:ad.reactMaxHeadersLength,multiZoneDraftMode:!1,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:ad.experimental.cacheLife,basePath:ad.basePath,serverActions:ad.experimental.serverActions,...as?{nextExport:!0,supportsDynamicResponse:!1,isStaticGeneration:!0,isRevalidate:!0,isDebugDynamicAccesses:as}:{},experimental:{isRoutePPREnabled:ar,expireTime:ad.expireTime,staleTimes:ad.experimental.staleTimes,cacheComponents:!!ad.experimental.cacheComponents,clientSegmentCache:!!ad.experimental.clientSegmentCache,clientParamParsing:!!ad.experimental.clientParamParsing,dynamicOnHover:!!ad.experimental.dynamicOnHover,inlineCss:!!ad.experimental.inlineCss,authInterrupts:!!ad.experimental.authInterrupts,clientTraceMetadata:ad.experimental.clientTraceMetadata||[]},waitUntil:d.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:()=>{},onInstrumentationRequestError:(b,c,d)=>K.onRequestError(a,b,d,ac),err:(0,h.getRequestMeta)(a,"invokeError"),dev:K.isDev}},l=await k(e,i),{metadata:m}=l,{cacheControl:n,headers:o={},fetchTags:p}=m;if(p&&(o[y.NEXT_CACHE_TAGS_HEADER]=p),a.fetchMetrics=m.fetchMetrics,ak&&(null==n?void 0:n.revalidate)===0&&!K.isDev&&!ar){let a=m.staticBailoutInfo,b=Object.defineProperty(Error(`Page changed from static to dynamic at runtime ${aa}${(null==a?void 0:a.description)?`, reason: ${a.description}`:""} -see more here https://nextjs.org/docs/messages/app-static-to-dynamic-error`),"__NEXT_ERROR_CODE",{value:"E132",enumerable:!1,configurable:!0});if(null==a?void 0:a.stack){let c=a.stack;b.stack=b.message+c.substring(c.indexOf("\n"))}throw b}return{value:{kind:v.CachedRouteKind.APP_PAGE,html:l,headers:o,rscData:m.flightData,postponed:m.postponed,status:m.statusCode,segmentData:m.segmentData},cacheControl:n}},o=async({hasResolved:c,previousCacheEntry:f,isRevalidating:g,span:i})=>{let j,k=!1===K.isDev,l=c||b.writableEnded;if(ah&&ab&&!f&&!N)return(null==ac?void 0:ac.render404)?await ac.render404(a,b):(b.statusCode=404,b.end("This page could not be found")),null;if(ai&&(j=(0,w.parseFallbackField)(ai.fallback)),j===w.FallbackMode.PRERENDER&&(0,u.isBot)(al)&&(!ar||an)&&(j=w.FallbackMode.BLOCKING_STATIC_RENDER),(null==f?void 0:f.isStale)===-1&&(ah=!0),ah&&(j!==w.FallbackMode.NOT_FOUND||f)&&(j=w.FallbackMode.BLOCKING_STATIC_RENDER),!N&&j!==w.FallbackMode.BLOCKING_STATIC_RENDER&&aB&&!l&&!_&&T&&(k||!aj)){let b;if((k||ai)&&j===w.FallbackMode.NOT_FOUND)throw new B.NoFallbackError;if(ar&&!ap){let c="string"==typeof(null==ai?void 0:ai.fallback)?ai.fallback:k?ag:null;if(b=await K.handleResponse({cacheKey:c,req:a,nextConfig:ad,routeKind:e.RouteKind.APP_PAGE,isFallback:!0,prerenderManifest:$,isRoutePPREnabled:ar,responseGenerator:async()=>m({span:i,postponed:void 0,fallbackRouteParams:k||at?(0,n.u)(ag):null}),waitUntil:d.waitUntil}),null===b)return null;if(b)return delete b.cacheControl,b}}let o=ah||g||!au?void 0:au;if(as&&void 0!==o)return{cacheControl:{revalidate:1,expire:void 0},value:{kind:v.CachedRouteKind.PAGES,html:x.default.EMPTY,pageData:{},headers:void 0,status:void 0}};let p=T&&ar&&((0,h.getRequestMeta)(a,"renderFallbackShell")||at)?(0,n.u)(af):null;return m({span:i,postponed:o,fallbackRouteParams:p})},p=async c=>{var f,g,i,j,k;let l,n=await K.handleResponse({cacheKey:aA,responseGenerator:a=>o({span:c,...a}),routeKind:e.RouteKind.APP_PAGE,isOnDemandRevalidate:ah,isRoutePPREnabled:ar,req:a,nextConfig:ad,prerenderManifest:$,waitUntil:d.waitUntil});if(_&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate"),K.isDev&&b.setHeader("Cache-Control","no-store, must-revalidate"),!n){if(aA)throw Object.defineProperty(Error("invariant: cache entry required but not generated"),"__NEXT_ERROR_CODE",{value:"E62",enumerable:!1,configurable:!0});return null}if((null==(f=n.value)?void 0:f.kind)!==v.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant app-page handler received invalid cache entry ${null==(i=n.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E707",enumerable:!1,configurable:!0});let p="string"==typeof n.value.postponed;ak&&!av&&(!p||ao)&&(N||b.setHeader("x-nextjs-cache",ah?"REVALIDATED":n.isMiss?"MISS":n.isStale?"STALE":"HIT"),b.setHeader(t.NEXT_IS_PRERENDER_HEADER,"1"));let{value:q}=n;if(au)l={revalidate:0,expire:void 0};else if(N&&ap&&!ao&&ar)l={revalidate:0,expire:void 0};else if(!K.isDev)if(_)l={revalidate:0,expire:void 0};else if(ak){if(n.cacheControl)if("number"==typeof n.cacheControl.revalidate){if(n.cacheControl.revalidate<1)throw Object.defineProperty(Error(`Invalid revalidate configuration provided: ${n.cacheControl.revalidate} < 1`),"__NEXT_ERROR_CODE",{value:"E22",enumerable:!1,configurable:!0});l={revalidate:n.cacheControl.revalidate,expire:(null==(j=n.cacheControl)?void 0:j.expire)??ad.expireTime}}else l={revalidate:y.CACHE_ONE_YEAR,expire:void 0}}else b.getHeader("Cache-Control")||(l={revalidate:0,expire:void 0});if(n.cacheControl=l,"string"==typeof aw&&(null==q?void 0:q.kind)===v.CachedRouteKind.APP_PAGE&&q.segmentData){b.setHeader(t.NEXT_DID_POSTPONE_HEADER,"2");let c=null==(k=q.headers)?void 0:k[y.NEXT_CACHE_TAGS_HEADER];N&&ak&&c&&"string"==typeof c&&b.setHeader(y.NEXT_CACHE_TAGS_HEADER,c);let d=q.segmentData.get(aw);return void 0!==d?(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.fromStatic(d,t.RSC_CONTENT_TYPE_HEADER),cacheControl:n.cacheControl}):(b.statusCode=204,(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.EMPTY,cacheControl:n.cacheControl}))}let r=(0,h.getRequestMeta)(a,"onCacheEntry");if(r&&await r({...n,value:{...n.value,kind:"PAGE"}},{url:(0,h.getRequestMeta)(a,"initURL")}))return null;if(p&&au)throw Object.defineProperty(Error("Invariant: postponed state should not be present on a resume request"),"__NEXT_ERROR_CODE",{value:"E396",enumerable:!1,configurable:!0});if(q.headers){let a={...q.headers};for(let[c,d]of(N&&ak||delete a[y.NEXT_CACHE_TAGS_HEADER],Object.entries(a)))if(void 0!==d)if(Array.isArray(d))for(let a of d)b.appendHeader(c,a);else"number"==typeof d&&(d=d.toString()),b.appendHeader(c,d)}let s=null==(g=q.headers)?void 0:g[y.NEXT_CACHE_TAGS_HEADER];if(N&&ak&&s&&"string"==typeof s&&b.setHeader(y.NEXT_CACHE_TAGS_HEADER,s),!q.status||ap&&ar||(b.statusCode=q.status),!N&&q.status&&F.RedirectStatusCode[q.status]&&ap&&(b.statusCode=200),p&&b.setHeader(t.NEXT_DID_POSTPONE_HEADER,"1"),ap&&!_){if(void 0===q.rscData){if(q.postponed)throw Object.defineProperty(Error("Invariant: Expected postponed to be undefined"),"__NEXT_ERROR_CODE",{value:"E372",enumerable:!1,configurable:!0});return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:q.html,cacheControl:av?{revalidate:0,expire:void 0}:n.cacheControl})}return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.fromStatic(q.rscData,t.RSC_CONTENT_TYPE_HEADER),cacheControl:n.cacheControl})}let u=q.html;if(!p||N||ap)return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:n.cacheControl});if(as)return u.push(new ReadableStream({start(a){a.enqueue(z.ENCODED_TAGS.CLOSED.BODY_AND_HTML),a.close()}})),(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:{revalidate:0,expire:void 0}});let w=new TransformStream;return u.push(w.readable),m({span:c,postponed:q.postponed,fallbackRouteParams:null}).then(async a=>{var b,c;if(!a)throw Object.defineProperty(Error("Invariant: expected a result to be returned"),"__NEXT_ERROR_CODE",{value:"E463",enumerable:!1,configurable:!0});if((null==(b=a.value)?void 0:b.kind)!==v.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant: expected a page response, got ${null==(c=a.value)?void 0:c.kind}`),"__NEXT_ERROR_CODE",{value:"E305",enumerable:!1,configurable:!0});await a.value.html.pipeTo(w.writable)}).catch(a=>{w.writable.abort(a).catch(a=>{console.error("couldn't abort transformer",a)})}),(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:{revalidate:0,expire:void 0}})};if(!aF)return await aE.withPropagatedContext(a.headers,()=>aE.trace(i.BaseServerSpan.handleRequest,{spanName:`${aD} ${a.url}`,kind:g.SpanKind.SERVER,attributes:{"http.method":aD,"http.target":a.url}},p));await p(aF)}catch(b){throw b instanceof B.NoFallbackError||await K.onRequestError(a,b,{routerKind:"App Router",routePath:G,routeType:"render",revalidateReason:(0,f.c)({isRevalidate:ak,isOnDemandRevalidate:ah})},ac),b}}},73136:a=>{"use strict";a.exports=require("node:url")},76760:a=>{"use strict";a.exports=require("node:path")},77725:a=>{"use strict";a.exports=require("stream/promises")},79428:a=>{"use strict";a.exports=require("buffer")},79551:a=>{"use strict";a.exports=require("url")},79748:a=>{"use strict";a.exports=require("fs/promises")},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{"use strict";a.exports=require("better-sqlite3")},94735:a=>{"use strict";a.exports=require("events")}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,495,4606,570,7894,8476],()=>b(b.s=72114));module.exports=c})(); \ No newline at end of file +(()=>{var a={};a.id=3321,a.ids=[3321],a.modules={100:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>f});var d=c(75338),e=c(2054);function f(){return(0,d.jsx)(e.PageWrapper,{view:"projects"})}},261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1708:a=>{"use strict";a.exports=require("node:process")},2054:(a,b,c)=>{"use strict";c.d(b,{PageWrapper:()=>d});let d=(0,c(97954).registerClientReference)(function(){throw Error("Attempted to call PageWrapper() from the server but PageWrapper is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx","PageWrapper")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},26713:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/is-bot")},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31152:(a,b,c)=>{"use strict";c.d(b,{PageWrapper:()=>o});var d=c(21124),e=c(38301),f=c(42378),g=c(11610),h=c(83330),i=c(44215),j=c(95919),k=c(14258),l=c(45914);let m={dashboard:"/admin",projects:"/admin/projects",templates:"/admin/templates",skills:"/admin/skills",deployments:"/admin/deployments",docs:"/admin/docs",settings:"/admin/settings"};function n({view:a,settingsTab:b}){let c=(0,f.useRouter)(),[j,n]=(0,e.useState)(null),[o,p]=(0,e.useState)(!1),q=(0,e.useCallback)(a=>{let b=m[a]||`/admin/${a}`;c.push(b)},[c]),r=j?(0,d.jsx)(i.a,{project:j,onBack:()=>n(null)}):(0,d.jsx)(h.f,{view:a,onProjectSelect:n,settingsTab:b,onNavigate:q});return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(g.M,{currentView:a,onNavigate:q,onProjectSelect:n,onOpenAbout:()=>p(!0),showSidebar:!j,children:r}),(0,d.jsx)(k.V,{location:"global"}),(0,d.jsx)(l.V,{open:o,onOpenChange:p})]})}function o({view:a,settingsTab:b}){return(0,d.jsx)(j.g,{children:(0,d.jsx)(n,{view:a,settingsTab:b})})}},33873:a=>{"use strict";a.exports=require("path")},36167:(a,b,c)=>{Promise.resolve().then(c.bind(c,2054))},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},55511:a=>{"use strict";a.exports=require("crypto")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},66431:(a,b,c)=>{Promise.resolve().then(c.bind(c,31152))},72114:(a,b,c)=>{"use strict";c.r(b),c.d(b,{GlobalError:()=>D.a,__next_app__:()=>J,handler:()=>L,pages:()=>I,routeModule:()=>K,tree:()=>H});var d=c(49754),e=c(9117),f=c(46595),g=c(32324),h=c(39326),i=c(38928),j=c(20175),k=c(12),l=c(54290),m=c(12696),n=c(82802),o=c(77533),p=c(45229),q=c(32822),r=c(261),s=c(26453),t=c(52474),u=c(26713),v=c(51356),w=c(62685),x=c(36225),y=c(63446),z=c(2762),A=c(45742),B=c(86439),C=c(81170),D=c.n(C),E=c(62506),F=c(91203),G={};for(let a in E)0>["default","tree","pages","GlobalError","__next_app__","routeModule","handler"].indexOf(a)&&(G[a]=()=>E[a]);c.d(b,G);let H={children:["",{children:["admin",{children:["projects",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(c.bind(c,100)),"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/projects/page.tsx"]}]},{}]},{}]},{layout:[()=>Promise.resolve().then(c.bind(c,16953)),"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout.tsx"],"global-error":[()=>Promise.resolve().then(c.t.bind(c,81170,23)),"next/dist/client/components/builtin/global-error.js"],"not-found":[()=>Promise.resolve().then(c.t.bind(c,87028,23)),"next/dist/client/components/builtin/not-found.js"],forbidden:[()=>Promise.resolve().then(c.t.bind(c,90461,23)),"next/dist/client/components/builtin/forbidden.js"],unauthorized:[()=>Promise.resolve().then(c.t.bind(c,32768,23)),"next/dist/client/components/builtin/unauthorized.js"]}]}.children,I=["/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/projects/page.tsx"],J={require:c,loadChunk:()=>Promise.resolve()},K=new d.AppPageRouteModule({definition:{kind:e.RouteKind.APP_PAGE,page:"/admin/projects/page",pathname:"/admin/projects",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:H},distDir:".next",relativeProjectDir:""});async function L(a,b,d){var C;let G="/admin/projects/page";"/index"===G&&(G="/");let M=(0,h.getRequestMeta)(a,"postponed"),N=(0,h.getRequestMeta)(a,"minimalMode"),O=await K.prepare(a,b,{srcPage:G,multiZoneDraftMode:!1});if(!O)return b.statusCode=400,b.end("Bad Request"),null==d.waitUntil||d.waitUntil.call(d,Promise.resolve()),null;let{buildId:P,query:Q,params:R,parsedUrl:S,pageIsDynamic:T,buildManifest:U,nextFontManifest:V,reactLoadableManifest:W,serverActionsManifest:X,clientReferenceManifest:Y,subresourceIntegrityManifest:Z,prerenderManifest:$,isDraftMode:_,resolvedPathname:aa,revalidateOnlyGenerated:ab,routerServerContext:ac,nextConfig:ad,interceptionRoutePatterns:ae}=O,af=S.pathname||"/",ag=(0,r.normalizeAppPath)(G),{isOnDemandRevalidate:ah}=O,ai=K.match(af,$),aj=!!$.routes[aa],ak=!!(ai||aj||$.routes[ag]),al=a.headers["user-agent"]||"",am=(0,u.getBotType)(al),an=(0,p.isHtmlBotRequest)(a),ao=(0,h.getRequestMeta)(a,"isPrefetchRSCRequest")??"1"===a.headers[t.NEXT_ROUTER_PREFETCH_HEADER],ap=(0,h.getRequestMeta)(a,"isRSCRequest")??!!a.headers[t.RSC_HEADER],aq=(0,s.getIsPossibleServerAction)(a),ar=(0,m.checkIsAppPPREnabled)(ad.experimental.ppr)&&(null==(C=$.routes[ag]??$.dynamicRoutes[ag])?void 0:C.renderingMode)==="PARTIALLY_STATIC",as=!1,at=!1,au=ar?M:void 0,av=ar&&ap&&!ao,aw=(0,h.getRequestMeta)(a,"segmentPrefetchRSCRequest"),ax=!al||(0,p.shouldServeStreamingMetadata)(al,ad.htmlLimitedBots);an&&ar&&(ak=!1,ax=!1);let ay=!0===K.isDev||!ak||"string"==typeof M||av,az=an&&ar,aA=null;_||!ak||ay||aq||au||av||(aA=aa);let aB=aA;!aB&&K.isDev&&(aB=aa),K.isDev||_||!ak||!ap||av||(0,k.d)(a.headers);let aC={...E,tree:H,pages:I,GlobalError:D(),handler:L,routeModule:K,__next_app__:J};X&&Y&&(0,o.setReferenceManifestsSingleton)({page:G,clientReferenceManifest:Y,serverActionsManifest:X,serverModuleMap:(0,q.createServerModuleMap)({serverActionsManifest:X})});let aD=a.method||"GET",aE=(0,g.getTracer)(),aF=aE.getActiveScopeSpan();try{let f=K.getVaryHeader(aa,ae);b.setHeader("Vary",f);let k=async(c,d)=>{let e=new l.NodeNextRequest(a),f=new l.NodeNextResponse(b);return K.render(e,f,d).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=aE.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==i.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${aD} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${aD} ${a.url}`)})},m=async({span:e,postponed:f,fallbackRouteParams:g})=>{let i={query:Q,params:R,page:ag,sharedContext:{buildId:P},serverComponentsHmrCache:(0,h.getRequestMeta)(a,"serverComponentsHmrCache"),fallbackRouteParams:g,renderOpts:{App:()=>null,Document:()=>null,pageConfig:{},ComponentMod:aC,Component:(0,j.T)(aC),params:R,routeModule:K,page:G,postponed:f,shouldWaitOnAllReady:az,serveStreamingMetadata:ax,supportsDynamicResponse:"string"==typeof f||ay,buildManifest:U,nextFontManifest:V,reactLoadableManifest:W,subresourceIntegrityManifest:Z,serverActionsManifest:X,clientReferenceManifest:Y,setIsrStatus:null==ac?void 0:ac.setIsrStatus,dir:c(33873).join(process.cwd(),K.relativeProjectDir),isDraftMode:_,isRevalidate:ak&&!f&&!av,botType:am,isOnDemandRevalidate:ah,isPossibleServerAction:aq,assetPrefix:ad.assetPrefix,nextConfigOutput:ad.output,crossOrigin:ad.crossOrigin,trailingSlash:ad.trailingSlash,previewProps:$.preview,deploymentId:ad.deploymentId,enableTainting:ad.experimental.taint,htmlLimitedBots:ad.htmlLimitedBots,devtoolSegmentExplorer:ad.experimental.devtoolSegmentExplorer,reactMaxHeadersLength:ad.reactMaxHeadersLength,multiZoneDraftMode:!1,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:ad.experimental.cacheLife,basePath:ad.basePath,serverActions:ad.experimental.serverActions,...as?{nextExport:!0,supportsDynamicResponse:!1,isStaticGeneration:!0,isRevalidate:!0,isDebugDynamicAccesses:as}:{},experimental:{isRoutePPREnabled:ar,expireTime:ad.expireTime,staleTimes:ad.experimental.staleTimes,cacheComponents:!!ad.experimental.cacheComponents,clientSegmentCache:!!ad.experimental.clientSegmentCache,clientParamParsing:!!ad.experimental.clientParamParsing,dynamicOnHover:!!ad.experimental.dynamicOnHover,inlineCss:!!ad.experimental.inlineCss,authInterrupts:!!ad.experimental.authInterrupts,clientTraceMetadata:ad.experimental.clientTraceMetadata||[]},waitUntil:d.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:()=>{},onInstrumentationRequestError:(b,c,d)=>K.onRequestError(a,b,d,ac),err:(0,h.getRequestMeta)(a,"invokeError"),dev:K.isDev}},l=await k(e,i),{metadata:m}=l,{cacheControl:n,headers:o={},fetchTags:p}=m;if(p&&(o[y.NEXT_CACHE_TAGS_HEADER]=p),a.fetchMetrics=m.fetchMetrics,ak&&(null==n?void 0:n.revalidate)===0&&!K.isDev&&!ar){let a=m.staticBailoutInfo,b=Object.defineProperty(Error(`Page changed from static to dynamic at runtime ${aa}${(null==a?void 0:a.description)?`, reason: ${a.description}`:""} +see more here https://nextjs.org/docs/messages/app-static-to-dynamic-error`),"__NEXT_ERROR_CODE",{value:"E132",enumerable:!1,configurable:!0});if(null==a?void 0:a.stack){let c=a.stack;b.stack=b.message+c.substring(c.indexOf("\n"))}throw b}return{value:{kind:v.CachedRouteKind.APP_PAGE,html:l,headers:o,rscData:m.flightData,postponed:m.postponed,status:m.statusCode,segmentData:m.segmentData},cacheControl:n}},o=async({hasResolved:c,previousCacheEntry:f,isRevalidating:g,span:i})=>{let j,k=!1===K.isDev,l=c||b.writableEnded;if(ah&&ab&&!f&&!N)return(null==ac?void 0:ac.render404)?await ac.render404(a,b):(b.statusCode=404,b.end("This page could not be found")),null;if(ai&&(j=(0,w.parseFallbackField)(ai.fallback)),j===w.FallbackMode.PRERENDER&&(0,u.isBot)(al)&&(!ar||an)&&(j=w.FallbackMode.BLOCKING_STATIC_RENDER),(null==f?void 0:f.isStale)===-1&&(ah=!0),ah&&(j!==w.FallbackMode.NOT_FOUND||f)&&(j=w.FallbackMode.BLOCKING_STATIC_RENDER),!N&&j!==w.FallbackMode.BLOCKING_STATIC_RENDER&&aB&&!l&&!_&&T&&(k||!aj)){let b;if((k||ai)&&j===w.FallbackMode.NOT_FOUND)throw new B.NoFallbackError;if(ar&&!ap){let c="string"==typeof(null==ai?void 0:ai.fallback)?ai.fallback:k?ag:null;if(b=await K.handleResponse({cacheKey:c,req:a,nextConfig:ad,routeKind:e.RouteKind.APP_PAGE,isFallback:!0,prerenderManifest:$,isRoutePPREnabled:ar,responseGenerator:async()=>m({span:i,postponed:void 0,fallbackRouteParams:k||at?(0,n.u)(ag):null}),waitUntil:d.waitUntil}),null===b)return null;if(b)return delete b.cacheControl,b}}let o=ah||g||!au?void 0:au;if(as&&void 0!==o)return{cacheControl:{revalidate:1,expire:void 0},value:{kind:v.CachedRouteKind.PAGES,html:x.default.EMPTY,pageData:{},headers:void 0,status:void 0}};let p=T&&ar&&((0,h.getRequestMeta)(a,"renderFallbackShell")||at)?(0,n.u)(af):null;return m({span:i,postponed:o,fallbackRouteParams:p})},p=async c=>{var f,g,i,j,k;let l,n=await K.handleResponse({cacheKey:aA,responseGenerator:a=>o({span:c,...a}),routeKind:e.RouteKind.APP_PAGE,isOnDemandRevalidate:ah,isRoutePPREnabled:ar,req:a,nextConfig:ad,prerenderManifest:$,waitUntil:d.waitUntil});if(_&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate"),K.isDev&&b.setHeader("Cache-Control","no-store, must-revalidate"),!n){if(aA)throw Object.defineProperty(Error("invariant: cache entry required but not generated"),"__NEXT_ERROR_CODE",{value:"E62",enumerable:!1,configurable:!0});return null}if((null==(f=n.value)?void 0:f.kind)!==v.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant app-page handler received invalid cache entry ${null==(i=n.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E707",enumerable:!1,configurable:!0});let p="string"==typeof n.value.postponed;ak&&!av&&(!p||ao)&&(N||b.setHeader("x-nextjs-cache",ah?"REVALIDATED":n.isMiss?"MISS":n.isStale?"STALE":"HIT"),b.setHeader(t.NEXT_IS_PRERENDER_HEADER,"1"));let{value:q}=n;if(au)l={revalidate:0,expire:void 0};else if(N&&ap&&!ao&&ar)l={revalidate:0,expire:void 0};else if(!K.isDev)if(_)l={revalidate:0,expire:void 0};else if(ak){if(n.cacheControl)if("number"==typeof n.cacheControl.revalidate){if(n.cacheControl.revalidate<1)throw Object.defineProperty(Error(`Invalid revalidate configuration provided: ${n.cacheControl.revalidate} < 1`),"__NEXT_ERROR_CODE",{value:"E22",enumerable:!1,configurable:!0});l={revalidate:n.cacheControl.revalidate,expire:(null==(j=n.cacheControl)?void 0:j.expire)??ad.expireTime}}else l={revalidate:y.CACHE_ONE_YEAR,expire:void 0}}else b.getHeader("Cache-Control")||(l={revalidate:0,expire:void 0});if(n.cacheControl=l,"string"==typeof aw&&(null==q?void 0:q.kind)===v.CachedRouteKind.APP_PAGE&&q.segmentData){b.setHeader(t.NEXT_DID_POSTPONE_HEADER,"2");let c=null==(k=q.headers)?void 0:k[y.NEXT_CACHE_TAGS_HEADER];N&&ak&&c&&"string"==typeof c&&b.setHeader(y.NEXT_CACHE_TAGS_HEADER,c);let d=q.segmentData.get(aw);return void 0!==d?(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.fromStatic(d,t.RSC_CONTENT_TYPE_HEADER),cacheControl:n.cacheControl}):(b.statusCode=204,(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.EMPTY,cacheControl:n.cacheControl}))}let r=(0,h.getRequestMeta)(a,"onCacheEntry");if(r&&await r({...n,value:{...n.value,kind:"PAGE"}},{url:(0,h.getRequestMeta)(a,"initURL")}))return null;if(p&&au)throw Object.defineProperty(Error("Invariant: postponed state should not be present on a resume request"),"__NEXT_ERROR_CODE",{value:"E396",enumerable:!1,configurable:!0});if(q.headers){let a={...q.headers};for(let[c,d]of(N&&ak||delete a[y.NEXT_CACHE_TAGS_HEADER],Object.entries(a)))if(void 0!==d)if(Array.isArray(d))for(let a of d)b.appendHeader(c,a);else"number"==typeof d&&(d=d.toString()),b.appendHeader(c,d)}let s=null==(g=q.headers)?void 0:g[y.NEXT_CACHE_TAGS_HEADER];if(N&&ak&&s&&"string"==typeof s&&b.setHeader(y.NEXT_CACHE_TAGS_HEADER,s),!q.status||ap&&ar||(b.statusCode=q.status),!N&&q.status&&F.RedirectStatusCode[q.status]&&ap&&(b.statusCode=200),p&&b.setHeader(t.NEXT_DID_POSTPONE_HEADER,"1"),ap&&!_){if(void 0===q.rscData){if(q.postponed)throw Object.defineProperty(Error("Invariant: Expected postponed to be undefined"),"__NEXT_ERROR_CODE",{value:"E372",enumerable:!1,configurable:!0});return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:q.html,cacheControl:av?{revalidate:0,expire:void 0}:n.cacheControl})}return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.fromStatic(q.rscData,t.RSC_CONTENT_TYPE_HEADER),cacheControl:n.cacheControl})}let u=q.html;if(!p||N||ap)return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:n.cacheControl});if(as)return u.push(new ReadableStream({start(a){a.enqueue(z.ENCODED_TAGS.CLOSED.BODY_AND_HTML),a.close()}})),(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:{revalidate:0,expire:void 0}});let w=new TransformStream;return u.push(w.readable),m({span:c,postponed:q.postponed,fallbackRouteParams:null}).then(async a=>{var b,c;if(!a)throw Object.defineProperty(Error("Invariant: expected a result to be returned"),"__NEXT_ERROR_CODE",{value:"E463",enumerable:!1,configurable:!0});if((null==(b=a.value)?void 0:b.kind)!==v.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant: expected a page response, got ${null==(c=a.value)?void 0:c.kind}`),"__NEXT_ERROR_CODE",{value:"E305",enumerable:!1,configurable:!0});await a.value.html.pipeTo(w.writable)}).catch(a=>{w.writable.abort(a).catch(a=>{console.error("couldn't abort transformer",a)})}),(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:{revalidate:0,expire:void 0}})};if(!aF)return await aE.withPropagatedContext(a.headers,()=>aE.trace(i.BaseServerSpan.handleRequest,{spanName:`${aD} ${a.url}`,kind:g.SpanKind.SERVER,attributes:{"http.method":aD,"http.target":a.url}},p));await p(aF)}catch(b){throw b instanceof B.NoFallbackError||await K.onRequestError(a,b,{routerKind:"App Router",routePath:G,routeType:"render",revalidateReason:(0,f.c)({isRevalidate:ak,isOnDemandRevalidate:ah})},ac),b}}},73136:a=>{"use strict";a.exports=require("node:url")},76760:a=>{"use strict";a.exports=require("node:path")},77725:a=>{"use strict";a.exports=require("stream/promises")},79428:a=>{"use strict";a.exports=require("buffer")},79551:a=>{"use strict";a.exports=require("url")},79748:a=>{"use strict";a.exports=require("fs/promises")},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{"use strict";a.exports=require("better-sqlite3")},94735:a=>{"use strict";a.exports=require("events")}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,495,4606,1732,7894,9815],()=>b(b.s=72114));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/admin/projects/page.js.nft.json b/.next/server/app/admin/projects/page.js.nft.json index 6a38478bf798b1cdfb1fe6abb1f5e942cbee7836..bbed00b703325e5be0c4a873935dbe99e26351a8 100644 --- a/.next/server/app/admin/projects/page.js.nft.json +++ b/.next/server/app/admin/projects/page.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../node_modules/better-sqlite3/package.json","../../../../../node_modules/bindings/bindings.js","../../../../../node_modules/bindings/package.json","../../../../../node_modules/file-uri-to-path/index.js","../../../../../node_modules/file-uri-to-path/package.json","../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../node_modules/next/dist/lib/constants.js","../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../node_modules/next/dist/lib/is-error.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../node_modules/next/dist/shared/lib/router/utils/html-bots.js","../../../../../node_modules/next/dist/shared/lib/router/utils/is-bot.js","../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../node_modules/next/package.json","../../../../../package.json","../../../../package.json","../../../chunks/2671.js","../../../chunks/4078.js","../../../chunks/4277.js","../../../chunks/4586.js","../../../chunks/4606.js","../../../chunks/4681.js","../../../chunks/495.js","../../../chunks/570.js","../../../chunks/6085.js","../../../chunks/740.js","../../../chunks/7894.js","../../../chunks/8476.js","../../../chunks/9206.js","../../../chunks/9975.js","../../../webpack-runtime.js","page_client-reference-manifest.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../node_modules/better-sqlite3/package.json","../../../../../node_modules/bindings/bindings.js","../../../../../node_modules/bindings/package.json","../../../../../node_modules/file-uri-to-path/index.js","../../../../../node_modules/file-uri-to-path/package.json","../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../node_modules/next/dist/lib/constants.js","../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../node_modules/next/dist/lib/is-error.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../node_modules/next/dist/shared/lib/router/utils/html-bots.js","../../../../../node_modules/next/dist/shared/lib/router/utils/is-bot.js","../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../node_modules/next/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1732.js","../../../chunks/2671.js","../../../chunks/4078.js","../../../chunks/4141.js","../../../chunks/4277.js","../../../chunks/4586.js","../../../chunks/4606.js","../../../chunks/495.js","../../../chunks/6085.js","../../../chunks/740.js","../../../chunks/7894.js","../../../chunks/9050.js","../../../chunks/9206.js","../../../chunks/9815.js","../../../chunks/9975.js","../../../webpack-runtime.js","page_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/admin/projects/page_client-reference-manifest.js b/.next/server/app/admin/projects/page_client-reference-manifest.js index d736138c4f62c19dd96a7b8805991dde2268129c..5a9809e738c665553b2228c288c6118b08f3f2e7 100644 --- a/.next/server/app/admin/projects/page_client-reference-manifest.js +++ b/.next/server/app/admin/projects/page_client-reference-manifest.js @@ -1 +1 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/admin/projects/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","3321","static/chunks/app/admin/projects/page-cd3396dba1a5acbf.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":["3698","static/chunks/app/admin/page-700ea05bb99f3aa7.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/projects/page":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/admin/projects/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","3321","static/chunks/app/admin/projects/page-93d978d4bcb74918.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":["3698","static/chunks/app/admin/page-700ea05bb99f3aa7.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/projects/page":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/admin/settings.html b/.next/server/app/admin/settings.html index 25e241f244df5e0b582e32fabdc32678124ba799..05760b461f02db3d038ab7838bc43fac5e07c5f2 100644 --- a/.next/server/app/admin/settings.html +++ b/.next/server/app/admin/settings.html @@ -1,4 +1,4 @@ -Open Source Web Studio | Agentic AI Development 🎨
+Open Source Web Studio | Agentic AI Development 🎨
-
Settings

Loading...

\ No newline at end of file +
Settings

Loading...

\ No newline at end of file diff --git a/.next/server/app/admin/settings.rsc b/.next/server/app/admin/settings.rsc index 121f9ee35d81c3e00ec3f15ac5ec176b8324a754..3ccf488c597a41a28b5d0c3f2acc55c714fbb317 100644 --- a/.next/server/app/admin/settings.rsc +++ b/.next/server/app/admin/settings.rsc @@ -4,7 +4,7 @@ 4:I[46131,["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"default"] 5:I[9766,[],""] 6:I[98924,[],""] -7:I[43688,["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","7122","static/chunks/app/admin/settings/page-cd3396dba1a5acbf.js"],"PageWrapper"] +7:I[43688,["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","7122","static/chunks/app/admin/settings/page-93d978d4bcb74918.js"],"PageWrapper"] 8:I[24431,[],"OutletBoundary"] a:I[15278,[],"AsyncMetadataOutlet"] c:I[24431,[],"ViewportBoundary"] @@ -14,8 +14,8 @@ f:"$Sreact.suspense" :HL["/_next/static/media/58f662ed5ba12a72-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}] :HL["/_next/static/media/c3f6eb667c0186c5-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}] :HL["/_next/static/media/e4af272ccee01ff0-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}] -:HL["/_next/static/css/634e649c3cc2540f.css","style"] -0:{"P":null,"b":"Dj_mU3ym-gcopP6URA30w","p":"","c":["","admin","settings"],"i":false,"f":[[["",{"children":["admin",{"children":["settings",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/634e649c3cc2540f.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"__variable_f367f3 __variable_438d47 antialiased bg-background h-[100dvh] overflow-hidden","suppressHydrationWarning":true,"children":["$","$L2",null,{"children":[["$","$L3",null,{"richColors":true,"position":"bottom-center"}],["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]]}]}]}]]}],{"children":["admin",["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["settings",["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L7",null,{"view":"settings"}],null,["$","$L8",null,{"children":["$L9",["$","$La",null,{"promise":"$@b"}]]}]]}],{},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$Lc",null,{"children":"$Ld"}],["$","meta",null,{"name":"next-size-adjust","content":""}]],["$","$Le",null,{"children":["$","div",null,{"hidden":true,"children":["$","$f",null,{"fallback":null,"children":"$L10"}]}]}]]}],false]],"m":"$undefined","G":["$11",[]],"s":false,"S":true} +:HL["/_next/static/css/7a4f097ac51b20a7.css","style"] +0:{"P":null,"b":"6U79IAVVts3v8bcNT6dWz","p":"","c":["","admin","settings"],"i":false,"f":[[["",{"children":["admin",{"children":["settings",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/7a4f097ac51b20a7.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"__variable_f367f3 __variable_438d47 antialiased bg-background h-[100dvh] overflow-hidden","suppressHydrationWarning":true,"children":["$","$L2",null,{"children":[["$","$L3",null,{"richColors":true,"position":"bottom-center"}],["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]]}]}]}]]}],{"children":["admin",["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["settings",["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L7",null,{"view":"settings"}],null,["$","$L8",null,{"children":["$L9",["$","$La",null,{"promise":"$@b"}]]}]]}],{},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$Lc",null,{"children":"$Ld"}],["$","meta",null,{"name":"next-size-adjust","content":""}]],["$","$Le",null,{"children":["$","div",null,{"hidden":true,"children":["$","$f",null,{"fallback":null,"children":"$L10"}]}]}]]}],false]],"m":"$undefined","G":["$11",[]],"s":false,"S":true} d:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1, maximum-scale=1"}],["$","meta","2",{"name":"theme-color","content":"#000000"}]] 9:null 12:I[80622,[],"IconMark"] diff --git a/.next/server/app/admin/settings/application.html b/.next/server/app/admin/settings/application.html index 4f27548894936c35c5acde4698a51a03e472dd0e..d0a9b13f7c3885ed2bad803556634d602e8c7bd1 100644 --- a/.next/server/app/admin/settings/application.html +++ b/.next/server/app/admin/settings/application.html @@ -1,4 +1,4 @@ -Open Source Web Studio | Agentic AI Development 🎨
+Open Source Web Studio | Agentic AI Development 🎨
-
Settings

Loading...

\ No newline at end of file +
Settings

Loading...

\ No newline at end of file diff --git a/.next/server/app/admin/settings/application.rsc b/.next/server/app/admin/settings/application.rsc index dc50e7baf216dfdd63311df7db47570e35adf36b..c73963427da8ba7cc2c59bec4984529e5c920e84 100644 --- a/.next/server/app/admin/settings/application.rsc +++ b/.next/server/app/admin/settings/application.rsc @@ -4,7 +4,7 @@ 4:I[46131,["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"default"] 5:I[9766,[],""] 6:I[98924,[],""] -7:I[43688,["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","6047","static/chunks/app/admin/settings/application/page-cd3396dba1a5acbf.js"],"PageWrapper"] +7:I[43688,["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","6047","static/chunks/app/admin/settings/application/page-93d978d4bcb74918.js"],"PageWrapper"] 8:I[24431,[],"OutletBoundary"] a:I[15278,[],"AsyncMetadataOutlet"] c:I[24431,[],"ViewportBoundary"] @@ -14,8 +14,8 @@ f:"$Sreact.suspense" :HL["/_next/static/media/58f662ed5ba12a72-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}] :HL["/_next/static/media/c3f6eb667c0186c5-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}] :HL["/_next/static/media/e4af272ccee01ff0-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}] -:HL["/_next/static/css/634e649c3cc2540f.css","style"] -0:{"P":null,"b":"Dj_mU3ym-gcopP6URA30w","p":"","c":["","admin","settings","application"],"i":false,"f":[[["",{"children":["admin",{"children":["settings",{"children":["application",{"children":["__PAGE__",{}]}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/634e649c3cc2540f.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"__variable_f367f3 __variable_438d47 antialiased bg-background h-[100dvh] overflow-hidden","suppressHydrationWarning":true,"children":["$","$L2",null,{"children":[["$","$L3",null,{"richColors":true,"position":"bottom-center"}],["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]]}]}]}]]}],{"children":["admin",["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["settings",["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["application",["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L7",null,{"view":"settings","settingsTab":"application"}],null,["$","$L8",null,{"children":["$L9",["$","$La",null,{"promise":"$@b"}]]}]]}],{},null,false]},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$Lc",null,{"children":"$Ld"}],["$","meta",null,{"name":"next-size-adjust","content":""}]],["$","$Le",null,{"children":["$","div",null,{"hidden":true,"children":["$","$f",null,{"fallback":null,"children":"$L10"}]}]}]]}],false]],"m":"$undefined","G":["$11",[]],"s":false,"S":true} +:HL["/_next/static/css/7a4f097ac51b20a7.css","style"] +0:{"P":null,"b":"6U79IAVVts3v8bcNT6dWz","p":"","c":["","admin","settings","application"],"i":false,"f":[[["",{"children":["admin",{"children":["settings",{"children":["application",{"children":["__PAGE__",{}]}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/7a4f097ac51b20a7.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"__variable_f367f3 __variable_438d47 antialiased bg-background h-[100dvh] overflow-hidden","suppressHydrationWarning":true,"children":["$","$L2",null,{"children":[["$","$L3",null,{"richColors":true,"position":"bottom-center"}],["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]]}]}]}]]}],{"children":["admin",["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["settings",["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["application",["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L7",null,{"view":"settings","settingsTab":"application"}],null,["$","$L8",null,{"children":["$L9",["$","$La",null,{"promise":"$@b"}]]}]]}],{},null,false]},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$Lc",null,{"children":"$Ld"}],["$","meta",null,{"name":"next-size-adjust","content":""}]],["$","$Le",null,{"children":["$","div",null,{"hidden":true,"children":["$","$f",null,{"fallback":null,"children":"$L10"}]}]}]]}],false]],"m":"$undefined","G":["$11",[]],"s":false,"S":true} d:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1, maximum-scale=1"}],["$","meta","2",{"name":"theme-color","content":"#000000"}]] 9:null 12:I[80622,[],"IconMark"] diff --git a/.next/server/app/admin/settings/application/page.js b/.next/server/app/admin/settings/application/page.js index eb8b4a8a68a0101b518c7c9279eca5d1ee6762e9..a032935438c9be557b27b9c89d4c97da27fef84f 100644 --- a/.next/server/app/admin/settings/application/page.js +++ b/.next/server/app/admin/settings/application/page.js @@ -1,2 +1,2 @@ (()=>{var a={};a.id=6047,a.ids=[6047],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1708:a=>{"use strict";a.exports=require("node:process")},2054:(a,b,c)=>{"use strict";c.d(b,{PageWrapper:()=>d});let d=(0,c(97954).registerClientReference)(function(){throw Error("Attempted to call PageWrapper() from the server but PageWrapper is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx","PageWrapper")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},22578:(a,b,c)=>{"use strict";c.r(b),c.d(b,{GlobalError:()=>D.a,__next_app__:()=>J,handler:()=>L,pages:()=>I,routeModule:()=>K,tree:()=>H});var d=c(49754),e=c(9117),f=c(46595),g=c(32324),h=c(39326),i=c(38928),j=c(20175),k=c(12),l=c(54290),m=c(12696),n=c(82802),o=c(77533),p=c(45229),q=c(32822),r=c(261),s=c(26453),t=c(52474),u=c(26713),v=c(51356),w=c(62685),x=c(36225),y=c(63446),z=c(2762),A=c(45742),B=c(86439),C=c(81170),D=c.n(C),E=c(62506),F=c(91203),G={};for(let a in E)0>["default","tree","pages","GlobalError","__next_app__","routeModule","handler"].indexOf(a)&&(G[a]=()=>E[a]);c.d(b,G);let H={children:["",{children:["admin",{children:["settings",{children:["application",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(c.bind(c,74629)),"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/settings/application/page.tsx"]}]},{}]},{}]},{}]},{layout:[()=>Promise.resolve().then(c.bind(c,16953)),"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout.tsx"],"global-error":[()=>Promise.resolve().then(c.t.bind(c,81170,23)),"next/dist/client/components/builtin/global-error.js"],"not-found":[()=>Promise.resolve().then(c.t.bind(c,87028,23)),"next/dist/client/components/builtin/not-found.js"],forbidden:[()=>Promise.resolve().then(c.t.bind(c,90461,23)),"next/dist/client/components/builtin/forbidden.js"],unauthorized:[()=>Promise.resolve().then(c.t.bind(c,32768,23)),"next/dist/client/components/builtin/unauthorized.js"]}]}.children,I=["/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/settings/application/page.tsx"],J={require:c,loadChunk:()=>Promise.resolve()},K=new d.AppPageRouteModule({definition:{kind:e.RouteKind.APP_PAGE,page:"/admin/settings/application/page",pathname:"/admin/settings/application",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:H},distDir:".next",relativeProjectDir:""});async function L(a,b,d){var C;let G="/admin/settings/application/page";"/index"===G&&(G="/");let M=(0,h.getRequestMeta)(a,"postponed"),N=(0,h.getRequestMeta)(a,"minimalMode"),O=await K.prepare(a,b,{srcPage:G,multiZoneDraftMode:!1});if(!O)return b.statusCode=400,b.end("Bad Request"),null==d.waitUntil||d.waitUntil.call(d,Promise.resolve()),null;let{buildId:P,query:Q,params:R,parsedUrl:S,pageIsDynamic:T,buildManifest:U,nextFontManifest:V,reactLoadableManifest:W,serverActionsManifest:X,clientReferenceManifest:Y,subresourceIntegrityManifest:Z,prerenderManifest:$,isDraftMode:_,resolvedPathname:aa,revalidateOnlyGenerated:ab,routerServerContext:ac,nextConfig:ad,interceptionRoutePatterns:ae}=O,af=S.pathname||"/",ag=(0,r.normalizeAppPath)(G),{isOnDemandRevalidate:ah}=O,ai=K.match(af,$),aj=!!$.routes[aa],ak=!!(ai||aj||$.routes[ag]),al=a.headers["user-agent"]||"",am=(0,u.getBotType)(al),an=(0,p.isHtmlBotRequest)(a),ao=(0,h.getRequestMeta)(a,"isPrefetchRSCRequest")??"1"===a.headers[t.NEXT_ROUTER_PREFETCH_HEADER],ap=(0,h.getRequestMeta)(a,"isRSCRequest")??!!a.headers[t.RSC_HEADER],aq=(0,s.getIsPossibleServerAction)(a),ar=(0,m.checkIsAppPPREnabled)(ad.experimental.ppr)&&(null==(C=$.routes[ag]??$.dynamicRoutes[ag])?void 0:C.renderingMode)==="PARTIALLY_STATIC",as=!1,at=!1,au=ar?M:void 0,av=ar&&ap&&!ao,aw=(0,h.getRequestMeta)(a,"segmentPrefetchRSCRequest"),ax=!al||(0,p.shouldServeStreamingMetadata)(al,ad.htmlLimitedBots);an&&ar&&(ak=!1,ax=!1);let ay=!0===K.isDev||!ak||"string"==typeof M||av,az=an&&ar,aA=null;_||!ak||ay||aq||au||av||(aA=aa);let aB=aA;!aB&&K.isDev&&(aB=aa),K.isDev||_||!ak||!ap||av||(0,k.d)(a.headers);let aC={...E,tree:H,pages:I,GlobalError:D(),handler:L,routeModule:K,__next_app__:J};X&&Y&&(0,o.setReferenceManifestsSingleton)({page:G,clientReferenceManifest:Y,serverActionsManifest:X,serverModuleMap:(0,q.createServerModuleMap)({serverActionsManifest:X})});let aD=a.method||"GET",aE=(0,g.getTracer)(),aF=aE.getActiveScopeSpan();try{let f=K.getVaryHeader(aa,ae);b.setHeader("Vary",f);let k=async(c,d)=>{let e=new l.NodeNextRequest(a),f=new l.NodeNextResponse(b);return K.render(e,f,d).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=aE.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==i.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${aD} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${aD} ${a.url}`)})},m=async({span:e,postponed:f,fallbackRouteParams:g})=>{let i={query:Q,params:R,page:ag,sharedContext:{buildId:P},serverComponentsHmrCache:(0,h.getRequestMeta)(a,"serverComponentsHmrCache"),fallbackRouteParams:g,renderOpts:{App:()=>null,Document:()=>null,pageConfig:{},ComponentMod:aC,Component:(0,j.T)(aC),params:R,routeModule:K,page:G,postponed:f,shouldWaitOnAllReady:az,serveStreamingMetadata:ax,supportsDynamicResponse:"string"==typeof f||ay,buildManifest:U,nextFontManifest:V,reactLoadableManifest:W,subresourceIntegrityManifest:Z,serverActionsManifest:X,clientReferenceManifest:Y,setIsrStatus:null==ac?void 0:ac.setIsrStatus,dir:c(33873).join(process.cwd(),K.relativeProjectDir),isDraftMode:_,isRevalidate:ak&&!f&&!av,botType:am,isOnDemandRevalidate:ah,isPossibleServerAction:aq,assetPrefix:ad.assetPrefix,nextConfigOutput:ad.output,crossOrigin:ad.crossOrigin,trailingSlash:ad.trailingSlash,previewProps:$.preview,deploymentId:ad.deploymentId,enableTainting:ad.experimental.taint,htmlLimitedBots:ad.htmlLimitedBots,devtoolSegmentExplorer:ad.experimental.devtoolSegmentExplorer,reactMaxHeadersLength:ad.reactMaxHeadersLength,multiZoneDraftMode:!1,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:ad.experimental.cacheLife,basePath:ad.basePath,serverActions:ad.experimental.serverActions,...as?{nextExport:!0,supportsDynamicResponse:!1,isStaticGeneration:!0,isRevalidate:!0,isDebugDynamicAccesses:as}:{},experimental:{isRoutePPREnabled:ar,expireTime:ad.expireTime,staleTimes:ad.experimental.staleTimes,cacheComponents:!!ad.experimental.cacheComponents,clientSegmentCache:!!ad.experimental.clientSegmentCache,clientParamParsing:!!ad.experimental.clientParamParsing,dynamicOnHover:!!ad.experimental.dynamicOnHover,inlineCss:!!ad.experimental.inlineCss,authInterrupts:!!ad.experimental.authInterrupts,clientTraceMetadata:ad.experimental.clientTraceMetadata||[]},waitUntil:d.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:()=>{},onInstrumentationRequestError:(b,c,d)=>K.onRequestError(a,b,d,ac),err:(0,h.getRequestMeta)(a,"invokeError"),dev:K.isDev}},l=await k(e,i),{metadata:m}=l,{cacheControl:n,headers:o={},fetchTags:p}=m;if(p&&(o[y.NEXT_CACHE_TAGS_HEADER]=p),a.fetchMetrics=m.fetchMetrics,ak&&(null==n?void 0:n.revalidate)===0&&!K.isDev&&!ar){let a=m.staticBailoutInfo,b=Object.defineProperty(Error(`Page changed from static to dynamic at runtime ${aa}${(null==a?void 0:a.description)?`, reason: ${a.description}`:""} -see more here https://nextjs.org/docs/messages/app-static-to-dynamic-error`),"__NEXT_ERROR_CODE",{value:"E132",enumerable:!1,configurable:!0});if(null==a?void 0:a.stack){let c=a.stack;b.stack=b.message+c.substring(c.indexOf("\n"))}throw b}return{value:{kind:v.CachedRouteKind.APP_PAGE,html:l,headers:o,rscData:m.flightData,postponed:m.postponed,status:m.statusCode,segmentData:m.segmentData},cacheControl:n}},o=async({hasResolved:c,previousCacheEntry:f,isRevalidating:g,span:i})=>{let j,k=!1===K.isDev,l=c||b.writableEnded;if(ah&&ab&&!f&&!N)return(null==ac?void 0:ac.render404)?await ac.render404(a,b):(b.statusCode=404,b.end("This page could not be found")),null;if(ai&&(j=(0,w.parseFallbackField)(ai.fallback)),j===w.FallbackMode.PRERENDER&&(0,u.isBot)(al)&&(!ar||an)&&(j=w.FallbackMode.BLOCKING_STATIC_RENDER),(null==f?void 0:f.isStale)===-1&&(ah=!0),ah&&(j!==w.FallbackMode.NOT_FOUND||f)&&(j=w.FallbackMode.BLOCKING_STATIC_RENDER),!N&&j!==w.FallbackMode.BLOCKING_STATIC_RENDER&&aB&&!l&&!_&&T&&(k||!aj)){let b;if((k||ai)&&j===w.FallbackMode.NOT_FOUND)throw new B.NoFallbackError;if(ar&&!ap){let c="string"==typeof(null==ai?void 0:ai.fallback)?ai.fallback:k?ag:null;if(b=await K.handleResponse({cacheKey:c,req:a,nextConfig:ad,routeKind:e.RouteKind.APP_PAGE,isFallback:!0,prerenderManifest:$,isRoutePPREnabled:ar,responseGenerator:async()=>m({span:i,postponed:void 0,fallbackRouteParams:k||at?(0,n.u)(ag):null}),waitUntil:d.waitUntil}),null===b)return null;if(b)return delete b.cacheControl,b}}let o=ah||g||!au?void 0:au;if(as&&void 0!==o)return{cacheControl:{revalidate:1,expire:void 0},value:{kind:v.CachedRouteKind.PAGES,html:x.default.EMPTY,pageData:{},headers:void 0,status:void 0}};let p=T&&ar&&((0,h.getRequestMeta)(a,"renderFallbackShell")||at)?(0,n.u)(af):null;return m({span:i,postponed:o,fallbackRouteParams:p})},p=async c=>{var f,g,i,j,k;let l,n=await K.handleResponse({cacheKey:aA,responseGenerator:a=>o({span:c,...a}),routeKind:e.RouteKind.APP_PAGE,isOnDemandRevalidate:ah,isRoutePPREnabled:ar,req:a,nextConfig:ad,prerenderManifest:$,waitUntil:d.waitUntil});if(_&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate"),K.isDev&&b.setHeader("Cache-Control","no-store, must-revalidate"),!n){if(aA)throw Object.defineProperty(Error("invariant: cache entry required but not generated"),"__NEXT_ERROR_CODE",{value:"E62",enumerable:!1,configurable:!0});return null}if((null==(f=n.value)?void 0:f.kind)!==v.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant app-page handler received invalid cache entry ${null==(i=n.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E707",enumerable:!1,configurable:!0});let p="string"==typeof n.value.postponed;ak&&!av&&(!p||ao)&&(N||b.setHeader("x-nextjs-cache",ah?"REVALIDATED":n.isMiss?"MISS":n.isStale?"STALE":"HIT"),b.setHeader(t.NEXT_IS_PRERENDER_HEADER,"1"));let{value:q}=n;if(au)l={revalidate:0,expire:void 0};else if(N&&ap&&!ao&&ar)l={revalidate:0,expire:void 0};else if(!K.isDev)if(_)l={revalidate:0,expire:void 0};else if(ak){if(n.cacheControl)if("number"==typeof n.cacheControl.revalidate){if(n.cacheControl.revalidate<1)throw Object.defineProperty(Error(`Invalid revalidate configuration provided: ${n.cacheControl.revalidate} < 1`),"__NEXT_ERROR_CODE",{value:"E22",enumerable:!1,configurable:!0});l={revalidate:n.cacheControl.revalidate,expire:(null==(j=n.cacheControl)?void 0:j.expire)??ad.expireTime}}else l={revalidate:y.CACHE_ONE_YEAR,expire:void 0}}else b.getHeader("Cache-Control")||(l={revalidate:0,expire:void 0});if(n.cacheControl=l,"string"==typeof aw&&(null==q?void 0:q.kind)===v.CachedRouteKind.APP_PAGE&&q.segmentData){b.setHeader(t.NEXT_DID_POSTPONE_HEADER,"2");let c=null==(k=q.headers)?void 0:k[y.NEXT_CACHE_TAGS_HEADER];N&&ak&&c&&"string"==typeof c&&b.setHeader(y.NEXT_CACHE_TAGS_HEADER,c);let d=q.segmentData.get(aw);return void 0!==d?(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.fromStatic(d,t.RSC_CONTENT_TYPE_HEADER),cacheControl:n.cacheControl}):(b.statusCode=204,(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.EMPTY,cacheControl:n.cacheControl}))}let r=(0,h.getRequestMeta)(a,"onCacheEntry");if(r&&await r({...n,value:{...n.value,kind:"PAGE"}},{url:(0,h.getRequestMeta)(a,"initURL")}))return null;if(p&&au)throw Object.defineProperty(Error("Invariant: postponed state should not be present on a resume request"),"__NEXT_ERROR_CODE",{value:"E396",enumerable:!1,configurable:!0});if(q.headers){let a={...q.headers};for(let[c,d]of(N&&ak||delete a[y.NEXT_CACHE_TAGS_HEADER],Object.entries(a)))if(void 0!==d)if(Array.isArray(d))for(let a of d)b.appendHeader(c,a);else"number"==typeof d&&(d=d.toString()),b.appendHeader(c,d)}let s=null==(g=q.headers)?void 0:g[y.NEXT_CACHE_TAGS_HEADER];if(N&&ak&&s&&"string"==typeof s&&b.setHeader(y.NEXT_CACHE_TAGS_HEADER,s),!q.status||ap&&ar||(b.statusCode=q.status),!N&&q.status&&F.RedirectStatusCode[q.status]&&ap&&(b.statusCode=200),p&&b.setHeader(t.NEXT_DID_POSTPONE_HEADER,"1"),ap&&!_){if(void 0===q.rscData){if(q.postponed)throw Object.defineProperty(Error("Invariant: Expected postponed to be undefined"),"__NEXT_ERROR_CODE",{value:"E372",enumerable:!1,configurable:!0});return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:q.html,cacheControl:av?{revalidate:0,expire:void 0}:n.cacheControl})}return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.fromStatic(q.rscData,t.RSC_CONTENT_TYPE_HEADER),cacheControl:n.cacheControl})}let u=q.html;if(!p||N||ap)return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:n.cacheControl});if(as)return u.push(new ReadableStream({start(a){a.enqueue(z.ENCODED_TAGS.CLOSED.BODY_AND_HTML),a.close()}})),(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:{revalidate:0,expire:void 0}});let w=new TransformStream;return u.push(w.readable),m({span:c,postponed:q.postponed,fallbackRouteParams:null}).then(async a=>{var b,c;if(!a)throw Object.defineProperty(Error("Invariant: expected a result to be returned"),"__NEXT_ERROR_CODE",{value:"E463",enumerable:!1,configurable:!0});if((null==(b=a.value)?void 0:b.kind)!==v.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant: expected a page response, got ${null==(c=a.value)?void 0:c.kind}`),"__NEXT_ERROR_CODE",{value:"E305",enumerable:!1,configurable:!0});await a.value.html.pipeTo(w.writable)}).catch(a=>{w.writable.abort(a).catch(a=>{console.error("couldn't abort transformer",a)})}),(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:{revalidate:0,expire:void 0}})};if(!aF)return await aE.withPropagatedContext(a.headers,()=>aE.trace(i.BaseServerSpan.handleRequest,{spanName:`${aD} ${a.url}`,kind:g.SpanKind.SERVER,attributes:{"http.method":aD,"http.target":a.url}},p));await p(aF)}catch(b){throw b instanceof B.NoFallbackError||await K.onRequestError(a,b,{routerKind:"App Router",routePath:G,routeType:"render",revalidateReason:(0,f.c)({isRevalidate:ak,isOnDemandRevalidate:ah})},ac),b}}},26713:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/is-bot")},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31152:(a,b,c)=>{"use strict";c.d(b,{PageWrapper:()=>o});var d=c(21124),e=c(38301),f=c(42378),g=c(11610),h=c(69188),i=c(83374),j=c(95919),k=c(14258),l=c(45914);let m={dashboard:"/admin",projects:"/admin/projects",templates:"/admin/templates",skills:"/admin/skills",sites:"/admin/sites",docs:"/admin/docs",settings:"/admin/settings"};function n({view:a,settingsTab:b}){let c=(0,f.useRouter)(),[j,n]=(0,e.useState)(null),[o,p]=(0,e.useState)(!1),q=(0,e.useCallback)(a=>{let b=m[a]||`/admin/${a}`;c.push(b)},[c]),r=j?(0,d.jsx)(i.a,{project:j,onBack:()=>n(null)}):(0,d.jsx)(h.f,{view:a,onProjectSelect:n,settingsTab:b,onNavigate:q});return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(g.M,{currentView:a,onNavigate:q,onProjectSelect:n,onOpenAbout:()=>p(!0),showSidebar:!j,children:r}),(0,d.jsx)(k.V,{location:"global"}),(0,d.jsx)(l.V,{open:o,onOpenChange:p})]})}function o({view:a,settingsTab:b}){return(0,d.jsx)(j.g,{children:(0,d.jsx)(n,{view:a,settingsTab:b})})}},33873:a=>{"use strict";a.exports=require("path")},36167:(a,b,c)=>{Promise.resolve().then(c.bind(c,2054))},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},55511:a=>{"use strict";a.exports=require("crypto")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},66431:(a,b,c)=>{Promise.resolve().then(c.bind(c,31152))},73136:a=>{"use strict";a.exports=require("node:url")},74629:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>f});var d=c(75338),e=c(2054);function f(){return(0,d.jsx)(e.PageWrapper,{view:"settings",settingsTab:"application"})}},76760:a=>{"use strict";a.exports=require("node:path")},77725:a=>{"use strict";a.exports=require("stream/promises")},79428:a=>{"use strict";a.exports=require("buffer")},79551:a=>{"use strict";a.exports=require("url")},79748:a=>{"use strict";a.exports=require("fs/promises")},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{"use strict";a.exports=require("better-sqlite3")},94735:a=>{"use strict";a.exports=require("events")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,495,4606,570,7894,8476],()=>b(b.s=22578));module.exports=c})(); \ No newline at end of file +see more here https://nextjs.org/docs/messages/app-static-to-dynamic-error`),"__NEXT_ERROR_CODE",{value:"E132",enumerable:!1,configurable:!0});if(null==a?void 0:a.stack){let c=a.stack;b.stack=b.message+c.substring(c.indexOf("\n"))}throw b}return{value:{kind:v.CachedRouteKind.APP_PAGE,html:l,headers:o,rscData:m.flightData,postponed:m.postponed,status:m.statusCode,segmentData:m.segmentData},cacheControl:n}},o=async({hasResolved:c,previousCacheEntry:f,isRevalidating:g,span:i})=>{let j,k=!1===K.isDev,l=c||b.writableEnded;if(ah&&ab&&!f&&!N)return(null==ac?void 0:ac.render404)?await ac.render404(a,b):(b.statusCode=404,b.end("This page could not be found")),null;if(ai&&(j=(0,w.parseFallbackField)(ai.fallback)),j===w.FallbackMode.PRERENDER&&(0,u.isBot)(al)&&(!ar||an)&&(j=w.FallbackMode.BLOCKING_STATIC_RENDER),(null==f?void 0:f.isStale)===-1&&(ah=!0),ah&&(j!==w.FallbackMode.NOT_FOUND||f)&&(j=w.FallbackMode.BLOCKING_STATIC_RENDER),!N&&j!==w.FallbackMode.BLOCKING_STATIC_RENDER&&aB&&!l&&!_&&T&&(k||!aj)){let b;if((k||ai)&&j===w.FallbackMode.NOT_FOUND)throw new B.NoFallbackError;if(ar&&!ap){let c="string"==typeof(null==ai?void 0:ai.fallback)?ai.fallback:k?ag:null;if(b=await K.handleResponse({cacheKey:c,req:a,nextConfig:ad,routeKind:e.RouteKind.APP_PAGE,isFallback:!0,prerenderManifest:$,isRoutePPREnabled:ar,responseGenerator:async()=>m({span:i,postponed:void 0,fallbackRouteParams:k||at?(0,n.u)(ag):null}),waitUntil:d.waitUntil}),null===b)return null;if(b)return delete b.cacheControl,b}}let o=ah||g||!au?void 0:au;if(as&&void 0!==o)return{cacheControl:{revalidate:1,expire:void 0},value:{kind:v.CachedRouteKind.PAGES,html:x.default.EMPTY,pageData:{},headers:void 0,status:void 0}};let p=T&&ar&&((0,h.getRequestMeta)(a,"renderFallbackShell")||at)?(0,n.u)(af):null;return m({span:i,postponed:o,fallbackRouteParams:p})},p=async c=>{var f,g,i,j,k;let l,n=await K.handleResponse({cacheKey:aA,responseGenerator:a=>o({span:c,...a}),routeKind:e.RouteKind.APP_PAGE,isOnDemandRevalidate:ah,isRoutePPREnabled:ar,req:a,nextConfig:ad,prerenderManifest:$,waitUntil:d.waitUntil});if(_&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate"),K.isDev&&b.setHeader("Cache-Control","no-store, must-revalidate"),!n){if(aA)throw Object.defineProperty(Error("invariant: cache entry required but not generated"),"__NEXT_ERROR_CODE",{value:"E62",enumerable:!1,configurable:!0});return null}if((null==(f=n.value)?void 0:f.kind)!==v.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant app-page handler received invalid cache entry ${null==(i=n.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E707",enumerable:!1,configurable:!0});let p="string"==typeof n.value.postponed;ak&&!av&&(!p||ao)&&(N||b.setHeader("x-nextjs-cache",ah?"REVALIDATED":n.isMiss?"MISS":n.isStale?"STALE":"HIT"),b.setHeader(t.NEXT_IS_PRERENDER_HEADER,"1"));let{value:q}=n;if(au)l={revalidate:0,expire:void 0};else if(N&&ap&&!ao&&ar)l={revalidate:0,expire:void 0};else if(!K.isDev)if(_)l={revalidate:0,expire:void 0};else if(ak){if(n.cacheControl)if("number"==typeof n.cacheControl.revalidate){if(n.cacheControl.revalidate<1)throw Object.defineProperty(Error(`Invalid revalidate configuration provided: ${n.cacheControl.revalidate} < 1`),"__NEXT_ERROR_CODE",{value:"E22",enumerable:!1,configurable:!0});l={revalidate:n.cacheControl.revalidate,expire:(null==(j=n.cacheControl)?void 0:j.expire)??ad.expireTime}}else l={revalidate:y.CACHE_ONE_YEAR,expire:void 0}}else b.getHeader("Cache-Control")||(l={revalidate:0,expire:void 0});if(n.cacheControl=l,"string"==typeof aw&&(null==q?void 0:q.kind)===v.CachedRouteKind.APP_PAGE&&q.segmentData){b.setHeader(t.NEXT_DID_POSTPONE_HEADER,"2");let c=null==(k=q.headers)?void 0:k[y.NEXT_CACHE_TAGS_HEADER];N&&ak&&c&&"string"==typeof c&&b.setHeader(y.NEXT_CACHE_TAGS_HEADER,c);let d=q.segmentData.get(aw);return void 0!==d?(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.fromStatic(d,t.RSC_CONTENT_TYPE_HEADER),cacheControl:n.cacheControl}):(b.statusCode=204,(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.EMPTY,cacheControl:n.cacheControl}))}let r=(0,h.getRequestMeta)(a,"onCacheEntry");if(r&&await r({...n,value:{...n.value,kind:"PAGE"}},{url:(0,h.getRequestMeta)(a,"initURL")}))return null;if(p&&au)throw Object.defineProperty(Error("Invariant: postponed state should not be present on a resume request"),"__NEXT_ERROR_CODE",{value:"E396",enumerable:!1,configurable:!0});if(q.headers){let a={...q.headers};for(let[c,d]of(N&&ak||delete a[y.NEXT_CACHE_TAGS_HEADER],Object.entries(a)))if(void 0!==d)if(Array.isArray(d))for(let a of d)b.appendHeader(c,a);else"number"==typeof d&&(d=d.toString()),b.appendHeader(c,d)}let s=null==(g=q.headers)?void 0:g[y.NEXT_CACHE_TAGS_HEADER];if(N&&ak&&s&&"string"==typeof s&&b.setHeader(y.NEXT_CACHE_TAGS_HEADER,s),!q.status||ap&&ar||(b.statusCode=q.status),!N&&q.status&&F.RedirectStatusCode[q.status]&&ap&&(b.statusCode=200),p&&b.setHeader(t.NEXT_DID_POSTPONE_HEADER,"1"),ap&&!_){if(void 0===q.rscData){if(q.postponed)throw Object.defineProperty(Error("Invariant: Expected postponed to be undefined"),"__NEXT_ERROR_CODE",{value:"E372",enumerable:!1,configurable:!0});return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:q.html,cacheControl:av?{revalidate:0,expire:void 0}:n.cacheControl})}return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.fromStatic(q.rscData,t.RSC_CONTENT_TYPE_HEADER),cacheControl:n.cacheControl})}let u=q.html;if(!p||N||ap)return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:n.cacheControl});if(as)return u.push(new ReadableStream({start(a){a.enqueue(z.ENCODED_TAGS.CLOSED.BODY_AND_HTML),a.close()}})),(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:{revalidate:0,expire:void 0}});let w=new TransformStream;return u.push(w.readable),m({span:c,postponed:q.postponed,fallbackRouteParams:null}).then(async a=>{var b,c;if(!a)throw Object.defineProperty(Error("Invariant: expected a result to be returned"),"__NEXT_ERROR_CODE",{value:"E463",enumerable:!1,configurable:!0});if((null==(b=a.value)?void 0:b.kind)!==v.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant: expected a page response, got ${null==(c=a.value)?void 0:c.kind}`),"__NEXT_ERROR_CODE",{value:"E305",enumerable:!1,configurable:!0});await a.value.html.pipeTo(w.writable)}).catch(a=>{w.writable.abort(a).catch(a=>{console.error("couldn't abort transformer",a)})}),(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:{revalidate:0,expire:void 0}})};if(!aF)return await aE.withPropagatedContext(a.headers,()=>aE.trace(i.BaseServerSpan.handleRequest,{spanName:`${aD} ${a.url}`,kind:g.SpanKind.SERVER,attributes:{"http.method":aD,"http.target":a.url}},p));await p(aF)}catch(b){throw b instanceof B.NoFallbackError||await K.onRequestError(a,b,{routerKind:"App Router",routePath:G,routeType:"render",revalidateReason:(0,f.c)({isRevalidate:ak,isOnDemandRevalidate:ah})},ac),b}}},26713:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/is-bot")},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31152:(a,b,c)=>{"use strict";c.d(b,{PageWrapper:()=>o});var d=c(21124),e=c(38301),f=c(42378),g=c(11610),h=c(83330),i=c(44215),j=c(95919),k=c(14258),l=c(45914);let m={dashboard:"/admin",projects:"/admin/projects",templates:"/admin/templates",skills:"/admin/skills",deployments:"/admin/deployments",docs:"/admin/docs",settings:"/admin/settings"};function n({view:a,settingsTab:b}){let c=(0,f.useRouter)(),[j,n]=(0,e.useState)(null),[o,p]=(0,e.useState)(!1),q=(0,e.useCallback)(a=>{let b=m[a]||`/admin/${a}`;c.push(b)},[c]),r=j?(0,d.jsx)(i.a,{project:j,onBack:()=>n(null)}):(0,d.jsx)(h.f,{view:a,onProjectSelect:n,settingsTab:b,onNavigate:q});return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(g.M,{currentView:a,onNavigate:q,onProjectSelect:n,onOpenAbout:()=>p(!0),showSidebar:!j,children:r}),(0,d.jsx)(k.V,{location:"global"}),(0,d.jsx)(l.V,{open:o,onOpenChange:p})]})}function o({view:a,settingsTab:b}){return(0,d.jsx)(j.g,{children:(0,d.jsx)(n,{view:a,settingsTab:b})})}},33873:a=>{"use strict";a.exports=require("path")},36167:(a,b,c)=>{Promise.resolve().then(c.bind(c,2054))},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},55511:a=>{"use strict";a.exports=require("crypto")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},66431:(a,b,c)=>{Promise.resolve().then(c.bind(c,31152))},73136:a=>{"use strict";a.exports=require("node:url")},74629:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>f});var d=c(75338),e=c(2054);function f(){return(0,d.jsx)(e.PageWrapper,{view:"settings",settingsTab:"application"})}},76760:a=>{"use strict";a.exports=require("node:path")},77725:a=>{"use strict";a.exports=require("stream/promises")},79428:a=>{"use strict";a.exports=require("buffer")},79551:a=>{"use strict";a.exports=require("url")},79748:a=>{"use strict";a.exports=require("fs/promises")},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{"use strict";a.exports=require("better-sqlite3")},94735:a=>{"use strict";a.exports=require("events")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,495,4606,1732,7894,9815],()=>b(b.s=22578));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/admin/settings/application/page.js.nft.json b/.next/server/app/admin/settings/application/page.js.nft.json index 521f558dcade50039d1f5e850992011376efff10..954b08d6647040c72e2eaed3bd2efe16b89858e2 100644 --- a/.next/server/app/admin/settings/application/page.js.nft.json +++ b/.next/server/app/admin/settings/application/page.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../node_modules/better-sqlite3/package.json","../../../../../../node_modules/bindings/bindings.js","../../../../../../node_modules/bindings/package.json","../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/html-bots.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/is-bot.js","../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../node_modules/next/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/2671.js","../../../../chunks/4078.js","../../../../chunks/4277.js","../../../../chunks/4586.js","../../../../chunks/4606.js","../../../../chunks/4681.js","../../../../chunks/495.js","../../../../chunks/570.js","../../../../chunks/6085.js","../../../../chunks/740.js","../../../../chunks/7894.js","../../../../chunks/8476.js","../../../../chunks/9206.js","../../../../chunks/9975.js","../../../../webpack-runtime.js","page_client-reference-manifest.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../node_modules/better-sqlite3/package.json","../../../../../../node_modules/bindings/bindings.js","../../../../../../node_modules/bindings/package.json","../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/html-bots.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/is-bot.js","../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../node_modules/next/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1732.js","../../../../chunks/2671.js","../../../../chunks/4078.js","../../../../chunks/4141.js","../../../../chunks/4277.js","../../../../chunks/4586.js","../../../../chunks/4606.js","../../../../chunks/495.js","../../../../chunks/6085.js","../../../../chunks/740.js","../../../../chunks/7894.js","../../../../chunks/9050.js","../../../../chunks/9206.js","../../../../chunks/9815.js","../../../../chunks/9975.js","../../../../webpack-runtime.js","page_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/admin/settings/application/page_client-reference-manifest.js b/.next/server/app/admin/settings/application/page_client-reference-manifest.js index 7e3f63b5ab54f5c9f38b958582c7305e7d1d0b49..d1f0c52c7818f223fddca664d2d1c493249a4353 100644 --- a/.next/server/app/admin/settings/application/page_client-reference-manifest.js +++ b/.next/server/app/admin/settings/application/page_client-reference-manifest.js @@ -1 +1 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/admin/settings/application/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","6047","static/chunks/app/admin/settings/application/page-cd3396dba1a5acbf.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":["3698","static/chunks/app/admin/page-700ea05bb99f3aa7.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/settings/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/settings/application/page":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/admin/settings/application/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","6047","static/chunks/app/admin/settings/application/page-93d978d4bcb74918.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":["3698","static/chunks/app/admin/page-700ea05bb99f3aa7.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/settings/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/settings/application/page":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/admin/settings/model.html b/.next/server/app/admin/settings/model.html index 74eb78626639cca22db39b0266d054aba95b8ee2..8d243350e3eae2a5ebe1eda5c87da969a080a5ec 100644 --- a/.next/server/app/admin/settings/model.html +++ b/.next/server/app/admin/settings/model.html @@ -1,4 +1,4 @@ -Open Source Web Studio | Agentic AI Development 🎨
+Open Source Web Studio | Agentic AI Development 🎨
-
Settings

Loading...

\ No newline at end of file +
Settings

Loading...

\ No newline at end of file diff --git a/.next/server/app/admin/settings/model.rsc b/.next/server/app/admin/settings/model.rsc index 4a313b8153c2a7dbe4ec0c6b27d0eb5cbe55e118..440a01cb192f946a34f0d40e56f1145b85ed11f8 100644 --- a/.next/server/app/admin/settings/model.rsc +++ b/.next/server/app/admin/settings/model.rsc @@ -4,7 +4,7 @@ 4:I[46131,["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"default"] 5:I[9766,[],""] 6:I[98924,[],""] -7:I[43688,["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","3116","static/chunks/app/admin/settings/model/page-cd3396dba1a5acbf.js"],"PageWrapper"] +7:I[43688,["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","3116","static/chunks/app/admin/settings/model/page-93d978d4bcb74918.js"],"PageWrapper"] 8:I[24431,[],"OutletBoundary"] a:I[15278,[],"AsyncMetadataOutlet"] c:I[24431,[],"ViewportBoundary"] @@ -14,8 +14,8 @@ f:"$Sreact.suspense" :HL["/_next/static/media/58f662ed5ba12a72-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}] :HL["/_next/static/media/c3f6eb667c0186c5-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}] :HL["/_next/static/media/e4af272ccee01ff0-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}] -:HL["/_next/static/css/634e649c3cc2540f.css","style"] -0:{"P":null,"b":"Dj_mU3ym-gcopP6URA30w","p":"","c":["","admin","settings","model"],"i":false,"f":[[["",{"children":["admin",{"children":["settings",{"children":["model",{"children":["__PAGE__",{}]}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/634e649c3cc2540f.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"__variable_f367f3 __variable_438d47 antialiased bg-background h-[100dvh] overflow-hidden","suppressHydrationWarning":true,"children":["$","$L2",null,{"children":[["$","$L3",null,{"richColors":true,"position":"bottom-center"}],["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]]}]}]}]]}],{"children":["admin",["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["settings",["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["model",["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L7",null,{"view":"settings","settingsTab":"model"}],null,["$","$L8",null,{"children":["$L9",["$","$La",null,{"promise":"$@b"}]]}]]}],{},null,false]},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$Lc",null,{"children":"$Ld"}],["$","meta",null,{"name":"next-size-adjust","content":""}]],["$","$Le",null,{"children":["$","div",null,{"hidden":true,"children":["$","$f",null,{"fallback":null,"children":"$L10"}]}]}]]}],false]],"m":"$undefined","G":["$11",[]],"s":false,"S":true} +:HL["/_next/static/css/7a4f097ac51b20a7.css","style"] +0:{"P":null,"b":"6U79IAVVts3v8bcNT6dWz","p":"","c":["","admin","settings","model"],"i":false,"f":[[["",{"children":["admin",{"children":["settings",{"children":["model",{"children":["__PAGE__",{}]}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/7a4f097ac51b20a7.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"__variable_f367f3 __variable_438d47 antialiased bg-background h-[100dvh] overflow-hidden","suppressHydrationWarning":true,"children":["$","$L2",null,{"children":[["$","$L3",null,{"richColors":true,"position":"bottom-center"}],["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]]}]}]}]]}],{"children":["admin",["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["settings",["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["model",["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L7",null,{"view":"settings","settingsTab":"model"}],null,["$","$L8",null,{"children":["$L9",["$","$La",null,{"promise":"$@b"}]]}]]}],{},null,false]},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$Lc",null,{"children":"$Ld"}],["$","meta",null,{"name":"next-size-adjust","content":""}]],["$","$Le",null,{"children":["$","div",null,{"hidden":true,"children":["$","$f",null,{"fallback":null,"children":"$L10"}]}]}]]}],false]],"m":"$undefined","G":["$11",[]],"s":false,"S":true} d:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1, maximum-scale=1"}],["$","meta","2",{"name":"theme-color","content":"#000000"}]] 9:null 12:I[80622,[],"IconMark"] diff --git a/.next/server/app/admin/settings/model/page.js b/.next/server/app/admin/settings/model/page.js index ce0ff1f6ae8fe756ce7cbd5a2fe181f47f54131c..ae15d428d7970e50fa5d6278bacc28ee616044e6 100644 --- a/.next/server/app/admin/settings/model/page.js +++ b/.next/server/app/admin/settings/model/page.js @@ -1,2 +1,2 @@ -(()=>{var a={};a.id=3116,a.ids=[3116],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1708:a=>{"use strict";a.exports=require("node:process")},2054:(a,b,c)=>{"use strict";c.d(b,{PageWrapper:()=>d});let d=(0,c(97954).registerClientReference)(function(){throw Error("Attempted to call PageWrapper() from the server but PageWrapper is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx","PageWrapper")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},26713:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/is-bot")},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31152:(a,b,c)=>{"use strict";c.d(b,{PageWrapper:()=>o});var d=c(21124),e=c(38301),f=c(42378),g=c(11610),h=c(69188),i=c(83374),j=c(95919),k=c(14258),l=c(45914);let m={dashboard:"/admin",projects:"/admin/projects",templates:"/admin/templates",skills:"/admin/skills",sites:"/admin/sites",docs:"/admin/docs",settings:"/admin/settings"};function n({view:a,settingsTab:b}){let c=(0,f.useRouter)(),[j,n]=(0,e.useState)(null),[o,p]=(0,e.useState)(!1),q=(0,e.useCallback)(a=>{let b=m[a]||`/admin/${a}`;c.push(b)},[c]),r=j?(0,d.jsx)(i.a,{project:j,onBack:()=>n(null)}):(0,d.jsx)(h.f,{view:a,onProjectSelect:n,settingsTab:b,onNavigate:q});return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(g.M,{currentView:a,onNavigate:q,onProjectSelect:n,onOpenAbout:()=>p(!0),showSidebar:!j,children:r}),(0,d.jsx)(k.V,{location:"global"}),(0,d.jsx)(l.V,{open:o,onOpenChange:p})]})}function o({view:a,settingsTab:b}){return(0,d.jsx)(j.g,{children:(0,d.jsx)(n,{view:a,settingsTab:b})})}},33873:a=>{"use strict";a.exports=require("path")},36167:(a,b,c)=>{Promise.resolve().then(c.bind(c,2054))},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},55511:a=>{"use strict";a.exports=require("crypto")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},66431:(a,b,c)=>{Promise.resolve().then(c.bind(c,31152))},67570:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>f});var d=c(75338),e=c(2054);function f(){return(0,d.jsx)(e.PageWrapper,{view:"settings",settingsTab:"model"})}},73136:a=>{"use strict";a.exports=require("node:url")},76760:a=>{"use strict";a.exports=require("node:path")},77725:a=>{"use strict";a.exports=require("stream/promises")},79428:a=>{"use strict";a.exports=require("buffer")},79551:a=>{"use strict";a.exports=require("url")},79748:a=>{"use strict";a.exports=require("fs/promises")},80862:(a,b,c)=>{"use strict";c.r(b),c.d(b,{GlobalError:()=>D.a,__next_app__:()=>J,handler:()=>L,pages:()=>I,routeModule:()=>K,tree:()=>H});var d=c(49754),e=c(9117),f=c(46595),g=c(32324),h=c(39326),i=c(38928),j=c(20175),k=c(12),l=c(54290),m=c(12696),n=c(82802),o=c(77533),p=c(45229),q=c(32822),r=c(261),s=c(26453),t=c(52474),u=c(26713),v=c(51356),w=c(62685),x=c(36225),y=c(63446),z=c(2762),A=c(45742),B=c(86439),C=c(81170),D=c.n(C),E=c(62506),F=c(91203),G={};for(let a in E)0>["default","tree","pages","GlobalError","__next_app__","routeModule","handler"].indexOf(a)&&(G[a]=()=>E[a]);c.d(b,G);let H={children:["",{children:["admin",{children:["settings",{children:["model",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(c.bind(c,67570)),"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/settings/model/page.tsx"]}]},{}]},{}]},{}]},{layout:[()=>Promise.resolve().then(c.bind(c,16953)),"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout.tsx"],"global-error":[()=>Promise.resolve().then(c.t.bind(c,81170,23)),"next/dist/client/components/builtin/global-error.js"],"not-found":[()=>Promise.resolve().then(c.t.bind(c,87028,23)),"next/dist/client/components/builtin/not-found.js"],forbidden:[()=>Promise.resolve().then(c.t.bind(c,90461,23)),"next/dist/client/components/builtin/forbidden.js"],unauthorized:[()=>Promise.resolve().then(c.t.bind(c,32768,23)),"next/dist/client/components/builtin/unauthorized.js"]}]}.children,I=["/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/settings/model/page.tsx"],J={require:c,loadChunk:()=>Promise.resolve()},K=new d.AppPageRouteModule({definition:{kind:e.RouteKind.APP_PAGE,page:"/admin/settings/model/page",pathname:"/admin/settings/model",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:H},distDir:".next",relativeProjectDir:""});async function L(a,b,d){var C;let G="/admin/settings/model/page";"/index"===G&&(G="/");let M=(0,h.getRequestMeta)(a,"postponed"),N=(0,h.getRequestMeta)(a,"minimalMode"),O=await K.prepare(a,b,{srcPage:G,multiZoneDraftMode:!1});if(!O)return b.statusCode=400,b.end("Bad Request"),null==d.waitUntil||d.waitUntil.call(d,Promise.resolve()),null;let{buildId:P,query:Q,params:R,parsedUrl:S,pageIsDynamic:T,buildManifest:U,nextFontManifest:V,reactLoadableManifest:W,serverActionsManifest:X,clientReferenceManifest:Y,subresourceIntegrityManifest:Z,prerenderManifest:$,isDraftMode:_,resolvedPathname:aa,revalidateOnlyGenerated:ab,routerServerContext:ac,nextConfig:ad,interceptionRoutePatterns:ae}=O,af=S.pathname||"/",ag=(0,r.normalizeAppPath)(G),{isOnDemandRevalidate:ah}=O,ai=K.match(af,$),aj=!!$.routes[aa],ak=!!(ai||aj||$.routes[ag]),al=a.headers["user-agent"]||"",am=(0,u.getBotType)(al),an=(0,p.isHtmlBotRequest)(a),ao=(0,h.getRequestMeta)(a,"isPrefetchRSCRequest")??"1"===a.headers[t.NEXT_ROUTER_PREFETCH_HEADER],ap=(0,h.getRequestMeta)(a,"isRSCRequest")??!!a.headers[t.RSC_HEADER],aq=(0,s.getIsPossibleServerAction)(a),ar=(0,m.checkIsAppPPREnabled)(ad.experimental.ppr)&&(null==(C=$.routes[ag]??$.dynamicRoutes[ag])?void 0:C.renderingMode)==="PARTIALLY_STATIC",as=!1,at=!1,au=ar?M:void 0,av=ar&&ap&&!ao,aw=(0,h.getRequestMeta)(a,"segmentPrefetchRSCRequest"),ax=!al||(0,p.shouldServeStreamingMetadata)(al,ad.htmlLimitedBots);an&&ar&&(ak=!1,ax=!1);let ay=!0===K.isDev||!ak||"string"==typeof M||av,az=an&&ar,aA=null;_||!ak||ay||aq||au||av||(aA=aa);let aB=aA;!aB&&K.isDev&&(aB=aa),K.isDev||_||!ak||!ap||av||(0,k.d)(a.headers);let aC={...E,tree:H,pages:I,GlobalError:D(),handler:L,routeModule:K,__next_app__:J};X&&Y&&(0,o.setReferenceManifestsSingleton)({page:G,clientReferenceManifest:Y,serverActionsManifest:X,serverModuleMap:(0,q.createServerModuleMap)({serverActionsManifest:X})});let aD=a.method||"GET",aE=(0,g.getTracer)(),aF=aE.getActiveScopeSpan();try{let f=K.getVaryHeader(aa,ae);b.setHeader("Vary",f);let k=async(c,d)=>{let e=new l.NodeNextRequest(a),f=new l.NodeNextResponse(b);return K.render(e,f,d).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=aE.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==i.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${aD} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${aD} ${a.url}`)})},m=async({span:e,postponed:f,fallbackRouteParams:g})=>{let i={query:Q,params:R,page:ag,sharedContext:{buildId:P},serverComponentsHmrCache:(0,h.getRequestMeta)(a,"serverComponentsHmrCache"),fallbackRouteParams:g,renderOpts:{App:()=>null,Document:()=>null,pageConfig:{},ComponentMod:aC,Component:(0,j.T)(aC),params:R,routeModule:K,page:G,postponed:f,shouldWaitOnAllReady:az,serveStreamingMetadata:ax,supportsDynamicResponse:"string"==typeof f||ay,buildManifest:U,nextFontManifest:V,reactLoadableManifest:W,subresourceIntegrityManifest:Z,serverActionsManifest:X,clientReferenceManifest:Y,setIsrStatus:null==ac?void 0:ac.setIsrStatus,dir:c(33873).join(process.cwd(),K.relativeProjectDir),isDraftMode:_,isRevalidate:ak&&!f&&!av,botType:am,isOnDemandRevalidate:ah,isPossibleServerAction:aq,assetPrefix:ad.assetPrefix,nextConfigOutput:ad.output,crossOrigin:ad.crossOrigin,trailingSlash:ad.trailingSlash,previewProps:$.preview,deploymentId:ad.deploymentId,enableTainting:ad.experimental.taint,htmlLimitedBots:ad.htmlLimitedBots,devtoolSegmentExplorer:ad.experimental.devtoolSegmentExplorer,reactMaxHeadersLength:ad.reactMaxHeadersLength,multiZoneDraftMode:!1,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:ad.experimental.cacheLife,basePath:ad.basePath,serverActions:ad.experimental.serverActions,...as?{nextExport:!0,supportsDynamicResponse:!1,isStaticGeneration:!0,isRevalidate:!0,isDebugDynamicAccesses:as}:{},experimental:{isRoutePPREnabled:ar,expireTime:ad.expireTime,staleTimes:ad.experimental.staleTimes,cacheComponents:!!ad.experimental.cacheComponents,clientSegmentCache:!!ad.experimental.clientSegmentCache,clientParamParsing:!!ad.experimental.clientParamParsing,dynamicOnHover:!!ad.experimental.dynamicOnHover,inlineCss:!!ad.experimental.inlineCss,authInterrupts:!!ad.experimental.authInterrupts,clientTraceMetadata:ad.experimental.clientTraceMetadata||[]},waitUntil:d.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:()=>{},onInstrumentationRequestError:(b,c,d)=>K.onRequestError(a,b,d,ac),err:(0,h.getRequestMeta)(a,"invokeError"),dev:K.isDev}},l=await k(e,i),{metadata:m}=l,{cacheControl:n,headers:o={},fetchTags:p}=m;if(p&&(o[y.NEXT_CACHE_TAGS_HEADER]=p),a.fetchMetrics=m.fetchMetrics,ak&&(null==n?void 0:n.revalidate)===0&&!K.isDev&&!ar){let a=m.staticBailoutInfo,b=Object.defineProperty(Error(`Page changed from static to dynamic at runtime ${aa}${(null==a?void 0:a.description)?`, reason: ${a.description}`:""} -see more here https://nextjs.org/docs/messages/app-static-to-dynamic-error`),"__NEXT_ERROR_CODE",{value:"E132",enumerable:!1,configurable:!0});if(null==a?void 0:a.stack){let c=a.stack;b.stack=b.message+c.substring(c.indexOf("\n"))}throw b}return{value:{kind:v.CachedRouteKind.APP_PAGE,html:l,headers:o,rscData:m.flightData,postponed:m.postponed,status:m.statusCode,segmentData:m.segmentData},cacheControl:n}},o=async({hasResolved:c,previousCacheEntry:f,isRevalidating:g,span:i})=>{let j,k=!1===K.isDev,l=c||b.writableEnded;if(ah&&ab&&!f&&!N)return(null==ac?void 0:ac.render404)?await ac.render404(a,b):(b.statusCode=404,b.end("This page could not be found")),null;if(ai&&(j=(0,w.parseFallbackField)(ai.fallback)),j===w.FallbackMode.PRERENDER&&(0,u.isBot)(al)&&(!ar||an)&&(j=w.FallbackMode.BLOCKING_STATIC_RENDER),(null==f?void 0:f.isStale)===-1&&(ah=!0),ah&&(j!==w.FallbackMode.NOT_FOUND||f)&&(j=w.FallbackMode.BLOCKING_STATIC_RENDER),!N&&j!==w.FallbackMode.BLOCKING_STATIC_RENDER&&aB&&!l&&!_&&T&&(k||!aj)){let b;if((k||ai)&&j===w.FallbackMode.NOT_FOUND)throw new B.NoFallbackError;if(ar&&!ap){let c="string"==typeof(null==ai?void 0:ai.fallback)?ai.fallback:k?ag:null;if(b=await K.handleResponse({cacheKey:c,req:a,nextConfig:ad,routeKind:e.RouteKind.APP_PAGE,isFallback:!0,prerenderManifest:$,isRoutePPREnabled:ar,responseGenerator:async()=>m({span:i,postponed:void 0,fallbackRouteParams:k||at?(0,n.u)(ag):null}),waitUntil:d.waitUntil}),null===b)return null;if(b)return delete b.cacheControl,b}}let o=ah||g||!au?void 0:au;if(as&&void 0!==o)return{cacheControl:{revalidate:1,expire:void 0},value:{kind:v.CachedRouteKind.PAGES,html:x.default.EMPTY,pageData:{},headers:void 0,status:void 0}};let p=T&&ar&&((0,h.getRequestMeta)(a,"renderFallbackShell")||at)?(0,n.u)(af):null;return m({span:i,postponed:o,fallbackRouteParams:p})},p=async c=>{var f,g,i,j,k;let l,n=await K.handleResponse({cacheKey:aA,responseGenerator:a=>o({span:c,...a}),routeKind:e.RouteKind.APP_PAGE,isOnDemandRevalidate:ah,isRoutePPREnabled:ar,req:a,nextConfig:ad,prerenderManifest:$,waitUntil:d.waitUntil});if(_&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate"),K.isDev&&b.setHeader("Cache-Control","no-store, must-revalidate"),!n){if(aA)throw Object.defineProperty(Error("invariant: cache entry required but not generated"),"__NEXT_ERROR_CODE",{value:"E62",enumerable:!1,configurable:!0});return null}if((null==(f=n.value)?void 0:f.kind)!==v.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant app-page handler received invalid cache entry ${null==(i=n.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E707",enumerable:!1,configurable:!0});let p="string"==typeof n.value.postponed;ak&&!av&&(!p||ao)&&(N||b.setHeader("x-nextjs-cache",ah?"REVALIDATED":n.isMiss?"MISS":n.isStale?"STALE":"HIT"),b.setHeader(t.NEXT_IS_PRERENDER_HEADER,"1"));let{value:q}=n;if(au)l={revalidate:0,expire:void 0};else if(N&&ap&&!ao&&ar)l={revalidate:0,expire:void 0};else if(!K.isDev)if(_)l={revalidate:0,expire:void 0};else if(ak){if(n.cacheControl)if("number"==typeof n.cacheControl.revalidate){if(n.cacheControl.revalidate<1)throw Object.defineProperty(Error(`Invalid revalidate configuration provided: ${n.cacheControl.revalidate} < 1`),"__NEXT_ERROR_CODE",{value:"E22",enumerable:!1,configurable:!0});l={revalidate:n.cacheControl.revalidate,expire:(null==(j=n.cacheControl)?void 0:j.expire)??ad.expireTime}}else l={revalidate:y.CACHE_ONE_YEAR,expire:void 0}}else b.getHeader("Cache-Control")||(l={revalidate:0,expire:void 0});if(n.cacheControl=l,"string"==typeof aw&&(null==q?void 0:q.kind)===v.CachedRouteKind.APP_PAGE&&q.segmentData){b.setHeader(t.NEXT_DID_POSTPONE_HEADER,"2");let c=null==(k=q.headers)?void 0:k[y.NEXT_CACHE_TAGS_HEADER];N&&ak&&c&&"string"==typeof c&&b.setHeader(y.NEXT_CACHE_TAGS_HEADER,c);let d=q.segmentData.get(aw);return void 0!==d?(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.fromStatic(d,t.RSC_CONTENT_TYPE_HEADER),cacheControl:n.cacheControl}):(b.statusCode=204,(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.EMPTY,cacheControl:n.cacheControl}))}let r=(0,h.getRequestMeta)(a,"onCacheEntry");if(r&&await r({...n,value:{...n.value,kind:"PAGE"}},{url:(0,h.getRequestMeta)(a,"initURL")}))return null;if(p&&au)throw Object.defineProperty(Error("Invariant: postponed state should not be present on a resume request"),"__NEXT_ERROR_CODE",{value:"E396",enumerable:!1,configurable:!0});if(q.headers){let a={...q.headers};for(let[c,d]of(N&&ak||delete a[y.NEXT_CACHE_TAGS_HEADER],Object.entries(a)))if(void 0!==d)if(Array.isArray(d))for(let a of d)b.appendHeader(c,a);else"number"==typeof d&&(d=d.toString()),b.appendHeader(c,d)}let s=null==(g=q.headers)?void 0:g[y.NEXT_CACHE_TAGS_HEADER];if(N&&ak&&s&&"string"==typeof s&&b.setHeader(y.NEXT_CACHE_TAGS_HEADER,s),!q.status||ap&&ar||(b.statusCode=q.status),!N&&q.status&&F.RedirectStatusCode[q.status]&&ap&&(b.statusCode=200),p&&b.setHeader(t.NEXT_DID_POSTPONE_HEADER,"1"),ap&&!_){if(void 0===q.rscData){if(q.postponed)throw Object.defineProperty(Error("Invariant: Expected postponed to be undefined"),"__NEXT_ERROR_CODE",{value:"E372",enumerable:!1,configurable:!0});return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:q.html,cacheControl:av?{revalidate:0,expire:void 0}:n.cacheControl})}return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.fromStatic(q.rscData,t.RSC_CONTENT_TYPE_HEADER),cacheControl:n.cacheControl})}let u=q.html;if(!p||N||ap)return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:n.cacheControl});if(as)return u.push(new ReadableStream({start(a){a.enqueue(z.ENCODED_TAGS.CLOSED.BODY_AND_HTML),a.close()}})),(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:{revalidate:0,expire:void 0}});let w=new TransformStream;return u.push(w.readable),m({span:c,postponed:q.postponed,fallbackRouteParams:null}).then(async a=>{var b,c;if(!a)throw Object.defineProperty(Error("Invariant: expected a result to be returned"),"__NEXT_ERROR_CODE",{value:"E463",enumerable:!1,configurable:!0});if((null==(b=a.value)?void 0:b.kind)!==v.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant: expected a page response, got ${null==(c=a.value)?void 0:c.kind}`),"__NEXT_ERROR_CODE",{value:"E305",enumerable:!1,configurable:!0});await a.value.html.pipeTo(w.writable)}).catch(a=>{w.writable.abort(a).catch(a=>{console.error("couldn't abort transformer",a)})}),(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:{revalidate:0,expire:void 0}})};if(!aF)return await aE.withPropagatedContext(a.headers,()=>aE.trace(i.BaseServerSpan.handleRequest,{spanName:`${aD} ${a.url}`,kind:g.SpanKind.SERVER,attributes:{"http.method":aD,"http.target":a.url}},p));await p(aF)}catch(b){throw b instanceof B.NoFallbackError||await K.onRequestError(a,b,{routerKind:"App Router",routePath:G,routeType:"render",revalidateReason:(0,f.c)({isRevalidate:ak,isOnDemandRevalidate:ah})},ac),b}}},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{"use strict";a.exports=require("better-sqlite3")},94735:a=>{"use strict";a.exports=require("events")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,495,4606,570,7894,8476],()=>b(b.s=80862));module.exports=c})(); \ No newline at end of file +(()=>{var a={};a.id=3116,a.ids=[3116],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1708:a=>{"use strict";a.exports=require("node:process")},2054:(a,b,c)=>{"use strict";c.d(b,{PageWrapper:()=>d});let d=(0,c(97954).registerClientReference)(function(){throw Error("Attempted to call PageWrapper() from the server but PageWrapper is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx","PageWrapper")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},26713:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/is-bot")},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31152:(a,b,c)=>{"use strict";c.d(b,{PageWrapper:()=>o});var d=c(21124),e=c(38301),f=c(42378),g=c(11610),h=c(83330),i=c(44215),j=c(95919),k=c(14258),l=c(45914);let m={dashboard:"/admin",projects:"/admin/projects",templates:"/admin/templates",skills:"/admin/skills",deployments:"/admin/deployments",docs:"/admin/docs",settings:"/admin/settings"};function n({view:a,settingsTab:b}){let c=(0,f.useRouter)(),[j,n]=(0,e.useState)(null),[o,p]=(0,e.useState)(!1),q=(0,e.useCallback)(a=>{let b=m[a]||`/admin/${a}`;c.push(b)},[c]),r=j?(0,d.jsx)(i.a,{project:j,onBack:()=>n(null)}):(0,d.jsx)(h.f,{view:a,onProjectSelect:n,settingsTab:b,onNavigate:q});return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(g.M,{currentView:a,onNavigate:q,onProjectSelect:n,onOpenAbout:()=>p(!0),showSidebar:!j,children:r}),(0,d.jsx)(k.V,{location:"global"}),(0,d.jsx)(l.V,{open:o,onOpenChange:p})]})}function o({view:a,settingsTab:b}){return(0,d.jsx)(j.g,{children:(0,d.jsx)(n,{view:a,settingsTab:b})})}},33873:a=>{"use strict";a.exports=require("path")},36167:(a,b,c)=>{Promise.resolve().then(c.bind(c,2054))},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},55511:a=>{"use strict";a.exports=require("crypto")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},66431:(a,b,c)=>{Promise.resolve().then(c.bind(c,31152))},67570:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>f});var d=c(75338),e=c(2054);function f(){return(0,d.jsx)(e.PageWrapper,{view:"settings",settingsTab:"model"})}},73136:a=>{"use strict";a.exports=require("node:url")},76760:a=>{"use strict";a.exports=require("node:path")},77725:a=>{"use strict";a.exports=require("stream/promises")},79428:a=>{"use strict";a.exports=require("buffer")},79551:a=>{"use strict";a.exports=require("url")},79748:a=>{"use strict";a.exports=require("fs/promises")},80862:(a,b,c)=>{"use strict";c.r(b),c.d(b,{GlobalError:()=>D.a,__next_app__:()=>J,handler:()=>L,pages:()=>I,routeModule:()=>K,tree:()=>H});var d=c(49754),e=c(9117),f=c(46595),g=c(32324),h=c(39326),i=c(38928),j=c(20175),k=c(12),l=c(54290),m=c(12696),n=c(82802),o=c(77533),p=c(45229),q=c(32822),r=c(261),s=c(26453),t=c(52474),u=c(26713),v=c(51356),w=c(62685),x=c(36225),y=c(63446),z=c(2762),A=c(45742),B=c(86439),C=c(81170),D=c.n(C),E=c(62506),F=c(91203),G={};for(let a in E)0>["default","tree","pages","GlobalError","__next_app__","routeModule","handler"].indexOf(a)&&(G[a]=()=>E[a]);c.d(b,G);let H={children:["",{children:["admin",{children:["settings",{children:["model",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(c.bind(c,67570)),"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/settings/model/page.tsx"]}]},{}]},{}]},{}]},{layout:[()=>Promise.resolve().then(c.bind(c,16953)),"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout.tsx"],"global-error":[()=>Promise.resolve().then(c.t.bind(c,81170,23)),"next/dist/client/components/builtin/global-error.js"],"not-found":[()=>Promise.resolve().then(c.t.bind(c,87028,23)),"next/dist/client/components/builtin/not-found.js"],forbidden:[()=>Promise.resolve().then(c.t.bind(c,90461,23)),"next/dist/client/components/builtin/forbidden.js"],unauthorized:[()=>Promise.resolve().then(c.t.bind(c,32768,23)),"next/dist/client/components/builtin/unauthorized.js"]}]}.children,I=["/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/settings/model/page.tsx"],J={require:c,loadChunk:()=>Promise.resolve()},K=new d.AppPageRouteModule({definition:{kind:e.RouteKind.APP_PAGE,page:"/admin/settings/model/page",pathname:"/admin/settings/model",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:H},distDir:".next",relativeProjectDir:""});async function L(a,b,d){var C;let G="/admin/settings/model/page";"/index"===G&&(G="/");let M=(0,h.getRequestMeta)(a,"postponed"),N=(0,h.getRequestMeta)(a,"minimalMode"),O=await K.prepare(a,b,{srcPage:G,multiZoneDraftMode:!1});if(!O)return b.statusCode=400,b.end("Bad Request"),null==d.waitUntil||d.waitUntil.call(d,Promise.resolve()),null;let{buildId:P,query:Q,params:R,parsedUrl:S,pageIsDynamic:T,buildManifest:U,nextFontManifest:V,reactLoadableManifest:W,serverActionsManifest:X,clientReferenceManifest:Y,subresourceIntegrityManifest:Z,prerenderManifest:$,isDraftMode:_,resolvedPathname:aa,revalidateOnlyGenerated:ab,routerServerContext:ac,nextConfig:ad,interceptionRoutePatterns:ae}=O,af=S.pathname||"/",ag=(0,r.normalizeAppPath)(G),{isOnDemandRevalidate:ah}=O,ai=K.match(af,$),aj=!!$.routes[aa],ak=!!(ai||aj||$.routes[ag]),al=a.headers["user-agent"]||"",am=(0,u.getBotType)(al),an=(0,p.isHtmlBotRequest)(a),ao=(0,h.getRequestMeta)(a,"isPrefetchRSCRequest")??"1"===a.headers[t.NEXT_ROUTER_PREFETCH_HEADER],ap=(0,h.getRequestMeta)(a,"isRSCRequest")??!!a.headers[t.RSC_HEADER],aq=(0,s.getIsPossibleServerAction)(a),ar=(0,m.checkIsAppPPREnabled)(ad.experimental.ppr)&&(null==(C=$.routes[ag]??$.dynamicRoutes[ag])?void 0:C.renderingMode)==="PARTIALLY_STATIC",as=!1,at=!1,au=ar?M:void 0,av=ar&&ap&&!ao,aw=(0,h.getRequestMeta)(a,"segmentPrefetchRSCRequest"),ax=!al||(0,p.shouldServeStreamingMetadata)(al,ad.htmlLimitedBots);an&&ar&&(ak=!1,ax=!1);let ay=!0===K.isDev||!ak||"string"==typeof M||av,az=an&&ar,aA=null;_||!ak||ay||aq||au||av||(aA=aa);let aB=aA;!aB&&K.isDev&&(aB=aa),K.isDev||_||!ak||!ap||av||(0,k.d)(a.headers);let aC={...E,tree:H,pages:I,GlobalError:D(),handler:L,routeModule:K,__next_app__:J};X&&Y&&(0,o.setReferenceManifestsSingleton)({page:G,clientReferenceManifest:Y,serverActionsManifest:X,serverModuleMap:(0,q.createServerModuleMap)({serverActionsManifest:X})});let aD=a.method||"GET",aE=(0,g.getTracer)(),aF=aE.getActiveScopeSpan();try{let f=K.getVaryHeader(aa,ae);b.setHeader("Vary",f);let k=async(c,d)=>{let e=new l.NodeNextRequest(a),f=new l.NodeNextResponse(b);return K.render(e,f,d).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=aE.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==i.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${aD} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${aD} ${a.url}`)})},m=async({span:e,postponed:f,fallbackRouteParams:g})=>{let i={query:Q,params:R,page:ag,sharedContext:{buildId:P},serverComponentsHmrCache:(0,h.getRequestMeta)(a,"serverComponentsHmrCache"),fallbackRouteParams:g,renderOpts:{App:()=>null,Document:()=>null,pageConfig:{},ComponentMod:aC,Component:(0,j.T)(aC),params:R,routeModule:K,page:G,postponed:f,shouldWaitOnAllReady:az,serveStreamingMetadata:ax,supportsDynamicResponse:"string"==typeof f||ay,buildManifest:U,nextFontManifest:V,reactLoadableManifest:W,subresourceIntegrityManifest:Z,serverActionsManifest:X,clientReferenceManifest:Y,setIsrStatus:null==ac?void 0:ac.setIsrStatus,dir:c(33873).join(process.cwd(),K.relativeProjectDir),isDraftMode:_,isRevalidate:ak&&!f&&!av,botType:am,isOnDemandRevalidate:ah,isPossibleServerAction:aq,assetPrefix:ad.assetPrefix,nextConfigOutput:ad.output,crossOrigin:ad.crossOrigin,trailingSlash:ad.trailingSlash,previewProps:$.preview,deploymentId:ad.deploymentId,enableTainting:ad.experimental.taint,htmlLimitedBots:ad.htmlLimitedBots,devtoolSegmentExplorer:ad.experimental.devtoolSegmentExplorer,reactMaxHeadersLength:ad.reactMaxHeadersLength,multiZoneDraftMode:!1,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:ad.experimental.cacheLife,basePath:ad.basePath,serverActions:ad.experimental.serverActions,...as?{nextExport:!0,supportsDynamicResponse:!1,isStaticGeneration:!0,isRevalidate:!0,isDebugDynamicAccesses:as}:{},experimental:{isRoutePPREnabled:ar,expireTime:ad.expireTime,staleTimes:ad.experimental.staleTimes,cacheComponents:!!ad.experimental.cacheComponents,clientSegmentCache:!!ad.experimental.clientSegmentCache,clientParamParsing:!!ad.experimental.clientParamParsing,dynamicOnHover:!!ad.experimental.dynamicOnHover,inlineCss:!!ad.experimental.inlineCss,authInterrupts:!!ad.experimental.authInterrupts,clientTraceMetadata:ad.experimental.clientTraceMetadata||[]},waitUntil:d.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:()=>{},onInstrumentationRequestError:(b,c,d)=>K.onRequestError(a,b,d,ac),err:(0,h.getRequestMeta)(a,"invokeError"),dev:K.isDev}},l=await k(e,i),{metadata:m}=l,{cacheControl:n,headers:o={},fetchTags:p}=m;if(p&&(o[y.NEXT_CACHE_TAGS_HEADER]=p),a.fetchMetrics=m.fetchMetrics,ak&&(null==n?void 0:n.revalidate)===0&&!K.isDev&&!ar){let a=m.staticBailoutInfo,b=Object.defineProperty(Error(`Page changed from static to dynamic at runtime ${aa}${(null==a?void 0:a.description)?`, reason: ${a.description}`:""} +see more here https://nextjs.org/docs/messages/app-static-to-dynamic-error`),"__NEXT_ERROR_CODE",{value:"E132",enumerable:!1,configurable:!0});if(null==a?void 0:a.stack){let c=a.stack;b.stack=b.message+c.substring(c.indexOf("\n"))}throw b}return{value:{kind:v.CachedRouteKind.APP_PAGE,html:l,headers:o,rscData:m.flightData,postponed:m.postponed,status:m.statusCode,segmentData:m.segmentData},cacheControl:n}},o=async({hasResolved:c,previousCacheEntry:f,isRevalidating:g,span:i})=>{let j,k=!1===K.isDev,l=c||b.writableEnded;if(ah&&ab&&!f&&!N)return(null==ac?void 0:ac.render404)?await ac.render404(a,b):(b.statusCode=404,b.end("This page could not be found")),null;if(ai&&(j=(0,w.parseFallbackField)(ai.fallback)),j===w.FallbackMode.PRERENDER&&(0,u.isBot)(al)&&(!ar||an)&&(j=w.FallbackMode.BLOCKING_STATIC_RENDER),(null==f?void 0:f.isStale)===-1&&(ah=!0),ah&&(j!==w.FallbackMode.NOT_FOUND||f)&&(j=w.FallbackMode.BLOCKING_STATIC_RENDER),!N&&j!==w.FallbackMode.BLOCKING_STATIC_RENDER&&aB&&!l&&!_&&T&&(k||!aj)){let b;if((k||ai)&&j===w.FallbackMode.NOT_FOUND)throw new B.NoFallbackError;if(ar&&!ap){let c="string"==typeof(null==ai?void 0:ai.fallback)?ai.fallback:k?ag:null;if(b=await K.handleResponse({cacheKey:c,req:a,nextConfig:ad,routeKind:e.RouteKind.APP_PAGE,isFallback:!0,prerenderManifest:$,isRoutePPREnabled:ar,responseGenerator:async()=>m({span:i,postponed:void 0,fallbackRouteParams:k||at?(0,n.u)(ag):null}),waitUntil:d.waitUntil}),null===b)return null;if(b)return delete b.cacheControl,b}}let o=ah||g||!au?void 0:au;if(as&&void 0!==o)return{cacheControl:{revalidate:1,expire:void 0},value:{kind:v.CachedRouteKind.PAGES,html:x.default.EMPTY,pageData:{},headers:void 0,status:void 0}};let p=T&&ar&&((0,h.getRequestMeta)(a,"renderFallbackShell")||at)?(0,n.u)(af):null;return m({span:i,postponed:o,fallbackRouteParams:p})},p=async c=>{var f,g,i,j,k;let l,n=await K.handleResponse({cacheKey:aA,responseGenerator:a=>o({span:c,...a}),routeKind:e.RouteKind.APP_PAGE,isOnDemandRevalidate:ah,isRoutePPREnabled:ar,req:a,nextConfig:ad,prerenderManifest:$,waitUntil:d.waitUntil});if(_&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate"),K.isDev&&b.setHeader("Cache-Control","no-store, must-revalidate"),!n){if(aA)throw Object.defineProperty(Error("invariant: cache entry required but not generated"),"__NEXT_ERROR_CODE",{value:"E62",enumerable:!1,configurable:!0});return null}if((null==(f=n.value)?void 0:f.kind)!==v.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant app-page handler received invalid cache entry ${null==(i=n.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E707",enumerable:!1,configurable:!0});let p="string"==typeof n.value.postponed;ak&&!av&&(!p||ao)&&(N||b.setHeader("x-nextjs-cache",ah?"REVALIDATED":n.isMiss?"MISS":n.isStale?"STALE":"HIT"),b.setHeader(t.NEXT_IS_PRERENDER_HEADER,"1"));let{value:q}=n;if(au)l={revalidate:0,expire:void 0};else if(N&&ap&&!ao&&ar)l={revalidate:0,expire:void 0};else if(!K.isDev)if(_)l={revalidate:0,expire:void 0};else if(ak){if(n.cacheControl)if("number"==typeof n.cacheControl.revalidate){if(n.cacheControl.revalidate<1)throw Object.defineProperty(Error(`Invalid revalidate configuration provided: ${n.cacheControl.revalidate} < 1`),"__NEXT_ERROR_CODE",{value:"E22",enumerable:!1,configurable:!0});l={revalidate:n.cacheControl.revalidate,expire:(null==(j=n.cacheControl)?void 0:j.expire)??ad.expireTime}}else l={revalidate:y.CACHE_ONE_YEAR,expire:void 0}}else b.getHeader("Cache-Control")||(l={revalidate:0,expire:void 0});if(n.cacheControl=l,"string"==typeof aw&&(null==q?void 0:q.kind)===v.CachedRouteKind.APP_PAGE&&q.segmentData){b.setHeader(t.NEXT_DID_POSTPONE_HEADER,"2");let c=null==(k=q.headers)?void 0:k[y.NEXT_CACHE_TAGS_HEADER];N&&ak&&c&&"string"==typeof c&&b.setHeader(y.NEXT_CACHE_TAGS_HEADER,c);let d=q.segmentData.get(aw);return void 0!==d?(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.fromStatic(d,t.RSC_CONTENT_TYPE_HEADER),cacheControl:n.cacheControl}):(b.statusCode=204,(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.EMPTY,cacheControl:n.cacheControl}))}let r=(0,h.getRequestMeta)(a,"onCacheEntry");if(r&&await r({...n,value:{...n.value,kind:"PAGE"}},{url:(0,h.getRequestMeta)(a,"initURL")}))return null;if(p&&au)throw Object.defineProperty(Error("Invariant: postponed state should not be present on a resume request"),"__NEXT_ERROR_CODE",{value:"E396",enumerable:!1,configurable:!0});if(q.headers){let a={...q.headers};for(let[c,d]of(N&&ak||delete a[y.NEXT_CACHE_TAGS_HEADER],Object.entries(a)))if(void 0!==d)if(Array.isArray(d))for(let a of d)b.appendHeader(c,a);else"number"==typeof d&&(d=d.toString()),b.appendHeader(c,d)}let s=null==(g=q.headers)?void 0:g[y.NEXT_CACHE_TAGS_HEADER];if(N&&ak&&s&&"string"==typeof s&&b.setHeader(y.NEXT_CACHE_TAGS_HEADER,s),!q.status||ap&&ar||(b.statusCode=q.status),!N&&q.status&&F.RedirectStatusCode[q.status]&&ap&&(b.statusCode=200),p&&b.setHeader(t.NEXT_DID_POSTPONE_HEADER,"1"),ap&&!_){if(void 0===q.rscData){if(q.postponed)throw Object.defineProperty(Error("Invariant: Expected postponed to be undefined"),"__NEXT_ERROR_CODE",{value:"E372",enumerable:!1,configurable:!0});return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:q.html,cacheControl:av?{revalidate:0,expire:void 0}:n.cacheControl})}return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.fromStatic(q.rscData,t.RSC_CONTENT_TYPE_HEADER),cacheControl:n.cacheControl})}let u=q.html;if(!p||N||ap)return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:n.cacheControl});if(as)return u.push(new ReadableStream({start(a){a.enqueue(z.ENCODED_TAGS.CLOSED.BODY_AND_HTML),a.close()}})),(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:{revalidate:0,expire:void 0}});let w=new TransformStream;return u.push(w.readable),m({span:c,postponed:q.postponed,fallbackRouteParams:null}).then(async a=>{var b,c;if(!a)throw Object.defineProperty(Error("Invariant: expected a result to be returned"),"__NEXT_ERROR_CODE",{value:"E463",enumerable:!1,configurable:!0});if((null==(b=a.value)?void 0:b.kind)!==v.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant: expected a page response, got ${null==(c=a.value)?void 0:c.kind}`),"__NEXT_ERROR_CODE",{value:"E305",enumerable:!1,configurable:!0});await a.value.html.pipeTo(w.writable)}).catch(a=>{w.writable.abort(a).catch(a=>{console.error("couldn't abort transformer",a)})}),(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:{revalidate:0,expire:void 0}})};if(!aF)return await aE.withPropagatedContext(a.headers,()=>aE.trace(i.BaseServerSpan.handleRequest,{spanName:`${aD} ${a.url}`,kind:g.SpanKind.SERVER,attributes:{"http.method":aD,"http.target":a.url}},p));await p(aF)}catch(b){throw b instanceof B.NoFallbackError||await K.onRequestError(a,b,{routerKind:"App Router",routePath:G,routeType:"render",revalidateReason:(0,f.c)({isRevalidate:ak,isOnDemandRevalidate:ah})},ac),b}}},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{"use strict";a.exports=require("better-sqlite3")},94735:a=>{"use strict";a.exports=require("events")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,495,4606,1732,7894,9815],()=>b(b.s=80862));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/admin/settings/model/page.js.nft.json b/.next/server/app/admin/settings/model/page.js.nft.json index 521f558dcade50039d1f5e850992011376efff10..954b08d6647040c72e2eaed3bd2efe16b89858e2 100644 --- a/.next/server/app/admin/settings/model/page.js.nft.json +++ b/.next/server/app/admin/settings/model/page.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../node_modules/better-sqlite3/package.json","../../../../../../node_modules/bindings/bindings.js","../../../../../../node_modules/bindings/package.json","../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/html-bots.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/is-bot.js","../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../node_modules/next/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/2671.js","../../../../chunks/4078.js","../../../../chunks/4277.js","../../../../chunks/4586.js","../../../../chunks/4606.js","../../../../chunks/4681.js","../../../../chunks/495.js","../../../../chunks/570.js","../../../../chunks/6085.js","../../../../chunks/740.js","../../../../chunks/7894.js","../../../../chunks/8476.js","../../../../chunks/9206.js","../../../../chunks/9975.js","../../../../webpack-runtime.js","page_client-reference-manifest.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../node_modules/better-sqlite3/package.json","../../../../../../node_modules/bindings/bindings.js","../../../../../../node_modules/bindings/package.json","../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/html-bots.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/is-bot.js","../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../node_modules/next/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1732.js","../../../../chunks/2671.js","../../../../chunks/4078.js","../../../../chunks/4141.js","../../../../chunks/4277.js","../../../../chunks/4586.js","../../../../chunks/4606.js","../../../../chunks/495.js","../../../../chunks/6085.js","../../../../chunks/740.js","../../../../chunks/7894.js","../../../../chunks/9050.js","../../../../chunks/9206.js","../../../../chunks/9815.js","../../../../chunks/9975.js","../../../../webpack-runtime.js","page_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/admin/settings/model/page_client-reference-manifest.js b/.next/server/app/admin/settings/model/page_client-reference-manifest.js index 6a114046198fdc247c04b53af63cf2b390d77201..ba9d9e182ed867106eacaa5bc5f28a6c90f1bf43 100644 --- a/.next/server/app/admin/settings/model/page_client-reference-manifest.js +++ b/.next/server/app/admin/settings/model/page_client-reference-manifest.js @@ -1 +1 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/admin/settings/model/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","3116","static/chunks/app/admin/settings/model/page-cd3396dba1a5acbf.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":["3698","static/chunks/app/admin/page-700ea05bb99f3aa7.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/settings/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/settings/model/page":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/admin/settings/model/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","3116","static/chunks/app/admin/settings/model/page-93d978d4bcb74918.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":["3698","static/chunks/app/admin/page-700ea05bb99f3aa7.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/settings/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/settings/model/page":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/admin/settings/page.js b/.next/server/app/admin/settings/page.js index 8313237d7f263b5dd3fd84b694ba487694705317..69c4fa31310c6a92f34175d3c2c800188197e0ad 100644 --- a/.next/server/app/admin/settings/page.js +++ b/.next/server/app/admin/settings/page.js @@ -1,2 +1,2 @@ -(()=>{var a={};a.id=7122,a.ids=[7122],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1708:a=>{"use strict";a.exports=require("node:process")},2054:(a,b,c)=>{"use strict";c.d(b,{PageWrapper:()=>d});let d=(0,c(97954).registerClientReference)(function(){throw Error("Attempted to call PageWrapper() from the server but PageWrapper is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx","PageWrapper")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},26713:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/is-bot")},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31152:(a,b,c)=>{"use strict";c.d(b,{PageWrapper:()=>o});var d=c(21124),e=c(38301),f=c(42378),g=c(11610),h=c(69188),i=c(83374),j=c(95919),k=c(14258),l=c(45914);let m={dashboard:"/admin",projects:"/admin/projects",templates:"/admin/templates",skills:"/admin/skills",sites:"/admin/sites",docs:"/admin/docs",settings:"/admin/settings"};function n({view:a,settingsTab:b}){let c=(0,f.useRouter)(),[j,n]=(0,e.useState)(null),[o,p]=(0,e.useState)(!1),q=(0,e.useCallback)(a=>{let b=m[a]||`/admin/${a}`;c.push(b)},[c]),r=j?(0,d.jsx)(i.a,{project:j,onBack:()=>n(null)}):(0,d.jsx)(h.f,{view:a,onProjectSelect:n,settingsTab:b,onNavigate:q});return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(g.M,{currentView:a,onNavigate:q,onProjectSelect:n,onOpenAbout:()=>p(!0),showSidebar:!j,children:r}),(0,d.jsx)(k.V,{location:"global"}),(0,d.jsx)(l.V,{open:o,onOpenChange:p})]})}function o({view:a,settingsTab:b}){return(0,d.jsx)(j.g,{children:(0,d.jsx)(n,{view:a,settingsTab:b})})}},33873:a=>{"use strict";a.exports=require("path")},36167:(a,b,c)=>{Promise.resolve().then(c.bind(c,2054))},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},55511:a=>{"use strict";a.exports=require("crypto")},60270:(a,b,c)=>{"use strict";c.r(b),c.d(b,{GlobalError:()=>D.a,__next_app__:()=>J,handler:()=>L,pages:()=>I,routeModule:()=>K,tree:()=>H});var d=c(49754),e=c(9117),f=c(46595),g=c(32324),h=c(39326),i=c(38928),j=c(20175),k=c(12),l=c(54290),m=c(12696),n=c(82802),o=c(77533),p=c(45229),q=c(32822),r=c(261),s=c(26453),t=c(52474),u=c(26713),v=c(51356),w=c(62685),x=c(36225),y=c(63446),z=c(2762),A=c(45742),B=c(86439),C=c(81170),D=c.n(C),E=c(62506),F=c(91203),G={};for(let a in E)0>["default","tree","pages","GlobalError","__next_app__","routeModule","handler"].indexOf(a)&&(G[a]=()=>E[a]);c.d(b,G);let H={children:["",{children:["admin",{children:["settings",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(c.bind(c,62800)),"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/settings/page.tsx"]}]},{}]},{}]},{layout:[()=>Promise.resolve().then(c.bind(c,16953)),"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout.tsx"],"global-error":[()=>Promise.resolve().then(c.t.bind(c,81170,23)),"next/dist/client/components/builtin/global-error.js"],"not-found":[()=>Promise.resolve().then(c.t.bind(c,87028,23)),"next/dist/client/components/builtin/not-found.js"],forbidden:[()=>Promise.resolve().then(c.t.bind(c,90461,23)),"next/dist/client/components/builtin/forbidden.js"],unauthorized:[()=>Promise.resolve().then(c.t.bind(c,32768,23)),"next/dist/client/components/builtin/unauthorized.js"]}]}.children,I=["/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/settings/page.tsx"],J={require:c,loadChunk:()=>Promise.resolve()},K=new d.AppPageRouteModule({definition:{kind:e.RouteKind.APP_PAGE,page:"/admin/settings/page",pathname:"/admin/settings",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:H},distDir:".next",relativeProjectDir:""});async function L(a,b,d){var C;let G="/admin/settings/page";"/index"===G&&(G="/");let M=(0,h.getRequestMeta)(a,"postponed"),N=(0,h.getRequestMeta)(a,"minimalMode"),O=await K.prepare(a,b,{srcPage:G,multiZoneDraftMode:!1});if(!O)return b.statusCode=400,b.end("Bad Request"),null==d.waitUntil||d.waitUntil.call(d,Promise.resolve()),null;let{buildId:P,query:Q,params:R,parsedUrl:S,pageIsDynamic:T,buildManifest:U,nextFontManifest:V,reactLoadableManifest:W,serverActionsManifest:X,clientReferenceManifest:Y,subresourceIntegrityManifest:Z,prerenderManifest:$,isDraftMode:_,resolvedPathname:aa,revalidateOnlyGenerated:ab,routerServerContext:ac,nextConfig:ad,interceptionRoutePatterns:ae}=O,af=S.pathname||"/",ag=(0,r.normalizeAppPath)(G),{isOnDemandRevalidate:ah}=O,ai=K.match(af,$),aj=!!$.routes[aa],ak=!!(ai||aj||$.routes[ag]),al=a.headers["user-agent"]||"",am=(0,u.getBotType)(al),an=(0,p.isHtmlBotRequest)(a),ao=(0,h.getRequestMeta)(a,"isPrefetchRSCRequest")??"1"===a.headers[t.NEXT_ROUTER_PREFETCH_HEADER],ap=(0,h.getRequestMeta)(a,"isRSCRequest")??!!a.headers[t.RSC_HEADER],aq=(0,s.getIsPossibleServerAction)(a),ar=(0,m.checkIsAppPPREnabled)(ad.experimental.ppr)&&(null==(C=$.routes[ag]??$.dynamicRoutes[ag])?void 0:C.renderingMode)==="PARTIALLY_STATIC",as=!1,at=!1,au=ar?M:void 0,av=ar&&ap&&!ao,aw=(0,h.getRequestMeta)(a,"segmentPrefetchRSCRequest"),ax=!al||(0,p.shouldServeStreamingMetadata)(al,ad.htmlLimitedBots);an&&ar&&(ak=!1,ax=!1);let ay=!0===K.isDev||!ak||"string"==typeof M||av,az=an&&ar,aA=null;_||!ak||ay||aq||au||av||(aA=aa);let aB=aA;!aB&&K.isDev&&(aB=aa),K.isDev||_||!ak||!ap||av||(0,k.d)(a.headers);let aC={...E,tree:H,pages:I,GlobalError:D(),handler:L,routeModule:K,__next_app__:J};X&&Y&&(0,o.setReferenceManifestsSingleton)({page:G,clientReferenceManifest:Y,serverActionsManifest:X,serverModuleMap:(0,q.createServerModuleMap)({serverActionsManifest:X})});let aD=a.method||"GET",aE=(0,g.getTracer)(),aF=aE.getActiveScopeSpan();try{let f=K.getVaryHeader(aa,ae);b.setHeader("Vary",f);let k=async(c,d)=>{let e=new l.NodeNextRequest(a),f=new l.NodeNextResponse(b);return K.render(e,f,d).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=aE.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==i.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${aD} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${aD} ${a.url}`)})},m=async({span:e,postponed:f,fallbackRouteParams:g})=>{let i={query:Q,params:R,page:ag,sharedContext:{buildId:P},serverComponentsHmrCache:(0,h.getRequestMeta)(a,"serverComponentsHmrCache"),fallbackRouteParams:g,renderOpts:{App:()=>null,Document:()=>null,pageConfig:{},ComponentMod:aC,Component:(0,j.T)(aC),params:R,routeModule:K,page:G,postponed:f,shouldWaitOnAllReady:az,serveStreamingMetadata:ax,supportsDynamicResponse:"string"==typeof f||ay,buildManifest:U,nextFontManifest:V,reactLoadableManifest:W,subresourceIntegrityManifest:Z,serverActionsManifest:X,clientReferenceManifest:Y,setIsrStatus:null==ac?void 0:ac.setIsrStatus,dir:c(33873).join(process.cwd(),K.relativeProjectDir),isDraftMode:_,isRevalidate:ak&&!f&&!av,botType:am,isOnDemandRevalidate:ah,isPossibleServerAction:aq,assetPrefix:ad.assetPrefix,nextConfigOutput:ad.output,crossOrigin:ad.crossOrigin,trailingSlash:ad.trailingSlash,previewProps:$.preview,deploymentId:ad.deploymentId,enableTainting:ad.experimental.taint,htmlLimitedBots:ad.htmlLimitedBots,devtoolSegmentExplorer:ad.experimental.devtoolSegmentExplorer,reactMaxHeadersLength:ad.reactMaxHeadersLength,multiZoneDraftMode:!1,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:ad.experimental.cacheLife,basePath:ad.basePath,serverActions:ad.experimental.serverActions,...as?{nextExport:!0,supportsDynamicResponse:!1,isStaticGeneration:!0,isRevalidate:!0,isDebugDynamicAccesses:as}:{},experimental:{isRoutePPREnabled:ar,expireTime:ad.expireTime,staleTimes:ad.experimental.staleTimes,cacheComponents:!!ad.experimental.cacheComponents,clientSegmentCache:!!ad.experimental.clientSegmentCache,clientParamParsing:!!ad.experimental.clientParamParsing,dynamicOnHover:!!ad.experimental.dynamicOnHover,inlineCss:!!ad.experimental.inlineCss,authInterrupts:!!ad.experimental.authInterrupts,clientTraceMetadata:ad.experimental.clientTraceMetadata||[]},waitUntil:d.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:()=>{},onInstrumentationRequestError:(b,c,d)=>K.onRequestError(a,b,d,ac),err:(0,h.getRequestMeta)(a,"invokeError"),dev:K.isDev}},l=await k(e,i),{metadata:m}=l,{cacheControl:n,headers:o={},fetchTags:p}=m;if(p&&(o[y.NEXT_CACHE_TAGS_HEADER]=p),a.fetchMetrics=m.fetchMetrics,ak&&(null==n?void 0:n.revalidate)===0&&!K.isDev&&!ar){let a=m.staticBailoutInfo,b=Object.defineProperty(Error(`Page changed from static to dynamic at runtime ${aa}${(null==a?void 0:a.description)?`, reason: ${a.description}`:""} -see more here https://nextjs.org/docs/messages/app-static-to-dynamic-error`),"__NEXT_ERROR_CODE",{value:"E132",enumerable:!1,configurable:!0});if(null==a?void 0:a.stack){let c=a.stack;b.stack=b.message+c.substring(c.indexOf("\n"))}throw b}return{value:{kind:v.CachedRouteKind.APP_PAGE,html:l,headers:o,rscData:m.flightData,postponed:m.postponed,status:m.statusCode,segmentData:m.segmentData},cacheControl:n}},o=async({hasResolved:c,previousCacheEntry:f,isRevalidating:g,span:i})=>{let j,k=!1===K.isDev,l=c||b.writableEnded;if(ah&&ab&&!f&&!N)return(null==ac?void 0:ac.render404)?await ac.render404(a,b):(b.statusCode=404,b.end("This page could not be found")),null;if(ai&&(j=(0,w.parseFallbackField)(ai.fallback)),j===w.FallbackMode.PRERENDER&&(0,u.isBot)(al)&&(!ar||an)&&(j=w.FallbackMode.BLOCKING_STATIC_RENDER),(null==f?void 0:f.isStale)===-1&&(ah=!0),ah&&(j!==w.FallbackMode.NOT_FOUND||f)&&(j=w.FallbackMode.BLOCKING_STATIC_RENDER),!N&&j!==w.FallbackMode.BLOCKING_STATIC_RENDER&&aB&&!l&&!_&&T&&(k||!aj)){let b;if((k||ai)&&j===w.FallbackMode.NOT_FOUND)throw new B.NoFallbackError;if(ar&&!ap){let c="string"==typeof(null==ai?void 0:ai.fallback)?ai.fallback:k?ag:null;if(b=await K.handleResponse({cacheKey:c,req:a,nextConfig:ad,routeKind:e.RouteKind.APP_PAGE,isFallback:!0,prerenderManifest:$,isRoutePPREnabled:ar,responseGenerator:async()=>m({span:i,postponed:void 0,fallbackRouteParams:k||at?(0,n.u)(ag):null}),waitUntil:d.waitUntil}),null===b)return null;if(b)return delete b.cacheControl,b}}let o=ah||g||!au?void 0:au;if(as&&void 0!==o)return{cacheControl:{revalidate:1,expire:void 0},value:{kind:v.CachedRouteKind.PAGES,html:x.default.EMPTY,pageData:{},headers:void 0,status:void 0}};let p=T&&ar&&((0,h.getRequestMeta)(a,"renderFallbackShell")||at)?(0,n.u)(af):null;return m({span:i,postponed:o,fallbackRouteParams:p})},p=async c=>{var f,g,i,j,k;let l,n=await K.handleResponse({cacheKey:aA,responseGenerator:a=>o({span:c,...a}),routeKind:e.RouteKind.APP_PAGE,isOnDemandRevalidate:ah,isRoutePPREnabled:ar,req:a,nextConfig:ad,prerenderManifest:$,waitUntil:d.waitUntil});if(_&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate"),K.isDev&&b.setHeader("Cache-Control","no-store, must-revalidate"),!n){if(aA)throw Object.defineProperty(Error("invariant: cache entry required but not generated"),"__NEXT_ERROR_CODE",{value:"E62",enumerable:!1,configurable:!0});return null}if((null==(f=n.value)?void 0:f.kind)!==v.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant app-page handler received invalid cache entry ${null==(i=n.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E707",enumerable:!1,configurable:!0});let p="string"==typeof n.value.postponed;ak&&!av&&(!p||ao)&&(N||b.setHeader("x-nextjs-cache",ah?"REVALIDATED":n.isMiss?"MISS":n.isStale?"STALE":"HIT"),b.setHeader(t.NEXT_IS_PRERENDER_HEADER,"1"));let{value:q}=n;if(au)l={revalidate:0,expire:void 0};else if(N&&ap&&!ao&&ar)l={revalidate:0,expire:void 0};else if(!K.isDev)if(_)l={revalidate:0,expire:void 0};else if(ak){if(n.cacheControl)if("number"==typeof n.cacheControl.revalidate){if(n.cacheControl.revalidate<1)throw Object.defineProperty(Error(`Invalid revalidate configuration provided: ${n.cacheControl.revalidate} < 1`),"__NEXT_ERROR_CODE",{value:"E22",enumerable:!1,configurable:!0});l={revalidate:n.cacheControl.revalidate,expire:(null==(j=n.cacheControl)?void 0:j.expire)??ad.expireTime}}else l={revalidate:y.CACHE_ONE_YEAR,expire:void 0}}else b.getHeader("Cache-Control")||(l={revalidate:0,expire:void 0});if(n.cacheControl=l,"string"==typeof aw&&(null==q?void 0:q.kind)===v.CachedRouteKind.APP_PAGE&&q.segmentData){b.setHeader(t.NEXT_DID_POSTPONE_HEADER,"2");let c=null==(k=q.headers)?void 0:k[y.NEXT_CACHE_TAGS_HEADER];N&&ak&&c&&"string"==typeof c&&b.setHeader(y.NEXT_CACHE_TAGS_HEADER,c);let d=q.segmentData.get(aw);return void 0!==d?(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.fromStatic(d,t.RSC_CONTENT_TYPE_HEADER),cacheControl:n.cacheControl}):(b.statusCode=204,(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.EMPTY,cacheControl:n.cacheControl}))}let r=(0,h.getRequestMeta)(a,"onCacheEntry");if(r&&await r({...n,value:{...n.value,kind:"PAGE"}},{url:(0,h.getRequestMeta)(a,"initURL")}))return null;if(p&&au)throw Object.defineProperty(Error("Invariant: postponed state should not be present on a resume request"),"__NEXT_ERROR_CODE",{value:"E396",enumerable:!1,configurable:!0});if(q.headers){let a={...q.headers};for(let[c,d]of(N&&ak||delete a[y.NEXT_CACHE_TAGS_HEADER],Object.entries(a)))if(void 0!==d)if(Array.isArray(d))for(let a of d)b.appendHeader(c,a);else"number"==typeof d&&(d=d.toString()),b.appendHeader(c,d)}let s=null==(g=q.headers)?void 0:g[y.NEXT_CACHE_TAGS_HEADER];if(N&&ak&&s&&"string"==typeof s&&b.setHeader(y.NEXT_CACHE_TAGS_HEADER,s),!q.status||ap&&ar||(b.statusCode=q.status),!N&&q.status&&F.RedirectStatusCode[q.status]&&ap&&(b.statusCode=200),p&&b.setHeader(t.NEXT_DID_POSTPONE_HEADER,"1"),ap&&!_){if(void 0===q.rscData){if(q.postponed)throw Object.defineProperty(Error("Invariant: Expected postponed to be undefined"),"__NEXT_ERROR_CODE",{value:"E372",enumerable:!1,configurable:!0});return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:q.html,cacheControl:av?{revalidate:0,expire:void 0}:n.cacheControl})}return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.fromStatic(q.rscData,t.RSC_CONTENT_TYPE_HEADER),cacheControl:n.cacheControl})}let u=q.html;if(!p||N||ap)return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:n.cacheControl});if(as)return u.push(new ReadableStream({start(a){a.enqueue(z.ENCODED_TAGS.CLOSED.BODY_AND_HTML),a.close()}})),(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:{revalidate:0,expire:void 0}});let w=new TransformStream;return u.push(w.readable),m({span:c,postponed:q.postponed,fallbackRouteParams:null}).then(async a=>{var b,c;if(!a)throw Object.defineProperty(Error("Invariant: expected a result to be returned"),"__NEXT_ERROR_CODE",{value:"E463",enumerable:!1,configurable:!0});if((null==(b=a.value)?void 0:b.kind)!==v.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant: expected a page response, got ${null==(c=a.value)?void 0:c.kind}`),"__NEXT_ERROR_CODE",{value:"E305",enumerable:!1,configurable:!0});await a.value.html.pipeTo(w.writable)}).catch(a=>{w.writable.abort(a).catch(a=>{console.error("couldn't abort transformer",a)})}),(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:{revalidate:0,expire:void 0}})};if(!aF)return await aE.withPropagatedContext(a.headers,()=>aE.trace(i.BaseServerSpan.handleRequest,{spanName:`${aD} ${a.url}`,kind:g.SpanKind.SERVER,attributes:{"http.method":aD,"http.target":a.url}},p));await p(aF)}catch(b){throw b instanceof B.NoFallbackError||await K.onRequestError(a,b,{routerKind:"App Router",routePath:G,routeType:"render",revalidateReason:(0,f.c)({isRevalidate:ak,isOnDemandRevalidate:ah})},ac),b}}},62800:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>f});var d=c(75338),e=c(2054);function f(){return(0,d.jsx)(e.PageWrapper,{view:"settings"})}},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},66431:(a,b,c)=>{Promise.resolve().then(c.bind(c,31152))},73136:a=>{"use strict";a.exports=require("node:url")},76760:a=>{"use strict";a.exports=require("node:path")},77725:a=>{"use strict";a.exports=require("stream/promises")},79428:a=>{"use strict";a.exports=require("buffer")},79551:a=>{"use strict";a.exports=require("url")},79748:a=>{"use strict";a.exports=require("fs/promises")},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{"use strict";a.exports=require("better-sqlite3")},94735:a=>{"use strict";a.exports=require("events")}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,495,4606,570,7894,8476],()=>b(b.s=60270));module.exports=c})(); \ No newline at end of file +(()=>{var a={};a.id=7122,a.ids=[7122],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1708:a=>{"use strict";a.exports=require("node:process")},2054:(a,b,c)=>{"use strict";c.d(b,{PageWrapper:()=>d});let d=(0,c(97954).registerClientReference)(function(){throw Error("Attempted to call PageWrapper() from the server but PageWrapper is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx","PageWrapper")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},26713:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/is-bot")},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31152:(a,b,c)=>{"use strict";c.d(b,{PageWrapper:()=>o});var d=c(21124),e=c(38301),f=c(42378),g=c(11610),h=c(83330),i=c(44215),j=c(95919),k=c(14258),l=c(45914);let m={dashboard:"/admin",projects:"/admin/projects",templates:"/admin/templates",skills:"/admin/skills",deployments:"/admin/deployments",docs:"/admin/docs",settings:"/admin/settings"};function n({view:a,settingsTab:b}){let c=(0,f.useRouter)(),[j,n]=(0,e.useState)(null),[o,p]=(0,e.useState)(!1),q=(0,e.useCallback)(a=>{let b=m[a]||`/admin/${a}`;c.push(b)},[c]),r=j?(0,d.jsx)(i.a,{project:j,onBack:()=>n(null)}):(0,d.jsx)(h.f,{view:a,onProjectSelect:n,settingsTab:b,onNavigate:q});return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(g.M,{currentView:a,onNavigate:q,onProjectSelect:n,onOpenAbout:()=>p(!0),showSidebar:!j,children:r}),(0,d.jsx)(k.V,{location:"global"}),(0,d.jsx)(l.V,{open:o,onOpenChange:p})]})}function o({view:a,settingsTab:b}){return(0,d.jsx)(j.g,{children:(0,d.jsx)(n,{view:a,settingsTab:b})})}},33873:a=>{"use strict";a.exports=require("path")},36167:(a,b,c)=>{Promise.resolve().then(c.bind(c,2054))},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},55511:a=>{"use strict";a.exports=require("crypto")},60270:(a,b,c)=>{"use strict";c.r(b),c.d(b,{GlobalError:()=>D.a,__next_app__:()=>J,handler:()=>L,pages:()=>I,routeModule:()=>K,tree:()=>H});var d=c(49754),e=c(9117),f=c(46595),g=c(32324),h=c(39326),i=c(38928),j=c(20175),k=c(12),l=c(54290),m=c(12696),n=c(82802),o=c(77533),p=c(45229),q=c(32822),r=c(261),s=c(26453),t=c(52474),u=c(26713),v=c(51356),w=c(62685),x=c(36225),y=c(63446),z=c(2762),A=c(45742),B=c(86439),C=c(81170),D=c.n(C),E=c(62506),F=c(91203),G={};for(let a in E)0>["default","tree","pages","GlobalError","__next_app__","routeModule","handler"].indexOf(a)&&(G[a]=()=>E[a]);c.d(b,G);let H={children:["",{children:["admin",{children:["settings",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(c.bind(c,62800)),"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/settings/page.tsx"]}]},{}]},{}]},{layout:[()=>Promise.resolve().then(c.bind(c,16953)),"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout.tsx"],"global-error":[()=>Promise.resolve().then(c.t.bind(c,81170,23)),"next/dist/client/components/builtin/global-error.js"],"not-found":[()=>Promise.resolve().then(c.t.bind(c,87028,23)),"next/dist/client/components/builtin/not-found.js"],forbidden:[()=>Promise.resolve().then(c.t.bind(c,90461,23)),"next/dist/client/components/builtin/forbidden.js"],unauthorized:[()=>Promise.resolve().then(c.t.bind(c,32768,23)),"next/dist/client/components/builtin/unauthorized.js"]}]}.children,I=["/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/settings/page.tsx"],J={require:c,loadChunk:()=>Promise.resolve()},K=new d.AppPageRouteModule({definition:{kind:e.RouteKind.APP_PAGE,page:"/admin/settings/page",pathname:"/admin/settings",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:H},distDir:".next",relativeProjectDir:""});async function L(a,b,d){var C;let G="/admin/settings/page";"/index"===G&&(G="/");let M=(0,h.getRequestMeta)(a,"postponed"),N=(0,h.getRequestMeta)(a,"minimalMode"),O=await K.prepare(a,b,{srcPage:G,multiZoneDraftMode:!1});if(!O)return b.statusCode=400,b.end("Bad Request"),null==d.waitUntil||d.waitUntil.call(d,Promise.resolve()),null;let{buildId:P,query:Q,params:R,parsedUrl:S,pageIsDynamic:T,buildManifest:U,nextFontManifest:V,reactLoadableManifest:W,serverActionsManifest:X,clientReferenceManifest:Y,subresourceIntegrityManifest:Z,prerenderManifest:$,isDraftMode:_,resolvedPathname:aa,revalidateOnlyGenerated:ab,routerServerContext:ac,nextConfig:ad,interceptionRoutePatterns:ae}=O,af=S.pathname||"/",ag=(0,r.normalizeAppPath)(G),{isOnDemandRevalidate:ah}=O,ai=K.match(af,$),aj=!!$.routes[aa],ak=!!(ai||aj||$.routes[ag]),al=a.headers["user-agent"]||"",am=(0,u.getBotType)(al),an=(0,p.isHtmlBotRequest)(a),ao=(0,h.getRequestMeta)(a,"isPrefetchRSCRequest")??"1"===a.headers[t.NEXT_ROUTER_PREFETCH_HEADER],ap=(0,h.getRequestMeta)(a,"isRSCRequest")??!!a.headers[t.RSC_HEADER],aq=(0,s.getIsPossibleServerAction)(a),ar=(0,m.checkIsAppPPREnabled)(ad.experimental.ppr)&&(null==(C=$.routes[ag]??$.dynamicRoutes[ag])?void 0:C.renderingMode)==="PARTIALLY_STATIC",as=!1,at=!1,au=ar?M:void 0,av=ar&&ap&&!ao,aw=(0,h.getRequestMeta)(a,"segmentPrefetchRSCRequest"),ax=!al||(0,p.shouldServeStreamingMetadata)(al,ad.htmlLimitedBots);an&&ar&&(ak=!1,ax=!1);let ay=!0===K.isDev||!ak||"string"==typeof M||av,az=an&&ar,aA=null;_||!ak||ay||aq||au||av||(aA=aa);let aB=aA;!aB&&K.isDev&&(aB=aa),K.isDev||_||!ak||!ap||av||(0,k.d)(a.headers);let aC={...E,tree:H,pages:I,GlobalError:D(),handler:L,routeModule:K,__next_app__:J};X&&Y&&(0,o.setReferenceManifestsSingleton)({page:G,clientReferenceManifest:Y,serverActionsManifest:X,serverModuleMap:(0,q.createServerModuleMap)({serverActionsManifest:X})});let aD=a.method||"GET",aE=(0,g.getTracer)(),aF=aE.getActiveScopeSpan();try{let f=K.getVaryHeader(aa,ae);b.setHeader("Vary",f);let k=async(c,d)=>{let e=new l.NodeNextRequest(a),f=new l.NodeNextResponse(b);return K.render(e,f,d).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=aE.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==i.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${aD} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${aD} ${a.url}`)})},m=async({span:e,postponed:f,fallbackRouteParams:g})=>{let i={query:Q,params:R,page:ag,sharedContext:{buildId:P},serverComponentsHmrCache:(0,h.getRequestMeta)(a,"serverComponentsHmrCache"),fallbackRouteParams:g,renderOpts:{App:()=>null,Document:()=>null,pageConfig:{},ComponentMod:aC,Component:(0,j.T)(aC),params:R,routeModule:K,page:G,postponed:f,shouldWaitOnAllReady:az,serveStreamingMetadata:ax,supportsDynamicResponse:"string"==typeof f||ay,buildManifest:U,nextFontManifest:V,reactLoadableManifest:W,subresourceIntegrityManifest:Z,serverActionsManifest:X,clientReferenceManifest:Y,setIsrStatus:null==ac?void 0:ac.setIsrStatus,dir:c(33873).join(process.cwd(),K.relativeProjectDir),isDraftMode:_,isRevalidate:ak&&!f&&!av,botType:am,isOnDemandRevalidate:ah,isPossibleServerAction:aq,assetPrefix:ad.assetPrefix,nextConfigOutput:ad.output,crossOrigin:ad.crossOrigin,trailingSlash:ad.trailingSlash,previewProps:$.preview,deploymentId:ad.deploymentId,enableTainting:ad.experimental.taint,htmlLimitedBots:ad.htmlLimitedBots,devtoolSegmentExplorer:ad.experimental.devtoolSegmentExplorer,reactMaxHeadersLength:ad.reactMaxHeadersLength,multiZoneDraftMode:!1,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:ad.experimental.cacheLife,basePath:ad.basePath,serverActions:ad.experimental.serverActions,...as?{nextExport:!0,supportsDynamicResponse:!1,isStaticGeneration:!0,isRevalidate:!0,isDebugDynamicAccesses:as}:{},experimental:{isRoutePPREnabled:ar,expireTime:ad.expireTime,staleTimes:ad.experimental.staleTimes,cacheComponents:!!ad.experimental.cacheComponents,clientSegmentCache:!!ad.experimental.clientSegmentCache,clientParamParsing:!!ad.experimental.clientParamParsing,dynamicOnHover:!!ad.experimental.dynamicOnHover,inlineCss:!!ad.experimental.inlineCss,authInterrupts:!!ad.experimental.authInterrupts,clientTraceMetadata:ad.experimental.clientTraceMetadata||[]},waitUntil:d.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:()=>{},onInstrumentationRequestError:(b,c,d)=>K.onRequestError(a,b,d,ac),err:(0,h.getRequestMeta)(a,"invokeError"),dev:K.isDev}},l=await k(e,i),{metadata:m}=l,{cacheControl:n,headers:o={},fetchTags:p}=m;if(p&&(o[y.NEXT_CACHE_TAGS_HEADER]=p),a.fetchMetrics=m.fetchMetrics,ak&&(null==n?void 0:n.revalidate)===0&&!K.isDev&&!ar){let a=m.staticBailoutInfo,b=Object.defineProperty(Error(`Page changed from static to dynamic at runtime ${aa}${(null==a?void 0:a.description)?`, reason: ${a.description}`:""} +see more here https://nextjs.org/docs/messages/app-static-to-dynamic-error`),"__NEXT_ERROR_CODE",{value:"E132",enumerable:!1,configurable:!0});if(null==a?void 0:a.stack){let c=a.stack;b.stack=b.message+c.substring(c.indexOf("\n"))}throw b}return{value:{kind:v.CachedRouteKind.APP_PAGE,html:l,headers:o,rscData:m.flightData,postponed:m.postponed,status:m.statusCode,segmentData:m.segmentData},cacheControl:n}},o=async({hasResolved:c,previousCacheEntry:f,isRevalidating:g,span:i})=>{let j,k=!1===K.isDev,l=c||b.writableEnded;if(ah&&ab&&!f&&!N)return(null==ac?void 0:ac.render404)?await ac.render404(a,b):(b.statusCode=404,b.end("This page could not be found")),null;if(ai&&(j=(0,w.parseFallbackField)(ai.fallback)),j===w.FallbackMode.PRERENDER&&(0,u.isBot)(al)&&(!ar||an)&&(j=w.FallbackMode.BLOCKING_STATIC_RENDER),(null==f?void 0:f.isStale)===-1&&(ah=!0),ah&&(j!==w.FallbackMode.NOT_FOUND||f)&&(j=w.FallbackMode.BLOCKING_STATIC_RENDER),!N&&j!==w.FallbackMode.BLOCKING_STATIC_RENDER&&aB&&!l&&!_&&T&&(k||!aj)){let b;if((k||ai)&&j===w.FallbackMode.NOT_FOUND)throw new B.NoFallbackError;if(ar&&!ap){let c="string"==typeof(null==ai?void 0:ai.fallback)?ai.fallback:k?ag:null;if(b=await K.handleResponse({cacheKey:c,req:a,nextConfig:ad,routeKind:e.RouteKind.APP_PAGE,isFallback:!0,prerenderManifest:$,isRoutePPREnabled:ar,responseGenerator:async()=>m({span:i,postponed:void 0,fallbackRouteParams:k||at?(0,n.u)(ag):null}),waitUntil:d.waitUntil}),null===b)return null;if(b)return delete b.cacheControl,b}}let o=ah||g||!au?void 0:au;if(as&&void 0!==o)return{cacheControl:{revalidate:1,expire:void 0},value:{kind:v.CachedRouteKind.PAGES,html:x.default.EMPTY,pageData:{},headers:void 0,status:void 0}};let p=T&&ar&&((0,h.getRequestMeta)(a,"renderFallbackShell")||at)?(0,n.u)(af):null;return m({span:i,postponed:o,fallbackRouteParams:p})},p=async c=>{var f,g,i,j,k;let l,n=await K.handleResponse({cacheKey:aA,responseGenerator:a=>o({span:c,...a}),routeKind:e.RouteKind.APP_PAGE,isOnDemandRevalidate:ah,isRoutePPREnabled:ar,req:a,nextConfig:ad,prerenderManifest:$,waitUntil:d.waitUntil});if(_&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate"),K.isDev&&b.setHeader("Cache-Control","no-store, must-revalidate"),!n){if(aA)throw Object.defineProperty(Error("invariant: cache entry required but not generated"),"__NEXT_ERROR_CODE",{value:"E62",enumerable:!1,configurable:!0});return null}if((null==(f=n.value)?void 0:f.kind)!==v.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant app-page handler received invalid cache entry ${null==(i=n.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E707",enumerable:!1,configurable:!0});let p="string"==typeof n.value.postponed;ak&&!av&&(!p||ao)&&(N||b.setHeader("x-nextjs-cache",ah?"REVALIDATED":n.isMiss?"MISS":n.isStale?"STALE":"HIT"),b.setHeader(t.NEXT_IS_PRERENDER_HEADER,"1"));let{value:q}=n;if(au)l={revalidate:0,expire:void 0};else if(N&&ap&&!ao&&ar)l={revalidate:0,expire:void 0};else if(!K.isDev)if(_)l={revalidate:0,expire:void 0};else if(ak){if(n.cacheControl)if("number"==typeof n.cacheControl.revalidate){if(n.cacheControl.revalidate<1)throw Object.defineProperty(Error(`Invalid revalidate configuration provided: ${n.cacheControl.revalidate} < 1`),"__NEXT_ERROR_CODE",{value:"E22",enumerable:!1,configurable:!0});l={revalidate:n.cacheControl.revalidate,expire:(null==(j=n.cacheControl)?void 0:j.expire)??ad.expireTime}}else l={revalidate:y.CACHE_ONE_YEAR,expire:void 0}}else b.getHeader("Cache-Control")||(l={revalidate:0,expire:void 0});if(n.cacheControl=l,"string"==typeof aw&&(null==q?void 0:q.kind)===v.CachedRouteKind.APP_PAGE&&q.segmentData){b.setHeader(t.NEXT_DID_POSTPONE_HEADER,"2");let c=null==(k=q.headers)?void 0:k[y.NEXT_CACHE_TAGS_HEADER];N&&ak&&c&&"string"==typeof c&&b.setHeader(y.NEXT_CACHE_TAGS_HEADER,c);let d=q.segmentData.get(aw);return void 0!==d?(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.fromStatic(d,t.RSC_CONTENT_TYPE_HEADER),cacheControl:n.cacheControl}):(b.statusCode=204,(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.EMPTY,cacheControl:n.cacheControl}))}let r=(0,h.getRequestMeta)(a,"onCacheEntry");if(r&&await r({...n,value:{...n.value,kind:"PAGE"}},{url:(0,h.getRequestMeta)(a,"initURL")}))return null;if(p&&au)throw Object.defineProperty(Error("Invariant: postponed state should not be present on a resume request"),"__NEXT_ERROR_CODE",{value:"E396",enumerable:!1,configurable:!0});if(q.headers){let a={...q.headers};for(let[c,d]of(N&&ak||delete a[y.NEXT_CACHE_TAGS_HEADER],Object.entries(a)))if(void 0!==d)if(Array.isArray(d))for(let a of d)b.appendHeader(c,a);else"number"==typeof d&&(d=d.toString()),b.appendHeader(c,d)}let s=null==(g=q.headers)?void 0:g[y.NEXT_CACHE_TAGS_HEADER];if(N&&ak&&s&&"string"==typeof s&&b.setHeader(y.NEXT_CACHE_TAGS_HEADER,s),!q.status||ap&&ar||(b.statusCode=q.status),!N&&q.status&&F.RedirectStatusCode[q.status]&&ap&&(b.statusCode=200),p&&b.setHeader(t.NEXT_DID_POSTPONE_HEADER,"1"),ap&&!_){if(void 0===q.rscData){if(q.postponed)throw Object.defineProperty(Error("Invariant: Expected postponed to be undefined"),"__NEXT_ERROR_CODE",{value:"E372",enumerable:!1,configurable:!0});return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:q.html,cacheControl:av?{revalidate:0,expire:void 0}:n.cacheControl})}return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.fromStatic(q.rscData,t.RSC_CONTENT_TYPE_HEADER),cacheControl:n.cacheControl})}let u=q.html;if(!p||N||ap)return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:n.cacheControl});if(as)return u.push(new ReadableStream({start(a){a.enqueue(z.ENCODED_TAGS.CLOSED.BODY_AND_HTML),a.close()}})),(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:{revalidate:0,expire:void 0}});let w=new TransformStream;return u.push(w.readable),m({span:c,postponed:q.postponed,fallbackRouteParams:null}).then(async a=>{var b,c;if(!a)throw Object.defineProperty(Error("Invariant: expected a result to be returned"),"__NEXT_ERROR_CODE",{value:"E463",enumerable:!1,configurable:!0});if((null==(b=a.value)?void 0:b.kind)!==v.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant: expected a page response, got ${null==(c=a.value)?void 0:c.kind}`),"__NEXT_ERROR_CODE",{value:"E305",enumerable:!1,configurable:!0});await a.value.html.pipeTo(w.writable)}).catch(a=>{w.writable.abort(a).catch(a=>{console.error("couldn't abort transformer",a)})}),(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:{revalidate:0,expire:void 0}})};if(!aF)return await aE.withPropagatedContext(a.headers,()=>aE.trace(i.BaseServerSpan.handleRequest,{spanName:`${aD} ${a.url}`,kind:g.SpanKind.SERVER,attributes:{"http.method":aD,"http.target":a.url}},p));await p(aF)}catch(b){throw b instanceof B.NoFallbackError||await K.onRequestError(a,b,{routerKind:"App Router",routePath:G,routeType:"render",revalidateReason:(0,f.c)({isRevalidate:ak,isOnDemandRevalidate:ah})},ac),b}}},62800:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>f});var d=c(75338),e=c(2054);function f(){return(0,d.jsx)(e.PageWrapper,{view:"settings"})}},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},66431:(a,b,c)=>{Promise.resolve().then(c.bind(c,31152))},73136:a=>{"use strict";a.exports=require("node:url")},76760:a=>{"use strict";a.exports=require("node:path")},77725:a=>{"use strict";a.exports=require("stream/promises")},79428:a=>{"use strict";a.exports=require("buffer")},79551:a=>{"use strict";a.exports=require("url")},79748:a=>{"use strict";a.exports=require("fs/promises")},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{"use strict";a.exports=require("better-sqlite3")},94735:a=>{"use strict";a.exports=require("events")}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,495,4606,1732,7894,9815],()=>b(b.s=60270));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/admin/settings/page.js.nft.json b/.next/server/app/admin/settings/page.js.nft.json index 6a38478bf798b1cdfb1fe6abb1f5e942cbee7836..bbed00b703325e5be0c4a873935dbe99e26351a8 100644 --- a/.next/server/app/admin/settings/page.js.nft.json +++ b/.next/server/app/admin/settings/page.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../node_modules/better-sqlite3/package.json","../../../../../node_modules/bindings/bindings.js","../../../../../node_modules/bindings/package.json","../../../../../node_modules/file-uri-to-path/index.js","../../../../../node_modules/file-uri-to-path/package.json","../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../node_modules/next/dist/lib/constants.js","../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../node_modules/next/dist/lib/is-error.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../node_modules/next/dist/shared/lib/router/utils/html-bots.js","../../../../../node_modules/next/dist/shared/lib/router/utils/is-bot.js","../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../node_modules/next/package.json","../../../../../package.json","../../../../package.json","../../../chunks/2671.js","../../../chunks/4078.js","../../../chunks/4277.js","../../../chunks/4586.js","../../../chunks/4606.js","../../../chunks/4681.js","../../../chunks/495.js","../../../chunks/570.js","../../../chunks/6085.js","../../../chunks/740.js","../../../chunks/7894.js","../../../chunks/8476.js","../../../chunks/9206.js","../../../chunks/9975.js","../../../webpack-runtime.js","page_client-reference-manifest.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../node_modules/better-sqlite3/package.json","../../../../../node_modules/bindings/bindings.js","../../../../../node_modules/bindings/package.json","../../../../../node_modules/file-uri-to-path/index.js","../../../../../node_modules/file-uri-to-path/package.json","../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../node_modules/next/dist/lib/constants.js","../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../node_modules/next/dist/lib/is-error.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../node_modules/next/dist/shared/lib/router/utils/html-bots.js","../../../../../node_modules/next/dist/shared/lib/router/utils/is-bot.js","../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../node_modules/next/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1732.js","../../../chunks/2671.js","../../../chunks/4078.js","../../../chunks/4141.js","../../../chunks/4277.js","../../../chunks/4586.js","../../../chunks/4606.js","../../../chunks/495.js","../../../chunks/6085.js","../../../chunks/740.js","../../../chunks/7894.js","../../../chunks/9050.js","../../../chunks/9206.js","../../../chunks/9815.js","../../../chunks/9975.js","../../../webpack-runtime.js","page_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/admin/settings/page_client-reference-manifest.js b/.next/server/app/admin/settings/page_client-reference-manifest.js index 808bef3b19e157f958edd3c82baac09877444ce7..0a29b2ce36b4adf2789a542e302a766155a59f97 100644 --- a/.next/server/app/admin/settings/page_client-reference-manifest.js +++ b/.next/server/app/admin/settings/page_client-reference-manifest.js @@ -1 +1 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/admin/settings/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","7122","static/chunks/app/admin/settings/page-cd3396dba1a5acbf.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":["3698","static/chunks/app/admin/page-700ea05bb99f3aa7.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/settings/page":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/admin/settings/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","7122","static/chunks/app/admin/settings/page-93d978d4bcb74918.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":["3698","static/chunks/app/admin/page-700ea05bb99f3aa7.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/settings/page":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/admin/sites.html b/.next/server/app/admin/sites.html deleted file mode 100644 index 4b1b6f21e68803f3f07415db82e521b048850e0a..0000000000000000000000000000000000000000 --- a/.next/server/app/admin/sites.html +++ /dev/null @@ -1,39 +0,0 @@ -Open Source Web Studio | Agentic AI Development 🎨
- - - - - - - -
Sites

Sites feature is only available in Server Mode

\ No newline at end of file diff --git a/.next/server/app/admin/sites/page.js b/.next/server/app/admin/sites/page.js deleted file mode 100644 index 9c3e572861e2a8cb38b33d03936b64b040f58ca8..0000000000000000000000000000000000000000 --- a/.next/server/app/admin/sites/page.js +++ /dev/null @@ -1,2 +0,0 @@ -(()=>{var a={};a.id=921,a.ids=[921],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1708:a=>{"use strict";a.exports=require("node:process")},2054:(a,b,c)=>{"use strict";c.d(b,{PageWrapper:()=>d});let d=(0,c(97954).registerClientReference)(function(){throw Error("Attempted to call PageWrapper() from the server but PageWrapper is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx","PageWrapper")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},26713:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/is-bot")},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31152:(a,b,c)=>{"use strict";c.d(b,{PageWrapper:()=>o});var d=c(21124),e=c(38301),f=c(42378),g=c(11610),h=c(69188),i=c(83374),j=c(95919),k=c(14258),l=c(45914);let m={dashboard:"/admin",projects:"/admin/projects",templates:"/admin/templates",skills:"/admin/skills",sites:"/admin/sites",docs:"/admin/docs",settings:"/admin/settings"};function n({view:a,settingsTab:b}){let c=(0,f.useRouter)(),[j,n]=(0,e.useState)(null),[o,p]=(0,e.useState)(!1),q=(0,e.useCallback)(a=>{let b=m[a]||`/admin/${a}`;c.push(b)},[c]),r=j?(0,d.jsx)(i.a,{project:j,onBack:()=>n(null)}):(0,d.jsx)(h.f,{view:a,onProjectSelect:n,settingsTab:b,onNavigate:q});return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(g.M,{currentView:a,onNavigate:q,onProjectSelect:n,onOpenAbout:()=>p(!0),showSidebar:!j,children:r}),(0,d.jsx)(k.V,{location:"global"}),(0,d.jsx)(l.V,{open:o,onOpenChange:p})]})}function o({view:a,settingsTab:b}){return(0,d.jsx)(j.g,{children:(0,d.jsx)(n,{view:a,settingsTab:b})})}},33873:a=>{"use strict";a.exports=require("path")},36167:(a,b,c)=>{Promise.resolve().then(c.bind(c,2054))},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},55511:a=>{"use strict";a.exports=require("crypto")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},66431:(a,b,c)=>{Promise.resolve().then(c.bind(c,31152))},73136:a=>{"use strict";a.exports=require("node:url")},76464:(a,b,c)=>{"use strict";c.r(b),c.d(b,{GlobalError:()=>D.a,__next_app__:()=>J,handler:()=>L,pages:()=>I,routeModule:()=>K,tree:()=>H});var d=c(49754),e=c(9117),f=c(46595),g=c(32324),h=c(39326),i=c(38928),j=c(20175),k=c(12),l=c(54290),m=c(12696),n=c(82802),o=c(77533),p=c(45229),q=c(32822),r=c(261),s=c(26453),t=c(52474),u=c(26713),v=c(51356),w=c(62685),x=c(36225),y=c(63446),z=c(2762),A=c(45742),B=c(86439),C=c(81170),D=c.n(C),E=c(62506),F=c(91203),G={};for(let a in E)0>["default","tree","pages","GlobalError","__next_app__","routeModule","handler"].indexOf(a)&&(G[a]=()=>E[a]);c.d(b,G);let H={children:["",{children:["admin",{children:["sites",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(c.bind(c,85433)),"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/sites/page.tsx"]}]},{}]},{}]},{layout:[()=>Promise.resolve().then(c.bind(c,16953)),"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout.tsx"],"global-error":[()=>Promise.resolve().then(c.t.bind(c,81170,23)),"next/dist/client/components/builtin/global-error.js"],"not-found":[()=>Promise.resolve().then(c.t.bind(c,87028,23)),"next/dist/client/components/builtin/not-found.js"],forbidden:[()=>Promise.resolve().then(c.t.bind(c,90461,23)),"next/dist/client/components/builtin/forbidden.js"],unauthorized:[()=>Promise.resolve().then(c.t.bind(c,32768,23)),"next/dist/client/components/builtin/unauthorized.js"]}]}.children,I=["/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/sites/page.tsx"],J={require:c,loadChunk:()=>Promise.resolve()},K=new d.AppPageRouteModule({definition:{kind:e.RouteKind.APP_PAGE,page:"/admin/sites/page",pathname:"/admin/sites",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:H},distDir:".next",relativeProjectDir:""});async function L(a,b,d){var C;let G="/admin/sites/page";"/index"===G&&(G="/");let M=(0,h.getRequestMeta)(a,"postponed"),N=(0,h.getRequestMeta)(a,"minimalMode"),O=await K.prepare(a,b,{srcPage:G,multiZoneDraftMode:!1});if(!O)return b.statusCode=400,b.end("Bad Request"),null==d.waitUntil||d.waitUntil.call(d,Promise.resolve()),null;let{buildId:P,query:Q,params:R,parsedUrl:S,pageIsDynamic:T,buildManifest:U,nextFontManifest:V,reactLoadableManifest:W,serverActionsManifest:X,clientReferenceManifest:Y,subresourceIntegrityManifest:Z,prerenderManifest:$,isDraftMode:_,resolvedPathname:aa,revalidateOnlyGenerated:ab,routerServerContext:ac,nextConfig:ad,interceptionRoutePatterns:ae}=O,af=S.pathname||"/",ag=(0,r.normalizeAppPath)(G),{isOnDemandRevalidate:ah}=O,ai=K.match(af,$),aj=!!$.routes[aa],ak=!!(ai||aj||$.routes[ag]),al=a.headers["user-agent"]||"",am=(0,u.getBotType)(al),an=(0,p.isHtmlBotRequest)(a),ao=(0,h.getRequestMeta)(a,"isPrefetchRSCRequest")??"1"===a.headers[t.NEXT_ROUTER_PREFETCH_HEADER],ap=(0,h.getRequestMeta)(a,"isRSCRequest")??!!a.headers[t.RSC_HEADER],aq=(0,s.getIsPossibleServerAction)(a),ar=(0,m.checkIsAppPPREnabled)(ad.experimental.ppr)&&(null==(C=$.routes[ag]??$.dynamicRoutes[ag])?void 0:C.renderingMode)==="PARTIALLY_STATIC",as=!1,at=!1,au=ar?M:void 0,av=ar&&ap&&!ao,aw=(0,h.getRequestMeta)(a,"segmentPrefetchRSCRequest"),ax=!al||(0,p.shouldServeStreamingMetadata)(al,ad.htmlLimitedBots);an&&ar&&(ak=!1,ax=!1);let ay=!0===K.isDev||!ak||"string"==typeof M||av,az=an&&ar,aA=null;_||!ak||ay||aq||au||av||(aA=aa);let aB=aA;!aB&&K.isDev&&(aB=aa),K.isDev||_||!ak||!ap||av||(0,k.d)(a.headers);let aC={...E,tree:H,pages:I,GlobalError:D(),handler:L,routeModule:K,__next_app__:J};X&&Y&&(0,o.setReferenceManifestsSingleton)({page:G,clientReferenceManifest:Y,serverActionsManifest:X,serverModuleMap:(0,q.createServerModuleMap)({serverActionsManifest:X})});let aD=a.method||"GET",aE=(0,g.getTracer)(),aF=aE.getActiveScopeSpan();try{let f=K.getVaryHeader(aa,ae);b.setHeader("Vary",f);let k=async(c,d)=>{let e=new l.NodeNextRequest(a),f=new l.NodeNextResponse(b);return K.render(e,f,d).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=aE.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==i.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${aD} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${aD} ${a.url}`)})},m=async({span:e,postponed:f,fallbackRouteParams:g})=>{let i={query:Q,params:R,page:ag,sharedContext:{buildId:P},serverComponentsHmrCache:(0,h.getRequestMeta)(a,"serverComponentsHmrCache"),fallbackRouteParams:g,renderOpts:{App:()=>null,Document:()=>null,pageConfig:{},ComponentMod:aC,Component:(0,j.T)(aC),params:R,routeModule:K,page:G,postponed:f,shouldWaitOnAllReady:az,serveStreamingMetadata:ax,supportsDynamicResponse:"string"==typeof f||ay,buildManifest:U,nextFontManifest:V,reactLoadableManifest:W,subresourceIntegrityManifest:Z,serverActionsManifest:X,clientReferenceManifest:Y,setIsrStatus:null==ac?void 0:ac.setIsrStatus,dir:c(33873).join(process.cwd(),K.relativeProjectDir),isDraftMode:_,isRevalidate:ak&&!f&&!av,botType:am,isOnDemandRevalidate:ah,isPossibleServerAction:aq,assetPrefix:ad.assetPrefix,nextConfigOutput:ad.output,crossOrigin:ad.crossOrigin,trailingSlash:ad.trailingSlash,previewProps:$.preview,deploymentId:ad.deploymentId,enableTainting:ad.experimental.taint,htmlLimitedBots:ad.htmlLimitedBots,devtoolSegmentExplorer:ad.experimental.devtoolSegmentExplorer,reactMaxHeadersLength:ad.reactMaxHeadersLength,multiZoneDraftMode:!1,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:ad.experimental.cacheLife,basePath:ad.basePath,serverActions:ad.experimental.serverActions,...as?{nextExport:!0,supportsDynamicResponse:!1,isStaticGeneration:!0,isRevalidate:!0,isDebugDynamicAccesses:as}:{},experimental:{isRoutePPREnabled:ar,expireTime:ad.expireTime,staleTimes:ad.experimental.staleTimes,cacheComponents:!!ad.experimental.cacheComponents,clientSegmentCache:!!ad.experimental.clientSegmentCache,clientParamParsing:!!ad.experimental.clientParamParsing,dynamicOnHover:!!ad.experimental.dynamicOnHover,inlineCss:!!ad.experimental.inlineCss,authInterrupts:!!ad.experimental.authInterrupts,clientTraceMetadata:ad.experimental.clientTraceMetadata||[]},waitUntil:d.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:()=>{},onInstrumentationRequestError:(b,c,d)=>K.onRequestError(a,b,d,ac),err:(0,h.getRequestMeta)(a,"invokeError"),dev:K.isDev}},l=await k(e,i),{metadata:m}=l,{cacheControl:n,headers:o={},fetchTags:p}=m;if(p&&(o[y.NEXT_CACHE_TAGS_HEADER]=p),a.fetchMetrics=m.fetchMetrics,ak&&(null==n?void 0:n.revalidate)===0&&!K.isDev&&!ar){let a=m.staticBailoutInfo,b=Object.defineProperty(Error(`Page changed from static to dynamic at runtime ${aa}${(null==a?void 0:a.description)?`, reason: ${a.description}`:""} -see more here https://nextjs.org/docs/messages/app-static-to-dynamic-error`),"__NEXT_ERROR_CODE",{value:"E132",enumerable:!1,configurable:!0});if(null==a?void 0:a.stack){let c=a.stack;b.stack=b.message+c.substring(c.indexOf("\n"))}throw b}return{value:{kind:v.CachedRouteKind.APP_PAGE,html:l,headers:o,rscData:m.flightData,postponed:m.postponed,status:m.statusCode,segmentData:m.segmentData},cacheControl:n}},o=async({hasResolved:c,previousCacheEntry:f,isRevalidating:g,span:i})=>{let j,k=!1===K.isDev,l=c||b.writableEnded;if(ah&&ab&&!f&&!N)return(null==ac?void 0:ac.render404)?await ac.render404(a,b):(b.statusCode=404,b.end("This page could not be found")),null;if(ai&&(j=(0,w.parseFallbackField)(ai.fallback)),j===w.FallbackMode.PRERENDER&&(0,u.isBot)(al)&&(!ar||an)&&(j=w.FallbackMode.BLOCKING_STATIC_RENDER),(null==f?void 0:f.isStale)===-1&&(ah=!0),ah&&(j!==w.FallbackMode.NOT_FOUND||f)&&(j=w.FallbackMode.BLOCKING_STATIC_RENDER),!N&&j!==w.FallbackMode.BLOCKING_STATIC_RENDER&&aB&&!l&&!_&&T&&(k||!aj)){let b;if((k||ai)&&j===w.FallbackMode.NOT_FOUND)throw new B.NoFallbackError;if(ar&&!ap){let c="string"==typeof(null==ai?void 0:ai.fallback)?ai.fallback:k?ag:null;if(b=await K.handleResponse({cacheKey:c,req:a,nextConfig:ad,routeKind:e.RouteKind.APP_PAGE,isFallback:!0,prerenderManifest:$,isRoutePPREnabled:ar,responseGenerator:async()=>m({span:i,postponed:void 0,fallbackRouteParams:k||at?(0,n.u)(ag):null}),waitUntil:d.waitUntil}),null===b)return null;if(b)return delete b.cacheControl,b}}let o=ah||g||!au?void 0:au;if(as&&void 0!==o)return{cacheControl:{revalidate:1,expire:void 0},value:{kind:v.CachedRouteKind.PAGES,html:x.default.EMPTY,pageData:{},headers:void 0,status:void 0}};let p=T&&ar&&((0,h.getRequestMeta)(a,"renderFallbackShell")||at)?(0,n.u)(af):null;return m({span:i,postponed:o,fallbackRouteParams:p})},p=async c=>{var f,g,i,j,k;let l,n=await K.handleResponse({cacheKey:aA,responseGenerator:a=>o({span:c,...a}),routeKind:e.RouteKind.APP_PAGE,isOnDemandRevalidate:ah,isRoutePPREnabled:ar,req:a,nextConfig:ad,prerenderManifest:$,waitUntil:d.waitUntil});if(_&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate"),K.isDev&&b.setHeader("Cache-Control","no-store, must-revalidate"),!n){if(aA)throw Object.defineProperty(Error("invariant: cache entry required but not generated"),"__NEXT_ERROR_CODE",{value:"E62",enumerable:!1,configurable:!0});return null}if((null==(f=n.value)?void 0:f.kind)!==v.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant app-page handler received invalid cache entry ${null==(i=n.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E707",enumerable:!1,configurable:!0});let p="string"==typeof n.value.postponed;ak&&!av&&(!p||ao)&&(N||b.setHeader("x-nextjs-cache",ah?"REVALIDATED":n.isMiss?"MISS":n.isStale?"STALE":"HIT"),b.setHeader(t.NEXT_IS_PRERENDER_HEADER,"1"));let{value:q}=n;if(au)l={revalidate:0,expire:void 0};else if(N&&ap&&!ao&&ar)l={revalidate:0,expire:void 0};else if(!K.isDev)if(_)l={revalidate:0,expire:void 0};else if(ak){if(n.cacheControl)if("number"==typeof n.cacheControl.revalidate){if(n.cacheControl.revalidate<1)throw Object.defineProperty(Error(`Invalid revalidate configuration provided: ${n.cacheControl.revalidate} < 1`),"__NEXT_ERROR_CODE",{value:"E22",enumerable:!1,configurable:!0});l={revalidate:n.cacheControl.revalidate,expire:(null==(j=n.cacheControl)?void 0:j.expire)??ad.expireTime}}else l={revalidate:y.CACHE_ONE_YEAR,expire:void 0}}else b.getHeader("Cache-Control")||(l={revalidate:0,expire:void 0});if(n.cacheControl=l,"string"==typeof aw&&(null==q?void 0:q.kind)===v.CachedRouteKind.APP_PAGE&&q.segmentData){b.setHeader(t.NEXT_DID_POSTPONE_HEADER,"2");let c=null==(k=q.headers)?void 0:k[y.NEXT_CACHE_TAGS_HEADER];N&&ak&&c&&"string"==typeof c&&b.setHeader(y.NEXT_CACHE_TAGS_HEADER,c);let d=q.segmentData.get(aw);return void 0!==d?(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.fromStatic(d,t.RSC_CONTENT_TYPE_HEADER),cacheControl:n.cacheControl}):(b.statusCode=204,(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.EMPTY,cacheControl:n.cacheControl}))}let r=(0,h.getRequestMeta)(a,"onCacheEntry");if(r&&await r({...n,value:{...n.value,kind:"PAGE"}},{url:(0,h.getRequestMeta)(a,"initURL")}))return null;if(p&&au)throw Object.defineProperty(Error("Invariant: postponed state should not be present on a resume request"),"__NEXT_ERROR_CODE",{value:"E396",enumerable:!1,configurable:!0});if(q.headers){let a={...q.headers};for(let[c,d]of(N&&ak||delete a[y.NEXT_CACHE_TAGS_HEADER],Object.entries(a)))if(void 0!==d)if(Array.isArray(d))for(let a of d)b.appendHeader(c,a);else"number"==typeof d&&(d=d.toString()),b.appendHeader(c,d)}let s=null==(g=q.headers)?void 0:g[y.NEXT_CACHE_TAGS_HEADER];if(N&&ak&&s&&"string"==typeof s&&b.setHeader(y.NEXT_CACHE_TAGS_HEADER,s),!q.status||ap&&ar||(b.statusCode=q.status),!N&&q.status&&F.RedirectStatusCode[q.status]&&ap&&(b.statusCode=200),p&&b.setHeader(t.NEXT_DID_POSTPONE_HEADER,"1"),ap&&!_){if(void 0===q.rscData){if(q.postponed)throw Object.defineProperty(Error("Invariant: Expected postponed to be undefined"),"__NEXT_ERROR_CODE",{value:"E372",enumerable:!1,configurable:!0});return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:q.html,cacheControl:av?{revalidate:0,expire:void 0}:n.cacheControl})}return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.fromStatic(q.rscData,t.RSC_CONTENT_TYPE_HEADER),cacheControl:n.cacheControl})}let u=q.html;if(!p||N||ap)return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:n.cacheControl});if(as)return u.push(new ReadableStream({start(a){a.enqueue(z.ENCODED_TAGS.CLOSED.BODY_AND_HTML),a.close()}})),(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:{revalidate:0,expire:void 0}});let w=new TransformStream;return u.push(w.readable),m({span:c,postponed:q.postponed,fallbackRouteParams:null}).then(async a=>{var b,c;if(!a)throw Object.defineProperty(Error("Invariant: expected a result to be returned"),"__NEXT_ERROR_CODE",{value:"E463",enumerable:!1,configurable:!0});if((null==(b=a.value)?void 0:b.kind)!==v.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant: expected a page response, got ${null==(c=a.value)?void 0:c.kind}`),"__NEXT_ERROR_CODE",{value:"E305",enumerable:!1,configurable:!0});await a.value.html.pipeTo(w.writable)}).catch(a=>{w.writable.abort(a).catch(a=>{console.error("couldn't abort transformer",a)})}),(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:{revalidate:0,expire:void 0}})};if(!aF)return await aE.withPropagatedContext(a.headers,()=>aE.trace(i.BaseServerSpan.handleRequest,{spanName:`${aD} ${a.url}`,kind:g.SpanKind.SERVER,attributes:{"http.method":aD,"http.target":a.url}},p));await p(aF)}catch(b){throw b instanceof B.NoFallbackError||await K.onRequestError(a,b,{routerKind:"App Router",routePath:G,routeType:"render",revalidateReason:(0,f.c)({isRevalidate:ak,isOnDemandRevalidate:ah})},ac),b}}},76760:a=>{"use strict";a.exports=require("node:path")},77725:a=>{"use strict";a.exports=require("stream/promises")},79428:a=>{"use strict";a.exports=require("buffer")},79551:a=>{"use strict";a.exports=require("url")},79748:a=>{"use strict";a.exports=require("fs/promises")},85433:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>f});var d=c(75338),e=c(2054);function f(){return(0,d.jsx)(e.PageWrapper,{view:"sites"})}},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{"use strict";a.exports=require("better-sqlite3")},94735:a=>{"use strict";a.exports=require("events")}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,495,4606,570,7894,8476],()=>b(b.s=76464));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/admin/sites/page_client-reference-manifest.js b/.next/server/app/admin/sites/page_client-reference-manifest.js deleted file mode 100644 index 949da54986289dd3741aed706c6c2febf42b57a4..0000000000000000000000000000000000000000 --- a/.next/server/app/admin/sites/page_client-reference-manifest.js +++ /dev/null @@ -1 +0,0 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/admin/sites/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","921","static/chunks/app/admin/sites/page-cd3396dba1a5acbf.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":["3698","static/chunks/app/admin/page-700ea05bb99f3aa7.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/sites/page":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/admin/skills.html b/.next/server/app/admin/skills.html index 322b88dab30b9b3538c433900d59209168da3309..bb9c9cefdbe369f5c1c0ce47451e56faef4bfef7 100644 --- a/.next/server/app/admin/skills.html +++ b/.next/server/app/admin/skills.html @@ -1,4 +1,4 @@ -Open Source Web Studio | Agentic AI Development 🎨
+Open Source Web Studio | Agentic AI Development 🎨
-
Skills

Loading skills...

\ No newline at end of file +
Skills

Loading skills...

\ No newline at end of file diff --git a/.next/server/app/admin/skills.rsc b/.next/server/app/admin/skills.rsc index 6e64e28d82a08d5e01e38c4de2155245af6a73e2..698458bf6d3deb79c3b4ee4cfd8c6810cde9309b 100644 --- a/.next/server/app/admin/skills.rsc +++ b/.next/server/app/admin/skills.rsc @@ -4,7 +4,7 @@ 4:I[46131,["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"default"] 5:I[9766,[],""] 6:I[98924,[],""] -7:I[43688,["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","849","static/chunks/app/admin/skills/page-cd3396dba1a5acbf.js"],"PageWrapper"] +7:I[43688,["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","849","static/chunks/app/admin/skills/page-93d978d4bcb74918.js"],"PageWrapper"] 8:I[24431,[],"OutletBoundary"] a:I[15278,[],"AsyncMetadataOutlet"] c:I[24431,[],"ViewportBoundary"] @@ -14,8 +14,8 @@ f:"$Sreact.suspense" :HL["/_next/static/media/58f662ed5ba12a72-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}] :HL["/_next/static/media/c3f6eb667c0186c5-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}] :HL["/_next/static/media/e4af272ccee01ff0-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}] -:HL["/_next/static/css/634e649c3cc2540f.css","style"] -0:{"P":null,"b":"Dj_mU3ym-gcopP6URA30w","p":"","c":["","admin","skills"],"i":false,"f":[[["",{"children":["admin",{"children":["skills",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/634e649c3cc2540f.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"__variable_f367f3 __variable_438d47 antialiased bg-background h-[100dvh] overflow-hidden","suppressHydrationWarning":true,"children":["$","$L2",null,{"children":[["$","$L3",null,{"richColors":true,"position":"bottom-center"}],["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]]}]}]}]]}],{"children":["admin",["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["skills",["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L7",null,{"view":"skills"}],null,["$","$L8",null,{"children":["$L9",["$","$La",null,{"promise":"$@b"}]]}]]}],{},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$Lc",null,{"children":"$Ld"}],["$","meta",null,{"name":"next-size-adjust","content":""}]],["$","$Le",null,{"children":["$","div",null,{"hidden":true,"children":["$","$f",null,{"fallback":null,"children":"$L10"}]}]}]]}],false]],"m":"$undefined","G":["$11",[]],"s":false,"S":true} +:HL["/_next/static/css/7a4f097ac51b20a7.css","style"] +0:{"P":null,"b":"6U79IAVVts3v8bcNT6dWz","p":"","c":["","admin","skills"],"i":false,"f":[[["",{"children":["admin",{"children":["skills",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/7a4f097ac51b20a7.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"__variable_f367f3 __variable_438d47 antialiased bg-background h-[100dvh] overflow-hidden","suppressHydrationWarning":true,"children":["$","$L2",null,{"children":[["$","$L3",null,{"richColors":true,"position":"bottom-center"}],["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]]}]}]}]]}],{"children":["admin",["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["skills",["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L7",null,{"view":"skills"}],null,["$","$L8",null,{"children":["$L9",["$","$La",null,{"promise":"$@b"}]]}]]}],{},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$Lc",null,{"children":"$Ld"}],["$","meta",null,{"name":"next-size-adjust","content":""}]],["$","$Le",null,{"children":["$","div",null,{"hidden":true,"children":["$","$f",null,{"fallback":null,"children":"$L10"}]}]}]]}],false]],"m":"$undefined","G":["$11",[]],"s":false,"S":true} d:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1, maximum-scale=1"}],["$","meta","2",{"name":"theme-color","content":"#000000"}]] 9:null 12:I[80622,[],"IconMark"] diff --git a/.next/server/app/admin/skills/page.js b/.next/server/app/admin/skills/page.js index b56310349db853cba61e49a52ff38d1b5ef54fcb..38e6aed56167f4edf25e546e10bb073c9f0dfcff 100644 --- a/.next/server/app/admin/skills/page.js +++ b/.next/server/app/admin/skills/page.js @@ -1,2 +1,2 @@ -(()=>{var a={};a.id=849,a.ids=[849],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1708:a=>{"use strict";a.exports=require("node:process")},2054:(a,b,c)=>{"use strict";c.d(b,{PageWrapper:()=>d});let d=(0,c(97954).registerClientReference)(function(){throw Error("Attempted to call PageWrapper() from the server but PageWrapper is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx","PageWrapper")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},26713:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/is-bot")},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31152:(a,b,c)=>{"use strict";c.d(b,{PageWrapper:()=>o});var d=c(21124),e=c(38301),f=c(42378),g=c(11610),h=c(69188),i=c(83374),j=c(95919),k=c(14258),l=c(45914);let m={dashboard:"/admin",projects:"/admin/projects",templates:"/admin/templates",skills:"/admin/skills",sites:"/admin/sites",docs:"/admin/docs",settings:"/admin/settings"};function n({view:a,settingsTab:b}){let c=(0,f.useRouter)(),[j,n]=(0,e.useState)(null),[o,p]=(0,e.useState)(!1),q=(0,e.useCallback)(a=>{let b=m[a]||`/admin/${a}`;c.push(b)},[c]),r=j?(0,d.jsx)(i.a,{project:j,onBack:()=>n(null)}):(0,d.jsx)(h.f,{view:a,onProjectSelect:n,settingsTab:b,onNavigate:q});return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(g.M,{currentView:a,onNavigate:q,onProjectSelect:n,onOpenAbout:()=>p(!0),showSidebar:!j,children:r}),(0,d.jsx)(k.V,{location:"global"}),(0,d.jsx)(l.V,{open:o,onOpenChange:p})]})}function o({view:a,settingsTab:b}){return(0,d.jsx)(j.g,{children:(0,d.jsx)(n,{view:a,settingsTab:b})})}},33873:a=>{"use strict";a.exports=require("path")},36167:(a,b,c)=>{Promise.resolve().then(c.bind(c,2054))},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},55511:a=>{"use strict";a.exports=require("crypto")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},64354:(a,b,c)=>{"use strict";c.r(b),c.d(b,{GlobalError:()=>D.a,__next_app__:()=>J,handler:()=>L,pages:()=>I,routeModule:()=>K,tree:()=>H});var d=c(49754),e=c(9117),f=c(46595),g=c(32324),h=c(39326),i=c(38928),j=c(20175),k=c(12),l=c(54290),m=c(12696),n=c(82802),o=c(77533),p=c(45229),q=c(32822),r=c(261),s=c(26453),t=c(52474),u=c(26713),v=c(51356),w=c(62685),x=c(36225),y=c(63446),z=c(2762),A=c(45742),B=c(86439),C=c(81170),D=c.n(C),E=c(62506),F=c(91203),G={};for(let a in E)0>["default","tree","pages","GlobalError","__next_app__","routeModule","handler"].indexOf(a)&&(G[a]=()=>E[a]);c.d(b,G);let H={children:["",{children:["admin",{children:["skills",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(c.bind(c,76983)),"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/skills/page.tsx"]}]},{}]},{}]},{layout:[()=>Promise.resolve().then(c.bind(c,16953)),"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout.tsx"],"global-error":[()=>Promise.resolve().then(c.t.bind(c,81170,23)),"next/dist/client/components/builtin/global-error.js"],"not-found":[()=>Promise.resolve().then(c.t.bind(c,87028,23)),"next/dist/client/components/builtin/not-found.js"],forbidden:[()=>Promise.resolve().then(c.t.bind(c,90461,23)),"next/dist/client/components/builtin/forbidden.js"],unauthorized:[()=>Promise.resolve().then(c.t.bind(c,32768,23)),"next/dist/client/components/builtin/unauthorized.js"]}]}.children,I=["/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/skills/page.tsx"],J={require:c,loadChunk:()=>Promise.resolve()},K=new d.AppPageRouteModule({definition:{kind:e.RouteKind.APP_PAGE,page:"/admin/skills/page",pathname:"/admin/skills",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:H},distDir:".next",relativeProjectDir:""});async function L(a,b,d){var C;let G="/admin/skills/page";"/index"===G&&(G="/");let M=(0,h.getRequestMeta)(a,"postponed"),N=(0,h.getRequestMeta)(a,"minimalMode"),O=await K.prepare(a,b,{srcPage:G,multiZoneDraftMode:!1});if(!O)return b.statusCode=400,b.end("Bad Request"),null==d.waitUntil||d.waitUntil.call(d,Promise.resolve()),null;let{buildId:P,query:Q,params:R,parsedUrl:S,pageIsDynamic:T,buildManifest:U,nextFontManifest:V,reactLoadableManifest:W,serverActionsManifest:X,clientReferenceManifest:Y,subresourceIntegrityManifest:Z,prerenderManifest:$,isDraftMode:_,resolvedPathname:aa,revalidateOnlyGenerated:ab,routerServerContext:ac,nextConfig:ad,interceptionRoutePatterns:ae}=O,af=S.pathname||"/",ag=(0,r.normalizeAppPath)(G),{isOnDemandRevalidate:ah}=O,ai=K.match(af,$),aj=!!$.routes[aa],ak=!!(ai||aj||$.routes[ag]),al=a.headers["user-agent"]||"",am=(0,u.getBotType)(al),an=(0,p.isHtmlBotRequest)(a),ao=(0,h.getRequestMeta)(a,"isPrefetchRSCRequest")??"1"===a.headers[t.NEXT_ROUTER_PREFETCH_HEADER],ap=(0,h.getRequestMeta)(a,"isRSCRequest")??!!a.headers[t.RSC_HEADER],aq=(0,s.getIsPossibleServerAction)(a),ar=(0,m.checkIsAppPPREnabled)(ad.experimental.ppr)&&(null==(C=$.routes[ag]??$.dynamicRoutes[ag])?void 0:C.renderingMode)==="PARTIALLY_STATIC",as=!1,at=!1,au=ar?M:void 0,av=ar&&ap&&!ao,aw=(0,h.getRequestMeta)(a,"segmentPrefetchRSCRequest"),ax=!al||(0,p.shouldServeStreamingMetadata)(al,ad.htmlLimitedBots);an&&ar&&(ak=!1,ax=!1);let ay=!0===K.isDev||!ak||"string"==typeof M||av,az=an&&ar,aA=null;_||!ak||ay||aq||au||av||(aA=aa);let aB=aA;!aB&&K.isDev&&(aB=aa),K.isDev||_||!ak||!ap||av||(0,k.d)(a.headers);let aC={...E,tree:H,pages:I,GlobalError:D(),handler:L,routeModule:K,__next_app__:J};X&&Y&&(0,o.setReferenceManifestsSingleton)({page:G,clientReferenceManifest:Y,serverActionsManifest:X,serverModuleMap:(0,q.createServerModuleMap)({serverActionsManifest:X})});let aD=a.method||"GET",aE=(0,g.getTracer)(),aF=aE.getActiveScopeSpan();try{let f=K.getVaryHeader(aa,ae);b.setHeader("Vary",f);let k=async(c,d)=>{let e=new l.NodeNextRequest(a),f=new l.NodeNextResponse(b);return K.render(e,f,d).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=aE.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==i.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${aD} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${aD} ${a.url}`)})},m=async({span:e,postponed:f,fallbackRouteParams:g})=>{let i={query:Q,params:R,page:ag,sharedContext:{buildId:P},serverComponentsHmrCache:(0,h.getRequestMeta)(a,"serverComponentsHmrCache"),fallbackRouteParams:g,renderOpts:{App:()=>null,Document:()=>null,pageConfig:{},ComponentMod:aC,Component:(0,j.T)(aC),params:R,routeModule:K,page:G,postponed:f,shouldWaitOnAllReady:az,serveStreamingMetadata:ax,supportsDynamicResponse:"string"==typeof f||ay,buildManifest:U,nextFontManifest:V,reactLoadableManifest:W,subresourceIntegrityManifest:Z,serverActionsManifest:X,clientReferenceManifest:Y,setIsrStatus:null==ac?void 0:ac.setIsrStatus,dir:c(33873).join(process.cwd(),K.relativeProjectDir),isDraftMode:_,isRevalidate:ak&&!f&&!av,botType:am,isOnDemandRevalidate:ah,isPossibleServerAction:aq,assetPrefix:ad.assetPrefix,nextConfigOutput:ad.output,crossOrigin:ad.crossOrigin,trailingSlash:ad.trailingSlash,previewProps:$.preview,deploymentId:ad.deploymentId,enableTainting:ad.experimental.taint,htmlLimitedBots:ad.htmlLimitedBots,devtoolSegmentExplorer:ad.experimental.devtoolSegmentExplorer,reactMaxHeadersLength:ad.reactMaxHeadersLength,multiZoneDraftMode:!1,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:ad.experimental.cacheLife,basePath:ad.basePath,serverActions:ad.experimental.serverActions,...as?{nextExport:!0,supportsDynamicResponse:!1,isStaticGeneration:!0,isRevalidate:!0,isDebugDynamicAccesses:as}:{},experimental:{isRoutePPREnabled:ar,expireTime:ad.expireTime,staleTimes:ad.experimental.staleTimes,cacheComponents:!!ad.experimental.cacheComponents,clientSegmentCache:!!ad.experimental.clientSegmentCache,clientParamParsing:!!ad.experimental.clientParamParsing,dynamicOnHover:!!ad.experimental.dynamicOnHover,inlineCss:!!ad.experimental.inlineCss,authInterrupts:!!ad.experimental.authInterrupts,clientTraceMetadata:ad.experimental.clientTraceMetadata||[]},waitUntil:d.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:()=>{},onInstrumentationRequestError:(b,c,d)=>K.onRequestError(a,b,d,ac),err:(0,h.getRequestMeta)(a,"invokeError"),dev:K.isDev}},l=await k(e,i),{metadata:m}=l,{cacheControl:n,headers:o={},fetchTags:p}=m;if(p&&(o[y.NEXT_CACHE_TAGS_HEADER]=p),a.fetchMetrics=m.fetchMetrics,ak&&(null==n?void 0:n.revalidate)===0&&!K.isDev&&!ar){let a=m.staticBailoutInfo,b=Object.defineProperty(Error(`Page changed from static to dynamic at runtime ${aa}${(null==a?void 0:a.description)?`, reason: ${a.description}`:""} -see more here https://nextjs.org/docs/messages/app-static-to-dynamic-error`),"__NEXT_ERROR_CODE",{value:"E132",enumerable:!1,configurable:!0});if(null==a?void 0:a.stack){let c=a.stack;b.stack=b.message+c.substring(c.indexOf("\n"))}throw b}return{value:{kind:v.CachedRouteKind.APP_PAGE,html:l,headers:o,rscData:m.flightData,postponed:m.postponed,status:m.statusCode,segmentData:m.segmentData},cacheControl:n}},o=async({hasResolved:c,previousCacheEntry:f,isRevalidating:g,span:i})=>{let j,k=!1===K.isDev,l=c||b.writableEnded;if(ah&&ab&&!f&&!N)return(null==ac?void 0:ac.render404)?await ac.render404(a,b):(b.statusCode=404,b.end("This page could not be found")),null;if(ai&&(j=(0,w.parseFallbackField)(ai.fallback)),j===w.FallbackMode.PRERENDER&&(0,u.isBot)(al)&&(!ar||an)&&(j=w.FallbackMode.BLOCKING_STATIC_RENDER),(null==f?void 0:f.isStale)===-1&&(ah=!0),ah&&(j!==w.FallbackMode.NOT_FOUND||f)&&(j=w.FallbackMode.BLOCKING_STATIC_RENDER),!N&&j!==w.FallbackMode.BLOCKING_STATIC_RENDER&&aB&&!l&&!_&&T&&(k||!aj)){let b;if((k||ai)&&j===w.FallbackMode.NOT_FOUND)throw new B.NoFallbackError;if(ar&&!ap){let c="string"==typeof(null==ai?void 0:ai.fallback)?ai.fallback:k?ag:null;if(b=await K.handleResponse({cacheKey:c,req:a,nextConfig:ad,routeKind:e.RouteKind.APP_PAGE,isFallback:!0,prerenderManifest:$,isRoutePPREnabled:ar,responseGenerator:async()=>m({span:i,postponed:void 0,fallbackRouteParams:k||at?(0,n.u)(ag):null}),waitUntil:d.waitUntil}),null===b)return null;if(b)return delete b.cacheControl,b}}let o=ah||g||!au?void 0:au;if(as&&void 0!==o)return{cacheControl:{revalidate:1,expire:void 0},value:{kind:v.CachedRouteKind.PAGES,html:x.default.EMPTY,pageData:{},headers:void 0,status:void 0}};let p=T&&ar&&((0,h.getRequestMeta)(a,"renderFallbackShell")||at)?(0,n.u)(af):null;return m({span:i,postponed:o,fallbackRouteParams:p})},p=async c=>{var f,g,i,j,k;let l,n=await K.handleResponse({cacheKey:aA,responseGenerator:a=>o({span:c,...a}),routeKind:e.RouteKind.APP_PAGE,isOnDemandRevalidate:ah,isRoutePPREnabled:ar,req:a,nextConfig:ad,prerenderManifest:$,waitUntil:d.waitUntil});if(_&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate"),K.isDev&&b.setHeader("Cache-Control","no-store, must-revalidate"),!n){if(aA)throw Object.defineProperty(Error("invariant: cache entry required but not generated"),"__NEXT_ERROR_CODE",{value:"E62",enumerable:!1,configurable:!0});return null}if((null==(f=n.value)?void 0:f.kind)!==v.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant app-page handler received invalid cache entry ${null==(i=n.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E707",enumerable:!1,configurable:!0});let p="string"==typeof n.value.postponed;ak&&!av&&(!p||ao)&&(N||b.setHeader("x-nextjs-cache",ah?"REVALIDATED":n.isMiss?"MISS":n.isStale?"STALE":"HIT"),b.setHeader(t.NEXT_IS_PRERENDER_HEADER,"1"));let{value:q}=n;if(au)l={revalidate:0,expire:void 0};else if(N&&ap&&!ao&&ar)l={revalidate:0,expire:void 0};else if(!K.isDev)if(_)l={revalidate:0,expire:void 0};else if(ak){if(n.cacheControl)if("number"==typeof n.cacheControl.revalidate){if(n.cacheControl.revalidate<1)throw Object.defineProperty(Error(`Invalid revalidate configuration provided: ${n.cacheControl.revalidate} < 1`),"__NEXT_ERROR_CODE",{value:"E22",enumerable:!1,configurable:!0});l={revalidate:n.cacheControl.revalidate,expire:(null==(j=n.cacheControl)?void 0:j.expire)??ad.expireTime}}else l={revalidate:y.CACHE_ONE_YEAR,expire:void 0}}else b.getHeader("Cache-Control")||(l={revalidate:0,expire:void 0});if(n.cacheControl=l,"string"==typeof aw&&(null==q?void 0:q.kind)===v.CachedRouteKind.APP_PAGE&&q.segmentData){b.setHeader(t.NEXT_DID_POSTPONE_HEADER,"2");let c=null==(k=q.headers)?void 0:k[y.NEXT_CACHE_TAGS_HEADER];N&&ak&&c&&"string"==typeof c&&b.setHeader(y.NEXT_CACHE_TAGS_HEADER,c);let d=q.segmentData.get(aw);return void 0!==d?(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.fromStatic(d,t.RSC_CONTENT_TYPE_HEADER),cacheControl:n.cacheControl}):(b.statusCode=204,(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.EMPTY,cacheControl:n.cacheControl}))}let r=(0,h.getRequestMeta)(a,"onCacheEntry");if(r&&await r({...n,value:{...n.value,kind:"PAGE"}},{url:(0,h.getRequestMeta)(a,"initURL")}))return null;if(p&&au)throw Object.defineProperty(Error("Invariant: postponed state should not be present on a resume request"),"__NEXT_ERROR_CODE",{value:"E396",enumerable:!1,configurable:!0});if(q.headers){let a={...q.headers};for(let[c,d]of(N&&ak||delete a[y.NEXT_CACHE_TAGS_HEADER],Object.entries(a)))if(void 0!==d)if(Array.isArray(d))for(let a of d)b.appendHeader(c,a);else"number"==typeof d&&(d=d.toString()),b.appendHeader(c,d)}let s=null==(g=q.headers)?void 0:g[y.NEXT_CACHE_TAGS_HEADER];if(N&&ak&&s&&"string"==typeof s&&b.setHeader(y.NEXT_CACHE_TAGS_HEADER,s),!q.status||ap&&ar||(b.statusCode=q.status),!N&&q.status&&F.RedirectStatusCode[q.status]&&ap&&(b.statusCode=200),p&&b.setHeader(t.NEXT_DID_POSTPONE_HEADER,"1"),ap&&!_){if(void 0===q.rscData){if(q.postponed)throw Object.defineProperty(Error("Invariant: Expected postponed to be undefined"),"__NEXT_ERROR_CODE",{value:"E372",enumerable:!1,configurable:!0});return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:q.html,cacheControl:av?{revalidate:0,expire:void 0}:n.cacheControl})}return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.fromStatic(q.rscData,t.RSC_CONTENT_TYPE_HEADER),cacheControl:n.cacheControl})}let u=q.html;if(!p||N||ap)return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:n.cacheControl});if(as)return u.push(new ReadableStream({start(a){a.enqueue(z.ENCODED_TAGS.CLOSED.BODY_AND_HTML),a.close()}})),(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:{revalidate:0,expire:void 0}});let w=new TransformStream;return u.push(w.readable),m({span:c,postponed:q.postponed,fallbackRouteParams:null}).then(async a=>{var b,c;if(!a)throw Object.defineProperty(Error("Invariant: expected a result to be returned"),"__NEXT_ERROR_CODE",{value:"E463",enumerable:!1,configurable:!0});if((null==(b=a.value)?void 0:b.kind)!==v.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant: expected a page response, got ${null==(c=a.value)?void 0:c.kind}`),"__NEXT_ERROR_CODE",{value:"E305",enumerable:!1,configurable:!0});await a.value.html.pipeTo(w.writable)}).catch(a=>{w.writable.abort(a).catch(a=>{console.error("couldn't abort transformer",a)})}),(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:{revalidate:0,expire:void 0}})};if(!aF)return await aE.withPropagatedContext(a.headers,()=>aE.trace(i.BaseServerSpan.handleRequest,{spanName:`${aD} ${a.url}`,kind:g.SpanKind.SERVER,attributes:{"http.method":aD,"http.target":a.url}},p));await p(aF)}catch(b){throw b instanceof B.NoFallbackError||await K.onRequestError(a,b,{routerKind:"App Router",routePath:G,routeType:"render",revalidateReason:(0,f.c)({isRevalidate:ak,isOnDemandRevalidate:ah})},ac),b}}},66431:(a,b,c)=>{Promise.resolve().then(c.bind(c,31152))},73136:a=>{"use strict";a.exports=require("node:url")},76760:a=>{"use strict";a.exports=require("node:path")},76983:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>f});var d=c(75338),e=c(2054);function f(){return(0,d.jsx)(e.PageWrapper,{view:"skills"})}},77725:a=>{"use strict";a.exports=require("stream/promises")},79428:a=>{"use strict";a.exports=require("buffer")},79551:a=>{"use strict";a.exports=require("url")},79748:a=>{"use strict";a.exports=require("fs/promises")},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{"use strict";a.exports=require("better-sqlite3")},94735:a=>{"use strict";a.exports=require("events")}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,495,4606,570,7894,8476],()=>b(b.s=64354));module.exports=c})(); \ No newline at end of file +(()=>{var a={};a.id=849,a.ids=[849],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1708:a=>{"use strict";a.exports=require("node:process")},2054:(a,b,c)=>{"use strict";c.d(b,{PageWrapper:()=>d});let d=(0,c(97954).registerClientReference)(function(){throw Error("Attempted to call PageWrapper() from the server but PageWrapper is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx","PageWrapper")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},26713:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/is-bot")},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31152:(a,b,c)=>{"use strict";c.d(b,{PageWrapper:()=>o});var d=c(21124),e=c(38301),f=c(42378),g=c(11610),h=c(83330),i=c(44215),j=c(95919),k=c(14258),l=c(45914);let m={dashboard:"/admin",projects:"/admin/projects",templates:"/admin/templates",skills:"/admin/skills",deployments:"/admin/deployments",docs:"/admin/docs",settings:"/admin/settings"};function n({view:a,settingsTab:b}){let c=(0,f.useRouter)(),[j,n]=(0,e.useState)(null),[o,p]=(0,e.useState)(!1),q=(0,e.useCallback)(a=>{let b=m[a]||`/admin/${a}`;c.push(b)},[c]),r=j?(0,d.jsx)(i.a,{project:j,onBack:()=>n(null)}):(0,d.jsx)(h.f,{view:a,onProjectSelect:n,settingsTab:b,onNavigate:q});return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(g.M,{currentView:a,onNavigate:q,onProjectSelect:n,onOpenAbout:()=>p(!0),showSidebar:!j,children:r}),(0,d.jsx)(k.V,{location:"global"}),(0,d.jsx)(l.V,{open:o,onOpenChange:p})]})}function o({view:a,settingsTab:b}){return(0,d.jsx)(j.g,{children:(0,d.jsx)(n,{view:a,settingsTab:b})})}},33873:a=>{"use strict";a.exports=require("path")},36167:(a,b,c)=>{Promise.resolve().then(c.bind(c,2054))},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},55511:a=>{"use strict";a.exports=require("crypto")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},64354:(a,b,c)=>{"use strict";c.r(b),c.d(b,{GlobalError:()=>D.a,__next_app__:()=>J,handler:()=>L,pages:()=>I,routeModule:()=>K,tree:()=>H});var d=c(49754),e=c(9117),f=c(46595),g=c(32324),h=c(39326),i=c(38928),j=c(20175),k=c(12),l=c(54290),m=c(12696),n=c(82802),o=c(77533),p=c(45229),q=c(32822),r=c(261),s=c(26453),t=c(52474),u=c(26713),v=c(51356),w=c(62685),x=c(36225),y=c(63446),z=c(2762),A=c(45742),B=c(86439),C=c(81170),D=c.n(C),E=c(62506),F=c(91203),G={};for(let a in E)0>["default","tree","pages","GlobalError","__next_app__","routeModule","handler"].indexOf(a)&&(G[a]=()=>E[a]);c.d(b,G);let H={children:["",{children:["admin",{children:["skills",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(c.bind(c,76983)),"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/skills/page.tsx"]}]},{}]},{}]},{layout:[()=>Promise.resolve().then(c.bind(c,16953)),"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout.tsx"],"global-error":[()=>Promise.resolve().then(c.t.bind(c,81170,23)),"next/dist/client/components/builtin/global-error.js"],"not-found":[()=>Promise.resolve().then(c.t.bind(c,87028,23)),"next/dist/client/components/builtin/not-found.js"],forbidden:[()=>Promise.resolve().then(c.t.bind(c,90461,23)),"next/dist/client/components/builtin/forbidden.js"],unauthorized:[()=>Promise.resolve().then(c.t.bind(c,32768,23)),"next/dist/client/components/builtin/unauthorized.js"]}]}.children,I=["/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/skills/page.tsx"],J={require:c,loadChunk:()=>Promise.resolve()},K=new d.AppPageRouteModule({definition:{kind:e.RouteKind.APP_PAGE,page:"/admin/skills/page",pathname:"/admin/skills",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:H},distDir:".next",relativeProjectDir:""});async function L(a,b,d){var C;let G="/admin/skills/page";"/index"===G&&(G="/");let M=(0,h.getRequestMeta)(a,"postponed"),N=(0,h.getRequestMeta)(a,"minimalMode"),O=await K.prepare(a,b,{srcPage:G,multiZoneDraftMode:!1});if(!O)return b.statusCode=400,b.end("Bad Request"),null==d.waitUntil||d.waitUntil.call(d,Promise.resolve()),null;let{buildId:P,query:Q,params:R,parsedUrl:S,pageIsDynamic:T,buildManifest:U,nextFontManifest:V,reactLoadableManifest:W,serverActionsManifest:X,clientReferenceManifest:Y,subresourceIntegrityManifest:Z,prerenderManifest:$,isDraftMode:_,resolvedPathname:aa,revalidateOnlyGenerated:ab,routerServerContext:ac,nextConfig:ad,interceptionRoutePatterns:ae}=O,af=S.pathname||"/",ag=(0,r.normalizeAppPath)(G),{isOnDemandRevalidate:ah}=O,ai=K.match(af,$),aj=!!$.routes[aa],ak=!!(ai||aj||$.routes[ag]),al=a.headers["user-agent"]||"",am=(0,u.getBotType)(al),an=(0,p.isHtmlBotRequest)(a),ao=(0,h.getRequestMeta)(a,"isPrefetchRSCRequest")??"1"===a.headers[t.NEXT_ROUTER_PREFETCH_HEADER],ap=(0,h.getRequestMeta)(a,"isRSCRequest")??!!a.headers[t.RSC_HEADER],aq=(0,s.getIsPossibleServerAction)(a),ar=(0,m.checkIsAppPPREnabled)(ad.experimental.ppr)&&(null==(C=$.routes[ag]??$.dynamicRoutes[ag])?void 0:C.renderingMode)==="PARTIALLY_STATIC",as=!1,at=!1,au=ar?M:void 0,av=ar&&ap&&!ao,aw=(0,h.getRequestMeta)(a,"segmentPrefetchRSCRequest"),ax=!al||(0,p.shouldServeStreamingMetadata)(al,ad.htmlLimitedBots);an&&ar&&(ak=!1,ax=!1);let ay=!0===K.isDev||!ak||"string"==typeof M||av,az=an&&ar,aA=null;_||!ak||ay||aq||au||av||(aA=aa);let aB=aA;!aB&&K.isDev&&(aB=aa),K.isDev||_||!ak||!ap||av||(0,k.d)(a.headers);let aC={...E,tree:H,pages:I,GlobalError:D(),handler:L,routeModule:K,__next_app__:J};X&&Y&&(0,o.setReferenceManifestsSingleton)({page:G,clientReferenceManifest:Y,serverActionsManifest:X,serverModuleMap:(0,q.createServerModuleMap)({serverActionsManifest:X})});let aD=a.method||"GET",aE=(0,g.getTracer)(),aF=aE.getActiveScopeSpan();try{let f=K.getVaryHeader(aa,ae);b.setHeader("Vary",f);let k=async(c,d)=>{let e=new l.NodeNextRequest(a),f=new l.NodeNextResponse(b);return K.render(e,f,d).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=aE.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==i.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${aD} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${aD} ${a.url}`)})},m=async({span:e,postponed:f,fallbackRouteParams:g})=>{let i={query:Q,params:R,page:ag,sharedContext:{buildId:P},serverComponentsHmrCache:(0,h.getRequestMeta)(a,"serverComponentsHmrCache"),fallbackRouteParams:g,renderOpts:{App:()=>null,Document:()=>null,pageConfig:{},ComponentMod:aC,Component:(0,j.T)(aC),params:R,routeModule:K,page:G,postponed:f,shouldWaitOnAllReady:az,serveStreamingMetadata:ax,supportsDynamicResponse:"string"==typeof f||ay,buildManifest:U,nextFontManifest:V,reactLoadableManifest:W,subresourceIntegrityManifest:Z,serverActionsManifest:X,clientReferenceManifest:Y,setIsrStatus:null==ac?void 0:ac.setIsrStatus,dir:c(33873).join(process.cwd(),K.relativeProjectDir),isDraftMode:_,isRevalidate:ak&&!f&&!av,botType:am,isOnDemandRevalidate:ah,isPossibleServerAction:aq,assetPrefix:ad.assetPrefix,nextConfigOutput:ad.output,crossOrigin:ad.crossOrigin,trailingSlash:ad.trailingSlash,previewProps:$.preview,deploymentId:ad.deploymentId,enableTainting:ad.experimental.taint,htmlLimitedBots:ad.htmlLimitedBots,devtoolSegmentExplorer:ad.experimental.devtoolSegmentExplorer,reactMaxHeadersLength:ad.reactMaxHeadersLength,multiZoneDraftMode:!1,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:ad.experimental.cacheLife,basePath:ad.basePath,serverActions:ad.experimental.serverActions,...as?{nextExport:!0,supportsDynamicResponse:!1,isStaticGeneration:!0,isRevalidate:!0,isDebugDynamicAccesses:as}:{},experimental:{isRoutePPREnabled:ar,expireTime:ad.expireTime,staleTimes:ad.experimental.staleTimes,cacheComponents:!!ad.experimental.cacheComponents,clientSegmentCache:!!ad.experimental.clientSegmentCache,clientParamParsing:!!ad.experimental.clientParamParsing,dynamicOnHover:!!ad.experimental.dynamicOnHover,inlineCss:!!ad.experimental.inlineCss,authInterrupts:!!ad.experimental.authInterrupts,clientTraceMetadata:ad.experimental.clientTraceMetadata||[]},waitUntil:d.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:()=>{},onInstrumentationRequestError:(b,c,d)=>K.onRequestError(a,b,d,ac),err:(0,h.getRequestMeta)(a,"invokeError"),dev:K.isDev}},l=await k(e,i),{metadata:m}=l,{cacheControl:n,headers:o={},fetchTags:p}=m;if(p&&(o[y.NEXT_CACHE_TAGS_HEADER]=p),a.fetchMetrics=m.fetchMetrics,ak&&(null==n?void 0:n.revalidate)===0&&!K.isDev&&!ar){let a=m.staticBailoutInfo,b=Object.defineProperty(Error(`Page changed from static to dynamic at runtime ${aa}${(null==a?void 0:a.description)?`, reason: ${a.description}`:""} +see more here https://nextjs.org/docs/messages/app-static-to-dynamic-error`),"__NEXT_ERROR_CODE",{value:"E132",enumerable:!1,configurable:!0});if(null==a?void 0:a.stack){let c=a.stack;b.stack=b.message+c.substring(c.indexOf("\n"))}throw b}return{value:{kind:v.CachedRouteKind.APP_PAGE,html:l,headers:o,rscData:m.flightData,postponed:m.postponed,status:m.statusCode,segmentData:m.segmentData},cacheControl:n}},o=async({hasResolved:c,previousCacheEntry:f,isRevalidating:g,span:i})=>{let j,k=!1===K.isDev,l=c||b.writableEnded;if(ah&&ab&&!f&&!N)return(null==ac?void 0:ac.render404)?await ac.render404(a,b):(b.statusCode=404,b.end("This page could not be found")),null;if(ai&&(j=(0,w.parseFallbackField)(ai.fallback)),j===w.FallbackMode.PRERENDER&&(0,u.isBot)(al)&&(!ar||an)&&(j=w.FallbackMode.BLOCKING_STATIC_RENDER),(null==f?void 0:f.isStale)===-1&&(ah=!0),ah&&(j!==w.FallbackMode.NOT_FOUND||f)&&(j=w.FallbackMode.BLOCKING_STATIC_RENDER),!N&&j!==w.FallbackMode.BLOCKING_STATIC_RENDER&&aB&&!l&&!_&&T&&(k||!aj)){let b;if((k||ai)&&j===w.FallbackMode.NOT_FOUND)throw new B.NoFallbackError;if(ar&&!ap){let c="string"==typeof(null==ai?void 0:ai.fallback)?ai.fallback:k?ag:null;if(b=await K.handleResponse({cacheKey:c,req:a,nextConfig:ad,routeKind:e.RouteKind.APP_PAGE,isFallback:!0,prerenderManifest:$,isRoutePPREnabled:ar,responseGenerator:async()=>m({span:i,postponed:void 0,fallbackRouteParams:k||at?(0,n.u)(ag):null}),waitUntil:d.waitUntil}),null===b)return null;if(b)return delete b.cacheControl,b}}let o=ah||g||!au?void 0:au;if(as&&void 0!==o)return{cacheControl:{revalidate:1,expire:void 0},value:{kind:v.CachedRouteKind.PAGES,html:x.default.EMPTY,pageData:{},headers:void 0,status:void 0}};let p=T&&ar&&((0,h.getRequestMeta)(a,"renderFallbackShell")||at)?(0,n.u)(af):null;return m({span:i,postponed:o,fallbackRouteParams:p})},p=async c=>{var f,g,i,j,k;let l,n=await K.handleResponse({cacheKey:aA,responseGenerator:a=>o({span:c,...a}),routeKind:e.RouteKind.APP_PAGE,isOnDemandRevalidate:ah,isRoutePPREnabled:ar,req:a,nextConfig:ad,prerenderManifest:$,waitUntil:d.waitUntil});if(_&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate"),K.isDev&&b.setHeader("Cache-Control","no-store, must-revalidate"),!n){if(aA)throw Object.defineProperty(Error("invariant: cache entry required but not generated"),"__NEXT_ERROR_CODE",{value:"E62",enumerable:!1,configurable:!0});return null}if((null==(f=n.value)?void 0:f.kind)!==v.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant app-page handler received invalid cache entry ${null==(i=n.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E707",enumerable:!1,configurable:!0});let p="string"==typeof n.value.postponed;ak&&!av&&(!p||ao)&&(N||b.setHeader("x-nextjs-cache",ah?"REVALIDATED":n.isMiss?"MISS":n.isStale?"STALE":"HIT"),b.setHeader(t.NEXT_IS_PRERENDER_HEADER,"1"));let{value:q}=n;if(au)l={revalidate:0,expire:void 0};else if(N&&ap&&!ao&&ar)l={revalidate:0,expire:void 0};else if(!K.isDev)if(_)l={revalidate:0,expire:void 0};else if(ak){if(n.cacheControl)if("number"==typeof n.cacheControl.revalidate){if(n.cacheControl.revalidate<1)throw Object.defineProperty(Error(`Invalid revalidate configuration provided: ${n.cacheControl.revalidate} < 1`),"__NEXT_ERROR_CODE",{value:"E22",enumerable:!1,configurable:!0});l={revalidate:n.cacheControl.revalidate,expire:(null==(j=n.cacheControl)?void 0:j.expire)??ad.expireTime}}else l={revalidate:y.CACHE_ONE_YEAR,expire:void 0}}else b.getHeader("Cache-Control")||(l={revalidate:0,expire:void 0});if(n.cacheControl=l,"string"==typeof aw&&(null==q?void 0:q.kind)===v.CachedRouteKind.APP_PAGE&&q.segmentData){b.setHeader(t.NEXT_DID_POSTPONE_HEADER,"2");let c=null==(k=q.headers)?void 0:k[y.NEXT_CACHE_TAGS_HEADER];N&&ak&&c&&"string"==typeof c&&b.setHeader(y.NEXT_CACHE_TAGS_HEADER,c);let d=q.segmentData.get(aw);return void 0!==d?(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.fromStatic(d,t.RSC_CONTENT_TYPE_HEADER),cacheControl:n.cacheControl}):(b.statusCode=204,(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.EMPTY,cacheControl:n.cacheControl}))}let r=(0,h.getRequestMeta)(a,"onCacheEntry");if(r&&await r({...n,value:{...n.value,kind:"PAGE"}},{url:(0,h.getRequestMeta)(a,"initURL")}))return null;if(p&&au)throw Object.defineProperty(Error("Invariant: postponed state should not be present on a resume request"),"__NEXT_ERROR_CODE",{value:"E396",enumerable:!1,configurable:!0});if(q.headers){let a={...q.headers};for(let[c,d]of(N&&ak||delete a[y.NEXT_CACHE_TAGS_HEADER],Object.entries(a)))if(void 0!==d)if(Array.isArray(d))for(let a of d)b.appendHeader(c,a);else"number"==typeof d&&(d=d.toString()),b.appendHeader(c,d)}let s=null==(g=q.headers)?void 0:g[y.NEXT_CACHE_TAGS_HEADER];if(N&&ak&&s&&"string"==typeof s&&b.setHeader(y.NEXT_CACHE_TAGS_HEADER,s),!q.status||ap&&ar||(b.statusCode=q.status),!N&&q.status&&F.RedirectStatusCode[q.status]&&ap&&(b.statusCode=200),p&&b.setHeader(t.NEXT_DID_POSTPONE_HEADER,"1"),ap&&!_){if(void 0===q.rscData){if(q.postponed)throw Object.defineProperty(Error("Invariant: Expected postponed to be undefined"),"__NEXT_ERROR_CODE",{value:"E372",enumerable:!1,configurable:!0});return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:q.html,cacheControl:av?{revalidate:0,expire:void 0}:n.cacheControl})}return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.fromStatic(q.rscData,t.RSC_CONTENT_TYPE_HEADER),cacheControl:n.cacheControl})}let u=q.html;if(!p||N||ap)return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:n.cacheControl});if(as)return u.push(new ReadableStream({start(a){a.enqueue(z.ENCODED_TAGS.CLOSED.BODY_AND_HTML),a.close()}})),(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:{revalidate:0,expire:void 0}});let w=new TransformStream;return u.push(w.readable),m({span:c,postponed:q.postponed,fallbackRouteParams:null}).then(async a=>{var b,c;if(!a)throw Object.defineProperty(Error("Invariant: expected a result to be returned"),"__NEXT_ERROR_CODE",{value:"E463",enumerable:!1,configurable:!0});if((null==(b=a.value)?void 0:b.kind)!==v.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant: expected a page response, got ${null==(c=a.value)?void 0:c.kind}`),"__NEXT_ERROR_CODE",{value:"E305",enumerable:!1,configurable:!0});await a.value.html.pipeTo(w.writable)}).catch(a=>{w.writable.abort(a).catch(a=>{console.error("couldn't abort transformer",a)})}),(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:{revalidate:0,expire:void 0}})};if(!aF)return await aE.withPropagatedContext(a.headers,()=>aE.trace(i.BaseServerSpan.handleRequest,{spanName:`${aD} ${a.url}`,kind:g.SpanKind.SERVER,attributes:{"http.method":aD,"http.target":a.url}},p));await p(aF)}catch(b){throw b instanceof B.NoFallbackError||await K.onRequestError(a,b,{routerKind:"App Router",routePath:G,routeType:"render",revalidateReason:(0,f.c)({isRevalidate:ak,isOnDemandRevalidate:ah})},ac),b}}},66431:(a,b,c)=>{Promise.resolve().then(c.bind(c,31152))},73136:a=>{"use strict";a.exports=require("node:url")},76760:a=>{"use strict";a.exports=require("node:path")},76983:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>f});var d=c(75338),e=c(2054);function f(){return(0,d.jsx)(e.PageWrapper,{view:"skills"})}},77725:a=>{"use strict";a.exports=require("stream/promises")},79428:a=>{"use strict";a.exports=require("buffer")},79551:a=>{"use strict";a.exports=require("url")},79748:a=>{"use strict";a.exports=require("fs/promises")},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{"use strict";a.exports=require("better-sqlite3")},94735:a=>{"use strict";a.exports=require("events")}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,495,4606,1732,7894,9815],()=>b(b.s=64354));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/admin/skills/page.js.nft.json b/.next/server/app/admin/skills/page.js.nft.json index 6a38478bf798b1cdfb1fe6abb1f5e942cbee7836..bbed00b703325e5be0c4a873935dbe99e26351a8 100644 --- a/.next/server/app/admin/skills/page.js.nft.json +++ b/.next/server/app/admin/skills/page.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../node_modules/better-sqlite3/package.json","../../../../../node_modules/bindings/bindings.js","../../../../../node_modules/bindings/package.json","../../../../../node_modules/file-uri-to-path/index.js","../../../../../node_modules/file-uri-to-path/package.json","../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../node_modules/next/dist/lib/constants.js","../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../node_modules/next/dist/lib/is-error.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../node_modules/next/dist/shared/lib/router/utils/html-bots.js","../../../../../node_modules/next/dist/shared/lib/router/utils/is-bot.js","../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../node_modules/next/package.json","../../../../../package.json","../../../../package.json","../../../chunks/2671.js","../../../chunks/4078.js","../../../chunks/4277.js","../../../chunks/4586.js","../../../chunks/4606.js","../../../chunks/4681.js","../../../chunks/495.js","../../../chunks/570.js","../../../chunks/6085.js","../../../chunks/740.js","../../../chunks/7894.js","../../../chunks/8476.js","../../../chunks/9206.js","../../../chunks/9975.js","../../../webpack-runtime.js","page_client-reference-manifest.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../node_modules/better-sqlite3/package.json","../../../../../node_modules/bindings/bindings.js","../../../../../node_modules/bindings/package.json","../../../../../node_modules/file-uri-to-path/index.js","../../../../../node_modules/file-uri-to-path/package.json","../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../node_modules/next/dist/lib/constants.js","../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../node_modules/next/dist/lib/is-error.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../node_modules/next/dist/shared/lib/router/utils/html-bots.js","../../../../../node_modules/next/dist/shared/lib/router/utils/is-bot.js","../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../node_modules/next/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1732.js","../../../chunks/2671.js","../../../chunks/4078.js","../../../chunks/4141.js","../../../chunks/4277.js","../../../chunks/4586.js","../../../chunks/4606.js","../../../chunks/495.js","../../../chunks/6085.js","../../../chunks/740.js","../../../chunks/7894.js","../../../chunks/9050.js","../../../chunks/9206.js","../../../chunks/9815.js","../../../chunks/9975.js","../../../webpack-runtime.js","page_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/admin/skills/page_client-reference-manifest.js b/.next/server/app/admin/skills/page_client-reference-manifest.js index a9db76c3a717fb357b270a0987b91f50a9c979f5..4314b344d9e9cd71ae21057b3249fec8b2b7f520 100644 --- a/.next/server/app/admin/skills/page_client-reference-manifest.js +++ b/.next/server/app/admin/skills/page_client-reference-manifest.js @@ -1 +1 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/admin/skills/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","849","static/chunks/app/admin/skills/page-cd3396dba1a5acbf.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":["3698","static/chunks/app/admin/page-700ea05bb99f3aa7.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/skills/page":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/admin/skills/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","849","static/chunks/app/admin/skills/page-93d978d4bcb74918.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":["3698","static/chunks/app/admin/page-700ea05bb99f3aa7.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/skills/page":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/admin/templates.html b/.next/server/app/admin/templates.html index eb4138dc7b3b86d5c8166fc4100b8b26cf0ed60b..7a86587db9970e62f9ecc0d0287b1065d9cd9cfd 100644 --- a/.next/server/app/admin/templates.html +++ b/.next/server/app/admin/templates.html @@ -1,4 +1,4 @@ -Open Source Web Studio | Agentic AI Development 🎨
+Open Source Web Studio | Agentic AI Development 🎨
-
Templates

Loading templates...

\ No newline at end of file +
Templates

Loading templates...

\ No newline at end of file diff --git a/.next/server/app/admin/templates.rsc b/.next/server/app/admin/templates.rsc index d1605d8566b1931c2a89f3e5a431c5808d346497..fff9e61567f8c67882af62dd52b7d43970ab3d94 100644 --- a/.next/server/app/admin/templates.rsc +++ b/.next/server/app/admin/templates.rsc @@ -4,7 +4,7 @@ 4:I[46131,["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"default"] 5:I[9766,[],""] 6:I[98924,[],""] -7:I[43688,["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","7698","static/chunks/app/admin/templates/page-cd3396dba1a5acbf.js"],"PageWrapper"] +7:I[43688,["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","7698","static/chunks/app/admin/templates/page-93d978d4bcb74918.js"],"PageWrapper"] 8:I[24431,[],"OutletBoundary"] a:I[15278,[],"AsyncMetadataOutlet"] c:I[24431,[],"ViewportBoundary"] @@ -14,8 +14,8 @@ f:"$Sreact.suspense" :HL["/_next/static/media/58f662ed5ba12a72-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}] :HL["/_next/static/media/c3f6eb667c0186c5-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}] :HL["/_next/static/media/e4af272ccee01ff0-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}] -:HL["/_next/static/css/634e649c3cc2540f.css","style"] -0:{"P":null,"b":"Dj_mU3ym-gcopP6URA30w","p":"","c":["","admin","templates"],"i":false,"f":[[["",{"children":["admin",{"children":["templates",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/634e649c3cc2540f.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"__variable_f367f3 __variable_438d47 antialiased bg-background h-[100dvh] overflow-hidden","suppressHydrationWarning":true,"children":["$","$L2",null,{"children":[["$","$L3",null,{"richColors":true,"position":"bottom-center"}],["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]]}]}]}]]}],{"children":["admin",["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["templates",["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L7",null,{"view":"templates"}],null,["$","$L8",null,{"children":["$L9",["$","$La",null,{"promise":"$@b"}]]}]]}],{},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$Lc",null,{"children":"$Ld"}],["$","meta",null,{"name":"next-size-adjust","content":""}]],["$","$Le",null,{"children":["$","div",null,{"hidden":true,"children":["$","$f",null,{"fallback":null,"children":"$L10"}]}]}]]}],false]],"m":"$undefined","G":["$11",[]],"s":false,"S":true} +:HL["/_next/static/css/7a4f097ac51b20a7.css","style"] +0:{"P":null,"b":"6U79IAVVts3v8bcNT6dWz","p":"","c":["","admin","templates"],"i":false,"f":[[["",{"children":["admin",{"children":["templates",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/7a4f097ac51b20a7.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"__variable_f367f3 __variable_438d47 antialiased bg-background h-[100dvh] overflow-hidden","suppressHydrationWarning":true,"children":["$","$L2",null,{"children":[["$","$L3",null,{"richColors":true,"position":"bottom-center"}],["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]]}]}]}]]}],{"children":["admin",["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["templates",["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L7",null,{"view":"templates"}],null,["$","$L8",null,{"children":["$L9",["$","$La",null,{"promise":"$@b"}]]}]]}],{},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$Lc",null,{"children":"$Ld"}],["$","meta",null,{"name":"next-size-adjust","content":""}]],["$","$Le",null,{"children":["$","div",null,{"hidden":true,"children":["$","$f",null,{"fallback":null,"children":"$L10"}]}]}]]}],false]],"m":"$undefined","G":["$11",[]],"s":false,"S":true} d:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1, maximum-scale=1"}],["$","meta","2",{"name":"theme-color","content":"#000000"}]] 9:null 12:I[80622,[],"IconMark"] diff --git a/.next/server/app/admin/templates/page.js b/.next/server/app/admin/templates/page.js index f1f9f33aadc7c6ac4b5e6b707f4d11c2ecaf56b2..9cd68ce8e7ac062e74000876dbb3c6ba17f5e2b1 100644 --- a/.next/server/app/admin/templates/page.js +++ b/.next/server/app/admin/templates/page.js @@ -1,2 +1,2 @@ -(()=>{var a={};a.id=7698,a.ids=[7698],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1708:a=>{"use strict";a.exports=require("node:process")},2054:(a,b,c)=>{"use strict";c.d(b,{PageWrapper:()=>d});let d=(0,c(97954).registerClientReference)(function(){throw Error("Attempted to call PageWrapper() from the server but PageWrapper is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx","PageWrapper")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},26713:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/is-bot")},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31152:(a,b,c)=>{"use strict";c.d(b,{PageWrapper:()=>o});var d=c(21124),e=c(38301),f=c(42378),g=c(11610),h=c(69188),i=c(83374),j=c(95919),k=c(14258),l=c(45914);let m={dashboard:"/admin",projects:"/admin/projects",templates:"/admin/templates",skills:"/admin/skills",sites:"/admin/sites",docs:"/admin/docs",settings:"/admin/settings"};function n({view:a,settingsTab:b}){let c=(0,f.useRouter)(),[j,n]=(0,e.useState)(null),[o,p]=(0,e.useState)(!1),q=(0,e.useCallback)(a=>{let b=m[a]||`/admin/${a}`;c.push(b)},[c]),r=j?(0,d.jsx)(i.a,{project:j,onBack:()=>n(null)}):(0,d.jsx)(h.f,{view:a,onProjectSelect:n,settingsTab:b,onNavigate:q});return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(g.M,{currentView:a,onNavigate:q,onProjectSelect:n,onOpenAbout:()=>p(!0),showSidebar:!j,children:r}),(0,d.jsx)(k.V,{location:"global"}),(0,d.jsx)(l.V,{open:o,onOpenChange:p})]})}function o({view:a,settingsTab:b}){return(0,d.jsx)(j.g,{children:(0,d.jsx)(n,{view:a,settingsTab:b})})}},33873:a=>{"use strict";a.exports=require("path")},36167:(a,b,c)=>{Promise.resolve().then(c.bind(c,2054))},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},46888:(a,b,c)=>{"use strict";c.r(b),c.d(b,{GlobalError:()=>D.a,__next_app__:()=>J,handler:()=>L,pages:()=>I,routeModule:()=>K,tree:()=>H});var d=c(49754),e=c(9117),f=c(46595),g=c(32324),h=c(39326),i=c(38928),j=c(20175),k=c(12),l=c(54290),m=c(12696),n=c(82802),o=c(77533),p=c(45229),q=c(32822),r=c(261),s=c(26453),t=c(52474),u=c(26713),v=c(51356),w=c(62685),x=c(36225),y=c(63446),z=c(2762),A=c(45742),B=c(86439),C=c(81170),D=c.n(C),E=c(62506),F=c(91203),G={};for(let a in E)0>["default","tree","pages","GlobalError","__next_app__","routeModule","handler"].indexOf(a)&&(G[a]=()=>E[a]);c.d(b,G);let H={children:["",{children:["admin",{children:["templates",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(c.bind(c,50554)),"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/templates/page.tsx"]}]},{}]},{}]},{layout:[()=>Promise.resolve().then(c.bind(c,16953)),"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout.tsx"],"global-error":[()=>Promise.resolve().then(c.t.bind(c,81170,23)),"next/dist/client/components/builtin/global-error.js"],"not-found":[()=>Promise.resolve().then(c.t.bind(c,87028,23)),"next/dist/client/components/builtin/not-found.js"],forbidden:[()=>Promise.resolve().then(c.t.bind(c,90461,23)),"next/dist/client/components/builtin/forbidden.js"],unauthorized:[()=>Promise.resolve().then(c.t.bind(c,32768,23)),"next/dist/client/components/builtin/unauthorized.js"]}]}.children,I=["/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/templates/page.tsx"],J={require:c,loadChunk:()=>Promise.resolve()},K=new d.AppPageRouteModule({definition:{kind:e.RouteKind.APP_PAGE,page:"/admin/templates/page",pathname:"/admin/templates",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:H},distDir:".next",relativeProjectDir:""});async function L(a,b,d){var C;let G="/admin/templates/page";"/index"===G&&(G="/");let M=(0,h.getRequestMeta)(a,"postponed"),N=(0,h.getRequestMeta)(a,"minimalMode"),O=await K.prepare(a,b,{srcPage:G,multiZoneDraftMode:!1});if(!O)return b.statusCode=400,b.end("Bad Request"),null==d.waitUntil||d.waitUntil.call(d,Promise.resolve()),null;let{buildId:P,query:Q,params:R,parsedUrl:S,pageIsDynamic:T,buildManifest:U,nextFontManifest:V,reactLoadableManifest:W,serverActionsManifest:X,clientReferenceManifest:Y,subresourceIntegrityManifest:Z,prerenderManifest:$,isDraftMode:_,resolvedPathname:aa,revalidateOnlyGenerated:ab,routerServerContext:ac,nextConfig:ad,interceptionRoutePatterns:ae}=O,af=S.pathname||"/",ag=(0,r.normalizeAppPath)(G),{isOnDemandRevalidate:ah}=O,ai=K.match(af,$),aj=!!$.routes[aa],ak=!!(ai||aj||$.routes[ag]),al=a.headers["user-agent"]||"",am=(0,u.getBotType)(al),an=(0,p.isHtmlBotRequest)(a),ao=(0,h.getRequestMeta)(a,"isPrefetchRSCRequest")??"1"===a.headers[t.NEXT_ROUTER_PREFETCH_HEADER],ap=(0,h.getRequestMeta)(a,"isRSCRequest")??!!a.headers[t.RSC_HEADER],aq=(0,s.getIsPossibleServerAction)(a),ar=(0,m.checkIsAppPPREnabled)(ad.experimental.ppr)&&(null==(C=$.routes[ag]??$.dynamicRoutes[ag])?void 0:C.renderingMode)==="PARTIALLY_STATIC",as=!1,at=!1,au=ar?M:void 0,av=ar&&ap&&!ao,aw=(0,h.getRequestMeta)(a,"segmentPrefetchRSCRequest"),ax=!al||(0,p.shouldServeStreamingMetadata)(al,ad.htmlLimitedBots);an&&ar&&(ak=!1,ax=!1);let ay=!0===K.isDev||!ak||"string"==typeof M||av,az=an&&ar,aA=null;_||!ak||ay||aq||au||av||(aA=aa);let aB=aA;!aB&&K.isDev&&(aB=aa),K.isDev||_||!ak||!ap||av||(0,k.d)(a.headers);let aC={...E,tree:H,pages:I,GlobalError:D(),handler:L,routeModule:K,__next_app__:J};X&&Y&&(0,o.setReferenceManifestsSingleton)({page:G,clientReferenceManifest:Y,serverActionsManifest:X,serverModuleMap:(0,q.createServerModuleMap)({serverActionsManifest:X})});let aD=a.method||"GET",aE=(0,g.getTracer)(),aF=aE.getActiveScopeSpan();try{let f=K.getVaryHeader(aa,ae);b.setHeader("Vary",f);let k=async(c,d)=>{let e=new l.NodeNextRequest(a),f=new l.NodeNextResponse(b);return K.render(e,f,d).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=aE.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==i.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${aD} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${aD} ${a.url}`)})},m=async({span:e,postponed:f,fallbackRouteParams:g})=>{let i={query:Q,params:R,page:ag,sharedContext:{buildId:P},serverComponentsHmrCache:(0,h.getRequestMeta)(a,"serverComponentsHmrCache"),fallbackRouteParams:g,renderOpts:{App:()=>null,Document:()=>null,pageConfig:{},ComponentMod:aC,Component:(0,j.T)(aC),params:R,routeModule:K,page:G,postponed:f,shouldWaitOnAllReady:az,serveStreamingMetadata:ax,supportsDynamicResponse:"string"==typeof f||ay,buildManifest:U,nextFontManifest:V,reactLoadableManifest:W,subresourceIntegrityManifest:Z,serverActionsManifest:X,clientReferenceManifest:Y,setIsrStatus:null==ac?void 0:ac.setIsrStatus,dir:c(33873).join(process.cwd(),K.relativeProjectDir),isDraftMode:_,isRevalidate:ak&&!f&&!av,botType:am,isOnDemandRevalidate:ah,isPossibleServerAction:aq,assetPrefix:ad.assetPrefix,nextConfigOutput:ad.output,crossOrigin:ad.crossOrigin,trailingSlash:ad.trailingSlash,previewProps:$.preview,deploymentId:ad.deploymentId,enableTainting:ad.experimental.taint,htmlLimitedBots:ad.htmlLimitedBots,devtoolSegmentExplorer:ad.experimental.devtoolSegmentExplorer,reactMaxHeadersLength:ad.reactMaxHeadersLength,multiZoneDraftMode:!1,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:ad.experimental.cacheLife,basePath:ad.basePath,serverActions:ad.experimental.serverActions,...as?{nextExport:!0,supportsDynamicResponse:!1,isStaticGeneration:!0,isRevalidate:!0,isDebugDynamicAccesses:as}:{},experimental:{isRoutePPREnabled:ar,expireTime:ad.expireTime,staleTimes:ad.experimental.staleTimes,cacheComponents:!!ad.experimental.cacheComponents,clientSegmentCache:!!ad.experimental.clientSegmentCache,clientParamParsing:!!ad.experimental.clientParamParsing,dynamicOnHover:!!ad.experimental.dynamicOnHover,inlineCss:!!ad.experimental.inlineCss,authInterrupts:!!ad.experimental.authInterrupts,clientTraceMetadata:ad.experimental.clientTraceMetadata||[]},waitUntil:d.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:()=>{},onInstrumentationRequestError:(b,c,d)=>K.onRequestError(a,b,d,ac),err:(0,h.getRequestMeta)(a,"invokeError"),dev:K.isDev}},l=await k(e,i),{metadata:m}=l,{cacheControl:n,headers:o={},fetchTags:p}=m;if(p&&(o[y.NEXT_CACHE_TAGS_HEADER]=p),a.fetchMetrics=m.fetchMetrics,ak&&(null==n?void 0:n.revalidate)===0&&!K.isDev&&!ar){let a=m.staticBailoutInfo,b=Object.defineProperty(Error(`Page changed from static to dynamic at runtime ${aa}${(null==a?void 0:a.description)?`, reason: ${a.description}`:""} -see more here https://nextjs.org/docs/messages/app-static-to-dynamic-error`),"__NEXT_ERROR_CODE",{value:"E132",enumerable:!1,configurable:!0});if(null==a?void 0:a.stack){let c=a.stack;b.stack=b.message+c.substring(c.indexOf("\n"))}throw b}return{value:{kind:v.CachedRouteKind.APP_PAGE,html:l,headers:o,rscData:m.flightData,postponed:m.postponed,status:m.statusCode,segmentData:m.segmentData},cacheControl:n}},o=async({hasResolved:c,previousCacheEntry:f,isRevalidating:g,span:i})=>{let j,k=!1===K.isDev,l=c||b.writableEnded;if(ah&&ab&&!f&&!N)return(null==ac?void 0:ac.render404)?await ac.render404(a,b):(b.statusCode=404,b.end("This page could not be found")),null;if(ai&&(j=(0,w.parseFallbackField)(ai.fallback)),j===w.FallbackMode.PRERENDER&&(0,u.isBot)(al)&&(!ar||an)&&(j=w.FallbackMode.BLOCKING_STATIC_RENDER),(null==f?void 0:f.isStale)===-1&&(ah=!0),ah&&(j!==w.FallbackMode.NOT_FOUND||f)&&(j=w.FallbackMode.BLOCKING_STATIC_RENDER),!N&&j!==w.FallbackMode.BLOCKING_STATIC_RENDER&&aB&&!l&&!_&&T&&(k||!aj)){let b;if((k||ai)&&j===w.FallbackMode.NOT_FOUND)throw new B.NoFallbackError;if(ar&&!ap){let c="string"==typeof(null==ai?void 0:ai.fallback)?ai.fallback:k?ag:null;if(b=await K.handleResponse({cacheKey:c,req:a,nextConfig:ad,routeKind:e.RouteKind.APP_PAGE,isFallback:!0,prerenderManifest:$,isRoutePPREnabled:ar,responseGenerator:async()=>m({span:i,postponed:void 0,fallbackRouteParams:k||at?(0,n.u)(ag):null}),waitUntil:d.waitUntil}),null===b)return null;if(b)return delete b.cacheControl,b}}let o=ah||g||!au?void 0:au;if(as&&void 0!==o)return{cacheControl:{revalidate:1,expire:void 0},value:{kind:v.CachedRouteKind.PAGES,html:x.default.EMPTY,pageData:{},headers:void 0,status:void 0}};let p=T&&ar&&((0,h.getRequestMeta)(a,"renderFallbackShell")||at)?(0,n.u)(af):null;return m({span:i,postponed:o,fallbackRouteParams:p})},p=async c=>{var f,g,i,j,k;let l,n=await K.handleResponse({cacheKey:aA,responseGenerator:a=>o({span:c,...a}),routeKind:e.RouteKind.APP_PAGE,isOnDemandRevalidate:ah,isRoutePPREnabled:ar,req:a,nextConfig:ad,prerenderManifest:$,waitUntil:d.waitUntil});if(_&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate"),K.isDev&&b.setHeader("Cache-Control","no-store, must-revalidate"),!n){if(aA)throw Object.defineProperty(Error("invariant: cache entry required but not generated"),"__NEXT_ERROR_CODE",{value:"E62",enumerable:!1,configurable:!0});return null}if((null==(f=n.value)?void 0:f.kind)!==v.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant app-page handler received invalid cache entry ${null==(i=n.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E707",enumerable:!1,configurable:!0});let p="string"==typeof n.value.postponed;ak&&!av&&(!p||ao)&&(N||b.setHeader("x-nextjs-cache",ah?"REVALIDATED":n.isMiss?"MISS":n.isStale?"STALE":"HIT"),b.setHeader(t.NEXT_IS_PRERENDER_HEADER,"1"));let{value:q}=n;if(au)l={revalidate:0,expire:void 0};else if(N&&ap&&!ao&&ar)l={revalidate:0,expire:void 0};else if(!K.isDev)if(_)l={revalidate:0,expire:void 0};else if(ak){if(n.cacheControl)if("number"==typeof n.cacheControl.revalidate){if(n.cacheControl.revalidate<1)throw Object.defineProperty(Error(`Invalid revalidate configuration provided: ${n.cacheControl.revalidate} < 1`),"__NEXT_ERROR_CODE",{value:"E22",enumerable:!1,configurable:!0});l={revalidate:n.cacheControl.revalidate,expire:(null==(j=n.cacheControl)?void 0:j.expire)??ad.expireTime}}else l={revalidate:y.CACHE_ONE_YEAR,expire:void 0}}else b.getHeader("Cache-Control")||(l={revalidate:0,expire:void 0});if(n.cacheControl=l,"string"==typeof aw&&(null==q?void 0:q.kind)===v.CachedRouteKind.APP_PAGE&&q.segmentData){b.setHeader(t.NEXT_DID_POSTPONE_HEADER,"2");let c=null==(k=q.headers)?void 0:k[y.NEXT_CACHE_TAGS_HEADER];N&&ak&&c&&"string"==typeof c&&b.setHeader(y.NEXT_CACHE_TAGS_HEADER,c);let d=q.segmentData.get(aw);return void 0!==d?(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.fromStatic(d,t.RSC_CONTENT_TYPE_HEADER),cacheControl:n.cacheControl}):(b.statusCode=204,(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.EMPTY,cacheControl:n.cacheControl}))}let r=(0,h.getRequestMeta)(a,"onCacheEntry");if(r&&await r({...n,value:{...n.value,kind:"PAGE"}},{url:(0,h.getRequestMeta)(a,"initURL")}))return null;if(p&&au)throw Object.defineProperty(Error("Invariant: postponed state should not be present on a resume request"),"__NEXT_ERROR_CODE",{value:"E396",enumerable:!1,configurable:!0});if(q.headers){let a={...q.headers};for(let[c,d]of(N&&ak||delete a[y.NEXT_CACHE_TAGS_HEADER],Object.entries(a)))if(void 0!==d)if(Array.isArray(d))for(let a of d)b.appendHeader(c,a);else"number"==typeof d&&(d=d.toString()),b.appendHeader(c,d)}let s=null==(g=q.headers)?void 0:g[y.NEXT_CACHE_TAGS_HEADER];if(N&&ak&&s&&"string"==typeof s&&b.setHeader(y.NEXT_CACHE_TAGS_HEADER,s),!q.status||ap&&ar||(b.statusCode=q.status),!N&&q.status&&F.RedirectStatusCode[q.status]&&ap&&(b.statusCode=200),p&&b.setHeader(t.NEXT_DID_POSTPONE_HEADER,"1"),ap&&!_){if(void 0===q.rscData){if(q.postponed)throw Object.defineProperty(Error("Invariant: Expected postponed to be undefined"),"__NEXT_ERROR_CODE",{value:"E372",enumerable:!1,configurable:!0});return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:q.html,cacheControl:av?{revalidate:0,expire:void 0}:n.cacheControl})}return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.fromStatic(q.rscData,t.RSC_CONTENT_TYPE_HEADER),cacheControl:n.cacheControl})}let u=q.html;if(!p||N||ap)return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:n.cacheControl});if(as)return u.push(new ReadableStream({start(a){a.enqueue(z.ENCODED_TAGS.CLOSED.BODY_AND_HTML),a.close()}})),(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:{revalidate:0,expire:void 0}});let w=new TransformStream;return u.push(w.readable),m({span:c,postponed:q.postponed,fallbackRouteParams:null}).then(async a=>{var b,c;if(!a)throw Object.defineProperty(Error("Invariant: expected a result to be returned"),"__NEXT_ERROR_CODE",{value:"E463",enumerable:!1,configurable:!0});if((null==(b=a.value)?void 0:b.kind)!==v.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant: expected a page response, got ${null==(c=a.value)?void 0:c.kind}`),"__NEXT_ERROR_CODE",{value:"E305",enumerable:!1,configurable:!0});await a.value.html.pipeTo(w.writable)}).catch(a=>{w.writable.abort(a).catch(a=>{console.error("couldn't abort transformer",a)})}),(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:{revalidate:0,expire:void 0}})};if(!aF)return await aE.withPropagatedContext(a.headers,()=>aE.trace(i.BaseServerSpan.handleRequest,{spanName:`${aD} ${a.url}`,kind:g.SpanKind.SERVER,attributes:{"http.method":aD,"http.target":a.url}},p));await p(aF)}catch(b){throw b instanceof B.NoFallbackError||await K.onRequestError(a,b,{routerKind:"App Router",routePath:G,routeType:"render",revalidateReason:(0,f.c)({isRevalidate:ak,isOnDemandRevalidate:ah})},ac),b}}},50554:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>f});var d=c(75338),e=c(2054);function f(){return(0,d.jsx)(e.PageWrapper,{view:"templates"})}},55511:a=>{"use strict";a.exports=require("crypto")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},66431:(a,b,c)=>{Promise.resolve().then(c.bind(c,31152))},73136:a=>{"use strict";a.exports=require("node:url")},76760:a=>{"use strict";a.exports=require("node:path")},77725:a=>{"use strict";a.exports=require("stream/promises")},79428:a=>{"use strict";a.exports=require("buffer")},79551:a=>{"use strict";a.exports=require("url")},79748:a=>{"use strict";a.exports=require("fs/promises")},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{"use strict";a.exports=require("better-sqlite3")},94735:a=>{"use strict";a.exports=require("events")}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,495,4606,570,7894,8476],()=>b(b.s=46888));module.exports=c})(); \ No newline at end of file +(()=>{var a={};a.id=7698,a.ids=[7698],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1708:a=>{"use strict";a.exports=require("node:process")},2054:(a,b,c)=>{"use strict";c.d(b,{PageWrapper:()=>d});let d=(0,c(97954).registerClientReference)(function(){throw Error("Attempted to call PageWrapper() from the server but PageWrapper is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx","PageWrapper")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},26713:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/is-bot")},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31152:(a,b,c)=>{"use strict";c.d(b,{PageWrapper:()=>o});var d=c(21124),e=c(38301),f=c(42378),g=c(11610),h=c(83330),i=c(44215),j=c(95919),k=c(14258),l=c(45914);let m={dashboard:"/admin",projects:"/admin/projects",templates:"/admin/templates",skills:"/admin/skills",deployments:"/admin/deployments",docs:"/admin/docs",settings:"/admin/settings"};function n({view:a,settingsTab:b}){let c=(0,f.useRouter)(),[j,n]=(0,e.useState)(null),[o,p]=(0,e.useState)(!1),q=(0,e.useCallback)(a=>{let b=m[a]||`/admin/${a}`;c.push(b)},[c]),r=j?(0,d.jsx)(i.a,{project:j,onBack:()=>n(null)}):(0,d.jsx)(h.f,{view:a,onProjectSelect:n,settingsTab:b,onNavigate:q});return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(g.M,{currentView:a,onNavigate:q,onProjectSelect:n,onOpenAbout:()=>p(!0),showSidebar:!j,children:r}),(0,d.jsx)(k.V,{location:"global"}),(0,d.jsx)(l.V,{open:o,onOpenChange:p})]})}function o({view:a,settingsTab:b}){return(0,d.jsx)(j.g,{children:(0,d.jsx)(n,{view:a,settingsTab:b})})}},33873:a=>{"use strict";a.exports=require("path")},36167:(a,b,c)=>{Promise.resolve().then(c.bind(c,2054))},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},46888:(a,b,c)=>{"use strict";c.r(b),c.d(b,{GlobalError:()=>D.a,__next_app__:()=>J,handler:()=>L,pages:()=>I,routeModule:()=>K,tree:()=>H});var d=c(49754),e=c(9117),f=c(46595),g=c(32324),h=c(39326),i=c(38928),j=c(20175),k=c(12),l=c(54290),m=c(12696),n=c(82802),o=c(77533),p=c(45229),q=c(32822),r=c(261),s=c(26453),t=c(52474),u=c(26713),v=c(51356),w=c(62685),x=c(36225),y=c(63446),z=c(2762),A=c(45742),B=c(86439),C=c(81170),D=c.n(C),E=c(62506),F=c(91203),G={};for(let a in E)0>["default","tree","pages","GlobalError","__next_app__","routeModule","handler"].indexOf(a)&&(G[a]=()=>E[a]);c.d(b,G);let H={children:["",{children:["admin",{children:["templates",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(c.bind(c,50554)),"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/templates/page.tsx"]}]},{}]},{}]},{layout:[()=>Promise.resolve().then(c.bind(c,16953)),"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout.tsx"],"global-error":[()=>Promise.resolve().then(c.t.bind(c,81170,23)),"next/dist/client/components/builtin/global-error.js"],"not-found":[()=>Promise.resolve().then(c.t.bind(c,87028,23)),"next/dist/client/components/builtin/not-found.js"],forbidden:[()=>Promise.resolve().then(c.t.bind(c,90461,23)),"next/dist/client/components/builtin/forbidden.js"],unauthorized:[()=>Promise.resolve().then(c.t.bind(c,32768,23)),"next/dist/client/components/builtin/unauthorized.js"]}]}.children,I=["/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/templates/page.tsx"],J={require:c,loadChunk:()=>Promise.resolve()},K=new d.AppPageRouteModule({definition:{kind:e.RouteKind.APP_PAGE,page:"/admin/templates/page",pathname:"/admin/templates",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:H},distDir:".next",relativeProjectDir:""});async function L(a,b,d){var C;let G="/admin/templates/page";"/index"===G&&(G="/");let M=(0,h.getRequestMeta)(a,"postponed"),N=(0,h.getRequestMeta)(a,"minimalMode"),O=await K.prepare(a,b,{srcPage:G,multiZoneDraftMode:!1});if(!O)return b.statusCode=400,b.end("Bad Request"),null==d.waitUntil||d.waitUntil.call(d,Promise.resolve()),null;let{buildId:P,query:Q,params:R,parsedUrl:S,pageIsDynamic:T,buildManifest:U,nextFontManifest:V,reactLoadableManifest:W,serverActionsManifest:X,clientReferenceManifest:Y,subresourceIntegrityManifest:Z,prerenderManifest:$,isDraftMode:_,resolvedPathname:aa,revalidateOnlyGenerated:ab,routerServerContext:ac,nextConfig:ad,interceptionRoutePatterns:ae}=O,af=S.pathname||"/",ag=(0,r.normalizeAppPath)(G),{isOnDemandRevalidate:ah}=O,ai=K.match(af,$),aj=!!$.routes[aa],ak=!!(ai||aj||$.routes[ag]),al=a.headers["user-agent"]||"",am=(0,u.getBotType)(al),an=(0,p.isHtmlBotRequest)(a),ao=(0,h.getRequestMeta)(a,"isPrefetchRSCRequest")??"1"===a.headers[t.NEXT_ROUTER_PREFETCH_HEADER],ap=(0,h.getRequestMeta)(a,"isRSCRequest")??!!a.headers[t.RSC_HEADER],aq=(0,s.getIsPossibleServerAction)(a),ar=(0,m.checkIsAppPPREnabled)(ad.experimental.ppr)&&(null==(C=$.routes[ag]??$.dynamicRoutes[ag])?void 0:C.renderingMode)==="PARTIALLY_STATIC",as=!1,at=!1,au=ar?M:void 0,av=ar&&ap&&!ao,aw=(0,h.getRequestMeta)(a,"segmentPrefetchRSCRequest"),ax=!al||(0,p.shouldServeStreamingMetadata)(al,ad.htmlLimitedBots);an&&ar&&(ak=!1,ax=!1);let ay=!0===K.isDev||!ak||"string"==typeof M||av,az=an&&ar,aA=null;_||!ak||ay||aq||au||av||(aA=aa);let aB=aA;!aB&&K.isDev&&(aB=aa),K.isDev||_||!ak||!ap||av||(0,k.d)(a.headers);let aC={...E,tree:H,pages:I,GlobalError:D(),handler:L,routeModule:K,__next_app__:J};X&&Y&&(0,o.setReferenceManifestsSingleton)({page:G,clientReferenceManifest:Y,serverActionsManifest:X,serverModuleMap:(0,q.createServerModuleMap)({serverActionsManifest:X})});let aD=a.method||"GET",aE=(0,g.getTracer)(),aF=aE.getActiveScopeSpan();try{let f=K.getVaryHeader(aa,ae);b.setHeader("Vary",f);let k=async(c,d)=>{let e=new l.NodeNextRequest(a),f=new l.NodeNextResponse(b);return K.render(e,f,d).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=aE.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==i.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${aD} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${aD} ${a.url}`)})},m=async({span:e,postponed:f,fallbackRouteParams:g})=>{let i={query:Q,params:R,page:ag,sharedContext:{buildId:P},serverComponentsHmrCache:(0,h.getRequestMeta)(a,"serverComponentsHmrCache"),fallbackRouteParams:g,renderOpts:{App:()=>null,Document:()=>null,pageConfig:{},ComponentMod:aC,Component:(0,j.T)(aC),params:R,routeModule:K,page:G,postponed:f,shouldWaitOnAllReady:az,serveStreamingMetadata:ax,supportsDynamicResponse:"string"==typeof f||ay,buildManifest:U,nextFontManifest:V,reactLoadableManifest:W,subresourceIntegrityManifest:Z,serverActionsManifest:X,clientReferenceManifest:Y,setIsrStatus:null==ac?void 0:ac.setIsrStatus,dir:c(33873).join(process.cwd(),K.relativeProjectDir),isDraftMode:_,isRevalidate:ak&&!f&&!av,botType:am,isOnDemandRevalidate:ah,isPossibleServerAction:aq,assetPrefix:ad.assetPrefix,nextConfigOutput:ad.output,crossOrigin:ad.crossOrigin,trailingSlash:ad.trailingSlash,previewProps:$.preview,deploymentId:ad.deploymentId,enableTainting:ad.experimental.taint,htmlLimitedBots:ad.htmlLimitedBots,devtoolSegmentExplorer:ad.experimental.devtoolSegmentExplorer,reactMaxHeadersLength:ad.reactMaxHeadersLength,multiZoneDraftMode:!1,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:ad.experimental.cacheLife,basePath:ad.basePath,serverActions:ad.experimental.serverActions,...as?{nextExport:!0,supportsDynamicResponse:!1,isStaticGeneration:!0,isRevalidate:!0,isDebugDynamicAccesses:as}:{},experimental:{isRoutePPREnabled:ar,expireTime:ad.expireTime,staleTimes:ad.experimental.staleTimes,cacheComponents:!!ad.experimental.cacheComponents,clientSegmentCache:!!ad.experimental.clientSegmentCache,clientParamParsing:!!ad.experimental.clientParamParsing,dynamicOnHover:!!ad.experimental.dynamicOnHover,inlineCss:!!ad.experimental.inlineCss,authInterrupts:!!ad.experimental.authInterrupts,clientTraceMetadata:ad.experimental.clientTraceMetadata||[]},waitUntil:d.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:()=>{},onInstrumentationRequestError:(b,c,d)=>K.onRequestError(a,b,d,ac),err:(0,h.getRequestMeta)(a,"invokeError"),dev:K.isDev}},l=await k(e,i),{metadata:m}=l,{cacheControl:n,headers:o={},fetchTags:p}=m;if(p&&(o[y.NEXT_CACHE_TAGS_HEADER]=p),a.fetchMetrics=m.fetchMetrics,ak&&(null==n?void 0:n.revalidate)===0&&!K.isDev&&!ar){let a=m.staticBailoutInfo,b=Object.defineProperty(Error(`Page changed from static to dynamic at runtime ${aa}${(null==a?void 0:a.description)?`, reason: ${a.description}`:""} +see more here https://nextjs.org/docs/messages/app-static-to-dynamic-error`),"__NEXT_ERROR_CODE",{value:"E132",enumerable:!1,configurable:!0});if(null==a?void 0:a.stack){let c=a.stack;b.stack=b.message+c.substring(c.indexOf("\n"))}throw b}return{value:{kind:v.CachedRouteKind.APP_PAGE,html:l,headers:o,rscData:m.flightData,postponed:m.postponed,status:m.statusCode,segmentData:m.segmentData},cacheControl:n}},o=async({hasResolved:c,previousCacheEntry:f,isRevalidating:g,span:i})=>{let j,k=!1===K.isDev,l=c||b.writableEnded;if(ah&&ab&&!f&&!N)return(null==ac?void 0:ac.render404)?await ac.render404(a,b):(b.statusCode=404,b.end("This page could not be found")),null;if(ai&&(j=(0,w.parseFallbackField)(ai.fallback)),j===w.FallbackMode.PRERENDER&&(0,u.isBot)(al)&&(!ar||an)&&(j=w.FallbackMode.BLOCKING_STATIC_RENDER),(null==f?void 0:f.isStale)===-1&&(ah=!0),ah&&(j!==w.FallbackMode.NOT_FOUND||f)&&(j=w.FallbackMode.BLOCKING_STATIC_RENDER),!N&&j!==w.FallbackMode.BLOCKING_STATIC_RENDER&&aB&&!l&&!_&&T&&(k||!aj)){let b;if((k||ai)&&j===w.FallbackMode.NOT_FOUND)throw new B.NoFallbackError;if(ar&&!ap){let c="string"==typeof(null==ai?void 0:ai.fallback)?ai.fallback:k?ag:null;if(b=await K.handleResponse({cacheKey:c,req:a,nextConfig:ad,routeKind:e.RouteKind.APP_PAGE,isFallback:!0,prerenderManifest:$,isRoutePPREnabled:ar,responseGenerator:async()=>m({span:i,postponed:void 0,fallbackRouteParams:k||at?(0,n.u)(ag):null}),waitUntil:d.waitUntil}),null===b)return null;if(b)return delete b.cacheControl,b}}let o=ah||g||!au?void 0:au;if(as&&void 0!==o)return{cacheControl:{revalidate:1,expire:void 0},value:{kind:v.CachedRouteKind.PAGES,html:x.default.EMPTY,pageData:{},headers:void 0,status:void 0}};let p=T&&ar&&((0,h.getRequestMeta)(a,"renderFallbackShell")||at)?(0,n.u)(af):null;return m({span:i,postponed:o,fallbackRouteParams:p})},p=async c=>{var f,g,i,j,k;let l,n=await K.handleResponse({cacheKey:aA,responseGenerator:a=>o({span:c,...a}),routeKind:e.RouteKind.APP_PAGE,isOnDemandRevalidate:ah,isRoutePPREnabled:ar,req:a,nextConfig:ad,prerenderManifest:$,waitUntil:d.waitUntil});if(_&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate"),K.isDev&&b.setHeader("Cache-Control","no-store, must-revalidate"),!n){if(aA)throw Object.defineProperty(Error("invariant: cache entry required but not generated"),"__NEXT_ERROR_CODE",{value:"E62",enumerable:!1,configurable:!0});return null}if((null==(f=n.value)?void 0:f.kind)!==v.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant app-page handler received invalid cache entry ${null==(i=n.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E707",enumerable:!1,configurable:!0});let p="string"==typeof n.value.postponed;ak&&!av&&(!p||ao)&&(N||b.setHeader("x-nextjs-cache",ah?"REVALIDATED":n.isMiss?"MISS":n.isStale?"STALE":"HIT"),b.setHeader(t.NEXT_IS_PRERENDER_HEADER,"1"));let{value:q}=n;if(au)l={revalidate:0,expire:void 0};else if(N&&ap&&!ao&&ar)l={revalidate:0,expire:void 0};else if(!K.isDev)if(_)l={revalidate:0,expire:void 0};else if(ak){if(n.cacheControl)if("number"==typeof n.cacheControl.revalidate){if(n.cacheControl.revalidate<1)throw Object.defineProperty(Error(`Invalid revalidate configuration provided: ${n.cacheControl.revalidate} < 1`),"__NEXT_ERROR_CODE",{value:"E22",enumerable:!1,configurable:!0});l={revalidate:n.cacheControl.revalidate,expire:(null==(j=n.cacheControl)?void 0:j.expire)??ad.expireTime}}else l={revalidate:y.CACHE_ONE_YEAR,expire:void 0}}else b.getHeader("Cache-Control")||(l={revalidate:0,expire:void 0});if(n.cacheControl=l,"string"==typeof aw&&(null==q?void 0:q.kind)===v.CachedRouteKind.APP_PAGE&&q.segmentData){b.setHeader(t.NEXT_DID_POSTPONE_HEADER,"2");let c=null==(k=q.headers)?void 0:k[y.NEXT_CACHE_TAGS_HEADER];N&&ak&&c&&"string"==typeof c&&b.setHeader(y.NEXT_CACHE_TAGS_HEADER,c);let d=q.segmentData.get(aw);return void 0!==d?(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.fromStatic(d,t.RSC_CONTENT_TYPE_HEADER),cacheControl:n.cacheControl}):(b.statusCode=204,(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.EMPTY,cacheControl:n.cacheControl}))}let r=(0,h.getRequestMeta)(a,"onCacheEntry");if(r&&await r({...n,value:{...n.value,kind:"PAGE"}},{url:(0,h.getRequestMeta)(a,"initURL")}))return null;if(p&&au)throw Object.defineProperty(Error("Invariant: postponed state should not be present on a resume request"),"__NEXT_ERROR_CODE",{value:"E396",enumerable:!1,configurable:!0});if(q.headers){let a={...q.headers};for(let[c,d]of(N&&ak||delete a[y.NEXT_CACHE_TAGS_HEADER],Object.entries(a)))if(void 0!==d)if(Array.isArray(d))for(let a of d)b.appendHeader(c,a);else"number"==typeof d&&(d=d.toString()),b.appendHeader(c,d)}let s=null==(g=q.headers)?void 0:g[y.NEXT_CACHE_TAGS_HEADER];if(N&&ak&&s&&"string"==typeof s&&b.setHeader(y.NEXT_CACHE_TAGS_HEADER,s),!q.status||ap&&ar||(b.statusCode=q.status),!N&&q.status&&F.RedirectStatusCode[q.status]&&ap&&(b.statusCode=200),p&&b.setHeader(t.NEXT_DID_POSTPONE_HEADER,"1"),ap&&!_){if(void 0===q.rscData){if(q.postponed)throw Object.defineProperty(Error("Invariant: Expected postponed to be undefined"),"__NEXT_ERROR_CODE",{value:"E372",enumerable:!1,configurable:!0});return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:q.html,cacheControl:av?{revalidate:0,expire:void 0}:n.cacheControl})}return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.fromStatic(q.rscData,t.RSC_CONTENT_TYPE_HEADER),cacheControl:n.cacheControl})}let u=q.html;if(!p||N||ap)return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:n.cacheControl});if(as)return u.push(new ReadableStream({start(a){a.enqueue(z.ENCODED_TAGS.CLOSED.BODY_AND_HTML),a.close()}})),(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:{revalidate:0,expire:void 0}});let w=new TransformStream;return u.push(w.readable),m({span:c,postponed:q.postponed,fallbackRouteParams:null}).then(async a=>{var b,c;if(!a)throw Object.defineProperty(Error("Invariant: expected a result to be returned"),"__NEXT_ERROR_CODE",{value:"E463",enumerable:!1,configurable:!0});if((null==(b=a.value)?void 0:b.kind)!==v.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant: expected a page response, got ${null==(c=a.value)?void 0:c.kind}`),"__NEXT_ERROR_CODE",{value:"E305",enumerable:!1,configurable:!0});await a.value.html.pipeTo(w.writable)}).catch(a=>{w.writable.abort(a).catch(a=>{console.error("couldn't abort transformer",a)})}),(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:{revalidate:0,expire:void 0}})};if(!aF)return await aE.withPropagatedContext(a.headers,()=>aE.trace(i.BaseServerSpan.handleRequest,{spanName:`${aD} ${a.url}`,kind:g.SpanKind.SERVER,attributes:{"http.method":aD,"http.target":a.url}},p));await p(aF)}catch(b){throw b instanceof B.NoFallbackError||await K.onRequestError(a,b,{routerKind:"App Router",routePath:G,routeType:"render",revalidateReason:(0,f.c)({isRevalidate:ak,isOnDemandRevalidate:ah})},ac),b}}},50554:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>f});var d=c(75338),e=c(2054);function f(){return(0,d.jsx)(e.PageWrapper,{view:"templates"})}},55511:a=>{"use strict";a.exports=require("crypto")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},66431:(a,b,c)=>{Promise.resolve().then(c.bind(c,31152))},73136:a=>{"use strict";a.exports=require("node:url")},76760:a=>{"use strict";a.exports=require("node:path")},77725:a=>{"use strict";a.exports=require("stream/promises")},79428:a=>{"use strict";a.exports=require("buffer")},79551:a=>{"use strict";a.exports=require("url")},79748:a=>{"use strict";a.exports=require("fs/promises")},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{"use strict";a.exports=require("better-sqlite3")},94735:a=>{"use strict";a.exports=require("events")}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,495,4606,1732,7894,9815],()=>b(b.s=46888));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/admin/templates/page.js.nft.json b/.next/server/app/admin/templates/page.js.nft.json index 6a38478bf798b1cdfb1fe6abb1f5e942cbee7836..bbed00b703325e5be0c4a873935dbe99e26351a8 100644 --- a/.next/server/app/admin/templates/page.js.nft.json +++ b/.next/server/app/admin/templates/page.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../node_modules/better-sqlite3/package.json","../../../../../node_modules/bindings/bindings.js","../../../../../node_modules/bindings/package.json","../../../../../node_modules/file-uri-to-path/index.js","../../../../../node_modules/file-uri-to-path/package.json","../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../node_modules/next/dist/lib/constants.js","../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../node_modules/next/dist/lib/is-error.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../node_modules/next/dist/shared/lib/router/utils/html-bots.js","../../../../../node_modules/next/dist/shared/lib/router/utils/is-bot.js","../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../node_modules/next/package.json","../../../../../package.json","../../../../package.json","../../../chunks/2671.js","../../../chunks/4078.js","../../../chunks/4277.js","../../../chunks/4586.js","../../../chunks/4606.js","../../../chunks/4681.js","../../../chunks/495.js","../../../chunks/570.js","../../../chunks/6085.js","../../../chunks/740.js","../../../chunks/7894.js","../../../chunks/8476.js","../../../chunks/9206.js","../../../chunks/9975.js","../../../webpack-runtime.js","page_client-reference-manifest.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../node_modules/better-sqlite3/package.json","../../../../../node_modules/bindings/bindings.js","../../../../../node_modules/bindings/package.json","../../../../../node_modules/file-uri-to-path/index.js","../../../../../node_modules/file-uri-to-path/package.json","../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../node_modules/next/dist/lib/constants.js","../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../node_modules/next/dist/lib/is-error.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../node_modules/next/dist/shared/lib/router/utils/html-bots.js","../../../../../node_modules/next/dist/shared/lib/router/utils/is-bot.js","../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../node_modules/next/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1732.js","../../../chunks/2671.js","../../../chunks/4078.js","../../../chunks/4141.js","../../../chunks/4277.js","../../../chunks/4586.js","../../../chunks/4606.js","../../../chunks/495.js","../../../chunks/6085.js","../../../chunks/740.js","../../../chunks/7894.js","../../../chunks/9050.js","../../../chunks/9206.js","../../../chunks/9815.js","../../../chunks/9975.js","../../../webpack-runtime.js","page_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/admin/templates/page_client-reference-manifest.js b/.next/server/app/admin/templates/page_client-reference-manifest.js index a77c9f0aedce53f52b61bd5b67c19851eb1152df..0d5b1e2da982b1ce8881976d268dee1767c97630 100644 --- a/.next/server/app/admin/templates/page_client-reference-manifest.js +++ b/.next/server/app/admin/templates/page_client-reference-manifest.js @@ -1 +1 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/admin/templates/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","7698","static/chunks/app/admin/templates/page-cd3396dba1a5acbf.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":["3698","static/chunks/app/admin/page-700ea05bb99f3aa7.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/templates/page":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/admin/templates/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","7698","static/chunks/app/admin/templates/page-93d978d4bcb74918.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":["3698","static/chunks/app/admin/page-700ea05bb99f3aa7.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/templates/page":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/admin/dashboard/route.js b/.next/server/app/api/admin/dashboard/route.js index 26344e894bb0331310b83020972567fff031babb..da4a14d2ad36eca416b649178c9b6eb55288d0ba 100644 --- a/.next/server/app/api/admin/dashboard/route.js +++ b/.next/server/app/api/admin/dashboard/route.js @@ -1,38 +1,11 @@ -(()=>{var a={};a.id=7426,a.ids=[7426],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{"use strict";a.exports=require("path")},39588:(a,b,c)=>{"use strict";c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},42054:(a,b,c)=>{"use strict";c.r(b),c.d(b,{handler:()=>M,patchFetch:()=>L,routeModule:()=>H,serverHooks:()=>K,workAsyncStorage:()=>I,workUnitAsyncStorage:()=>J});var d={};c.r(d),c.d(d,{GET:()=>G});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(39588),w=c(86802),x=c(74051),y=c(94471),z=c(29021),A=c(33873),B=c.n(A);async function C(){try{let a=B().join(process.cwd(),"package.json"),b=await z.promises.readFile(a,"utf-8");return JSON.parse(b).version||"unknown"}catch{return"unknown"}}async function D(){let a={version:"unknown",title:"Welcome to OSW Studio",highlights:[]};try{let b,c=B().join(process.cwd(),"docs","WHATS_NEW.md"),d=await z.promises.readFile(c,"utf-8"),e=d.match(/^## v(\d+\.\d+\.\d+)\s*-\s*(.+)$/m);if(!e)return a;let f=e[1],g=e[2].trim(),h=d.indexOf(e[0]),i=d.substring(h+e[0].length),j=i.match(/^(?:## |---)/m),k=j?i.substring(0,j.index):i,l=/^[-*]\s+\*\*(.+?)\*\*\s*[-–]?\s*(.*)$/gm,m=[];for(;null!==(b=l.exec(k))&&m.length<4;){let a=b[1].trim(),c=b[2]?.trim();m.push(c?`${a} - ${c}`:a)}if(0===m.length){let a=/^[-*]\s+(.+)$/gm;for(;null!==(b=a.exec(k))&&m.length<4;){let a=b[1].trim();a.match(/^\[.*\]\(.*\)$/)||m.push(a.replace(/\*\*/g,""))}}return{version:f,title:g,highlights:m}}catch{return a}}async function E(a){let b=0;try{for(let c of(await z.promises.readdir(a,{withFileTypes:!0}))){let d=B().join(a,c.name);if(c.isDirectory())b+=await E(d);else if(c.isFile()){let a=await z.promises.stat(d);b+=a.size}}}catch{}return b}async function F(){let a=B().join(process.cwd(),"sites"),b=0;try{for(let c of(await z.promises.readdir(a,{withFileTypes:!0})))if(c.isDirectory()){let d=B().join(a,c.name,"site.sqlite");try{await z.promises.access(d),b++}catch{}}}catch{}return b}async function G(){try{let a=await (0,w.UL)(),b=a.get("osw_session")?.value;if(!b)return u.NextResponse.json({error:"Unauthorized"},{status:401});let c=await (0,v.gV)(b);if(!c||!c.isAdmin)return u.NextResponse.json({error:"Unauthorized"},{status:401});let d=(0,x.getCoreDatabase)();(0,y.p1)(7);let[e,f,g,h,i,j,k,l,m,n]=await Promise.all([C(),Promise.resolve(d.prepare("SELECT COUNT(*) as count FROM projects").get().count),Promise.resolve(d.prepare("SELECT COUNT(*) as count FROM custom_templates").get().count),Promise.resolve(d.prepare("SELECT COUNT(*) as count FROM skills").get().count),Promise.resolve(d.prepare("SELECT COUNT(*) as count FROM files").get().count),Promise.resolve(d.prepare("SELECT COUNT(*) as count FROM sites WHERE published_at IS NOT NULL").get().count),F(),E(B().join(process.cwd(),"public","sites")),Promise.resolve((0,y.XO)(24)),D()]),o=m.topSites.map(a=>{let b=d.prepare("SELECT name FROM sites WHERE id = ?").get(a.siteId);return{...a,siteName:b?.name||a.siteId.substring(0,8)}}),p=d.prepare(` +"use strict";(()=>{var a={};a.id=7426,a.ids=[7426],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{a.exports=require("path")},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},42054:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>M,patchFetch:()=>L,routeModule:()=>H,serverHooks:()=>K,workAsyncStorage:()=>I,workUnitAsyncStorage:()=>J});var d={};c.r(d),c.d(d,{GET:()=>G});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(39588),w=c(86802),x=c(74051),y=c(94471),z=c(29021),A=c(33873),B=c.n(A);async function C(){try{let a=B().join(process.cwd(),"package.json"),b=await z.promises.readFile(a,"utf-8");return JSON.parse(b).version||"unknown"}catch{return"unknown"}}async function D(){let a={version:"unknown",title:"Welcome to OSW Studio",highlights:[]};try{let b,c=B().join(process.cwd(),"docs","WHATS_NEW.md"),d=await z.promises.readFile(c,"utf-8"),e=d.match(/^## v(\d+\.\d+\.\d+)\s*-\s*(.+)$/m);if(!e)return a;let f=e[1],g=e[2].trim(),h=d.indexOf(e[0]),i=d.substring(h+e[0].length),j=i.match(/^(?:## |---)/m),k=j?i.substring(0,j.index):i,l=/^[-*]\s+\*\*(.+?)\*\*\s*[-–]?\s*(.*)$/gm,m=[];for(;null!==(b=l.exec(k))&&m.length<4;){let a=b[1].trim(),c=b[2]?.trim();m.push(c?`${a} - ${c}`:a)}if(0===m.length){let a=/^[-*]\s+(.+)$/gm;for(;null!==(b=a.exec(k))&&m.length<4;){let a=b[1].trim();a.match(/^\[.*\]\(.*\)$/)||m.push(a.replace(/\*\*/g,""))}}return{version:f,title:g,highlights:m}}catch{return a}}async function E(a){let b=0;try{for(let c of(await z.promises.readdir(a,{withFileTypes:!0}))){let d=B().join(a,c.name);if(c.isDirectory())b+=await E(d);else if(c.isFile()){let a=await z.promises.stat(d);b+=a.size}}}catch{}return b}async function F(){let a=B().join(process.cwd(),"deployments"),b=0;try{for(let c of(await z.promises.readdir(a,{withFileTypes:!0})))if(c.isDirectory()){let d=B().join(a,c.name,"runtime.sqlite");try{await z.promises.access(d),b++}catch{}}}catch{}return b}async function G(){try{let a=await (0,w.UL)(),b=a.get("osw_session")?.value;if(!b)return u.NextResponse.json({error:"Unauthorized"},{status:401});let c=await (0,v.gV)(b);if(!c||!c.isAdmin)return u.NextResponse.json({error:"Unauthorized"},{status:401});let d=(0,x.getCoreDatabase)();(0,y.p1)(7);let[e,f,g,h,i,j,k,l,m,n]=await Promise.all([C(),Promise.resolve(d.prepare("SELECT COUNT(*) as count FROM projects").get().count),Promise.resolve(d.prepare("SELECT COUNT(*) as count FROM custom_templates").get().count),Promise.resolve(d.prepare("SELECT COUNT(*) as count FROM skills").get().count),Promise.resolve(d.prepare("SELECT COUNT(*) as count FROM files").get().count),Promise.resolve(d.prepare("SELECT COUNT(*) as count FROM deployments WHERE published_at IS NOT NULL").get().count),F(),E(B().join(process.cwd(),"public","deployments")),Promise.resolve((0,y.XO)(24)),D()]),o=m.topDeployments.map(a=>{let b=d.prepare("SELECT name FROM deployments WHERE id = ?").get(a.deploymentId);return{...a,deploymentName:b?.name||a.deploymentId.substring(0,8)}}),p=d.prepare(` SELECT id, name, description, updated_at as updatedAt FROM projects ORDER BY updated_at DESC LIMIT 5 `).all(),q=d.prepare(` SELECT id, name, slug, enabled, published_at as publishedAt, updated_at as updatedAt - FROM sites + FROM deployments ORDER BY updated_at DESC LIMIT 5 - `).all(),r=process.memoryUsage();return u.NextResponse.json({system:{version:e,nodeVersion:process.version,uptime:process.uptime(),memoryUsed:r.heapUsed,memoryTotal:r.heapTotal},content:{projects:f,templates:g,skills:h,totalFiles:i},hosting:{publishedSites:j,sitesWithDb:k,storageUsed:l},traffic:{requestsLastHour:m.requestsLastHour,requestsLastDay:m.requestsLastDay,errorCount:m.errorCount,topSites:o,recentErrors:m.recentErrors},whatsNew:n,recentProjects:p,recentSites:q.map(a=>({...a,enabled:!!a.enabled}))})}catch(a){return console.error("[Dashboard API] Error:",a),u.NextResponse.json({error:"Failed to fetch dashboard data"},{status:500})}}let H=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/admin/dashboard/route",pathname:"/api/admin/dashboard",filename:"route",bundlePath:"app/api/admin/dashboard/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/dashboard/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:I,workUnitAsyncStorage:J,serverHooks:K}=H;function L(){return(0,g.patchFetch)({workAsyncStorage:I,workUnitAsyncStorage:J})}async function M(a,b,c){var d;let e="/api/admin/dashboard/route";"/index"===e&&(e="/");let g=await H.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:y,routerServerContext:z,isOnDemandRevalidate:A,revalidateOnlyGenerated:B,resolvedPathname:C}=g,D=(0,j.normalizeAppPath)(e),E=!!(y.dynamicRoutes[D]||y.routes[C]);if(E&&!x){let a=!!y.routes[C],b=y.dynamicRoutes[D];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let F=null;!E||H.isDev||x||(F="/index"===(F=C)?"/":F);let G=!0===H.isDev||!E,I=E&&!G,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:y,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:G,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>H.onRequestError(a,b,d,z)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>H.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&A&&B&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!E)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await H.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:A})},z),b}},l=await H.handleResponse({req:a,nextConfig:w,cacheKey:F,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:A,revalidateOnlyGenerated:B,responseGenerator:k,waitUntil:c.waitUntil});if(!E)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",A?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&E||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await H.onRequestError(a,b,{routerKind:"App Router",routePath:D,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:A})}),E)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},44870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{"use strict";a.exports=require("crypto")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},74051:(a,b,c)=>{"use strict";c.r(b),c.d(b,{closeAllConnections:()=>v,closeCoreDatabase:()=>u,closeSiteDatabase:()=>t,deleteSiteDatabase:()=>s,getCoreDatabase:()=>p,getCoreDatabasePath:()=>y,getSiteDatabase:()=>q,getSiteDatabasePath:()=>x,listSiteIds:()=>w,siteExists:()=>r});var d=c(87550),e=c.n(d),f=c(33873),g=c.n(f),h=c(29021),i=c.n(h);let j=null,k=new Map;function l(){return process.env.DATA_DIR||g().join(process.cwd(),"data")}function m(){return g().join(process.cwd(),"sites")}function n(a){i().existsSync(a)||i().mkdirSync(a,{recursive:!0})}function o(a){a.pragma("journal_mode = WAL"),a.pragma("foreign_keys = ON"),a.pragma("synchronous = NORMAL"),a.pragma("cache_size = -64000"),a.pragma("temp_store = MEMORY")}function p(){if(j)return j;let a=l();n(a);let b=g().join(a,"osws.sqlite");return o(j=new(e())(b)),j}function q(a){let b=k.get(a);if(b)return b;let c=m(),d=g().join(c,a);n(d);let f=g().join(d,"site.sqlite"),h=new(e())(f);return o(h),k.set(a,h),h}function r(a){let b=m(),c=g().join(b,a,"site.sqlite");return i().existsSync(c)}function s(a){t(a);let b=m(),c=g().join(b,a);if(i().existsSync(c)){for(let a of i().readdirSync(c))i().unlinkSync(g().join(c,a));i().rmdirSync(c)}}function t(a){let b=k.get(a);if(b){try{b.close()}catch{}k.delete(a)}}function u(){if(j){try{j.close()}catch{}j=null}}function v(){for(let[a]of k)t(a);u()}function w(){let a=m();return i().existsSync(a)?i().readdirSync(a,{withFileTypes:!0}).filter(a=>a.isDirectory()).filter(b=>i().existsSync(g().join(a,b.name,"site.sqlite"))).map(a=>a.name):[]}function x(a){let b=m();return g().join(b,a,"site.sqlite")}function y(){let a=l();return g().join(a,"osws.sqlite")}},78335:()=>{},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{"use strict";a.exports=require("better-sqlite3")},94471:(a,b,c)=>{"use strict";c.d(b,{XO:()=>h,ad:()=>g,p1:()=>i});var d=c(55511);let e=null;function f(){if(!e){let{getCoreDatabase:a}=c(74051);e=a()}return e}function g(a){try{var b;let c=f();if(!c)return;let e=(b=a.ip)&&"unknown"!==b?(0,d.createHash)("sha256").update(b).digest("hex").substring(0,8):"unknown",g=a.userAgent?.substring(0,255)||"";c.prepare(` - INSERT INTO request_log (site_id, path, status_code, ip_hash, user_agent, timestamp) - VALUES (?, ?, ?, ?, ?, datetime('now')) - `).run(a.siteId,a.path,a.statusCode,e,g)}catch(a){console.error("[RequestLogger] Failed to log request:",a)}}function h(a=24){try{let a=f();if(!a)return{requestsLastHour:0,requestsLastDay:0,errorCount:0,topSites:[],recentErrors:[]};let b=a.prepare(` - SELECT COUNT(*) as count FROM request_log - WHERE timestamp > datetime('now', '-1 hour') - `).get(),c=a.prepare(` - SELECT COUNT(*) as count FROM request_log - WHERE timestamp > datetime('now', '-24 hours') - `).get(),d=a.prepare(` - SELECT COUNT(*) as count FROM request_log - WHERE timestamp > datetime('now', '-24 hours') - AND status_code >= 400 - `).get(),e=a.prepare(` - SELECT site_id as siteId, COUNT(*) as count FROM request_log - WHERE timestamp > datetime('now', '-24 hours') - GROUP BY site_id - ORDER BY count DESC - LIMIT 10 - `).all(),g=a.prepare(` - SELECT site_id as siteId, path, status_code as statusCode, timestamp FROM request_log - WHERE status_code >= 400 - ORDER BY timestamp DESC - LIMIT 10 - `).all();return{requestsLastHour:b.count,requestsLastDay:c.count,errorCount:d.count,topSites:e,recentErrors:g}}catch(a){return console.error("[RequestLogger] Failed to get stats:",a),{requestsLastHour:0,requestsLastDay:0,errorCount:0,topSites:[],recentErrors:[]}}}function i(a=7){try{let b=f();if(!b)return 0;return b.prepare(` - DELETE FROM request_log - WHERE timestamp < datetime('now', '-' || ? || ' days') - `).run(a).changes}catch(a){return console.error("[RequestLogger] Failed to cleanup logs:",a),0}}},96487:()=>{}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151],()=>b(b.s=42054));module.exports=c})(); \ No newline at end of file + `).all(),r=process.memoryUsage();return u.NextResponse.json({system:{version:e,nodeVersion:process.version,uptime:process.uptime(),memoryUsed:r.heapUsed,memoryTotal:r.heapTotal},content:{projects:f,templates:g,skills:h,totalFiles:i},hosting:{publishedDeployments:j,deploymentsWithDb:k,storageUsed:l},traffic:{requestsLastHour:m.requestsLastHour,requestsLastDay:m.requestsLastDay,errorCount:m.errorCount,topDeployments:o,recentErrors:m.recentErrors},whatsNew:n,recentProjects:p,recentDeployments:q.map(a=>({...a,enabled:!!a.enabled}))})}catch(a){return console.error("[Dashboard API] Error:",a),u.NextResponse.json({error:"Failed to fetch dashboard data"},{status:500})}}let H=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/admin/dashboard/route",pathname:"/api/admin/dashboard",filename:"route",bundlePath:"app/api/admin/dashboard/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/dashboard/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:I,workUnitAsyncStorage:J,serverHooks:K}=H;function L(){return(0,g.patchFetch)({workAsyncStorage:I,workUnitAsyncStorage:J})}async function M(a,b,c){var d;let e="/api/admin/dashboard/route";"/index"===e&&(e="/");let g=await H.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:y,routerServerContext:z,isOnDemandRevalidate:A,revalidateOnlyGenerated:B,resolvedPathname:C}=g,D=(0,j.normalizeAppPath)(e),E=!!(y.dynamicRoutes[D]||y.routes[C]);if(E&&!x){let a=!!y.routes[C],b=y.dynamicRoutes[D];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let F=null;!E||H.isDev||x||(F="/index"===(F=C)?"/":F);let G=!0===H.isDev||!E,I=E&&!G,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:y,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:G,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>H.onRequestError(a,b,d,z)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>H.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&A&&B&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!E)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await H.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:A})},z),b}},l=await H.handleResponse({req:a,nextConfig:w,cacheKey:F,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:A,revalidateOnlyGenerated:B,responseGenerator:k,waitUntil:c.waitUntil});if(!E)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",A?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&E||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await H.onRequestError(a,b,{routerKind:"App Router",routePath:D,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:A})}),E)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,6643],()=>b(b.s=42054));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/admin/dashboard/route.js.nft.json b/.next/server/app/api/admin/dashboard/route.js.nft.json index 6dc6ebcf2a65145b68e77d94633457be65157b37..268a34c6bd459f803be05f04ba3a151570c98245 100644 --- a/.next/server/app/api/admin/dashboard/route.js.nft.json +++ b/.next/server/app/api/admin/dashboard/route.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../data/osws.sqlite","../../../../../../data/osws.sqlite-shm","../../../../../../data/osws.sqlite-wal","../../../../../../docs/WHATS_NEW.md","../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../node_modules/better-sqlite3/package.json","../../../../../../node_modules/bindings/bindings.js","../../../../../../node_modules/bindings/package.json","../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../node_modules/next/package.json","../../../../../../package.json","../../../../../../public/sites/039b8554-0a87-42f7-a969-570c3fa99cb5/aukioloajat.html","../../../../../../public/sites/039b8554-0a87-42f7-a969-570c3fa99cb5/hinnat.html","../../../../../../public/sites/039b8554-0a87-42f7-a969-570c3fa99cb5/index.html","../../../../../../public/sites/039b8554-0a87-42f7-a969-570c3fa99cb5/palvelut.html","../../../../../../public/sites/039b8554-0a87-42f7-a969-570c3fa99cb5/robots.txt","../../../../../../public/sites/039b8554-0a87-42f7-a969-570c3fa99cb5/scripts/main.js","../../../../../../public/sites/039b8554-0a87-42f7-a969-570c3fa99cb5/sitemap.xml","../../../../../../public/sites/039b8554-0a87-42f7-a969-570c3fa99cb5/styles/style.css","../../../../../../public/sites/039b8554-0a87-42f7-a969-570c3fa99cb5/yhteystiedot.html","../../../../../../public/sites/08425b89-59bf-49b1-965c-67b67c46e5c4/blog/getting-started.html","../../../../../../public/sites/08425b89-59bf-49b1-965c-67b67c46e5c4/blog/hello-world.html","../../../../../../public/sites/08425b89-59bf-49b1-965c-67b67c46e5c4/index.html","../../../../../../public/sites/08425b89-59bf-49b1-965c-67b67c46e5c4/robots.txt","../../../../../../public/sites/08425b89-59bf-49b1-965c-67b67c46e5c4/scripts/main.js","../../../../../../public/sites/08425b89-59bf-49b1-965c-67b67c46e5c4/sitemap.xml","../../../../../../public/sites/08425b89-59bf-49b1-965c-67b67c46e5c4/styles/style.css","../../../../../../public/sites/18efcdfd-9309-45d1-bf13-82a968da7216/about.html","../../../../../../public/sites/18efcdfd-9309-45d1-bf13-82a968da7216/index.html","../../../../../../public/sites/18efcdfd-9309-45d1-bf13-82a968da7216/plan.md","../../../../../../public/sites/18efcdfd-9309-45d1-bf13-82a968da7216/players.html","../../../../../../public/sites/18efcdfd-9309-45d1-bf13-82a968da7216/robots.txt","../../../../../../public/sites/18efcdfd-9309-45d1-bf13-82a968da7216/schedule.html","../../../../../../public/sites/18efcdfd-9309-45d1-bf13-82a968da7216/scripts/main.js","../../../../../../public/sites/18efcdfd-9309-45d1-bf13-82a968da7216/sitemap.xml","../../../../../../public/sites/18efcdfd-9309-45d1-bf13-82a968da7216/styles/style.css","../../../../../../public/sites/18efcdfd-9309-45d1-bf13-82a968da7216/testing.txt","../../../../../../public/sites/20af6c75-4c1b-4c53-94bc-fa2ff7e445fa/benefits.html","../../../../../../public/sites/20af6c75-4c1b-4c53-94bc-fa2ff7e445fa/equipment.html","../../../../../../public/sites/20af6c75-4c1b-4c53-94bc-fa2ff7e445fa/getting-started.html","../../../../../../public/sites/20af6c75-4c1b-4c53-94bc-fa2ff7e445fa/index.html","../../../../../../public/sites/20af6c75-4c1b-4c53-94bc-fa2ff7e445fa/scripts/main.js","../../../../../../public/sites/20af6c75-4c1b-4c53-94bc-fa2ff7e445fa/styles/style.css","../../../../../../public/sites/20af6c75-4c1b-4c53-94bc-fa2ff7e445fa/training.html","../../../../../../public/sites/22950e26-4edf-45c9-8719-b212f697a8b1/index.html","../../../../../../public/sites/22950e26-4edf-45c9-8719-b212f697a8b1/robots.txt","../../../../../../public/sites/22950e26-4edf-45c9-8719-b212f697a8b1/scripts/main.js","../../../../../../public/sites/22950e26-4edf-45c9-8719-b212f697a8b1/sitemap.xml","../../../../../../public/sites/22950e26-4edf-45c9-8719-b212f697a8b1/styles/style.css","../../../../../../public/sites/308c7d9c-09fe-4581-a361-4291db148cf3/index.html","../../../../../../public/sites/308c7d9c-09fe-4581-a361-4291db148cf3/robots.txt","../../../../../../public/sites/308c7d9c-09fe-4581-a361-4291db148cf3/scripts/main.js","../../../../../../public/sites/308c7d9c-09fe-4581-a361-4291db148cf3/sitemap.xml","../../../../../../public/sites/308c7d9c-09fe-4581-a361-4291db148cf3/styles/style.css","../../../../../../public/sites/505b4e67-9ba5-4396-9a76-9368a6848874/contact.html","../../../../../../public/sites/505b4e67-9ba5-4396-9a76-9368a6848874/index.html","../../../../../../public/sites/505b4e67-9ba5-4396-9a76-9368a6848874/scripts/main.js","../../../../../../public/sites/505b4e67-9ba5-4396-9a76-9368a6848874/services.html","../../../../../../public/sites/505b4e67-9ba5-4396-9a76-9368a6848874/styles/style.css","../../../../../../public/sites/6333fd6d-b2bf-4eb2-a48e-762b7a7be8b7/about.html","../../../../../../public/sites/6333fd6d-b2bf-4eb2-a48e-762b7a7be8b7/index.html","../../../../../../public/sites/6333fd6d-b2bf-4eb2-a48e-762b7a7be8b7/plan.md","../../../../../../public/sites/6333fd6d-b2bf-4eb2-a48e-762b7a7be8b7/players.html","../../../../../../public/sites/6333fd6d-b2bf-4eb2-a48e-762b7a7be8b7/robots.txt","../../../../../../public/sites/6333fd6d-b2bf-4eb2-a48e-762b7a7be8b7/schedule.html","../../../../../../public/sites/6333fd6d-b2bf-4eb2-a48e-762b7a7be8b7/scripts/main.js","../../../../../../public/sites/6333fd6d-b2bf-4eb2-a48e-762b7a7be8b7/sitemap.xml","../../../../../../public/sites/6333fd6d-b2bf-4eb2-a48e-762b7a7be8b7/styles/style.css","../../../../../../public/sites/6333fd6d-b2bf-4eb2-a48e-762b7a7be8b7/testing.txt","../../../../../../public/sites/69d3cb0a-3cd3-4d41-981c-3d4ba5c978cc/contact.html","../../../../../../public/sites/69d3cb0a-3cd3-4d41-981c-3d4ba5c978cc/data/services.json","../../../../../../public/sites/69d3cb0a-3cd3-4d41-981c-3d4ba5c978cc/data/testimonials.json","../../../../../../public/sites/69d3cb0a-3cd3-4d41-981c-3d4ba5c978cc/index.html","../../../../../../public/sites/69d3cb0a-3cd3-4d41-981c-3d4ba5c978cc/public/css/styles.css","../../../../../../public/sites/69d3cb0a-3cd3-4d41-981c-3d4ba5c978cc/public/js/main.js","../../../../../../public/sites/69d3cb0a-3cd3-4d41-981c-3d4ba5c978cc/robots.txt","../../../../../../public/sites/69d3cb0a-3cd3-4d41-981c-3d4ba5c978cc/services.html","../../../../../../public/sites/69d3cb0a-3cd3-4d41-981c-3d4ba5c978cc/sitemap.xml","../../../../../../public/sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/PLAN.md","../../../../../../public/sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/about.html","../../../../../../public/sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/contact.html","../../../../../../public/sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/index.html","../../../../../../public/sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/practice-areas.html","../../../../../../public/sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/pricing.html","../../../../../../public/sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/robots.txt","../../../../../../public/sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/scripts/main.js","../../../../../../public/sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/sitemap.xml","../../../../../../public/sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/styles.css","../../../../../../public/sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/styles/style.css","../../../../../../public/sites/8a671c27-1498-4164-9cdf-5429469f45f6/PLAN.md","../../../../../../public/sites/8a671c27-1498-4164-9cdf-5429469f45f6/about.html","../../../../../../public/sites/8a671c27-1498-4164-9cdf-5429469f45f6/contact.html","../../../../../../public/sites/8a671c27-1498-4164-9cdf-5429469f45f6/index.html","../../../../../../public/sites/8a671c27-1498-4164-9cdf-5429469f45f6/robots.txt","../../../../../../public/sites/8a671c27-1498-4164-9cdf-5429469f45f6/scripts/main.js","../../../../../../public/sites/8a671c27-1498-4164-9cdf-5429469f45f6/sitemap.xml","../../../../../../public/sites/8a671c27-1498-4164-9cdf-5429469f45f6/styles/style.css","../../../../../../public/sites/9e5a46cf-1efd-4377-9da5-1e2eb63b8ca4/benefits.html","../../../../../../public/sites/9e5a46cf-1efd-4377-9da5-1e2eb63b8ca4/equipment.html","../../../../../../public/sites/9e5a46cf-1efd-4377-9da5-1e2eb63b8ca4/getting-started.html","../../../../../../public/sites/9e5a46cf-1efd-4377-9da5-1e2eb63b8ca4/index.html","../../../../../../public/sites/9e5a46cf-1efd-4377-9da5-1e2eb63b8ca4/robots.txt","../../../../../../public/sites/9e5a46cf-1efd-4377-9da5-1e2eb63b8ca4/scripts/main.js","../../../../../../public/sites/9e5a46cf-1efd-4377-9da5-1e2eb63b8ca4/sitemap.xml","../../../../../../public/sites/9e5a46cf-1efd-4377-9da5-1e2eb63b8ca4/styles/style.css","../../../../../../public/sites/9e5a46cf-1efd-4377-9da5-1e2eb63b8ca4/training.html","../../../../../../public/sites/a57c81e5-0175-49b9-b333-d0a4d1094271/index.html","../../../../../../public/sites/a57c81e5-0175-49b9-b333-d0a4d1094271/plan.md","../../../../../../public/sites/a57c81e5-0175-49b9-b333-d0a4d1094271/robots.txt","../../../../../../public/sites/a57c81e5-0175-49b9-b333-d0a4d1094271/scripts/main.js","../../../../../../public/sites/a57c81e5-0175-49b9-b333-d0a4d1094271/sitemap.xml","../../../../../../public/sites/a57c81e5-0175-49b9-b333-d0a4d1094271/styles/style.css","../../../../../../public/sites/af3ba693-4c5a-4564-9c93-0c9b9f3d74f1/index.html","../../../../../../public/sites/af3ba693-4c5a-4564-9c93-0c9b9f3d74f1/plan.md","../../../../../../public/sites/af3ba693-4c5a-4564-9c93-0c9b9f3d74f1/robots.txt","../../../../../../public/sites/af3ba693-4c5a-4564-9c93-0c9b9f3d74f1/scripts/animations.js","../../../../../../public/sites/af3ba693-4c5a-4564-9c93-0c9b9f3d74f1/scripts/main.js","../../../../../../public/sites/af3ba693-4c5a-4564-9c93-0c9b9f3d74f1/sitemap.xml","../../../../../../public/sites/af3ba693-4c5a-4564-9c93-0c9b9f3d74f1/styles/style.css","../../../../../../public/sites/be28436b-5a58-4c1b-a1da-ec28036b41e3/index.html","../../../../../../public/sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/PLAN.md","../../../../../../public/sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/about.html","../../../../../../public/sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/contact.html","../../../../../../public/sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/index.html","../../../../../../public/sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/menu.html","../../../../../../public/sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/robots.txt","../../../../../../public/sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/scripts/main.js","../../../../../../public/sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/sitemap.xml","../../../../../../public/sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/styles.css","../../../../../../public/sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/styles/style.css","../../../../../../public/sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/index.html","../../../../../../public/sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/robots.txt","../../../../../../public/sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/scripts/main.js","../../../../../../public/sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/sitemap.xml","../../../../../../public/sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/styles/style.css","../../../../../../public/sites/ea724ee7-fc57-4bde-a505-e083d72d52b2/index.html","../../../../../../public/sites/ea724ee7-fc57-4bde-a505-e083d72d52b2/robots.txt","../../../../../../public/sites/ea724ee7-fc57-4bde-a505-e083d72d52b2/scripts/main.js","../../../../../../public/sites/ea724ee7-fc57-4bde-a505-e083d72d52b2/sitemap.xml","../../../../../../public/sites/ea724ee7-fc57-4bde-a505-e083d72d52b2/styles/style.css","../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite","../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-shm","../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-wal","../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite","../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-shm","../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-wal","../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite","../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-shm","../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-wal","../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite","../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-shm","../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-wal","../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite","../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-shm","../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-wal","../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite","../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-shm","../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-wal","../../../../../package.json","../../../../chunks/1692.js","../../../../chunks/4586.js","../../../../chunks/6151.js","../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../data/osws.sqlite","../../../../../../data/osws.sqlite-shm","../../../../../../data/osws.sqlite-wal","../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite","../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-shm","../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-wal","../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite","../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-shm","../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-wal","../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/analytics.sqlite","../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite","../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-shm","../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-wal","../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/analytics.sqlite","../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite","../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-shm","../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-wal","../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/analytics.sqlite","../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite","../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-shm","../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-wal","../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/analytics.sqlite","../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite","../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-shm","../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-wal","../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/analytics.sqlite","../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite","../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-shm","../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-wal","../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/analytics.sqlite","../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite","../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-shm","../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-wal","../../../../../../docs/WHATS_NEW.md","../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../node_modules/better-sqlite3/package.json","../../../../../../node_modules/bindings/bindings.js","../../../../../../node_modules/bindings/package.json","../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../node_modules/next/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1692.js","../../../../chunks/4586.js","../../../../chunks/6151.js","../../../../chunks/6643.js","../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/admin/dashboard/route_client-reference-manifest.js b/.next/server/app/api/admin/dashboard/route_client-reference-manifest.js index 1cc81cb841dedfd2161081c7b5d6db0f2dc7794a..ae45ebebc164ad7260f19da88f7635efde53ac28 100644 --- a/.next/server/app/api/admin/dashboard/route_client-reference-manifest.js +++ b/.next/server/app/api/admin/dashboard/route_client-reference-manifest.js @@ -1 +1 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/admin/dashboard/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/dashboard/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/admin/dashboard/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/dashboard/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/admin/deployments/[id]/database/logs/route.js b/.next/server/app/api/admin/deployments/[id]/database/logs/route.js new file mode 100644 index 0000000000000000000000000000000000000000..100591e00d4183185f814f7c76b9dbb11d5344f5 --- /dev/null +++ b/.next/server/app/api/admin/deployments/[id]/database/logs/route.js @@ -0,0 +1 @@ +"use strict";(()=>{var a={};a.id=3330,a.ids=[3330],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},98254:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>E,patchFetch:()=>D,routeModule:()=>z,serverHooks:()=>C,workAsyncStorage:()=>A,workUnitAsyncStorage:()=>B});var d={};c.r(d),c.d(d,{DELETE:()=>y,GET:()=>x});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(39588),w=c(32907);async function x(a,{params:b}){try{await (0,v.oC)();let{id:c}=await b,{searchParams:d}=new URL(a.url),e=Math.min(parseInt(d.get("limit")||"100"),1e3),f=(0,w.q)();await f.init();let g=await f.getDeployment?.(c);if(!g)return u.NextResponse.json({error:"Deployment not found"},{status:404});if(!g.databaseEnabled)return u.NextResponse.json({error:"Deployment database not enabled"},{status:400});let h=f.getDeploymentDatabaseForAnalytics(c);if(!h)return u.NextResponse.json({error:"Deployment database not available"},{status:500});let i=h.getRecentLogs(e),j=h.listFunctions(),k=Object.fromEntries(j.map(a=>[a.id,a.name])),l=i.map(a=>({...a,functionName:k[a.functionId]||"Unknown"}));return u.NextResponse.json({logs:l})}catch(a){if(a instanceof Error&&"Unauthorized"===a.message)return u.NextResponse.json({error:"Unauthorized"},{status:401});return console.error("[Admin Database API] Error:",a),u.NextResponse.json({error:"Internal server error"},{status:500})}}async function y(a,{params:b}){try{await (0,v.oC)();let{id:c}=await b,{searchParams:d}=new URL(a.url),e=d.get("functionId")||void 0,f=(0,w.q)();await f.init();let g=await f.getDeployment?.(c);if(!g)return u.NextResponse.json({error:"Deployment not found"},{status:404});if(!g.databaseEnabled)return u.NextResponse.json({error:"Deployment database not enabled"},{status:400});let h=f.getDeploymentDatabaseForAnalytics(c);if(!h)return u.NextResponse.json({error:"Deployment database not available"},{status:500});return h.clearFunctionLogs(e),u.NextResponse.json({success:!0})}catch(a){if(a instanceof Error&&"Unauthorized"===a.message)return u.NextResponse.json({error:"Unauthorized"},{status:401});return console.error("[Admin Database API] Error:",a),u.NextResponse.json({error:"Internal server error"},{status:500})}}let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/admin/deployments/[id]/database/logs/route",pathname:"/api/admin/deployments/[id]/database/logs",filename:"route",bundlePath:"app/api/admin/deployments/[id]/database/logs/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/deployments/[id]/database/logs/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:A,workUnitAsyncStorage:B,serverHooks:C}=z;function D(){return(0,g.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:B})}async function E(a,b,c){var d;let e="/api/admin/deployments/[id]/database/logs/route";"/index"===e&&(e="/");let g=await z.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:y,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(y.dynamicRoutes[E]||y.routes[D]);if(F&&!x){let a=!!y.routes[D],b=y.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||z.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===z.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:y,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>z.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>z.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await z.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await z.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}}};var b=require("../../../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,3343],()=>b(b.s=98254));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/admin/deployments/[id]/database/logs/route.js.nft.json b/.next/server/app/api/admin/deployments/[id]/database/logs/route.js.nft.json new file mode 100644 index 0000000000000000000000000000000000000000..661584d4afb2ed7f2a87215990adb8e45975a58e --- /dev/null +++ b/.next/server/app/api/admin/deployments/[id]/database/logs/route.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../../../../../../data/osws.sqlite","../../../../../../../../../data/osws.sqlite-shm","../../../../../../../../../data/osws.sqlite-wal","../../../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite","../../../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-shm","../../../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-wal","../../../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite","../../../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-shm","../../../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-wal","../../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/analytics.sqlite","../../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite","../../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-shm","../../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-wal","../../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/analytics.sqlite","../../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite","../../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-shm","../../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-wal","../../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/analytics.sqlite","../../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite","../../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-shm","../../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-wal","../../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/analytics.sqlite","../../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite","../../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-shm","../../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-wal","../../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/analytics.sqlite","../../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite","../../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-shm","../../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-wal","../../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/analytics.sqlite","../../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite","../../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-shm","../../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-wal","../../../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../../../node_modules/bindings/bindings.js","../../../../../../../../../node_modules/bindings/package.json","../../../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../../../node_modules/next/package.json","../../../../../../../../../package.json","../../../../../../../../package.json","../../../../../../../chunks/1692.js","../../../../../../../chunks/3343.js","../../../../../../../chunks/4586.js","../../../../../../../chunks/6151.js","../../../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/admin/sites/[id]/scheduled-functions/route_client-reference-manifest.js b/.next/server/app/api/admin/deployments/[id]/database/logs/route_client-reference-manifest.js similarity index 92% rename from .next/server/app/api/admin/sites/[id]/scheduled-functions/route_client-reference-manifest.js rename to .next/server/app/api/admin/deployments/[id]/database/logs/route_client-reference-manifest.js index 3671b01ccf995a6f9b70c8cea4ead7d375f49572..694c452115d6c17cf3fbe277ed72f1987682a436 100644 --- a/.next/server/app/api/admin/sites/[id]/scheduled-functions/route_client-reference-manifest.js +++ b/.next/server/app/api/admin/deployments/[id]/database/logs/route_client-reference-manifest.js @@ -1 +1 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/admin/sites/[id]/scheduled-functions/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/sites/[id]/scheduled-functions/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/admin/deployments/[id]/database/logs/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/deployments/[id]/database/logs/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/admin/deployments/[id]/database/query/route.js b/.next/server/app/api/admin/deployments/[id]/database/query/route.js new file mode 100644 index 0000000000000000000000000000000000000000..0ca312c914a650909d93ad5856a6daddb6eeeb43 --- /dev/null +++ b/.next/server/app/api/admin/deployments/[id]/database/query/route.js @@ -0,0 +1 @@ +"use strict";(()=>{var a={};a.id=2081,a.ids=[2081],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},74545:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>D,patchFetch:()=>C,routeModule:()=>y,serverHooks:()=>B,workAsyncStorage:()=>z,workUnitAsyncStorage:()=>A});var d={};c.r(d),c.d(d,{POST:()=>x});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(39588),w=c(32907);async function x(a,{params:b}){try{await (0,v.oC)();let{id:c}=await b,{sql:d}=await a.json();if(!d||"string"!=typeof d)return u.NextResponse.json({error:"SQL query is required"},{status:400});let e=(0,w.q)();await e.init();let f=await e.getDeployment?.(c);if(!f)return u.NextResponse.json({error:"Deployment not found"},{status:404});if(!f.databaseEnabled)return u.NextResponse.json({error:"Deployment database not enabled"},{status:400});let g=e.getDeploymentDatabaseForAnalytics(c);if(!g)return u.NextResponse.json({error:"Deployment database not available"},{status:500});try{let a=g.executeRawSQL(d);return u.NextResponse.json({success:!0,columns:a.columns,rows:a.rows,rowsAffected:a.rowsAffected})}catch(b){let a=b instanceof Error?b.message:"Query failed";return u.NextResponse.json({error:a},{status:400})}}catch(a){if(a instanceof Error&&"Unauthorized"===a.message)return u.NextResponse.json({error:"Unauthorized"},{status:401});return console.error("[Admin Database API] Error:",a),u.NextResponse.json({error:"Internal server error"},{status:500})}}let y=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/admin/deployments/[id]/database/query/route",pathname:"/api/admin/deployments/[id]/database/query",filename:"route",bundlePath:"app/api/admin/deployments/[id]/database/query/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/deployments/[id]/database/query/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:z,workUnitAsyncStorage:A,serverHooks:B}=y;function C(){return(0,g.patchFetch)({workAsyncStorage:z,workUnitAsyncStorage:A})}async function D(a,b,c){var d;let e="/api/admin/deployments/[id]/database/query/route";"/index"===e&&(e="/");let g=await y.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:z,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(z.dynamicRoutes[E]||z.routes[D]);if(F&&!x){let a=!!z.routes[D],b=z.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||y.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===y.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:z,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>y.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>y.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await y.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await y.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:z,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await y.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("../../../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,3343],()=>b(b.s=74545));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/admin/deployments/[id]/database/query/route.js.nft.json b/.next/server/app/api/admin/deployments/[id]/database/query/route.js.nft.json new file mode 100644 index 0000000000000000000000000000000000000000..661584d4afb2ed7f2a87215990adb8e45975a58e --- /dev/null +++ b/.next/server/app/api/admin/deployments/[id]/database/query/route.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../../../../../../data/osws.sqlite","../../../../../../../../../data/osws.sqlite-shm","../../../../../../../../../data/osws.sqlite-wal","../../../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite","../../../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-shm","../../../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-wal","../../../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite","../../../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-shm","../../../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-wal","../../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/analytics.sqlite","../../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite","../../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-shm","../../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-wal","../../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/analytics.sqlite","../../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite","../../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-shm","../../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-wal","../../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/analytics.sqlite","../../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite","../../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-shm","../../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-wal","../../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/analytics.sqlite","../../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite","../../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-shm","../../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-wal","../../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/analytics.sqlite","../../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite","../../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-shm","../../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-wal","../../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/analytics.sqlite","../../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite","../../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-shm","../../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-wal","../../../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../../../node_modules/bindings/bindings.js","../../../../../../../../../node_modules/bindings/package.json","../../../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../../../node_modules/next/package.json","../../../../../../../../../package.json","../../../../../../../../package.json","../../../../../../../chunks/1692.js","../../../../../../../chunks/3343.js","../../../../../../../chunks/4586.js","../../../../../../../chunks/6151.js","../../../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/admin/deployments/[id]/database/query/route_client-reference-manifest.js b/.next/server/app/api/admin/deployments/[id]/database/query/route_client-reference-manifest.js new file mode 100644 index 0000000000000000000000000000000000000000..6a5c5099eb7df98c90d8bde7f5ebe29b0422565a --- /dev/null +++ b/.next/server/app/api/admin/deployments/[id]/database/query/route_client-reference-manifest.js @@ -0,0 +1 @@ +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/admin/deployments/[id]/database/query/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/deployments/[id]/database/query/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/sites/route.js b/.next/server/app/api/admin/deployments/[id]/database/schema/route.js similarity index 55% rename from .next/server/app/api/sites/route.js rename to .next/server/app/api/admin/deployments/[id]/database/schema/route.js index e43d2cd2e52d08edefd46bc8b8e6dc0e31c4cba5..e3909e50077cd181b550042bb7381d69195494ec 100644 --- a/.next/server/app/api/sites/route.js +++ b/.next/server/app/api/admin/deployments/[id]/database/schema/route.js @@ -1 +1 @@ -"use strict";(()=>{var a={};a.id=3926,a.ids=[3926],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},97886:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>E,patchFetch:()=>D,routeModule:()=>z,serverHooks:()=>C,workAsyncStorage:()=>A,workUnitAsyncStorage:()=>B});var d={};c.r(d),c.d(d,{GET:()=>x,POST:()=>y});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(97778),w=c(32524);async function x(){try{let a=await (0,v.B)();await a.init();let b=await a.listSites?.()||[];return await a.close?.(),u.NextResponse.json(b)}catch(a){return console.error("[Sites API] ❌ Error listing sites:",a),u.NextResponse.json({error:"Failed to list sites"},{status:500})}}async function y(a){try{let{projectId:b,name:c,slug:d}=await a.json();if(!b||!c)return u.NextResponse.json({error:"projectId and name are required"},{status:400});let e=await (0,v.B)();if(await e.init(),!await e.getProject(b))return await e.close?.(),u.NextResponse.json({error:"Project not found"},{status:404});let f={id:(0,w.A)(),projectId:b,name:c,slug:d||void 0,enabled:!1,underConstruction:!1,headScripts:[],bodyScripts:[],cdnLinks:[],analytics:{enabled:!1,provider:"builtin",privacyMode:!0},seo:{},compliance:{enabled:!1,bannerPosition:"bottom",bannerStyle:"bar",message:"",acceptButtonText:"Accept",declineButtonText:"Decline",mode:"opt-in",blockAnalytics:!0},settingsVersion:1,createdAt:new Date,updatedAt:new Date};return e.createSite&&await e.createSite(f),await e.close?.(),u.NextResponse.json(f,{status:201})}catch(a){return console.error("[Sites API] Error creating site:",a),u.NextResponse.json({error:"Failed to create site"},{status:500})}}let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/sites/route",pathname:"/api/sites",filename:"route",bundlePath:"app/api/sites/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/sites/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:A,workUnitAsyncStorage:B,serverHooks:C}=z;function D(){return(0,g.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:B})}async function E(a,b,c){var d;let e="/api/sites/route";"/index"===e&&(e="/");let g=await z.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:y,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(y.dynamicRoutes[E]||y.routes[D]);if(F&&!x){let a=!!y.routes[D],b=y.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||z.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===z.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:y,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>z.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>z.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await z.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await z.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,726],()=>b(b.s=97886));module.exports=c})(); \ No newline at end of file +"use strict";(()=>{var a={};a.id=4438,a.ids=[4438],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},65697:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>D,patchFetch:()=>C,routeModule:()=>y,serverHooks:()=>B,workAsyncStorage:()=>z,workUnitAsyncStorage:()=>A});var d={};c.r(d),c.d(d,{GET:()=>x});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(39588),w=c(32907);async function x(a,{params:b}){try{await (0,v.oC)();let{id:a}=await b,c=(0,w.q)();await c.init();let d=await c.getDeployment?.(a);if(!d)return u.NextResponse.json({error:"Deployment not found"},{status:404});if(!d.databaseEnabled)return u.NextResponse.json({error:"Deployment database not enabled"},{status:400});let e=c.getDeploymentDatabaseForAnalytics(a);if(!e)return u.NextResponse.json({error:"Deployment database not available"},{status:500});let f=e.getTableSchema();return u.NextResponse.json({tables:f})}catch(a){if(a instanceof Error&&"Unauthorized"===a.message)return u.NextResponse.json({error:"Unauthorized"},{status:401});return console.error("[Admin Database API] Error:",a),u.NextResponse.json({error:"Internal server error"},{status:500})}}let y=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/admin/deployments/[id]/database/schema/route",pathname:"/api/admin/deployments/[id]/database/schema",filename:"route",bundlePath:"app/api/admin/deployments/[id]/database/schema/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/deployments/[id]/database/schema/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:z,workUnitAsyncStorage:A,serverHooks:B}=y;function C(){return(0,g.patchFetch)({workAsyncStorage:z,workUnitAsyncStorage:A})}async function D(a,b,c){var d;let e="/api/admin/deployments/[id]/database/schema/route";"/index"===e&&(e="/");let g=await y.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:z,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(z.dynamicRoutes[E]||z.routes[D]);if(F&&!x){let a=!!z.routes[D],b=z.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||y.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===y.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:z,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>y.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>y.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await y.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await y.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:z,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await y.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("../../../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,3343],()=>b(b.s=65697));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/admin/deployments/[id]/database/schema/route.js.nft.json b/.next/server/app/api/admin/deployments/[id]/database/schema/route.js.nft.json new file mode 100644 index 0000000000000000000000000000000000000000..661584d4afb2ed7f2a87215990adb8e45975a58e --- /dev/null +++ b/.next/server/app/api/admin/deployments/[id]/database/schema/route.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../../../../../../data/osws.sqlite","../../../../../../../../../data/osws.sqlite-shm","../../../../../../../../../data/osws.sqlite-wal","../../../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite","../../../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-shm","../../../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-wal","../../../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite","../../../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-shm","../../../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-wal","../../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/analytics.sqlite","../../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite","../../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-shm","../../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-wal","../../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/analytics.sqlite","../../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite","../../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-shm","../../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-wal","../../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/analytics.sqlite","../../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite","../../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-shm","../../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-wal","../../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/analytics.sqlite","../../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite","../../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-shm","../../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-wal","../../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/analytics.sqlite","../../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite","../../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-shm","../../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-wal","../../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/analytics.sqlite","../../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite","../../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-shm","../../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-wal","../../../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../../../node_modules/bindings/bindings.js","../../../../../../../../../node_modules/bindings/package.json","../../../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../../../node_modules/next/package.json","../../../../../../../../../package.json","../../../../../../../../package.json","../../../../../../../chunks/1692.js","../../../../../../../chunks/3343.js","../../../../../../../chunks/4586.js","../../../../../../../chunks/6151.js","../../../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/admin/sites/[id]/server-context/mutate/route_client-reference-manifest.js b/.next/server/app/api/admin/deployments/[id]/database/schema/route_client-reference-manifest.js similarity index 78% rename from .next/server/app/api/admin/sites/[id]/server-context/mutate/route_client-reference-manifest.js rename to .next/server/app/api/admin/deployments/[id]/database/schema/route_client-reference-manifest.js index 684361699d207d16058830547d09a06925bccea9..592045f0c4d75ed75ffce926d51e3ab0ffeb0e70 100644 --- a/.next/server/app/api/admin/sites/[id]/server-context/mutate/route_client-reference-manifest.js +++ b/.next/server/app/api/admin/deployments/[id]/database/schema/route_client-reference-manifest.js @@ -1 +1 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/admin/sites/[id]/server-context/mutate/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/sites/[id]/server-context/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/sites/[id]/server-context/mutate/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/admin/deployments/[id]/database/schema/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/deployments/[id]/database/schema/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/admin/deployments/[id]/functions/[functionId]/logs/route.js b/.next/server/app/api/admin/deployments/[id]/functions/[functionId]/logs/route.js new file mode 100644 index 0000000000000000000000000000000000000000..add01fd3d37222e108f6a966c5b81e96196c9afa --- /dev/null +++ b/.next/server/app/api/admin/deployments/[id]/functions/[functionId]/logs/route.js @@ -0,0 +1 @@ +"use strict";(()=>{var a={};a.id=3142,a.ids=[3142],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},77964:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>D,patchFetch:()=>C,routeModule:()=>y,serverHooks:()=>B,workAsyncStorage:()=>z,workUnitAsyncStorage:()=>A});var d={};c.r(d),c.d(d,{GET:()=>x});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(39588),w=c(32907);async function x(a,{params:b}){try{await (0,v.oC)();let{id:c,functionId:d}=await b,{searchParams:e}=new URL(a.url),f=Math.min(parseInt(e.get("limit")||"100"),1e3),g=(0,w.q)();await g.init();let h=await g.getDeployment?.(c);if(!h)return u.NextResponse.json({error:"Deployment not found"},{status:404});if(!h.databaseEnabled)return u.NextResponse.json({error:"Deployment database not enabled"},{status:400});let i=g.getDeploymentDatabaseForAnalytics(c);if(!i)return u.NextResponse.json({error:"Deployment database not available"},{status:500});if(!i.getFunction(d))return u.NextResponse.json({error:"Function not found"},{status:404});let j=i.getFunctionLogs(d,f);return u.NextResponse.json({logs:j})}catch(a){if(a instanceof Error&&"Unauthorized"===a.message)return u.NextResponse.json({error:"Unauthorized"},{status:401});return console.error("[Admin Functions API] Error:",a),u.NextResponse.json({error:"Internal server error"},{status:500})}}let y=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/admin/deployments/[id]/functions/[functionId]/logs/route",pathname:"/api/admin/deployments/[id]/functions/[functionId]/logs",filename:"route",bundlePath:"app/api/admin/deployments/[id]/functions/[functionId]/logs/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/deployments/[id]/functions/[functionId]/logs/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:z,workUnitAsyncStorage:A,serverHooks:B}=y;function C(){return(0,g.patchFetch)({workAsyncStorage:z,workUnitAsyncStorage:A})}async function D(a,b,c){var d;let e="/api/admin/deployments/[id]/functions/[functionId]/logs/route";"/index"===e&&(e="/");let g=await y.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:z,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(z.dynamicRoutes[E]||z.routes[D]);if(F&&!x){let a=!!z.routes[D],b=z.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||y.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===y.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:z,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>y.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>y.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await y.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await y.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:z,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await y.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("../../../../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,3343],()=>b(b.s=77964));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/admin/deployments/[id]/functions/[functionId]/logs/route.js.nft.json b/.next/server/app/api/admin/deployments/[id]/functions/[functionId]/logs/route.js.nft.json new file mode 100644 index 0000000000000000000000000000000000000000..7ec99cc3fcc3fec9fd5dccc23a3ec8d471f62a59 --- /dev/null +++ b/.next/server/app/api/admin/deployments/[id]/functions/[functionId]/logs/route.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../../../../../../../data/osws.sqlite","../../../../../../../../../../data/osws.sqlite-shm","../../../../../../../../../../data/osws.sqlite-wal","../../../../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite","../../../../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-shm","../../../../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-wal","../../../../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite","../../../../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-shm","../../../../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-wal","../../../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/analytics.sqlite","../../../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite","../../../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-shm","../../../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-wal","../../../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/analytics.sqlite","../../../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite","../../../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-shm","../../../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-wal","../../../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/analytics.sqlite","../../../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite","../../../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-shm","../../../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-wal","../../../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/analytics.sqlite","../../../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite","../../../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-shm","../../../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-wal","../../../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/analytics.sqlite","../../../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite","../../../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-shm","../../../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-wal","../../../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/analytics.sqlite","../../../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite","../../../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-shm","../../../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-wal","../../../../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../../../../node_modules/bindings/bindings.js","../../../../../../../../../../node_modules/bindings/package.json","../../../../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../../../../node_modules/next/package.json","../../../../../../../../../../package.json","../../../../../../../../../package.json","../../../../../../../../chunks/1692.js","../../../../../../../../chunks/3343.js","../../../../../../../../chunks/4586.js","../../../../../../../../chunks/6151.js","../../../../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/admin/deployments/[id]/functions/[functionId]/logs/route_client-reference-manifest.js b/.next/server/app/api/admin/deployments/[id]/functions/[functionId]/logs/route_client-reference-manifest.js new file mode 100644 index 0000000000000000000000000000000000000000..92355c5ac97d276d7ebcc026785226939e91aa1a --- /dev/null +++ b/.next/server/app/api/admin/deployments/[id]/functions/[functionId]/logs/route_client-reference-manifest.js @@ -0,0 +1 @@ +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/admin/deployments/[id]/functions/[functionId]/logs/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/deployments/[id]/functions/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/deployments/[id]/functions/[functionId]/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/deployments/[id]/functions/[functionId]/logs/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/admin/deployments/[id]/functions/[functionId]/route.js b/.next/server/app/api/admin/deployments/[id]/functions/[functionId]/route.js new file mode 100644 index 0000000000000000000000000000000000000000..caa7bd10309134a2e112bf2d69f3f1bc644cef41 --- /dev/null +++ b/.next/server/app/api/admin/deployments/[id]/functions/[functionId]/route.js @@ -0,0 +1 @@ +"use strict";(()=>{var a={};a.id=3516,a.ids=[3516],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},5205:a=>{a.exports=import("quickjs-emscripten-core")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},17915:a=>{a.exports=import("@jitl/quickjs-wasmfile-release-sync")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},93756:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{handler:()=>x,patchFetch:()=>w,routeModule:()=>y,serverHooks:()=>B,workAsyncStorage:()=>z,workUnitAsyncStorage:()=>A});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(94394),v=a([u]);u=(v.then?(await v)():v)[0];let y=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/admin/deployments/[id]/functions/[functionId]/route",pathname:"/api/admin/deployments/[id]/functions/[functionId]",filename:"route",bundlePath:"app/api/admin/deployments/[id]/functions/[functionId]/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/deployments/[id]/functions/[functionId]/route.ts",nextConfigOutput:"standalone",userland:u}),{workAsyncStorage:z,workUnitAsyncStorage:A,serverHooks:B}=y;function w(){return(0,g.patchFetch)({workAsyncStorage:z,workUnitAsyncStorage:A})}async function x(a,b,c){var d;let e="/api/admin/deployments/[id]/functions/[functionId]/route";"/index"===e&&(e="/");let g=await y.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:z,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(z.dynamicRoutes[E]||z.routes[D]);if(F&&!x){let a=!!z.routes[D],b=z.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||y.isDev||x||(G=D,G="/index"===G?"/":G);let H=!0===y.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:z,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>y.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>y.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await y.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await y.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:z,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await y.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},94394:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{DELETE:()=>l,GET:()=>j,PUT:()=>k});var e=c(10641),f=c(39588),g=c(32907),h=c(19958),i=a([h]);async function j(a,{params:b}){try{await (0,f.oC)();let{id:a,functionId:c}=await b,d=(0,g.q)();await d.init();let h=await d.getDeployment?.(a);if(!h)return e.NextResponse.json({error:"Deployment not found"},{status:404});if(!h.databaseEnabled)return e.NextResponse.json({error:"Deployment database not enabled"},{status:400});let i=d.getDeploymentDatabaseForAnalytics(a);if(!i)return e.NextResponse.json({error:"Deployment database not available"},{status:500});let j=i.getFunction(c);if(!j)return e.NextResponse.json({error:"Function not found"},{status:404});return e.NextResponse.json({function:j})}catch(a){if(a instanceof Error&&"Unauthorized"===a.message)return e.NextResponse.json({error:"Unauthorized"},{status:401});return console.error("[Admin Functions API] Error:",a),e.NextResponse.json({error:"Internal server error"},{status:500})}}async function k(a,{params:b}){try{await (0,f.oC)();let{id:c,functionId:d}=await b,i=await a.json(),j=(0,g.q)();await j.init();let k=await j.getDeployment?.(c);if(!k)return e.NextResponse.json({error:"Deployment not found"},{status:404});if(!k.databaseEnabled)return e.NextResponse.json({error:"Deployment database not enabled"},{status:400});let l=j.getDeploymentDatabaseForAnalytics(c);if(!l)return e.NextResponse.json({error:"Deployment database not available"},{status:500});let m=l.getFunction(d);if(!m)return e.NextResponse.json({error:"Function not found"},{status:404});let n={};if(void 0!==i.name&&i.name!==m.name){let a=(0,h.QH)(i.name);if(a)return e.NextResponse.json({error:a},{status:400});let b=l.getFunctionByName(i.name);if(b&&b.id!==d)return e.NextResponse.json({error:"A function with this name already exists"},{status:409});n.name=i.name}if(void 0!==i.code){let a=(0,h.c2)(i.code);if(a)return e.NextResponse.json({error:a},{status:400});n.code=i.code}if(void 0!==i.description&&(n.description=i.description),void 0!==i.method){if(!["GET","POST","PUT","DELETE","ANY"].includes(i.method))return e.NextResponse.json({error:"Invalid HTTP method"},{status:400});n.method=i.method}void 0!==i.enabled&&(n.enabled=i.enabled),void 0!==i.timeoutMs&&(n.timeoutMs=Math.min(Math.max(i.timeoutMs,1e3),3e4)),Object.keys(n).length>0&&l.updateFunction(d,n);let o=l.getFunction(d);return e.NextResponse.json({function:o})}catch(a){if(a instanceof Error&&"Unauthorized"===a.message)return e.NextResponse.json({error:"Unauthorized"},{status:401});return console.error("[Admin Functions API] Error:",a),e.NextResponse.json({error:"Internal server error"},{status:500})}}async function l(a,{params:b}){try{await (0,f.oC)();let{id:a,functionId:c}=await b,d=(0,g.q)();await d.init();let h=await d.getDeployment?.(a);if(!h)return e.NextResponse.json({error:"Deployment not found"},{status:404});if(!h.databaseEnabled)return e.NextResponse.json({error:"Deployment database not enabled"},{status:400});let i=d.getDeploymentDatabaseForAnalytics(a);if(!i)return e.NextResponse.json({error:"Deployment database not available"},{status:500});if(!i.getFunction(c))return e.NextResponse.json({error:"Function not found"},{status:404});return i.deleteFunction(c),e.NextResponse.json({success:!0})}catch(a){if(a instanceof Error&&"Unauthorized"===a.message)return e.NextResponse.json({error:"Unauthorized"},{status:401});return console.error("[Admin Functions API] Error:",a),e.NextResponse.json({error:"Internal server error"},{status:500})}}h=(i.then?(await i)():i)[0],d()}catch(a){d(a)}})}};var b=require("../../../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,3343,9958],()=>b(b.s=93756));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/admin/deployments/[id]/functions/[functionId]/route.js.nft.json b/.next/server/app/api/admin/deployments/[id]/functions/[functionId]/route.js.nft.json new file mode 100644 index 0000000000000000000000000000000000000000..08fc1cc6afa2be6fde129b3e04b49654118bf014 --- /dev/null +++ b/.next/server/app/api/admin/deployments/[id]/functions/[functionId]/route.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../../../../../../data/osws.sqlite","../../../../../../../../../data/osws.sqlite-shm","../../../../../../../../../data/osws.sqlite-wal","../../../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite","../../../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-shm","../../../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-wal","../../../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite","../../../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-shm","../../../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-wal","../../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/analytics.sqlite","../../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite","../../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-shm","../../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-wal","../../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/analytics.sqlite","../../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite","../../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-shm","../../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-wal","../../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/analytics.sqlite","../../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite","../../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-shm","../../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-wal","../../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/analytics.sqlite","../../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite","../../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-shm","../../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-wal","../../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/analytics.sqlite","../../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite","../../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-shm","../../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-wal","../../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/analytics.sqlite","../../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite","../../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-shm","../../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-wal","../../../../../../../../../node_modules/@jitl/quickjs-ffi-types/dist/index.js","../../../../../../../../../node_modules/@jitl/quickjs-ffi-types/dist/index.mjs","../../../../../../../../../node_modules/@jitl/quickjs-ffi-types/package.json","../../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/emscripten-module.mjs","../../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/emscripten-module.wasm","../../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/ffi.mjs","../../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/index.js","../../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/index.mjs","../../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/package.json","../../../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../../../node_modules/bindings/bindings.js","../../../../../../../../../node_modules/bindings/package.json","../../../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../../../node_modules/next/package.json","../../../../../../../../../node_modules/quickjs-emscripten-core/dist/chunk-JTKJZQYV.mjs","../../../../../../../../../node_modules/quickjs-emscripten-core/dist/chunk-PEXOKBOE.mjs","../../../../../../../../../node_modules/quickjs-emscripten-core/dist/index.js","../../../../../../../../../node_modules/quickjs-emscripten-core/dist/index.mjs","../../../../../../../../../node_modules/quickjs-emscripten-core/dist/module-6F3E5H7Y.mjs","../../../../../../../../../node_modules/quickjs-emscripten-core/dist/module-asyncify-R6PWJ6ZV.mjs","../../../../../../../../../node_modules/quickjs-emscripten-core/package.json","../../../../../../../../../package.json","../../../../../../../../package.json","../../../../../../../chunks/1692.js","../../../../../../../chunks/3343.js","../../../../../../../chunks/4586.js","../../../../../../../chunks/6151.js","../../../../../../../chunks/9958.js","../../../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/admin/deployments/[id]/functions/[functionId]/route_client-reference-manifest.js b/.next/server/app/api/admin/deployments/[id]/functions/[functionId]/route_client-reference-manifest.js new file mode 100644 index 0000000000000000000000000000000000000000..67908beb43c8ce7f1b8a3ee9338d2862632fe20b --- /dev/null +++ b/.next/server/app/api/admin/deployments/[id]/functions/[functionId]/route_client-reference-manifest.js @@ -0,0 +1 @@ +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/admin/deployments/[id]/functions/[functionId]/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/deployments/[id]/functions/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/deployments/[id]/functions/[functionId]/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/admin/deployments/[id]/functions/route.js b/.next/server/app/api/admin/deployments/[id]/functions/route.js new file mode 100644 index 0000000000000000000000000000000000000000..125e5a1b4ac2946a5a375bda52c306787338e2a8 --- /dev/null +++ b/.next/server/app/api/admin/deployments/[id]/functions/route.js @@ -0,0 +1 @@ +"use strict";(()=>{var a={};a.id=2874,a.ids=[2874],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},5205:a=>{a.exports=import("quickjs-emscripten-core")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},17915:a=>{a.exports=import("@jitl/quickjs-wasmfile-release-sync")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},30462:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{handler:()=>x,patchFetch:()=>w,routeModule:()=>y,serverHooks:()=>B,workAsyncStorage:()=>z,workUnitAsyncStorage:()=>A});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(33778),v=a([u]);u=(v.then?(await v)():v)[0];let y=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/admin/deployments/[id]/functions/route",pathname:"/api/admin/deployments/[id]/functions",filename:"route",bundlePath:"app/api/admin/deployments/[id]/functions/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/deployments/[id]/functions/route.ts",nextConfigOutput:"standalone",userland:u}),{workAsyncStorage:z,workUnitAsyncStorage:A,serverHooks:B}=y;function w(){return(0,g.patchFetch)({workAsyncStorage:z,workUnitAsyncStorage:A})}async function x(a,b,c){var d;let e="/api/admin/deployments/[id]/functions/route";"/index"===e&&(e="/");let g=await y.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:z,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(z.dynamicRoutes[E]||z.routes[D]);if(F&&!x){let a=!!z.routes[D],b=z.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||y.isDev||x||(G=D,G="/index"===G?"/":G);let H=!0===y.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:z,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>y.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>y.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await y.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await y.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:z,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await y.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33778:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>j,POST:()=>k});var e=c(10641),f=c(39588),g=c(32907),h=c(19958),i=a([h]);async function j(a,{params:b}){try{await (0,f.oC)();let{id:a}=await b,c=(0,g.q)();await c.init();let d=await c.getDeployment?.(a);if(!d)return e.NextResponse.json({error:"Deployment not found"},{status:404});if(!d.databaseEnabled)return e.NextResponse.json({error:"Deployment database not enabled"},{status:400});let h=c.getDeploymentDatabaseForAnalytics(a);if(!h)return e.NextResponse.json({error:"Deployment database not available"},{status:500});let i=h.listFunctions();return e.NextResponse.json({functions:i})}catch(a){if(a instanceof Error&&"Unauthorized"===a.message)return e.NextResponse.json({error:"Unauthorized"},{status:401});return console.error("[Admin Functions API] Error:",a),e.NextResponse.json({error:"Internal server error"},{status:500})}}async function k(a,{params:b}){try{await (0,f.oC)();let{id:c}=await b,d=await a.json();if(!d.name)return e.NextResponse.json({error:"Function name is required"},{status:400});if(!d.code)return e.NextResponse.json({error:"Function code is required"},{status:400});let i=(0,h.QH)(d.name);if(i)return e.NextResponse.json({error:i},{status:400});let j=(0,h.c2)(d.code);if(j)return e.NextResponse.json({error:j},{status:400});let k=d.method||"ANY";if(!["GET","POST","PUT","DELETE","ANY"].includes(k))return e.NextResponse.json({error:"Invalid HTTP method"},{status:400});let l=Math.min(Math.max(d.timeoutMs||5e3,1e3),3e4),m=(0,g.q)();await m.init();let n=await m.getDeployment?.(c);if(!n)return e.NextResponse.json({error:"Deployment not found"},{status:404});n.databaseEnabled||(n.databaseEnabled=!0,await m.enableDeploymentDatabase(c),await m.updateDeployment?.(n));let o=m.getDeploymentDatabaseForAnalytics(c);if(!o)return e.NextResponse.json({error:"Deployment database not available"},{status:500});if(o.getFunctionByName(d.name))return e.NextResponse.json({error:"A function with this name already exists"},{status:409});let p=o.createFunction({name:d.name,description:d.description||void 0,code:d.code,method:k,enabled:!1!==d.enabled,timeoutMs:l}),q=o.getFunction(p);return e.NextResponse.json({function:q},{status:201})}catch(a){if(a instanceof Error&&"Unauthorized"===a.message)return e.NextResponse.json({error:"Unauthorized"},{status:401});return console.error("[Admin Functions API] Error:",a),e.NextResponse.json({error:"Internal server error"},{status:500})}}h=(i.then?(await i)():i)[0],d()}catch(a){d(a)}})},33873:a=>{a.exports=require("path")},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("../../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,3343,9958],()=>b(b.s=30462));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/admin/deployments/[id]/functions/route.js.nft.json b/.next/server/app/api/admin/deployments/[id]/functions/route.js.nft.json new file mode 100644 index 0000000000000000000000000000000000000000..01fb0cbdd028dbfe9e22231214c578da6a41d245 --- /dev/null +++ b/.next/server/app/api/admin/deployments/[id]/functions/route.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../../../../../data/osws.sqlite","../../../../../../../../data/osws.sqlite-shm","../../../../../../../../data/osws.sqlite-wal","../../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite","../../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-shm","../../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-wal","../../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite","../../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-shm","../../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-wal","../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/analytics.sqlite","../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite","../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-shm","../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-wal","../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/analytics.sqlite","../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite","../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-shm","../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-wal","../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/analytics.sqlite","../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite","../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-shm","../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-wal","../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/analytics.sqlite","../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite","../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-shm","../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-wal","../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/analytics.sqlite","../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite","../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-shm","../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-wal","../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/analytics.sqlite","../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite","../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-shm","../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-wal","../../../../../../../../node_modules/@jitl/quickjs-ffi-types/dist/index.js","../../../../../../../../node_modules/@jitl/quickjs-ffi-types/dist/index.mjs","../../../../../../../../node_modules/@jitl/quickjs-ffi-types/package.json","../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/emscripten-module.mjs","../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/emscripten-module.wasm","../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/ffi.mjs","../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/index.js","../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/index.mjs","../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/package.json","../../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../../node_modules/bindings/bindings.js","../../../../../../../../node_modules/bindings/package.json","../../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../../node_modules/next/package.json","../../../../../../../../node_modules/quickjs-emscripten-core/dist/chunk-JTKJZQYV.mjs","../../../../../../../../node_modules/quickjs-emscripten-core/dist/chunk-PEXOKBOE.mjs","../../../../../../../../node_modules/quickjs-emscripten-core/dist/index.js","../../../../../../../../node_modules/quickjs-emscripten-core/dist/index.mjs","../../../../../../../../node_modules/quickjs-emscripten-core/dist/module-6F3E5H7Y.mjs","../../../../../../../../node_modules/quickjs-emscripten-core/dist/module-asyncify-R6PWJ6ZV.mjs","../../../../../../../../node_modules/quickjs-emscripten-core/package.json","../../../../../../../../package.json","../../../../../../../package.json","../../../../../../chunks/1692.js","../../../../../../chunks/3343.js","../../../../../../chunks/4586.js","../../../../../../chunks/6151.js","../../../../../../chunks/9958.js","../../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/admin/sites/[id]/database/schema/route_client-reference-manifest.js b/.next/server/app/api/admin/deployments/[id]/functions/route_client-reference-manifest.js similarity index 92% rename from .next/server/app/api/admin/sites/[id]/database/schema/route_client-reference-manifest.js rename to .next/server/app/api/admin/deployments/[id]/functions/route_client-reference-manifest.js index b6f60336bcf47745e50d55b4047366f2e21e93fa..c0a5f94444d90b2be24ef721e47111a06f3b3751 100644 --- a/.next/server/app/api/admin/sites/[id]/database/schema/route_client-reference-manifest.js +++ b/.next/server/app/api/admin/deployments/[id]/functions/route_client-reference-manifest.js @@ -1 +1 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/admin/sites/[id]/database/schema/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/sites/[id]/database/schema/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/admin/deployments/[id]/functions/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/deployments/[id]/functions/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/admin/deployments/[id]/provision/route.js b/.next/server/app/api/admin/deployments/[id]/provision/route.js new file mode 100644 index 0000000000000000000000000000000000000000..843c85cc073a9f67efbcc65f1d5deb1e95f0863a --- /dev/null +++ b/.next/server/app/api/admin/deployments/[id]/provision/route.js @@ -0,0 +1 @@ +"use strict";(()=>{var a={};a.id=8884,a.ids=[8884],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{a.exports=require("path")},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},52238:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>F,patchFetch:()=>E,routeModule:()=>A,serverHooks:()=>D,workAsyncStorage:()=>B,workUnitAsyncStorage:()=>C});var d={};c.r(d),c.d(d,{POST:()=>z});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(39588),w=c(32907),x=c(5622),y=c.n(x);async function z(a,{params:b}){try{await (0,v.oC)();let{id:c}=await b,d=(await a.json()).backendFeatures;if(!d)return u.NextResponse.json({error:"backendFeatures is required"},{status:400});let e=(0,w.q)();await e.init();let f=await e.getDeployment?.(c);if(!f)return u.NextResponse.json({error:"Deployment not found"},{status:404});f.databaseEnabled||(f.databaseEnabled=!0,await e.enableDeploymentDatabase(c),await e.updateDeployment?.(f));let g=e.getDeploymentDatabaseForAnalytics(c);if(!g)return u.NextResponse.json({error:"Deployment database not available"},{status:500});let h={edgeFunctions:0,serverFunctions:0,secrets:0,scheduledFunctions:0,databaseSchemaApplied:!1};if(d.databaseSchema&&(g.executeDDL(d.databaseSchema),h.databaseSchemaApplied=!0),d.edgeFunctions)for(let a of d.edgeFunctions)!g.getFunctionByName(a.name)&&(g.createFunction({name:a.name,description:a.description,code:a.code,method:a.method||"ANY",enabled:!1!==a.enabled,timeoutMs:a.timeoutMs||5e3}),h.edgeFunctions++);if(d.serverFunctions)for(let a of d.serverFunctions)!g.getServerFunctionByName(a.name)&&(g.createServerFunction({name:a.name,description:a.description,code:a.code,enabled:!1!==a.enabled}),h.serverFunctions++);if(d.secrets)for(let a of d.secrets)!g.getSecretByName(a.name)&&(g.createSecretPlaceholder(a.name,a.description),h.secrets++);let i=0;if(d.scheduledFunctions)for(let a of d.scheduledFunctions){let b;if(g.getScheduledFunctionByName(a.name))continue;let c=g.getFunctionByName(a.functionName);if(!c){console.warn(`[Admin Provision API] Skipping scheduled function "${a.name}": edge function "${a.functionName}" not found`);continue}try{b=y().parseExpression(a.cronExpression,{tz:a.timezone||"UTC",currentDate:new Date}).next().toDate()}catch{}g.createScheduledFunction({name:a.name,description:a.description,functionId:c.id,cronExpression:a.cronExpression,timezone:a.timezone||"UTC",config:a.config||{},enabled:!1!==a.enabled,nextRunAt:b}),i++}return h.scheduledFunctions=i,u.NextResponse.json({provisioned:h},{status:201})}catch(a){if(a instanceof Error&&"Unauthorized"===a.message)return u.NextResponse.json({error:"Unauthorized"},{status:401});return console.error("[Admin Provision API] Error:",a),u.NextResponse.json({error:"Internal server error"},{status:500})}}let A=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/admin/deployments/[id]/provision/route",pathname:"/api/admin/deployments/[id]/provision",filename:"route",bundlePath:"app/api/admin/deployments/[id]/provision/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/deployments/[id]/provision/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:B,workUnitAsyncStorage:C,serverHooks:D}=A;function E(){return(0,g.patchFetch)({workAsyncStorage:B,workUnitAsyncStorage:C})}async function F(a,b,c){var d;let e="/api/admin/deployments/[id]/provision/route";"/index"===e&&(e="/");let g=await A.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:y,routerServerContext:z,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(y.dynamicRoutes[E]||y.routes[D]);if(F&&!x){let a=!!y.routes[D],b=y.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||A.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===A.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:y,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>A.onRequestError(a,b,d,z)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>A.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await A.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},z),b}},l=await A.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await A.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("../../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,8215,3343],()=>b(b.s=52238));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/admin/deployments/[id]/provision/route.js.nft.json b/.next/server/app/api/admin/deployments/[id]/provision/route.js.nft.json new file mode 100644 index 0000000000000000000000000000000000000000..d984e3ad2ff3c504e4ad696671eca1b6d3608623 --- /dev/null +++ b/.next/server/app/api/admin/deployments/[id]/provision/route.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../../../../../data/osws.sqlite","../../../../../../../../data/osws.sqlite-shm","../../../../../../../../data/osws.sqlite-wal","../../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite","../../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-shm","../../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-wal","../../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite","../../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-shm","../../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-wal","../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/analytics.sqlite","../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite","../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-shm","../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-wal","../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/analytics.sqlite","../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite","../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-shm","../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-wal","../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/analytics.sqlite","../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite","../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-shm","../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-wal","../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/analytics.sqlite","../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite","../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-shm","../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-wal","../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/analytics.sqlite","../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite","../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-shm","../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-wal","../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/analytics.sqlite","../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite","../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-shm","../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-wal","../../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../../node_modules/bindings/bindings.js","../../../../../../../../node_modules/bindings/package.json","../../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../../node_modules/next/package.json","../../../../../../../../package.json","../../../../../../../package.json","../../../../../../chunks/1692.js","../../../../../../chunks/3343.js","../../../../../../chunks/4586.js","../../../../../../chunks/6151.js","../../../../../../chunks/8215.js","../../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/admin/deployments/[id]/provision/route_client-reference-manifest.js b/.next/server/app/api/admin/deployments/[id]/provision/route_client-reference-manifest.js new file mode 100644 index 0000000000000000000000000000000000000000..c9f8a2aa4de8355ba823be66cf0547c34027e864 --- /dev/null +++ b/.next/server/app/api/admin/deployments/[id]/provision/route_client-reference-manifest.js @@ -0,0 +1 @@ +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/admin/deployments/[id]/provision/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/deployments/[id]/provision/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/admin/deployments/[id]/scheduled-functions/[scheduledFunctionId]/route.js b/.next/server/app/api/admin/deployments/[id]/scheduled-functions/[scheduledFunctionId]/route.js new file mode 100644 index 0000000000000000000000000000000000000000..b2acaa98ccabc06bb68215d8f589c8bd20d54e67 --- /dev/null +++ b/.next/server/app/api/admin/deployments/[id]/scheduled-functions/[scheduledFunctionId]/route.js @@ -0,0 +1 @@ +"use strict";(()=>{var a={};a.id=1713,a.ids=[1713],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},5205:a=>{a.exports=import("quickjs-emscripten-core")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},17003:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{DELETE:()=>n,GET:()=>l,PUT:()=>m});var e=c(10641),f=c(39588),g=c(32907),h=c(19958),i=c(5622),j=c.n(i),k=a([h]);async function l(a,{params:b}){try{await (0,f.oC)();let{id:a,scheduledFunctionId:c}=await b,d=(0,g.q)();await d.init();let h=await d.getDeployment?.(a);if(!h)return e.NextResponse.json({error:"Deployment not found"},{status:404});if(!h.databaseEnabled)return e.NextResponse.json({error:"Deployment database not enabled"},{status:400});let i=d.getDeploymentDatabaseForAnalytics(a);if(!i)return e.NextResponse.json({error:"Deployment database not available"},{status:500});let j=i.getScheduledFunction(c);if(!j)return e.NextResponse.json({error:"Scheduled function not found"},{status:404});return e.NextResponse.json({scheduledFunction:j})}catch(a){if(a instanceof Error&&"Unauthorized"===a.message)return e.NextResponse.json({error:"Unauthorized"},{status:401});return console.error("[Admin Scheduled Functions API] Error:",a),e.NextResponse.json({error:"Internal server error"},{status:500})}}async function m(a,{params:b}){try{await (0,f.oC)();let{id:c,scheduledFunctionId:d}=await b,i=await a.json(),k=(0,g.q)();await k.init();let l=await k.getDeployment?.(c);if(!l)return e.NextResponse.json({error:"Deployment not found"},{status:404});if(!l.databaseEnabled)return e.NextResponse.json({error:"Deployment database not enabled"},{status:400});let m=k.getDeploymentDatabaseForAnalytics(c);if(!m)return e.NextResponse.json({error:"Deployment database not available"},{status:500});let n=m.getScheduledFunction(d);if(!n)return e.NextResponse.json({error:"Scheduled function not found"},{status:404});let o={};if(void 0!==i.name&&i.name!==n.name){let a=(0,h.QH)(i.name);if(a)return e.NextResponse.json({error:a},{status:400});let b=m.getScheduledFunctionByName(i.name);if(b&&b.id!==d)return e.NextResponse.json({error:"A scheduled function with this name already exists"},{status:409});o.name=i.name}if(void 0!==i.functionId){if(!m.getFunction(i.functionId))return e.NextResponse.json({error:"Edge function not found"},{status:404});o.functionId=i.functionId}if(void 0!==i.cronExpression){try{let a=j().parseExpression(i.cronExpression),b=a.next().toDate().getTime();if(a.next().toDate().getTime()-b<299e3)return e.NextResponse.json({error:"Minimum interval is 5 minutes"},{status:400})}catch{return e.NextResponse.json({error:"Invalid cron expression"},{status:400})}o.cronExpression=i.cronExpression}if(void 0!==i.timezone){try{Intl.DateTimeFormat(void 0,{timeZone:i.timezone})}catch{return e.NextResponse.json({error:`Invalid timezone: ${i.timezone}`},{status:400})}o.timezone=i.timezone}if(void 0!==i.description){if(i.description&&i.description.length>500)return e.NextResponse.json({error:"Description must be 500 characters or less"},{status:400});o.description=i.description}if(void 0!==i.config){if("object"!=typeof i.config||null===i.config||Array.isArray(i.config))return e.NextResponse.json({error:"config must be a plain object"},{status:400});if(JSON.stringify(i.config).length>65536)return e.NextResponse.json({error:"config must be less than 64KB"},{status:400});o.config=i.config}if(void 0!==i.enabled&&(o.enabled=i.enabled),void 0!==o.cronExpression||void 0!==o.timezone){let a=o.cronExpression||n.cronExpression,b=o.timezone||n.timezone;try{o.nextRunAt=j().parseExpression(a,{tz:b,currentDate:new Date}).next().toDate()}catch{}}Object.keys(o).length>0&&m.updateScheduledFunction(d,o);let p=m.getScheduledFunction(d);return e.NextResponse.json({scheduledFunction:p})}catch(a){if(a instanceof Error&&"Unauthorized"===a.message)return e.NextResponse.json({error:"Unauthorized"},{status:401});return console.error("[Admin Scheduled Functions API] Error:",a),e.NextResponse.json({error:"Internal server error"},{status:500})}}async function n(a,{params:b}){try{await (0,f.oC)();let{id:a,scheduledFunctionId:c}=await b,d=(0,g.q)();await d.init();let h=await d.getDeployment?.(a);if(!h)return e.NextResponse.json({error:"Deployment not found"},{status:404});if(!h.databaseEnabled)return e.NextResponse.json({error:"Deployment database not enabled"},{status:400});let i=d.getDeploymentDatabaseForAnalytics(a);if(!i)return e.NextResponse.json({error:"Deployment database not available"},{status:500});if(!i.getScheduledFunction(c))return e.NextResponse.json({error:"Scheduled function not found"},{status:404});return i.deleteScheduledFunction(c),e.NextResponse.json({success:!0})}catch(a){if(a instanceof Error&&"Unauthorized"===a.message)return e.NextResponse.json({error:"Unauthorized"},{status:401});return console.error("[Admin Scheduled Functions API] Error:",a),e.NextResponse.json({error:"Internal server error"},{status:500})}}h=(k.then?(await k)():k)[0],d()}catch(a){d(a)}})},17915:a=>{a.exports=import("@jitl/quickjs-wasmfile-release-sync")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},30280:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{handler:()=>x,patchFetch:()=>w,routeModule:()=>y,serverHooks:()=>B,workAsyncStorage:()=>z,workUnitAsyncStorage:()=>A});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(17003),v=a([u]);u=(v.then?(await v)():v)[0];let y=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/admin/deployments/[id]/scheduled-functions/[scheduledFunctionId]/route",pathname:"/api/admin/deployments/[id]/scheduled-functions/[scheduledFunctionId]",filename:"route",bundlePath:"app/api/admin/deployments/[id]/scheduled-functions/[scheduledFunctionId]/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/deployments/[id]/scheduled-functions/[scheduledFunctionId]/route.ts",nextConfigOutput:"standalone",userland:u}),{workAsyncStorage:z,workUnitAsyncStorage:A,serverHooks:B}=y;function w(){return(0,g.patchFetch)({workAsyncStorage:z,workUnitAsyncStorage:A})}async function x(a,b,c){var d;let e="/api/admin/deployments/[id]/scheduled-functions/[scheduledFunctionId]/route";"/index"===e&&(e="/");let g=await y.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:z,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(z.dynamicRoutes[E]||z.routes[D]);if(F&&!x){let a=!!z.routes[D],b=z.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||y.isDev||x||(G=D,G="/index"===G?"/":G);let H=!0===y.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:z,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>y.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>y.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await y.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await y.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:z,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await y.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},33873:a=>{a.exports=require("path")},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("../../../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,8215,3343,9958],()=>b(b.s=30280));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/admin/deployments/[id]/scheduled-functions/[scheduledFunctionId]/route.js.nft.json b/.next/server/app/api/admin/deployments/[id]/scheduled-functions/[scheduledFunctionId]/route.js.nft.json new file mode 100644 index 0000000000000000000000000000000000000000..393ea2d7fe7f4cd55e3aad5b3fa9d6c93b657ab5 --- /dev/null +++ b/.next/server/app/api/admin/deployments/[id]/scheduled-functions/[scheduledFunctionId]/route.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../../../../../../data/osws.sqlite","../../../../../../../../../data/osws.sqlite-shm","../../../../../../../../../data/osws.sqlite-wal","../../../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite","../../../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-shm","../../../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-wal","../../../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite","../../../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-shm","../../../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-wal","../../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/analytics.sqlite","../../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite","../../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-shm","../../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-wal","../../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/analytics.sqlite","../../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite","../../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-shm","../../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-wal","../../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/analytics.sqlite","../../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite","../../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-shm","../../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-wal","../../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/analytics.sqlite","../../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite","../../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-shm","../../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-wal","../../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/analytics.sqlite","../../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite","../../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-shm","../../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-wal","../../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/analytics.sqlite","../../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite","../../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-shm","../../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-wal","../../../../../../../../../node_modules/@jitl/quickjs-ffi-types/dist/index.js","../../../../../../../../../node_modules/@jitl/quickjs-ffi-types/dist/index.mjs","../../../../../../../../../node_modules/@jitl/quickjs-ffi-types/package.json","../../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/emscripten-module.mjs","../../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/emscripten-module.wasm","../../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/ffi.mjs","../../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/index.js","../../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/index.mjs","../../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/package.json","../../../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../../../node_modules/bindings/bindings.js","../../../../../../../../../node_modules/bindings/package.json","../../../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../../../node_modules/next/package.json","../../../../../../../../../node_modules/quickjs-emscripten-core/dist/chunk-JTKJZQYV.mjs","../../../../../../../../../node_modules/quickjs-emscripten-core/dist/chunk-PEXOKBOE.mjs","../../../../../../../../../node_modules/quickjs-emscripten-core/dist/index.js","../../../../../../../../../node_modules/quickjs-emscripten-core/dist/index.mjs","../../../../../../../../../node_modules/quickjs-emscripten-core/dist/module-6F3E5H7Y.mjs","../../../../../../../../../node_modules/quickjs-emscripten-core/dist/module-asyncify-R6PWJ6ZV.mjs","../../../../../../../../../node_modules/quickjs-emscripten-core/package.json","../../../../../../../../../package.json","../../../../../../../../package.json","../../../../../../../chunks/1692.js","../../../../../../../chunks/3343.js","../../../../../../../chunks/4586.js","../../../../../../../chunks/6151.js","../../../../../../../chunks/8215.js","../../../../../../../chunks/9958.js","../../../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/admin/deployments/[id]/scheduled-functions/[scheduledFunctionId]/route_client-reference-manifest.js b/.next/server/app/api/admin/deployments/[id]/scheduled-functions/[scheduledFunctionId]/route_client-reference-manifest.js new file mode 100644 index 0000000000000000000000000000000000000000..224c5ac1a37476eb97934c811cf0fb6a8f6f5eb5 --- /dev/null +++ b/.next/server/app/api/admin/deployments/[id]/scheduled-functions/[scheduledFunctionId]/route_client-reference-manifest.js @@ -0,0 +1 @@ +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/admin/deployments/[id]/scheduled-functions/[scheduledFunctionId]/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/deployments/[id]/scheduled-functions/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/deployments/[id]/scheduled-functions/[scheduledFunctionId]/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/admin/deployments/[id]/scheduled-functions/route.js b/.next/server/app/api/admin/deployments/[id]/scheduled-functions/route.js new file mode 100644 index 0000000000000000000000000000000000000000..8a4754f37f6f37e350c89159c8c97b20b3c58542 --- /dev/null +++ b/.next/server/app/api/admin/deployments/[id]/scheduled-functions/route.js @@ -0,0 +1 @@ +"use strict";(()=>{var a={};a.id=7816,a.ids=[7816],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},5205:a=>{a.exports=import("quickjs-emscripten-core")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},17915:a=>{a.exports=import("@jitl/quickjs-wasmfile-release-sync")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{a.exports=require("path")},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},54706:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{handler:()=>x,patchFetch:()=>w,routeModule:()=>y,serverHooks:()=>B,workAsyncStorage:()=>z,workUnitAsyncStorage:()=>A});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(58112),v=a([u]);u=(v.then?(await v)():v)[0];let y=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/admin/deployments/[id]/scheduled-functions/route",pathname:"/api/admin/deployments/[id]/scheduled-functions",filename:"route",bundlePath:"app/api/admin/deployments/[id]/scheduled-functions/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/deployments/[id]/scheduled-functions/route.ts",nextConfigOutput:"standalone",userland:u}),{workAsyncStorage:z,workUnitAsyncStorage:A,serverHooks:B}=y;function w(){return(0,g.patchFetch)({workAsyncStorage:z,workUnitAsyncStorage:A})}async function x(a,b,c){var d;let e="/api/admin/deployments/[id]/scheduled-functions/route";"/index"===e&&(e="/");let g=await y.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:z,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(z.dynamicRoutes[E]||z.routes[D]);if(F&&!x){let a=!!z.routes[D],b=z.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||y.isDev||x||(G=D,G="/index"===G?"/":G);let H=!0===y.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:z,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>y.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>y.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await y.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await y.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:z,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await y.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},55511:a=>{a.exports=require("crypto")},58112:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>l,POST:()=>m});var e=c(10641),f=c(39588),g=c(32907),h=c(19958),i=c(5622),j=c.n(i),k=a([h]);async function l(a,{params:b}){try{await (0,f.oC)();let{id:a}=await b,c=(0,g.q)();await c.init();let d=await c.getDeployment?.(a);if(!d)return e.NextResponse.json({error:"Deployment not found"},{status:404});if(!d.databaseEnabled)return e.NextResponse.json({error:"Deployment database not enabled"},{status:400});let h=c.getDeploymentDatabaseForAnalytics(a);if(!h)return e.NextResponse.json({error:"Deployment database not available"},{status:500});let i=h.listScheduledFunctions();return e.NextResponse.json({scheduledFunctions:i})}catch(a){if(a instanceof Error&&"Unauthorized"===a.message)return e.NextResponse.json({error:"Unauthorized"},{status:401});return console.error("[Admin Scheduled Functions API] Error:",a),e.NextResponse.json({error:"Internal server error"},{status:500})}}async function m(a,{params:b}){try{let c;await (0,f.oC)();let{id:d}=await b,i=await a.json();if(!i.name)return e.NextResponse.json({error:"Name is required"},{status:400});if(!i.functionId)return e.NextResponse.json({error:"functionId is required"},{status:400});if(!i.cronExpression)return e.NextResponse.json({error:"cronExpression is required"},{status:400});let k=(0,h.QH)(i.name);if(k)return e.NextResponse.json({error:k},{status:400});try{let a=j().parseExpression(i.cronExpression),b=a.next().toDate().getTime();if(a.next().toDate().getTime()-b<299e3)return e.NextResponse.json({error:"Minimum interval is 5 minutes"},{status:400})}catch{return e.NextResponse.json({error:"Invalid cron expression"},{status:400})}let l=i.timezone||"UTC";try{Intl.DateTimeFormat(void 0,{timeZone:l})}catch{return e.NextResponse.json({error:`Invalid timezone: ${l}`},{status:400})}if(i.description&&i.description.length>500)return e.NextResponse.json({error:"Description must be 500 characters or less"},{status:400});if(void 0!==i.config){if("object"!=typeof i.config||null===i.config||Array.isArray(i.config))return e.NextResponse.json({error:"config must be a plain object"},{status:400});if(JSON.stringify(i.config).length>65536)return e.NextResponse.json({error:"config must be less than 64KB"},{status:400})}let m=(0,g.q)();await m.init();let n=await m.getDeployment?.(d);if(!n)return e.NextResponse.json({error:"Deployment not found"},{status:404});if(!n.databaseEnabled)return e.NextResponse.json({error:"Deployment database not enabled"},{status:400});let o=m.getDeploymentDatabaseForAnalytics(d);if(!o)return e.NextResponse.json({error:"Deployment database not available"},{status:500});if(!o.getFunction(i.functionId))return e.NextResponse.json({error:"Edge function not found"},{status:404});if(o.listScheduledFunctions().length>=50)return e.NextResponse.json({error:"Maximum of 50 scheduled functions per deployment"},{status:400});if(o.getScheduledFunctionByName(i.name))return e.NextResponse.json({error:"A scheduled function with this name already exists"},{status:409});try{c=j().parseExpression(i.cronExpression,{tz:l,currentDate:new Date}).next().toDate()}catch{}let p=o.createScheduledFunction({name:i.name,description:i.description||void 0,functionId:i.functionId,cronExpression:i.cronExpression,timezone:l,config:i.config||{},enabled:!1!==i.enabled,nextRunAt:c}),q=o.getScheduledFunction(p);return e.NextResponse.json({scheduledFunction:q},{status:201})}catch(a){if(a instanceof Error&&"Unauthorized"===a.message)return e.NextResponse.json({error:"Unauthorized"},{status:401});return console.error("[Admin Scheduled Functions API] Error:",a),e.NextResponse.json({error:"Internal server error"},{status:500})}}h=(k.then?(await k)():k)[0],d()}catch(a){d(a)}})},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("../../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,8215,3343,9958],()=>b(b.s=54706));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/admin/deployments/[id]/scheduled-functions/route.js.nft.json b/.next/server/app/api/admin/deployments/[id]/scheduled-functions/route.js.nft.json new file mode 100644 index 0000000000000000000000000000000000000000..961808b57c77131c185e951d385ba53280f3c15e --- /dev/null +++ b/.next/server/app/api/admin/deployments/[id]/scheduled-functions/route.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../../../../../data/osws.sqlite","../../../../../../../../data/osws.sqlite-shm","../../../../../../../../data/osws.sqlite-wal","../../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite","../../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-shm","../../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-wal","../../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite","../../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-shm","../../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-wal","../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/analytics.sqlite","../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite","../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-shm","../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-wal","../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/analytics.sqlite","../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite","../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-shm","../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-wal","../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/analytics.sqlite","../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite","../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-shm","../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-wal","../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/analytics.sqlite","../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite","../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-shm","../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-wal","../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/analytics.sqlite","../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite","../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-shm","../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-wal","../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/analytics.sqlite","../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite","../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-shm","../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-wal","../../../../../../../../node_modules/@jitl/quickjs-ffi-types/dist/index.js","../../../../../../../../node_modules/@jitl/quickjs-ffi-types/dist/index.mjs","../../../../../../../../node_modules/@jitl/quickjs-ffi-types/package.json","../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/emscripten-module.mjs","../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/emscripten-module.wasm","../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/ffi.mjs","../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/index.js","../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/index.mjs","../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/package.json","../../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../../node_modules/bindings/bindings.js","../../../../../../../../node_modules/bindings/package.json","../../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../../node_modules/next/package.json","../../../../../../../../node_modules/quickjs-emscripten-core/dist/chunk-JTKJZQYV.mjs","../../../../../../../../node_modules/quickjs-emscripten-core/dist/chunk-PEXOKBOE.mjs","../../../../../../../../node_modules/quickjs-emscripten-core/dist/index.js","../../../../../../../../node_modules/quickjs-emscripten-core/dist/index.mjs","../../../../../../../../node_modules/quickjs-emscripten-core/dist/module-6F3E5H7Y.mjs","../../../../../../../../node_modules/quickjs-emscripten-core/dist/module-asyncify-R6PWJ6ZV.mjs","../../../../../../../../node_modules/quickjs-emscripten-core/package.json","../../../../../../../../package.json","../../../../../../../package.json","../../../../../../chunks/1692.js","../../../../../../chunks/3343.js","../../../../../../chunks/4586.js","../../../../../../chunks/6151.js","../../../../../../chunks/8215.js","../../../../../../chunks/9958.js","../../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/admin/deployments/[id]/scheduled-functions/route_client-reference-manifest.js b/.next/server/app/api/admin/deployments/[id]/scheduled-functions/route_client-reference-manifest.js new file mode 100644 index 0000000000000000000000000000000000000000..d8fc96828f669aceb0099b983a39d2f1f98750fa --- /dev/null +++ b/.next/server/app/api/admin/deployments/[id]/scheduled-functions/route_client-reference-manifest.js @@ -0,0 +1 @@ +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/admin/deployments/[id]/scheduled-functions/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/deployments/[id]/scheduled-functions/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/admin/deployments/[id]/secrets/[secretId]/route.js b/.next/server/app/api/admin/deployments/[id]/secrets/[secretId]/route.js new file mode 100644 index 0000000000000000000000000000000000000000..471e4cc8324d7079f80c54f7646cc2b7e60fd19e --- /dev/null +++ b/.next/server/app/api/admin/deployments/[id]/secrets/[secretId]/route.js @@ -0,0 +1 @@ +"use strict";(()=>{var a={};a.id=352,a.ids=[352],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},92986:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>G,patchFetch:()=>F,routeModule:()=>B,serverHooks:()=>E,workAsyncStorage:()=>C,workUnitAsyncStorage:()=>D});var d={};c.r(d),c.d(d,{DELETE:()=>A,GET:()=>y,PUT:()=>z});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(39588),w=c(32907),x=c(75794);async function y(a,{params:b}){try{await (0,v.oC)();let{id:a,secretId:c}=await b,d=(0,w.q)();await d.init();let e=await d.getDeployment?.(a);if(!e)return u.NextResponse.json({error:"Deployment not found"},{status:404});if(!e.databaseEnabled)return u.NextResponse.json({error:"Deployment database not enabled"},{status:400});let f=d.getDeploymentDatabaseForAnalytics(a);if(!f)return u.NextResponse.json({error:"Deployment database not available"},{status:500});let g=f.getSecret(c);if(!g)return u.NextResponse.json({error:"Secret not found"},{status:404});return u.NextResponse.json({secret:g})}catch(a){if(a instanceof Error&&"Unauthorized"===a.message)return u.NextResponse.json({error:"Unauthorized"},{status:401});return console.error("[Admin Secrets API] Error:",a),u.NextResponse.json({error:"Internal server error"},{status:500})}}async function z(a,{params:b}){try{await (0,v.oC)();let{id:d,secretId:e}=await b,f=await a.json(),g=(0,w.q)();await g.init();let h=await g.getDeployment?.(d);if(!h)return u.NextResponse.json({error:"Deployment not found"},{status:404});if(!h.databaseEnabled)return u.NextResponse.json({error:"Deployment database not enabled"},{status:400});let i=g.getDeploymentDatabaseForAnalytics(d);if(!i)return u.NextResponse.json({error:"Deployment database not available"},{status:500});let j=i.getSecret(e);if(!j)return u.NextResponse.json({error:"Secret not found"},{status:404});if(void 0!==f.value&&""!==f.value){if(!(0,x.yg)())return u.NextResponse.json({error:"Secrets encryption not configured. Set SECRETS_ENCRYPTION_KEY environment variable."},{status:500});i.updateSecretValue(e,f.value)}let k={};if(void 0!==f.name&&f.name!==j.name){var c;let a=(c=f.name)&&0!==c.trim().length?c.length>64?"Secret name must be 64 characters or less":/^[A-Z][A-Z0-9_]*$/.test(c)?null:"Secret name must be SCREAMING_SNAKE_CASE (uppercase letters, numbers, underscores; must start with letter)":"Secret name is required";if(a)return u.NextResponse.json({error:a},{status:400});let b=i.getSecretByName(f.name);if(b&&b.id!==e)return u.NextResponse.json({error:"A secret with this name already exists"},{status:409});k.name=f.name}void 0!==f.description&&(k.description=f.description),Object.keys(k).length>0&&i.updateSecretMetadata(e,k);let l=i.getSecret(e);return u.NextResponse.json({secret:l})}catch(a){if(a instanceof Error&&"Unauthorized"===a.message)return u.NextResponse.json({error:"Unauthorized"},{status:401});return console.error("[Admin Secrets API] Error:",a),u.NextResponse.json({error:"Internal server error"},{status:500})}}async function A(a,{params:b}){try{await (0,v.oC)();let{id:a,secretId:c}=await b,d=(0,w.q)();await d.init();let e=await d.getDeployment?.(a);if(!e)return u.NextResponse.json({error:"Deployment not found"},{status:404});if(!e.databaseEnabled)return u.NextResponse.json({error:"Deployment database not enabled"},{status:400});let f=d.getDeploymentDatabaseForAnalytics(a);if(!f)return u.NextResponse.json({error:"Deployment database not available"},{status:500});if(!f.getSecret(c))return u.NextResponse.json({error:"Secret not found"},{status:404});return f.deleteSecret(c),u.NextResponse.json({success:!0})}catch(a){if(a instanceof Error&&"Unauthorized"===a.message)return u.NextResponse.json({error:"Unauthorized"},{status:401});return console.error("[Admin Secrets API] Error:",a),u.NextResponse.json({error:"Internal server error"},{status:500})}}let B=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/admin/deployments/[id]/secrets/[secretId]/route",pathname:"/api/admin/deployments/[id]/secrets/[secretId]",filename:"route",bundlePath:"app/api/admin/deployments/[id]/secrets/[secretId]/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/deployments/[id]/secrets/[secretId]/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:C,workUnitAsyncStorage:D,serverHooks:E}=B;function F(){return(0,g.patchFetch)({workAsyncStorage:C,workUnitAsyncStorage:D})}async function G(a,b,c){var d;let e="/api/admin/deployments/[id]/secrets/[secretId]/route";"/index"===e&&(e="/");let g=await B.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:y,routerServerContext:z,isOnDemandRevalidate:A,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(y.dynamicRoutes[E]||y.routes[D]);if(F&&!x){let a=!!y.routes[D],b=y.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||B.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===B.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:y,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>B.onRequestError(a,b,d,z)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>B.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&A&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await B.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:A})},z),b}},l=await B.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:A,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",A?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await B.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:A})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}}};var b=require("../../../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,3343],()=>b(b.s=92986));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/admin/deployments/[id]/secrets/[secretId]/route.js.nft.json b/.next/server/app/api/admin/deployments/[id]/secrets/[secretId]/route.js.nft.json new file mode 100644 index 0000000000000000000000000000000000000000..661584d4afb2ed7f2a87215990adb8e45975a58e --- /dev/null +++ b/.next/server/app/api/admin/deployments/[id]/secrets/[secretId]/route.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../../../../../../data/osws.sqlite","../../../../../../../../../data/osws.sqlite-shm","../../../../../../../../../data/osws.sqlite-wal","../../../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite","../../../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-shm","../../../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-wal","../../../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite","../../../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-shm","../../../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-wal","../../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/analytics.sqlite","../../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite","../../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-shm","../../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-wal","../../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/analytics.sqlite","../../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite","../../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-shm","../../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-wal","../../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/analytics.sqlite","../../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite","../../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-shm","../../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-wal","../../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/analytics.sqlite","../../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite","../../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-shm","../../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-wal","../../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/analytics.sqlite","../../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite","../../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-shm","../../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-wal","../../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/analytics.sqlite","../../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite","../../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-shm","../../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-wal","../../../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../../../node_modules/bindings/bindings.js","../../../../../../../../../node_modules/bindings/package.json","../../../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../../../node_modules/next/package.json","../../../../../../../../../package.json","../../../../../../../../package.json","../../../../../../../chunks/1692.js","../../../../../../../chunks/3343.js","../../../../../../../chunks/4586.js","../../../../../../../chunks/6151.js","../../../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/admin/deployments/[id]/secrets/[secretId]/route_client-reference-manifest.js b/.next/server/app/api/admin/deployments/[id]/secrets/[secretId]/route_client-reference-manifest.js new file mode 100644 index 0000000000000000000000000000000000000000..611435af1a41180fb7ff6e1e798fb1b9fe8b2be1 --- /dev/null +++ b/.next/server/app/api/admin/deployments/[id]/secrets/[secretId]/route_client-reference-manifest.js @@ -0,0 +1 @@ +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/admin/deployments/[id]/secrets/[secretId]/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/deployments/[id]/secrets/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/deployments/[id]/secrets/[secretId]/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/admin/deployments/[id]/secrets/route.js b/.next/server/app/api/admin/deployments/[id]/secrets/route.js new file mode 100644 index 0000000000000000000000000000000000000000..6ccc545f115c637e7f4792c45659e4a00fa9dd5b --- /dev/null +++ b/.next/server/app/api/admin/deployments/[id]/secrets/route.js @@ -0,0 +1 @@ +"use strict";(()=>{var a={};a.id=2730,a.ids=[2730],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},17587:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>F,patchFetch:()=>E,routeModule:()=>A,serverHooks:()=>D,workAsyncStorage:()=>B,workUnitAsyncStorage:()=>C});var d={};c.r(d),c.d(d,{GET:()=>y,POST:()=>z});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(39588),w=c(32907),x=c(75794);async function y(a,{params:b}){try{await (0,v.oC)();let{id:a}=await b,c=(0,w.q)();await c.init();let d=await c.getDeployment?.(a);if(!d)return u.NextResponse.json({error:"Deployment not found"},{status:404});if(!d.databaseEnabled)return u.NextResponse.json({error:"Deployment database not enabled"},{status:400});let e=c.getDeploymentDatabaseForAnalytics(a);if(!e)return u.NextResponse.json({error:"Deployment database not available"},{status:500});let f=e.listSecrets();return u.NextResponse.json({secrets:f,encryptionConfigured:(0,x.yg)()})}catch(a){if(a instanceof Error&&"Unauthorized"===a.message)return u.NextResponse.json({error:"Unauthorized"},{status:401});return console.error("[Admin Secrets API] Error:",a),u.NextResponse.json({error:"Internal server error"},{status:500})}}async function z(a,{params:b}){try{var c;await (0,v.oC)();let{id:d}=await b,e=await a.json();if(!(0,x.yg)())return u.NextResponse.json({error:"Secrets encryption not configured. Set SECRETS_ENCRYPTION_KEY environment variable."},{status:500});if(!e.name)return u.NextResponse.json({error:"Secret name is required"},{status:400});if(!e.value)return u.NextResponse.json({error:"Secret value is required"},{status:400});let f=(c=e.name)&&0!==c.trim().length?c.length>64?"Secret name must be 64 characters or less":/^[A-Z][A-Z0-9_]*$/.test(c)?null:"Secret name must be SCREAMING_SNAKE_CASE (uppercase letters, numbers, underscores; must start with letter)":"Secret name is required";if(f)return u.NextResponse.json({error:f},{status:400});let g=(0,w.q)();await g.init();let h=await g.getDeployment?.(d);if(!h)return u.NextResponse.json({error:"Deployment not found"},{status:404});h.databaseEnabled||(h.databaseEnabled=!0,await g.enableDeploymentDatabase(d),await g.updateDeployment?.(h));let i=g.getDeploymentDatabaseForAnalytics(d);if(!i)return u.NextResponse.json({error:"Deployment database not available"},{status:500});if(i.getSecretByName(e.name))return u.NextResponse.json({error:"A secret with this name already exists"},{status:409});let j=i.createSecret(e.name,e.value,e.description||void 0),k=i.getSecret(j);return u.NextResponse.json({secret:k},{status:201})}catch(a){if(a instanceof Error&&"Unauthorized"===a.message)return u.NextResponse.json({error:"Unauthorized"},{status:401});return console.error("[Admin Secrets API] Error:",a),u.NextResponse.json({error:"Internal server error"},{status:500})}}let A=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/admin/deployments/[id]/secrets/route",pathname:"/api/admin/deployments/[id]/secrets",filename:"route",bundlePath:"app/api/admin/deployments/[id]/secrets/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/deployments/[id]/secrets/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:B,workUnitAsyncStorage:C,serverHooks:D}=A;function E(){return(0,g.patchFetch)({workAsyncStorage:B,workUnitAsyncStorage:C})}async function F(a,b,c){var d;let e="/api/admin/deployments/[id]/secrets/route";"/index"===e&&(e="/");let g=await A.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:y,routerServerContext:z,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(y.dynamicRoutes[E]||y.routes[D]);if(F&&!x){let a=!!y.routes[D],b=y.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||A.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===A.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:y,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>A.onRequestError(a,b,d,z)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>A.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await A.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},z),b}},l=await A.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await A.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("../../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,3343],()=>b(b.s=17587));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/admin/deployments/[id]/secrets/route.js.nft.json b/.next/server/app/api/admin/deployments/[id]/secrets/route.js.nft.json new file mode 100644 index 0000000000000000000000000000000000000000..bfd6ea7acc5ab46cfb7cffd384be868a2d074de7 --- /dev/null +++ b/.next/server/app/api/admin/deployments/[id]/secrets/route.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../../../../../data/osws.sqlite","../../../../../../../../data/osws.sqlite-shm","../../../../../../../../data/osws.sqlite-wal","../../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite","../../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-shm","../../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-wal","../../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite","../../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-shm","../../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-wal","../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/analytics.sqlite","../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite","../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-shm","../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-wal","../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/analytics.sqlite","../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite","../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-shm","../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-wal","../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/analytics.sqlite","../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite","../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-shm","../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-wal","../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/analytics.sqlite","../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite","../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-shm","../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-wal","../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/analytics.sqlite","../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite","../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-shm","../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-wal","../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/analytics.sqlite","../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite","../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-shm","../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-wal","../../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../../node_modules/bindings/bindings.js","../../../../../../../../node_modules/bindings/package.json","../../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../../node_modules/next/package.json","../../../../../../../../package.json","../../../../../../../package.json","../../../../../../chunks/1692.js","../../../../../../chunks/3343.js","../../../../../../chunks/4586.js","../../../../../../chunks/6151.js","../../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/admin/sites/[id]/database/logs/route_client-reference-manifest.js b/.next/server/app/api/admin/deployments/[id]/secrets/route_client-reference-manifest.js similarity index 92% rename from .next/server/app/api/admin/sites/[id]/database/logs/route_client-reference-manifest.js rename to .next/server/app/api/admin/deployments/[id]/secrets/route_client-reference-manifest.js index d74f47704f5e58eb4a161d76dc5ed5385f0ac5fb..058cce71193894f1140e583d92fe3b25ab2eaae6 100644 --- a/.next/server/app/api/admin/sites/[id]/database/logs/route_client-reference-manifest.js +++ b/.next/server/app/api/admin/deployments/[id]/secrets/route_client-reference-manifest.js @@ -1 +1 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/admin/sites/[id]/database/logs/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/sites/[id]/database/logs/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/admin/deployments/[id]/secrets/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/deployments/[id]/secrets/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/admin/deployments/[id]/server-context/mutate/route.js b/.next/server/app/api/admin/deployments/[id]/server-context/mutate/route.js new file mode 100644 index 0000000000000000000000000000000000000000..5d7cc2e4e0e92e736eaa7ee0e19010b3e9af248b --- /dev/null +++ b/.next/server/app/api/admin/deployments/[id]/server-context/mutate/route.js @@ -0,0 +1 @@ +"use strict";(()=>{var a={};a.id=3961,a.ids=[3961],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{a.exports=require("path")},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},83523:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>G,patchFetch:()=>F,routeModule:()=>B,serverHooks:()=>E,workAsyncStorage:()=>C,workUnitAsyncStorage:()=>D});var d={};c.r(d),c.d(d,{POST:()=>A});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(39588),w=c(32907),x=c(85317),y=c(5622),z=c.n(y);async function A(a,b){try{await (0,v.oC)();let{id:c}=await b.params,{operation:d,path:e,content:f}=await a.json();if(!e)return u.NextResponse.json({success:!1,error:"Path is required"},{status:400});let g=(0,w.q)();if(await g.init(),!await g.getDeployment(c))return u.NextResponse.json({success:!1,error:"Deployment not found"},{status:404});let h=g.getDeploymentDatabaseForAnalytics(c);if(!h)return u.NextResponse.json({success:!1,error:"Deployment database not available"},{status:500});if("delete"===d)return function(a,b){if(a.startsWith("/.server/secrets/")&&a.endsWith(".json")){let c=a.split("/").pop().replace(".json",""),d=b.getSecretByName(c);return d?(b.deleteSecret(d.id),u.NextResponse.json({success:!0})):u.NextResponse.json({success:!1,error:`Secret not found: ${c}`},{status:404})}if(a.startsWith("/.server/edge-functions/")&&a.endsWith(".json")){let c=a.split("/").pop().replace(".json",""),d=b.getFunctionByName(c);return d?(b.deleteFunction(d.id),u.NextResponse.json({success:!0})):u.NextResponse.json({success:!1,error:`Edge function not found: ${c}`},{status:404})}if(a.startsWith("/.server/server-functions/")&&a.endsWith(".json")){let c=a.split("/").pop().replace(".json",""),d=b.getServerFunctionByName(c);return d?(b.deleteServerFunction(d.id),u.NextResponse.json({success:!0})):u.NextResponse.json({success:!1,error:`Server function not found: ${c}`},{status:404})}if(a.startsWith("/.server/scheduled-functions/")&&a.endsWith(".json")){let c=a.split("/").pop().replace(".json",""),d=b.getScheduledFunctionByName(c);return d?(b.deleteScheduledFunction(d.id),u.NextResponse.json({success:!0})):u.NextResponse.json({success:!1,error:`Scheduled function not found: ${c}`},{status:404})}return u.NextResponse.json({success:!1,error:`Cannot delete ${a}`},{status:400})}(e,h);if(!f)return u.NextResponse.json({success:!1,error:"Content is required for create/update"},{status:400});if("/.server/db/schema.sql"===e)return u.NextResponse.json({success:!1,error:`Cannot modify ${e} - read-only file`},{status:400});if(e.startsWith("/.server/secrets/")&&e.endsWith(".json"))return function(a,b,c){let d;try{d=JSON.parse(b)}catch(b){let a=b instanceof Error?b.message:String(b);return u.NextResponse.json({success:!1,error:`Invalid JSON: ${a}`},{status:400})}let e=(0,x.xJ)(d);if(!e.valid)return u.NextResponse.json({success:!1,error:`Validation failed: ${e.errors.join("; ")}`},{status:400});let f=d,g=a.split("/").pop().replace(".json",""),h=c.getSecretByName(g);h?c.updateSecretMetadata(h.id,{name:f.name,description:f.description||""}):c.createSecretPlaceholder(f.name,f.description||"");let i=c.getSecretByName(f.name),j=`/.server/secrets/${f.name}.json`;return u.NextResponse.json({success:!0,file:{path:j,content:(0,x.e0)(i),isReadOnly:!1}})}(e,f,h);if(e.startsWith("/.server/edge-functions/")&&e.endsWith(".json"))return function(a,b,c){let d;try{d=JSON.parse(b)}catch(b){let a=b instanceof Error?b.message:String(b);return u.NextResponse.json({success:!1,error:`Invalid JSON: ${a}`},{status:400})}let e=(0,x.K3)(d);if(!e.valid)return u.NextResponse.json({success:!1,error:`Validation failed: ${e.errors.join("; ")}`},{status:400});let f=d,g=a.split("/").pop().replace(".json",""),h=c.getFunctionByName(g);h?c.updateFunction(h.id,{name:f.name,code:f.code,method:f.method,description:f.description,enabled:f.enabled??!0,timeoutMs:f.timeoutMs??5e3}):c.createFunction({name:f.name,code:f.code,method:f.method,description:f.description,enabled:f.enabled??!0,timeoutMs:f.timeoutMs??5e3});let i=c.getFunctionByName(f.name),j=`/.server/edge-functions/${f.name}.json`;return u.NextResponse.json({success:!0,file:{path:j,content:(0,x.hS)(i),isReadOnly:!1}})}(e,f,h);if(e.startsWith("/.server/server-functions/")&&e.endsWith(".json"))return function(a,b,c){let d;try{d=JSON.parse(b)}catch(b){let a=b instanceof Error?b.message:String(b);return u.NextResponse.json({success:!1,error:`Invalid JSON: ${a}`},{status:400})}let e=(0,x.W8)(d);if(!e.valid)return u.NextResponse.json({success:!1,error:`Validation failed: ${e.errors.join("; ")}`},{status:400});let f=d,g=a.split("/").pop().replace(".json",""),h=c.getServerFunctionByName(g);h?c.updateServerFunction(h.id,{name:f.name,code:f.code,description:f.description,enabled:f.enabled??!0}):c.createServerFunction({name:f.name,code:f.code,description:f.description,enabled:f.enabled??!0});let i=c.getServerFunctionByName(f.name),j=`/.server/server-functions/${f.name}.json`;return u.NextResponse.json({success:!0,file:{path:j,content:(0,x.HI)(i),isReadOnly:!1}})}(e,f,h);if(e.startsWith("/.server/scheduled-functions/")&&e.endsWith(".json"))return function(a,b,c){let d,e;try{d=JSON.parse(b)}catch(b){let a=b instanceof Error?b.message:String(b);return u.NextResponse.json({success:!1,error:`Invalid JSON: ${a}`},{status:400})}let f=(0,x.Au)(d);if(!f.valid)return u.NextResponse.json({success:!1,error:`Validation failed: ${f.errors.join("; ")}`},{status:400});let g=d;try{let a=z().parseExpression(g.cronExpression),b=a.next().toDate().getTime();if(a.next().toDate().getTime()-b<299e3)return u.NextResponse.json({success:!1,error:"Minimum interval is 5 minutes"},{status:400})}catch{return u.NextResponse.json({success:!1,error:"Invalid cron expression"},{status:400})}let h=c.getFunctionByName(g.functionName);if(!h)return u.NextResponse.json({success:!1,error:`Edge function not found: ${g.functionName}`},{status:400});let i=a.split("/").pop().replace(".json",""),j=c.getScheduledFunctionByName(i);if(!j&&c.listScheduledFunctions().length>=50)return u.NextResponse.json({success:!1,error:"Maximum of 50 scheduled functions per deployment"},{status:400});try{e=z().parseExpression(g.cronExpression,{tz:g.timezone||"UTC",currentDate:new Date}).next().toDate()}catch{}j?c.updateScheduledFunction(j.id,{name:g.name,functionId:h.id,cronExpression:g.cronExpression,timezone:g.timezone||"UTC",description:g.description,enabled:g.enabled??!0,config:g.config||{},nextRunAt:e}):c.createScheduledFunction({name:g.name,functionId:h.id,cronExpression:g.cronExpression,timezone:g.timezone||"UTC",description:g.description,enabled:g.enabled??!0,config:g.config||{},nextRunAt:e});let k=c.getScheduledFunctionByName(g.name),l=`/.server/scheduled-functions/${g.name}.json`;return u.NextResponse.json({success:!0,file:{path:l,content:(0,x.V7)(k,h.name),isReadOnly:!1}})}(e,f,h);return u.NextResponse.json({success:!1,error:`Unrecognized server context path: ${e}`},{status:400})}catch(a){if(a instanceof Error&&"Unauthorized"===a.message)return u.NextResponse.json({success:!1,error:"Unauthorized"},{status:401});return console.error("[API] Server context mutation failed:",a),u.NextResponse.json({success:!1,error:"Mutation failed"},{status:500})}}let B=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/admin/deployments/[id]/server-context/mutate/route",pathname:"/api/admin/deployments/[id]/server-context/mutate",filename:"route",bundlePath:"app/api/admin/deployments/[id]/server-context/mutate/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/deployments/[id]/server-context/mutate/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:C,workUnitAsyncStorage:D,serverHooks:E}=B;function F(){return(0,g.patchFetch)({workAsyncStorage:C,workUnitAsyncStorage:D})}async function G(a,b,c){var d;let e="/api/admin/deployments/[id]/server-context/mutate/route";"/index"===e&&(e="/");let g=await B.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:y,routerServerContext:z,isOnDemandRevalidate:A,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(y.dynamicRoutes[E]||y.routes[D]);if(F&&!x){let a=!!y.routes[D],b=y.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||B.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===B.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:y,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>B.onRequestError(a,b,d,z)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>B.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&A&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await B.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:A})},z),b}},l=await B.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:A,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",A?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await B.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:A})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},85317:(a,b,c)=>{c.d(b,{hS:()=>f,V7:()=>i,e0:()=>h,HI:()=>g,K3:()=>k,Au:()=>n,xJ:()=>m,W8:()=>l});var d=c(5622),e=c.n(d);function f(a){return JSON.stringify({name:a.name,method:a.method,description:a.description,enabled:a.enabled,timeoutMs:a.timeoutMs||5e3,code:a.code},null,2)}function g(a){return JSON.stringify({name:a.name,description:a.description,enabled:a.enabled,code:a.code},null,2)}function h(a){return JSON.stringify({name:a.name,description:a.description||void 0,hasValue:a.hasValue},null,2)}function i(a,b){return JSON.stringify({name:a.name,description:a.description,functionName:b,cronExpression:a.cronExpression,timezone:a.timezone,enabled:a.enabled,config:a.config,lastRunAt:a.lastRunAt?.toISOString(),nextRunAt:a.nextRunAt?.toISOString(),lastStatus:a.lastStatus},null,2)}let j=["db","fetch","console","args","request","Response","server","secrets","atob","btoa"];function k(a){let b=[];if(!a||"object"!=typeof a)return{valid:!1,errors:["Invalid JSON: expected an object"]};a.name&&"string"==typeof a.name?/^[a-z0-9][a-z0-9-]*[a-z0-9]$|^[a-z0-9]$/.test(a.name)||b.push('Name must be lowercase letters, numbers, and hyphens only (e.g., "get-users")'):b.push('Missing or invalid "name" field');let c=["GET","POST","PUT","DELETE","ANY"];if(a.method&&"string"==typeof a.method?c.includes(a.method)||b.push(`Method must be one of: ${c.join(", ")}`):b.push('Missing or invalid "method" field'),a.code&&"string"==typeof a.code)try{Function(a.code)}catch(c){let a=c instanceof Error?c.message:String(c);b.push(`JavaScript syntax error: ${a}`)}else b.push('Missing or invalid "code" field');return void 0!==a.enabled&&"boolean"!=typeof a.enabled&&b.push('"enabled" must be a boolean'),void 0!==a.timeoutMs&&("number"!=typeof a.timeoutMs?b.push('"timeoutMs" must be a number'):(a.timeoutMs<1e3||a.timeoutMs>3e4)&&b.push("Timeout must be between 1000 and 30000 ms")),{valid:0===b.length,errors:b}}function l(a){let b=[];if(!a||"object"!=typeof a)return{valid:!1,errors:["Invalid JSON: expected an object"]};if(a.name&&"string"==typeof a.name?/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(a.name)?j.includes(a.name)&&b.push(`Cannot use reserved name: ${a.name}`):b.push('Name must be a valid JavaScript identifier (e.g., "validateAuth", "formatPrice")'):b.push('Missing or invalid "name" field'),a.code&&"string"==typeof a.code)try{Function("args","db","fetch","console",a.code)}catch(c){let a=c instanceof Error?c.message:String(c);b.push(`JavaScript syntax error: ${a}`)}else b.push('Missing or invalid "code" field');return void 0!==a.enabled&&"boolean"!=typeof a.enabled&&b.push('"enabled" must be a boolean'),{valid:0===b.length,errors:b}}function m(a){let b=[];return a&&"object"==typeof a?(a.name&&"string"==typeof a.name?/^[A-Z][A-Z0-9_]*$/.test(a.name)?a.name.length>64&&b.push("Name must be 64 characters or less"):b.push("Name must be SCREAMING_SNAKE_CASE (e.g., MY_API_KEY, SMTP_PASSWORD)"):b.push('Missing or invalid "name" field'),void 0!==a.description&&"string"!=typeof a.description&&b.push('"description" must be a string'),{valid:0===b.length,errors:b}):{valid:!1,errors:["Invalid JSON: expected an object"]}}function n(a){let b=[];if(!a||"object"!=typeof a)return{valid:!1,errors:["Invalid JSON: expected an object"]};if(a.name&&"string"==typeof a.name?/^[a-z0-9][a-z0-9-]*[a-z0-9]$|^[a-z0-9]$/.test(a.name)||b.push("Name must be lowercase letters, numbers, and hyphens only"):b.push('Missing or invalid "name" field'),a.functionName&&"string"==typeof a.functionName||b.push('Missing or invalid "functionName" field'),a.cronExpression&&"string"==typeof a.cronExpression)try{e().parseExpression(a.cronExpression)}catch{b.push("Invalid cron expression")}else b.push('Missing or invalid "cronExpression" field');if(void 0!==a.timezone)if("string"!=typeof a.timezone)b.push('"timezone" must be a string');else try{Intl.DateTimeFormat(void 0,{timeZone:a.timezone})}catch{b.push(`Invalid timezone: ${a.timezone}`)}return void 0!==a.enabled&&"boolean"!=typeof a.enabled&&b.push('"enabled" must be a boolean'),void 0!==a.config&&("object"!=typeof a.config||null===a.config||Array.isArray(a.config))&&b.push('"config" must be a plain object'),{valid:0===b.length,errors:b}}},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("../../../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,8215,3343],()=>b(b.s=83523));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/admin/deployments/[id]/server-context/mutate/route.js.nft.json b/.next/server/app/api/admin/deployments/[id]/server-context/mutate/route.js.nft.json new file mode 100644 index 0000000000000000000000000000000000000000..ee1c7fc316b549143059df8aeb9fb77956f9c7f5 --- /dev/null +++ b/.next/server/app/api/admin/deployments/[id]/server-context/mutate/route.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../../../../../../data/osws.sqlite","../../../../../../../../../data/osws.sqlite-shm","../../../../../../../../../data/osws.sqlite-wal","../../../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite","../../../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-shm","../../../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-wal","../../../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite","../../../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-shm","../../../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-wal","../../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/analytics.sqlite","../../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite","../../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-shm","../../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-wal","../../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/analytics.sqlite","../../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite","../../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-shm","../../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-wal","../../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/analytics.sqlite","../../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite","../../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-shm","../../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-wal","../../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/analytics.sqlite","../../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite","../../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-shm","../../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-wal","../../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/analytics.sqlite","../../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite","../../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-shm","../../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-wal","../../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/analytics.sqlite","../../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite","../../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-shm","../../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-wal","../../../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../../../node_modules/bindings/bindings.js","../../../../../../../../../node_modules/bindings/package.json","../../../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../../../node_modules/next/package.json","../../../../../../../../../package.json","../../../../../../../../package.json","../../../../../../../chunks/1692.js","../../../../../../../chunks/3343.js","../../../../../../../chunks/4586.js","../../../../../../../chunks/6151.js","../../../../../../../chunks/8215.js","../../../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/admin/sites/[id]/functions/[functionId]/logs/route_client-reference-manifest.js b/.next/server/app/api/admin/deployments/[id]/server-context/mutate/route_client-reference-manifest.js similarity index 76% rename from .next/server/app/api/admin/sites/[id]/functions/[functionId]/logs/route_client-reference-manifest.js rename to .next/server/app/api/admin/deployments/[id]/server-context/mutate/route_client-reference-manifest.js index 6f8936161d73efd23f0c73fd463e5cef43b2677f..158a036bc514a19c0d9c4da24825d9e15d0c5d05 100644 --- a/.next/server/app/api/admin/sites/[id]/functions/[functionId]/logs/route_client-reference-manifest.js +++ b/.next/server/app/api/admin/deployments/[id]/server-context/mutate/route_client-reference-manifest.js @@ -1 +1 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/admin/sites/[id]/functions/[functionId]/logs/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/sites/[id]/functions/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/sites/[id]/functions/[functionId]/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/sites/[id]/functions/[functionId]/logs/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/admin/deployments/[id]/server-context/mutate/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/deployments/[id]/server-context/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/deployments/[id]/server-context/mutate/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/admin/deployments/[id]/server-context/route.js b/.next/server/app/api/admin/deployments/[id]/server-context/route.js new file mode 100644 index 0000000000000000000000000000000000000000..1a5602caee2ef979f4b84f493733955264bbb5ef --- /dev/null +++ b/.next/server/app/api/admin/deployments/[id]/server-context/route.js @@ -0,0 +1 @@ +"use strict";(()=>{var a={};a.id=3624,a.ids=[3624],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},4446:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>D,patchFetch:()=>C,routeModule:()=>y,serverHooks:()=>B,workAsyncStorage:()=>z,workUnitAsyncStorage:()=>A});var d={};c.r(d),c.d(d,{GET:()=>x});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(32907),w=c(85317);async function x(a,b){try{let{id:a}=await b.params,c=(0,v.q)();await c.init();let d=await c.getDeployment(a);if(!d)return u.NextResponse.json({error:"Deployment not found"},{status:404});let e=c.getDeploymentDatabaseForAnalytics(a);if(!e)return u.NextResponse.json({error:"Deployment database not available"},{status:500});let f=[];f.push({path:"/.server/db/schema.sql",content:e.getSchemaForExport(),isReadOnly:!0});let g=e.listSecrets();for(let a of g)f.push({path:`/.server/secrets/${a.name}.json`,content:(0,w.e0)(a),isReadOnly:!1});let h=e.listFunctions();for(let a of h)f.push({path:`/.server/edge-functions/${a.name}.json`,content:(0,w.hS)(a),isReadOnly:!1});let i=e.listServerFunctions();for(let a of i)f.push({path:`/.server/server-functions/${a.name}.json`,content:(0,w.HI)(a),isReadOnly:!1});let j=e.listScheduledFunctions();for(let a of j){let b=e.getFunction(a.functionId);f.push({path:`/.server/scheduled-functions/${a.name}.json`,content:(0,w.V7)(a,b?.name??"unknown"),isReadOnly:!1})}let k={projectId:d.projectId,runtimeDeploymentId:a,hasDatabase:!0,edgeFunctionCount:h.filter(a=>a.enabled).length,serverFunctionCount:i.filter(a=>a.enabled).length,secretCount:g.length,scheduledFunctionCount:j.filter(a=>a.enabled).length};return u.NextResponse.json({files:f,metadata:k})}catch(a){return console.error("[API] Failed to get server context:",a),u.NextResponse.json({error:"Failed to get server context"},{status:500})}}let y=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/admin/deployments/[id]/server-context/route",pathname:"/api/admin/deployments/[id]/server-context",filename:"route",bundlePath:"app/api/admin/deployments/[id]/server-context/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/deployments/[id]/server-context/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:z,workUnitAsyncStorage:A,serverHooks:B}=y;function C(){return(0,g.patchFetch)({workAsyncStorage:z,workUnitAsyncStorage:A})}async function D(a,b,c){var d;let e="/api/admin/deployments/[id]/server-context/route";"/index"===e&&(e="/");let g=await y.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:z,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(z.dynamicRoutes[E]||z.routes[D]);if(F&&!x){let a=!!z.routes[D],b=z.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||y.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===y.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:z,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>y.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>y.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await y.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await y.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:z,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await y.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{a.exports=require("path")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},85317:(a,b,c)=>{c.d(b,{hS:()=>f,V7:()=>i,e0:()=>h,HI:()=>g,K3:()=>k,Au:()=>n,xJ:()=>m,W8:()=>l});var d=c(5622),e=c.n(d);function f(a){return JSON.stringify({name:a.name,method:a.method,description:a.description,enabled:a.enabled,timeoutMs:a.timeoutMs||5e3,code:a.code},null,2)}function g(a){return JSON.stringify({name:a.name,description:a.description,enabled:a.enabled,code:a.code},null,2)}function h(a){return JSON.stringify({name:a.name,description:a.description||void 0,hasValue:a.hasValue},null,2)}function i(a,b){return JSON.stringify({name:a.name,description:a.description,functionName:b,cronExpression:a.cronExpression,timezone:a.timezone,enabled:a.enabled,config:a.config,lastRunAt:a.lastRunAt?.toISOString(),nextRunAt:a.nextRunAt?.toISOString(),lastStatus:a.lastStatus},null,2)}let j=["db","fetch","console","args","request","Response","server","secrets","atob","btoa"];function k(a){let b=[];if(!a||"object"!=typeof a)return{valid:!1,errors:["Invalid JSON: expected an object"]};a.name&&"string"==typeof a.name?/^[a-z0-9][a-z0-9-]*[a-z0-9]$|^[a-z0-9]$/.test(a.name)||b.push('Name must be lowercase letters, numbers, and hyphens only (e.g., "get-users")'):b.push('Missing or invalid "name" field');let c=["GET","POST","PUT","DELETE","ANY"];if(a.method&&"string"==typeof a.method?c.includes(a.method)||b.push(`Method must be one of: ${c.join(", ")}`):b.push('Missing or invalid "method" field'),a.code&&"string"==typeof a.code)try{Function(a.code)}catch(c){let a=c instanceof Error?c.message:String(c);b.push(`JavaScript syntax error: ${a}`)}else b.push('Missing or invalid "code" field');return void 0!==a.enabled&&"boolean"!=typeof a.enabled&&b.push('"enabled" must be a boolean'),void 0!==a.timeoutMs&&("number"!=typeof a.timeoutMs?b.push('"timeoutMs" must be a number'):(a.timeoutMs<1e3||a.timeoutMs>3e4)&&b.push("Timeout must be between 1000 and 30000 ms")),{valid:0===b.length,errors:b}}function l(a){let b=[];if(!a||"object"!=typeof a)return{valid:!1,errors:["Invalid JSON: expected an object"]};if(a.name&&"string"==typeof a.name?/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(a.name)?j.includes(a.name)&&b.push(`Cannot use reserved name: ${a.name}`):b.push('Name must be a valid JavaScript identifier (e.g., "validateAuth", "formatPrice")'):b.push('Missing or invalid "name" field'),a.code&&"string"==typeof a.code)try{Function("args","db","fetch","console",a.code)}catch(c){let a=c instanceof Error?c.message:String(c);b.push(`JavaScript syntax error: ${a}`)}else b.push('Missing or invalid "code" field');return void 0!==a.enabled&&"boolean"!=typeof a.enabled&&b.push('"enabled" must be a boolean'),{valid:0===b.length,errors:b}}function m(a){let b=[];return a&&"object"==typeof a?(a.name&&"string"==typeof a.name?/^[A-Z][A-Z0-9_]*$/.test(a.name)?a.name.length>64&&b.push("Name must be 64 characters or less"):b.push("Name must be SCREAMING_SNAKE_CASE (e.g., MY_API_KEY, SMTP_PASSWORD)"):b.push('Missing or invalid "name" field'),void 0!==a.description&&"string"!=typeof a.description&&b.push('"description" must be a string'),{valid:0===b.length,errors:b}):{valid:!1,errors:["Invalid JSON: expected an object"]}}function n(a){let b=[];if(!a||"object"!=typeof a)return{valid:!1,errors:["Invalid JSON: expected an object"]};if(a.name&&"string"==typeof a.name?/^[a-z0-9][a-z0-9-]*[a-z0-9]$|^[a-z0-9]$/.test(a.name)||b.push("Name must be lowercase letters, numbers, and hyphens only"):b.push('Missing or invalid "name" field'),a.functionName&&"string"==typeof a.functionName||b.push('Missing or invalid "functionName" field'),a.cronExpression&&"string"==typeof a.cronExpression)try{e().parseExpression(a.cronExpression)}catch{b.push("Invalid cron expression")}else b.push('Missing or invalid "cronExpression" field');if(void 0!==a.timezone)if("string"!=typeof a.timezone)b.push('"timezone" must be a string');else try{Intl.DateTimeFormat(void 0,{timeZone:a.timezone})}catch{b.push(`Invalid timezone: ${a.timezone}`)}return void 0!==a.enabled&&"boolean"!=typeof a.enabled&&b.push('"enabled" must be a boolean'),void 0!==a.config&&("object"!=typeof a.config||null===a.config||Array.isArray(a.config))&&b.push('"config" must be a plain object'),{valid:0===b.length,errors:b}}},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("../../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,8215,3343],()=>b(b.s=4446));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/admin/deployments/[id]/server-context/route.js.nft.json b/.next/server/app/api/admin/deployments/[id]/server-context/route.js.nft.json new file mode 100644 index 0000000000000000000000000000000000000000..da8aa989cb212bda7ff59a35a801b3991f3e1cde --- /dev/null +++ b/.next/server/app/api/admin/deployments/[id]/server-context/route.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../../../../../data/osws.sqlite","../../../../../../../../data/osws.sqlite-shm","../../../../../../../../data/osws.sqlite-wal","../../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite","../../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-shm","../../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-wal","../../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite","../../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-shm","../../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-wal","../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/analytics.sqlite","../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite","../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-shm","../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-wal","../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/analytics.sqlite","../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite","../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-shm","../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-wal","../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/analytics.sqlite","../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite","../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-shm","../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-wal","../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/analytics.sqlite","../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite","../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-shm","../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-wal","../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/analytics.sqlite","../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite","../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-shm","../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-wal","../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/analytics.sqlite","../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite","../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-shm","../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-wal","../../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../../node_modules/bindings/bindings.js","../../../../../../../../node_modules/bindings/package.json","../../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../../node_modules/next/package.json","../../../../../../../../package.json","../../../../../../../package.json","../../../../../../chunks/1692.js","../../../../../../chunks/3343.js","../../../../../../chunks/4586.js","../../../../../../chunks/8215.js","../../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/admin/deployments/[id]/server-context/route_client-reference-manifest.js b/.next/server/app/api/admin/deployments/[id]/server-context/route_client-reference-manifest.js new file mode 100644 index 0000000000000000000000000000000000000000..be117ee9080fdaabebee89f142ab5f30e6e8c240 --- /dev/null +++ b/.next/server/app/api/admin/deployments/[id]/server-context/route_client-reference-manifest.js @@ -0,0 +1 @@ +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/admin/deployments/[id]/server-context/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/deployments/[id]/server-context/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/admin/deployments/[id]/server-functions/[functionId]/route.js b/.next/server/app/api/admin/deployments/[id]/server-functions/[functionId]/route.js new file mode 100644 index 0000000000000000000000000000000000000000..bcca5e654f4b491e7b86532f67a6ae93cb1e553d --- /dev/null +++ b/.next/server/app/api/admin/deployments/[id]/server-functions/[functionId]/route.js @@ -0,0 +1 @@ +"use strict";(()=>{var a={};a.id=8648,a.ids=[8648],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},3976:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{DELETE:()=>l,GET:()=>j,PUT:()=>k});var e=c(10641),f=c(39588),g=c(32907),h=c(19958),i=a([h]);async function j(a,{params:b}){try{await (0,f.oC)();let{id:a,functionId:c}=await b,d=(0,g.q)();await d.init();let h=await d.getDeployment?.(a);if(!h)return e.NextResponse.json({error:"Deployment not found"},{status:404});if(!h.databaseEnabled)return e.NextResponse.json({error:"Deployment database not enabled"},{status:400});let i=d.getDeploymentDatabaseForAnalytics(a);if(!i)return e.NextResponse.json({error:"Deployment database not available"},{status:500});let j=i.getServerFunction(c);if(!j)return e.NextResponse.json({error:"Server function not found"},{status:404});return e.NextResponse.json({function:j})}catch(a){if(a instanceof Error&&"Unauthorized"===a.message)return e.NextResponse.json({error:"Unauthorized"},{status:401});return console.error("[Admin Server Functions API] Error:",a),e.NextResponse.json({error:"Internal server error"},{status:500})}}async function k(a,{params:b}){try{await (0,f.oC)();let{id:c,functionId:d}=await b,i=await a.json(),j=(0,g.q)();await j.init();let k=await j.getDeployment?.(c);if(!k)return e.NextResponse.json({error:"Deployment not found"},{status:404});if(!k.databaseEnabled)return e.NextResponse.json({error:"Deployment database not enabled"},{status:400});let l=j.getDeploymentDatabaseForAnalytics(c);if(!l)return e.NextResponse.json({error:"Deployment database not available"},{status:500});let m=l.getServerFunction(d);if(!m)return e.NextResponse.json({error:"Server function not found"},{status:404});let n={};if(void 0!==i.name&&i.name!==m.name){let a=(0,h.Rv)(i.name);if(a)return e.NextResponse.json({error:a},{status:400});let b=l.getServerFunctionByName(i.name);if(b&&b.id!==d)return e.NextResponse.json({error:"A server function with this name already exists"},{status:409});n.name=i.name}if(void 0!==i.code){let a=(0,h.c2)(i.code);if(a)return e.NextResponse.json({error:a},{status:400});n.code=i.code}void 0!==i.description&&(n.description=i.description),void 0!==i.enabled&&(n.enabled=i.enabled),Object.keys(n).length>0&&l.updateServerFunction(d,n);let o=l.getServerFunction(d);return e.NextResponse.json({function:o})}catch(a){if(a instanceof Error&&"Unauthorized"===a.message)return e.NextResponse.json({error:"Unauthorized"},{status:401});return console.error("[Admin Server Functions API] Error:",a),e.NextResponse.json({error:"Internal server error"},{status:500})}}async function l(a,{params:b}){try{await (0,f.oC)();let{id:a,functionId:c}=await b,d=(0,g.q)();await d.init();let h=await d.getDeployment?.(a);if(!h)return e.NextResponse.json({error:"Deployment not found"},{status:404});if(!h.databaseEnabled)return e.NextResponse.json({error:"Deployment database not enabled"},{status:400});let i=d.getDeploymentDatabaseForAnalytics(a);if(!i)return e.NextResponse.json({error:"Deployment database not available"},{status:500});if(!i.getServerFunction(c))return e.NextResponse.json({error:"Server function not found"},{status:404});return i.deleteServerFunction(c),e.NextResponse.json({success:!0})}catch(a){if(a instanceof Error&&"Unauthorized"===a.message)return e.NextResponse.json({error:"Unauthorized"},{status:401});return console.error("[Admin Server Functions API] Error:",a),e.NextResponse.json({error:"Internal server error"},{status:500})}}h=(i.then?(await i)():i)[0],d()}catch(a){d(a)}})},5205:a=>{a.exports=import("quickjs-emscripten-core")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},17915:a=>{a.exports=import("@jitl/quickjs-wasmfile-release-sync")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},54774:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{handler:()=>x,patchFetch:()=>w,routeModule:()=>y,serverHooks:()=>B,workAsyncStorage:()=>z,workUnitAsyncStorage:()=>A});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(3976),v=a([u]);u=(v.then?(await v)():v)[0];let y=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/admin/deployments/[id]/server-functions/[functionId]/route",pathname:"/api/admin/deployments/[id]/server-functions/[functionId]",filename:"route",bundlePath:"app/api/admin/deployments/[id]/server-functions/[functionId]/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/deployments/[id]/server-functions/[functionId]/route.ts",nextConfigOutput:"standalone",userland:u}),{workAsyncStorage:z,workUnitAsyncStorage:A,serverHooks:B}=y;function w(){return(0,g.patchFetch)({workAsyncStorage:z,workUnitAsyncStorage:A})}async function x(a,b,c){var d;let e="/api/admin/deployments/[id]/server-functions/[functionId]/route";"/index"===e&&(e="/");let g=await y.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:z,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(z.dynamicRoutes[E]||z.routes[D]);if(F&&!x){let a=!!z.routes[D],b=z.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||y.isDev||x||(G=D,G="/index"===G?"/":G);let H=!0===y.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:z,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>y.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>y.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await y.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await y.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:z,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await y.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("../../../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,3343,9958],()=>b(b.s=54774));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/admin/deployments/[id]/server-functions/[functionId]/route.js.nft.json b/.next/server/app/api/admin/deployments/[id]/server-functions/[functionId]/route.js.nft.json new file mode 100644 index 0000000000000000000000000000000000000000..08fc1cc6afa2be6fde129b3e04b49654118bf014 --- /dev/null +++ b/.next/server/app/api/admin/deployments/[id]/server-functions/[functionId]/route.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../../../../../../data/osws.sqlite","../../../../../../../../../data/osws.sqlite-shm","../../../../../../../../../data/osws.sqlite-wal","../../../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite","../../../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-shm","../../../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-wal","../../../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite","../../../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-shm","../../../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-wal","../../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/analytics.sqlite","../../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite","../../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-shm","../../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-wal","../../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/analytics.sqlite","../../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite","../../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-shm","../../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-wal","../../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/analytics.sqlite","../../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite","../../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-shm","../../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-wal","../../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/analytics.sqlite","../../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite","../../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-shm","../../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-wal","../../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/analytics.sqlite","../../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite","../../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-shm","../../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-wal","../../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/analytics.sqlite","../../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite","../../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-shm","../../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-wal","../../../../../../../../../node_modules/@jitl/quickjs-ffi-types/dist/index.js","../../../../../../../../../node_modules/@jitl/quickjs-ffi-types/dist/index.mjs","../../../../../../../../../node_modules/@jitl/quickjs-ffi-types/package.json","../../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/emscripten-module.mjs","../../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/emscripten-module.wasm","../../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/ffi.mjs","../../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/index.js","../../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/index.mjs","../../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/package.json","../../../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../../../node_modules/bindings/bindings.js","../../../../../../../../../node_modules/bindings/package.json","../../../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../../../node_modules/next/package.json","../../../../../../../../../node_modules/quickjs-emscripten-core/dist/chunk-JTKJZQYV.mjs","../../../../../../../../../node_modules/quickjs-emscripten-core/dist/chunk-PEXOKBOE.mjs","../../../../../../../../../node_modules/quickjs-emscripten-core/dist/index.js","../../../../../../../../../node_modules/quickjs-emscripten-core/dist/index.mjs","../../../../../../../../../node_modules/quickjs-emscripten-core/dist/module-6F3E5H7Y.mjs","../../../../../../../../../node_modules/quickjs-emscripten-core/dist/module-asyncify-R6PWJ6ZV.mjs","../../../../../../../../../node_modules/quickjs-emscripten-core/package.json","../../../../../../../../../package.json","../../../../../../../../package.json","../../../../../../../chunks/1692.js","../../../../../../../chunks/3343.js","../../../../../../../chunks/4586.js","../../../../../../../chunks/6151.js","../../../../../../../chunks/9958.js","../../../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/admin/deployments/[id]/server-functions/[functionId]/route_client-reference-manifest.js b/.next/server/app/api/admin/deployments/[id]/server-functions/[functionId]/route_client-reference-manifest.js new file mode 100644 index 0000000000000000000000000000000000000000..4f296a32bc57437baf288f849a356ad3e6deb9c5 --- /dev/null +++ b/.next/server/app/api/admin/deployments/[id]/server-functions/[functionId]/route_client-reference-manifest.js @@ -0,0 +1 @@ +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/admin/deployments/[id]/server-functions/[functionId]/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/deployments/[id]/server-functions/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/deployments/[id]/server-functions/[functionId]/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/admin/deployments/[id]/server-functions/route.js b/.next/server/app/api/admin/deployments/[id]/server-functions/route.js new file mode 100644 index 0000000000000000000000000000000000000000..958eedfdf5965c60dfa0de834edd4d703d89d4e4 --- /dev/null +++ b/.next/server/app/api/admin/deployments/[id]/server-functions/route.js @@ -0,0 +1 @@ +"use strict";(()=>{var a={};a.id=694,a.ids=[694],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},5205:a=>{a.exports=import("quickjs-emscripten-core")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},17915:a=>{a.exports=import("@jitl/quickjs-wasmfile-release-sync")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},28924:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{handler:()=>x,patchFetch:()=>w,routeModule:()=>y,serverHooks:()=>B,workAsyncStorage:()=>z,workUnitAsyncStorage:()=>A});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(99728),v=a([u]);u=(v.then?(await v)():v)[0];let y=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/admin/deployments/[id]/server-functions/route",pathname:"/api/admin/deployments/[id]/server-functions",filename:"route",bundlePath:"app/api/admin/deployments/[id]/server-functions/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/deployments/[id]/server-functions/route.ts",nextConfigOutput:"standalone",userland:u}),{workAsyncStorage:z,workUnitAsyncStorage:A,serverHooks:B}=y;function w(){return(0,g.patchFetch)({workAsyncStorage:z,workUnitAsyncStorage:A})}async function x(a,b,c){var d;let e="/api/admin/deployments/[id]/server-functions/route";"/index"===e&&(e="/");let g=await y.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:z,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(z.dynamicRoutes[E]||z.routes[D]);if(F&&!x){let a=!!z.routes[D],b=z.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||y.isDev||x||(G=D,G="/index"===G?"/":G);let H=!0===y.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:z,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>y.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>y.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await y.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await y.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:z,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await y.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},99728:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>j,POST:()=>k});var e=c(10641),f=c(39588),g=c(32907),h=c(19958),i=a([h]);async function j(a,{params:b}){try{await (0,f.oC)();let{id:a}=await b,c=(0,g.q)();await c.init();let d=await c.getDeployment?.(a);if(!d)return e.NextResponse.json({error:"Deployment not found"},{status:404});if(!d.databaseEnabled)return e.NextResponse.json({error:"Deployment database not enabled"},{status:400});let h=c.getDeploymentDatabaseForAnalytics(a);if(!h)return e.NextResponse.json({error:"Deployment database not available"},{status:500});let i=h.listServerFunctions();return e.NextResponse.json({functions:i})}catch(a){if(a instanceof Error&&"Unauthorized"===a.message)return e.NextResponse.json({error:"Unauthorized"},{status:401});return console.error("[Admin Server Functions API] Error:",a),e.NextResponse.json({error:"Internal server error"},{status:500})}}async function k(a,{params:b}){try{await (0,f.oC)();let{id:c}=await b,d=await a.json();if(!d.name)return e.NextResponse.json({error:"Function name is required"},{status:400});if(!d.code)return e.NextResponse.json({error:"Function code is required"},{status:400});let i=(0,h.Rv)(d.name);if(i)return e.NextResponse.json({error:i},{status:400});let j=(0,h.c2)(d.code);if(j)return e.NextResponse.json({error:j},{status:400});let k=(0,g.q)();await k.init();let l=await k.getDeployment?.(c);if(!l)return e.NextResponse.json({error:"Deployment not found"},{status:404});l.databaseEnabled||(l.databaseEnabled=!0,await k.enableDeploymentDatabase(c),await k.updateDeployment?.(l));let m=k.getDeploymentDatabaseForAnalytics(c);if(!m)return e.NextResponse.json({error:"Deployment database not available"},{status:500});if(m.getServerFunctionByName(d.name))return e.NextResponse.json({error:"A server function with this name already exists"},{status:409});let n=m.createServerFunction({name:d.name,description:d.description||void 0,code:d.code,enabled:!1!==d.enabled}),o=m.getServerFunction(n);return e.NextResponse.json({function:o},{status:201})}catch(a){if(a instanceof Error&&"Unauthorized"===a.message)return e.NextResponse.json({error:"Unauthorized"},{status:401});return console.error("[Admin Server Functions API] Error:",a),e.NextResponse.json({error:"Internal server error"},{status:500})}}h=(i.then?(await i)():i)[0],d()}catch(a){d(a)}})}};var b=require("../../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,3343,9958],()=>b(b.s=28924));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/admin/deployments/[id]/server-functions/route.js.nft.json b/.next/server/app/api/admin/deployments/[id]/server-functions/route.js.nft.json new file mode 100644 index 0000000000000000000000000000000000000000..01fb0cbdd028dbfe9e22231214c578da6a41d245 --- /dev/null +++ b/.next/server/app/api/admin/deployments/[id]/server-functions/route.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../../../../../data/osws.sqlite","../../../../../../../../data/osws.sqlite-shm","../../../../../../../../data/osws.sqlite-wal","../../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite","../../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-shm","../../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-wal","../../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite","../../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-shm","../../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-wal","../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/analytics.sqlite","../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite","../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-shm","../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-wal","../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/analytics.sqlite","../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite","../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-shm","../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-wal","../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/analytics.sqlite","../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite","../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-shm","../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-wal","../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/analytics.sqlite","../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite","../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-shm","../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-wal","../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/analytics.sqlite","../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite","../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-shm","../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-wal","../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/analytics.sqlite","../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite","../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-shm","../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-wal","../../../../../../../../node_modules/@jitl/quickjs-ffi-types/dist/index.js","../../../../../../../../node_modules/@jitl/quickjs-ffi-types/dist/index.mjs","../../../../../../../../node_modules/@jitl/quickjs-ffi-types/package.json","../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/emscripten-module.mjs","../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/emscripten-module.wasm","../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/ffi.mjs","../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/index.js","../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/index.mjs","../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/package.json","../../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../../node_modules/bindings/bindings.js","../../../../../../../../node_modules/bindings/package.json","../../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../../node_modules/next/package.json","../../../../../../../../node_modules/quickjs-emscripten-core/dist/chunk-JTKJZQYV.mjs","../../../../../../../../node_modules/quickjs-emscripten-core/dist/chunk-PEXOKBOE.mjs","../../../../../../../../node_modules/quickjs-emscripten-core/dist/index.js","../../../../../../../../node_modules/quickjs-emscripten-core/dist/index.mjs","../../../../../../../../node_modules/quickjs-emscripten-core/dist/module-6F3E5H7Y.mjs","../../../../../../../../node_modules/quickjs-emscripten-core/dist/module-asyncify-R6PWJ6ZV.mjs","../../../../../../../../node_modules/quickjs-emscripten-core/package.json","../../../../../../../../package.json","../../../../../../../package.json","../../../../../../chunks/1692.js","../../../../../../chunks/3343.js","../../../../../../chunks/4586.js","../../../../../../chunks/6151.js","../../../../../../chunks/9958.js","../../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/admin/sites/[id]/functions/[functionId]/route_client-reference-manifest.js b/.next/server/app/api/admin/deployments/[id]/server-functions/route_client-reference-manifest.js similarity index 77% rename from .next/server/app/api/admin/sites/[id]/functions/[functionId]/route_client-reference-manifest.js rename to .next/server/app/api/admin/deployments/[id]/server-functions/route_client-reference-manifest.js index 6808d28cb2c38dbc1f7ec0c732f699b155110696..199ab979fd1b65df8641e01c1b52353fc00b6b39 100644 --- a/.next/server/app/api/admin/sites/[id]/functions/[functionId]/route_client-reference-manifest.js +++ b/.next/server/app/api/admin/deployments/[id]/server-functions/route_client-reference-manifest.js @@ -1 +1 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/admin/sites/[id]/functions/[functionId]/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/sites/[id]/functions/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/sites/[id]/functions/[functionId]/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/admin/deployments/[id]/server-functions/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/deployments/[id]/server-functions/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/admin/run-migrations/route.js b/.next/server/app/api/admin/run-migrations/route.js index 820313c924f5f228583029e499746bfc1bf14a76..a97bf6d6428f8b3d2d60f5c9154a61dcbae85191 100644 --- a/.next/server/app/api/admin/run-migrations/route.js +++ b/.next/server/app/api/admin/run-migrations/route.js @@ -1 +1 @@ -"use strict";(()=>{var a={};a.id=729,a.ids=[729],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},72514:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>D,patchFetch:()=>C,routeModule:()=>y,serverHooks:()=>B,workAsyncStorage:()=>z,workUnitAsyncStorage:()=>A});var d={};c.r(d),c.d(d,{POST:()=>x});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(39588),w=c(97778);async function x(a){try{if(!await (0,v.Ht)())return u.NextResponse.json({error:"Unauthorized"},{status:401});let{action:b}=await a.json(),c=(0,w.q)();if("status"===b)return await c.init(),u.NextResponse.json({success:!0,database:"SQLite",message:"Database initialized and ready. SQLite uses automatic schema creation."});if("reinitialize"===b)return await c.init(),u.NextResponse.json({success:!0,message:"Database reinitialized successfully."});if("list"===b)return u.NextResponse.json({success:!0,migrations:[],message:"SQLite uses automatic schema creation. No migration tracking required."});return u.NextResponse.json({error:'Invalid action. Use "status", "reinitialize", or "list".'},{status:400})}catch(a){return console.error("[Database Admin API] Error:",a),u.NextResponse.json({error:"Failed to perform database operation"},{status:500})}}let y=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/admin/run-migrations/route",pathname:"/api/admin/run-migrations",filename:"route",bundlePath:"app/api/admin/run-migrations/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/run-migrations/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:z,workUnitAsyncStorage:A,serverHooks:B}=y;function C(){return(0,g.patchFetch)({workAsyncStorage:z,workUnitAsyncStorage:A})}async function D(a,b,c){var d;let e="/api/admin/run-migrations/route";"/index"===e&&(e="/");let g=await y.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:z,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(z.dynamicRoutes[E]||z.routes[D]);if(F&&!x){let a=!!z.routes[D],b=z.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||y.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===y.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:z,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>y.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>y.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await y.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await y.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:z,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await y.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,726],()=>b(b.s=72514));module.exports=c})(); \ No newline at end of file +"use strict";(()=>{var a={};a.id=729,a.ids=[729],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},72514:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>D,patchFetch:()=>C,routeModule:()=>y,serverHooks:()=>B,workAsyncStorage:()=>z,workUnitAsyncStorage:()=>A});var d={};c.r(d),c.d(d,{POST:()=>x});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(39588),w=c(32907);async function x(a){try{if(!await (0,v.Ht)())return u.NextResponse.json({error:"Unauthorized"},{status:401});let{action:b}=await a.json(),c=(0,w.q)();if("status"===b)return await c.init(),u.NextResponse.json({success:!0,database:"SQLite",message:"Database initialized and ready. SQLite uses automatic schema creation."});if("reinitialize"===b)return await c.init(),u.NextResponse.json({success:!0,message:"Database reinitialized successfully."});if("list"===b)return u.NextResponse.json({success:!0,migrations:[],message:"SQLite uses automatic schema creation. No migration tracking required."});return u.NextResponse.json({error:'Invalid action. Use "status", "reinitialize", or "list".'},{status:400})}catch(a){return console.error("[Database Admin API] Error:",a),u.NextResponse.json({error:"Failed to perform database operation"},{status:500})}}let y=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/admin/run-migrations/route",pathname:"/api/admin/run-migrations",filename:"route",bundlePath:"app/api/admin/run-migrations/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/run-migrations/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:z,workUnitAsyncStorage:A,serverHooks:B}=y;function C(){return(0,g.patchFetch)({workAsyncStorage:z,workUnitAsyncStorage:A})}async function D(a,b,c){var d;let e="/api/admin/run-migrations/route";"/index"===e&&(e="/");let g=await y.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:z,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(z.dynamicRoutes[E]||z.routes[D]);if(F&&!x){let a=!!z.routes[D],b=z.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||y.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===y.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:z,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>y.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>y.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await y.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await y.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:z,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await y.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,3343],()=>b(b.s=72514));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/admin/run-migrations/route.js.nft.json b/.next/server/app/api/admin/run-migrations/route.js.nft.json index d7430d51ec26b60a3b1db7e68bd4a53160f2d344..54f4d5d4911d0f745374413a7934569ddbf7180d 100644 --- a/.next/server/app/api/admin/run-migrations/route.js.nft.json +++ b/.next/server/app/api/admin/run-migrations/route.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../data/osws.sqlite","../../../../../../data/osws.sqlite-shm","../../../../../../data/osws.sqlite-wal","../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../node_modules/better-sqlite3/package.json","../../../../../../node_modules/bindings/bindings.js","../../../../../../node_modules/bindings/package.json","../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../node_modules/next/package.json","../../../../../../package.json","../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite","../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-shm","../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-wal","../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite","../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-shm","../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-wal","../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite","../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-shm","../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-wal","../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite","../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-shm","../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-wal","../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite","../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-shm","../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-wal","../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite","../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-shm","../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-wal","../../../../../package.json","../../../../chunks/1692.js","../../../../chunks/4586.js","../../../../chunks/6151.js","../../../../chunks/726.js","../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../data/osws.sqlite","../../../../../../data/osws.sqlite-shm","../../../../../../data/osws.sqlite-wal","../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite","../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-shm","../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-wal","../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite","../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-shm","../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-wal","../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/analytics.sqlite","../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite","../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-shm","../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-wal","../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/analytics.sqlite","../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite","../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-shm","../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-wal","../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/analytics.sqlite","../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite","../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-shm","../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-wal","../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/analytics.sqlite","../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite","../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-shm","../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-wal","../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/analytics.sqlite","../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite","../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-shm","../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-wal","../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/analytics.sqlite","../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite","../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-shm","../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-wal","../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../node_modules/better-sqlite3/package.json","../../../../../../node_modules/bindings/bindings.js","../../../../../../node_modules/bindings/package.json","../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../node_modules/next/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1692.js","../../../../chunks/3343.js","../../../../chunks/4586.js","../../../../chunks/6151.js","../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/admin/run-migrations/route_client-reference-manifest.js b/.next/server/app/api/admin/run-migrations/route_client-reference-manifest.js index f2936c9ef6a6df807611fb777cb76622d3bb13e3..712691b4ff49699923bd910967e74fb5c3445a8a 100644 --- a/.next/server/app/api/admin/run-migrations/route_client-reference-manifest.js +++ b/.next/server/app/api/admin/run-migrations/route_client-reference-manifest.js @@ -1 +1 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/admin/run-migrations/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/run-migrations/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/admin/run-migrations/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/run-migrations/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/admin/sites/[id]/database/logs/route.js b/.next/server/app/api/admin/sites/[id]/database/logs/route.js deleted file mode 100644 index 0bf39a4530798758e4ff4176804052a49647d5ee..0000000000000000000000000000000000000000 --- a/.next/server/app/api/admin/sites/[id]/database/logs/route.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(()=>{var a={};a.id=9886,a.ids=[9886],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},4145:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>E,patchFetch:()=>D,routeModule:()=>z,serverHooks:()=>C,workAsyncStorage:()=>A,workUnitAsyncStorage:()=>B});var d={};c.r(d),c.d(d,{DELETE:()=>y,GET:()=>x});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(39588),w=c(97778);async function x(a,{params:b}){try{await (0,v.oC)();let{id:c}=await b,{searchParams:d}=new URL(a.url),e=Math.min(parseInt(d.get("limit")||"100"),1e3),f=(0,w.q)();await f.init();let g=await f.getSite?.(c);if(!g)return u.NextResponse.json({error:"Site not found"},{status:404});if(!g.databaseEnabled)return u.NextResponse.json({error:"Site database not enabled"},{status:400});let h=f.getSiteDatabaseForAnalytics(c);if(!h)return u.NextResponse.json({error:"Site database not available"},{status:500});let i=h.getRecentLogs(e),j=h.listFunctions(),k=Object.fromEntries(j.map(a=>[a.id,a.name])),l=i.map(a=>({...a,functionName:k[a.functionId]||"Unknown"}));return u.NextResponse.json({logs:l})}catch(a){if(a instanceof Error&&"Unauthorized"===a.message)return u.NextResponse.json({error:"Unauthorized"},{status:401});return console.error("[Admin Database API] Error:",a),u.NextResponse.json({error:"Internal server error"},{status:500})}}async function y(a,{params:b}){try{await (0,v.oC)();let{id:c}=await b,{searchParams:d}=new URL(a.url),e=d.get("functionId")||void 0,f=(0,w.q)();await f.init();let g=await f.getSite?.(c);if(!g)return u.NextResponse.json({error:"Site not found"},{status:404});if(!g.databaseEnabled)return u.NextResponse.json({error:"Site database not enabled"},{status:400});let h=f.getSiteDatabaseForAnalytics(c);if(!h)return u.NextResponse.json({error:"Site database not available"},{status:500});return h.clearFunctionLogs(e),u.NextResponse.json({success:!0})}catch(a){if(a instanceof Error&&"Unauthorized"===a.message)return u.NextResponse.json({error:"Unauthorized"},{status:401});return console.error("[Admin Database API] Error:",a),u.NextResponse.json({error:"Internal server error"},{status:500})}}let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/admin/sites/[id]/database/logs/route",pathname:"/api/admin/sites/[id]/database/logs",filename:"route",bundlePath:"app/api/admin/sites/[id]/database/logs/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/sites/[id]/database/logs/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:A,workUnitAsyncStorage:B,serverHooks:C}=z;function D(){return(0,g.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:B})}async function E(a,b,c){var d;let e="/api/admin/sites/[id]/database/logs/route";"/index"===e&&(e="/");let g=await z.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:y,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(y.dynamicRoutes[E]||y.routes[D]);if(F&&!x){let a=!!y.routes[D],b=y.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||z.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===z.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:y,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>z.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>z.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await z.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await z.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("../../../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,726],()=>b(b.s=4145));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/admin/sites/[id]/database/logs/route.js.nft.json b/.next/server/app/api/admin/sites/[id]/database/logs/route.js.nft.json deleted file mode 100644 index 4a48f71c88de4863341cabe79ff83e89b584a0d6..0000000000000000000000000000000000000000 --- a/.next/server/app/api/admin/sites/[id]/database/logs/route.js.nft.json +++ /dev/null @@ -1 +0,0 @@ -{"version":1,"files":["../../../../../../../../../data/osws.sqlite","../../../../../../../../../data/osws.sqlite-shm","../../../../../../../../../data/osws.sqlite-wal","../../../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../../../node_modules/bindings/bindings.js","../../../../../../../../../node_modules/bindings/package.json","../../../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../../../node_modules/next/package.json","../../../../../../../../../package.json","../../../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite","../../../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-shm","../../../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-wal","../../../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite","../../../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-shm","../../../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-wal","../../../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite","../../../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-shm","../../../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-wal","../../../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite","../../../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-shm","../../../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-wal","../../../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite","../../../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-shm","../../../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-wal","../../../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite","../../../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-shm","../../../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-wal","../../../../../../../../package.json","../../../../../../../chunks/1692.js","../../../../../../../chunks/4586.js","../../../../../../../chunks/6151.js","../../../../../../../chunks/726.js","../../../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/admin/sites/[id]/database/query/route.js b/.next/server/app/api/admin/sites/[id]/database/query/route.js deleted file mode 100644 index 93ccd447ea7c021c052645d34bc516e69782fa8e..0000000000000000000000000000000000000000 --- a/.next/server/app/api/admin/sites/[id]/database/query/route.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(()=>{var a={};a.id=9053,a.ids=[9053],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},49946:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>D,patchFetch:()=>C,routeModule:()=>y,serverHooks:()=>B,workAsyncStorage:()=>z,workUnitAsyncStorage:()=>A});var d={};c.r(d),c.d(d,{POST:()=>x});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(39588),w=c(97778);async function x(a,{params:b}){try{await (0,v.oC)();let{id:c}=await b,{sql:d}=await a.json();if(!d||"string"!=typeof d)return u.NextResponse.json({error:"SQL query is required"},{status:400});let e=(0,w.q)();await e.init();let f=await e.getSite?.(c);if(!f)return u.NextResponse.json({error:"Site not found"},{status:404});if(!f.databaseEnabled)return u.NextResponse.json({error:"Site database not enabled"},{status:400});let g=e.getSiteDatabaseForAnalytics(c);if(!g)return u.NextResponse.json({error:"Site database not available"},{status:500});try{let a=g.executeRawSQL(d);return u.NextResponse.json({success:!0,columns:a.columns,rows:a.rows,rowsAffected:a.rowsAffected})}catch(b){let a=b instanceof Error?b.message:"Query failed";return u.NextResponse.json({error:a},{status:400})}}catch(a){if(a instanceof Error&&"Unauthorized"===a.message)return u.NextResponse.json({error:"Unauthorized"},{status:401});return console.error("[Admin Database API] Error:",a),u.NextResponse.json({error:"Internal server error"},{status:500})}}let y=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/admin/sites/[id]/database/query/route",pathname:"/api/admin/sites/[id]/database/query",filename:"route",bundlePath:"app/api/admin/sites/[id]/database/query/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/sites/[id]/database/query/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:z,workUnitAsyncStorage:A,serverHooks:B}=y;function C(){return(0,g.patchFetch)({workAsyncStorage:z,workUnitAsyncStorage:A})}async function D(a,b,c){var d;let e="/api/admin/sites/[id]/database/query/route";"/index"===e&&(e="/");let g=await y.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:z,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(z.dynamicRoutes[E]||z.routes[D]);if(F&&!x){let a=!!z.routes[D],b=z.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||y.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===y.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:z,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>y.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>y.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await y.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await y.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:z,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await y.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("../../../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,726],()=>b(b.s=49946));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/admin/sites/[id]/database/query/route.js.nft.json b/.next/server/app/api/admin/sites/[id]/database/query/route.js.nft.json deleted file mode 100644 index 4a48f71c88de4863341cabe79ff83e89b584a0d6..0000000000000000000000000000000000000000 --- a/.next/server/app/api/admin/sites/[id]/database/query/route.js.nft.json +++ /dev/null @@ -1 +0,0 @@ -{"version":1,"files":["../../../../../../../../../data/osws.sqlite","../../../../../../../../../data/osws.sqlite-shm","../../../../../../../../../data/osws.sqlite-wal","../../../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../../../node_modules/bindings/bindings.js","../../../../../../../../../node_modules/bindings/package.json","../../../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../../../node_modules/next/package.json","../../../../../../../../../package.json","../../../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite","../../../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-shm","../../../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-wal","../../../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite","../../../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-shm","../../../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-wal","../../../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite","../../../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-shm","../../../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-wal","../../../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite","../../../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-shm","../../../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-wal","../../../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite","../../../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-shm","../../../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-wal","../../../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite","../../../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-shm","../../../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-wal","../../../../../../../../package.json","../../../../../../../chunks/1692.js","../../../../../../../chunks/4586.js","../../../../../../../chunks/6151.js","../../../../../../../chunks/726.js","../../../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/admin/sites/[id]/database/schema/route.js b/.next/server/app/api/admin/sites/[id]/database/schema/route.js deleted file mode 100644 index 4c135cd2d363131bb928ce4adb7a8ff1ef0a4846..0000000000000000000000000000000000000000 --- a/.next/server/app/api/admin/sites/[id]/database/schema/route.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(()=>{var a={};a.id=2202,a.ids=[2202],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},43926:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>D,patchFetch:()=>C,routeModule:()=>y,serverHooks:()=>B,workAsyncStorage:()=>z,workUnitAsyncStorage:()=>A});var d={};c.r(d),c.d(d,{GET:()=>x});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(39588),w=c(97778);async function x(a,{params:b}){try{await (0,v.oC)();let{id:a}=await b,c=(0,w.q)();await c.init();let d=await c.getSite?.(a);if(!d)return u.NextResponse.json({error:"Site not found"},{status:404});if(!d.databaseEnabled)return u.NextResponse.json({error:"Site database not enabled"},{status:400});let e=c.getSiteDatabaseForAnalytics(a);if(!e)return u.NextResponse.json({error:"Site database not available"},{status:500});let f=e.getTableSchema();return u.NextResponse.json({tables:f})}catch(a){if(a instanceof Error&&"Unauthorized"===a.message)return u.NextResponse.json({error:"Unauthorized"},{status:401});return console.error("[Admin Database API] Error:",a),u.NextResponse.json({error:"Internal server error"},{status:500})}}let y=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/admin/sites/[id]/database/schema/route",pathname:"/api/admin/sites/[id]/database/schema",filename:"route",bundlePath:"app/api/admin/sites/[id]/database/schema/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/sites/[id]/database/schema/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:z,workUnitAsyncStorage:A,serverHooks:B}=y;function C(){return(0,g.patchFetch)({workAsyncStorage:z,workUnitAsyncStorage:A})}async function D(a,b,c){var d;let e="/api/admin/sites/[id]/database/schema/route";"/index"===e&&(e="/");let g=await y.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:z,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(z.dynamicRoutes[E]||z.routes[D]);if(F&&!x){let a=!!z.routes[D],b=z.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||y.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===y.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:z,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>y.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>y.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await y.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await y.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:z,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await y.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("../../../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,726],()=>b(b.s=43926));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/admin/sites/[id]/database/schema/route.js.nft.json b/.next/server/app/api/admin/sites/[id]/database/schema/route.js.nft.json deleted file mode 100644 index 4a48f71c88de4863341cabe79ff83e89b584a0d6..0000000000000000000000000000000000000000 --- a/.next/server/app/api/admin/sites/[id]/database/schema/route.js.nft.json +++ /dev/null @@ -1 +0,0 @@ -{"version":1,"files":["../../../../../../../../../data/osws.sqlite","../../../../../../../../../data/osws.sqlite-shm","../../../../../../../../../data/osws.sqlite-wal","../../../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../../../node_modules/bindings/bindings.js","../../../../../../../../../node_modules/bindings/package.json","../../../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../../../node_modules/next/package.json","../../../../../../../../../package.json","../../../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite","../../../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-shm","../../../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-wal","../../../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite","../../../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-shm","../../../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-wal","../../../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite","../../../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-shm","../../../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-wal","../../../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite","../../../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-shm","../../../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-wal","../../../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite","../../../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-shm","../../../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-wal","../../../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite","../../../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-shm","../../../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-wal","../../../../../../../../package.json","../../../../../../../chunks/1692.js","../../../../../../../chunks/4586.js","../../../../../../../chunks/6151.js","../../../../../../../chunks/726.js","../../../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/admin/sites/[id]/functions/[functionId]/logs/route.js b/.next/server/app/api/admin/sites/[id]/functions/[functionId]/logs/route.js deleted file mode 100644 index 25a78f13cf880fc5246252276c36f44f2f841726..0000000000000000000000000000000000000000 --- a/.next/server/app/api/admin/sites/[id]/functions/[functionId]/logs/route.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(()=>{var a={};a.id=530,a.ids=[530],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},48010:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>D,patchFetch:()=>C,routeModule:()=>y,serverHooks:()=>B,workAsyncStorage:()=>z,workUnitAsyncStorage:()=>A});var d={};c.r(d),c.d(d,{GET:()=>x});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(39588),w=c(97778);async function x(a,{params:b}){try{await (0,v.oC)();let{id:c,functionId:d}=await b,{searchParams:e}=new URL(a.url),f=Math.min(parseInt(e.get("limit")||"100"),1e3),g=(0,w.q)();await g.init();let h=await g.getSite?.(c);if(!h)return u.NextResponse.json({error:"Site not found"},{status:404});if(!h.databaseEnabled)return u.NextResponse.json({error:"Site database not enabled"},{status:400});let i=g.getSiteDatabaseForAnalytics(c);if(!i)return u.NextResponse.json({error:"Site database not available"},{status:500});if(!i.getFunction(d))return u.NextResponse.json({error:"Function not found"},{status:404});let j=i.getFunctionLogs(d,f);return u.NextResponse.json({logs:j})}catch(a){if(a instanceof Error&&"Unauthorized"===a.message)return u.NextResponse.json({error:"Unauthorized"},{status:401});return console.error("[Admin Functions API] Error:",a),u.NextResponse.json({error:"Internal server error"},{status:500})}}let y=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/admin/sites/[id]/functions/[functionId]/logs/route",pathname:"/api/admin/sites/[id]/functions/[functionId]/logs",filename:"route",bundlePath:"app/api/admin/sites/[id]/functions/[functionId]/logs/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/sites/[id]/functions/[functionId]/logs/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:z,workUnitAsyncStorage:A,serverHooks:B}=y;function C(){return(0,g.patchFetch)({workAsyncStorage:z,workUnitAsyncStorage:A})}async function D(a,b,c){var d;let e="/api/admin/sites/[id]/functions/[functionId]/logs/route";"/index"===e&&(e="/");let g=await y.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:z,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(z.dynamicRoutes[E]||z.routes[D]);if(F&&!x){let a=!!z.routes[D],b=z.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||y.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===y.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:z,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>y.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>y.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await y.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await y.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:z,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await y.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("../../../../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,726],()=>b(b.s=48010));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/admin/sites/[id]/functions/[functionId]/logs/route.js.nft.json b/.next/server/app/api/admin/sites/[id]/functions/[functionId]/logs/route.js.nft.json deleted file mode 100644 index 5d1fbc802e94eb0742cf48b6b910f8e9aa987e6e..0000000000000000000000000000000000000000 --- a/.next/server/app/api/admin/sites/[id]/functions/[functionId]/logs/route.js.nft.json +++ /dev/null @@ -1 +0,0 @@ -{"version":1,"files":["../../../../../../../../../../data/osws.sqlite","../../../../../../../../../../data/osws.sqlite-shm","../../../../../../../../../../data/osws.sqlite-wal","../../../../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../../../../node_modules/bindings/bindings.js","../../../../../../../../../../node_modules/bindings/package.json","../../../../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../../../../node_modules/next/package.json","../../../../../../../../../../package.json","../../../../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite","../../../../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-shm","../../../../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-wal","../../../../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite","../../../../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-shm","../../../../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-wal","../../../../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite","../../../../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-shm","../../../../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-wal","../../../../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite","../../../../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-shm","../../../../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-wal","../../../../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite","../../../../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-shm","../../../../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-wal","../../../../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite","../../../../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-shm","../../../../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-wal","../../../../../../../../../package.json","../../../../../../../../chunks/1692.js","../../../../../../../../chunks/4586.js","../../../../../../../../chunks/6151.js","../../../../../../../../chunks/726.js","../../../../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/admin/sites/[id]/functions/[functionId]/route.js b/.next/server/app/api/admin/sites/[id]/functions/[functionId]/route.js deleted file mode 100644 index 47012d673c4852f7d590fa564bf8bf66b23bf872..0000000000000000000000000000000000000000 --- a/.next/server/app/api/admin/sites/[id]/functions/[functionId]/route.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(()=>{var a={};a.id=6560,a.ids=[6560],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},5205:a=>{a.exports=import("quickjs-emscripten-core")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},17915:a=>{a.exports=import("@jitl/quickjs-wasmfile-release-sync")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44426:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{DELETE:()=>l,GET:()=>j,PUT:()=>k});var e=c(10641),f=c(39588),g=c(97778),h=c(19958),i=a([h]);async function j(a,{params:b}){try{await (0,f.oC)();let{id:a,functionId:c}=await b,d=(0,g.q)();await d.init();let h=await d.getSite?.(a);if(!h)return e.NextResponse.json({error:"Site not found"},{status:404});if(!h.databaseEnabled)return e.NextResponse.json({error:"Site database not enabled"},{status:400});let i=d.getSiteDatabaseForAnalytics(a);if(!i)return e.NextResponse.json({error:"Site database not available"},{status:500});let j=i.getFunction(c);if(!j)return e.NextResponse.json({error:"Function not found"},{status:404});return e.NextResponse.json({function:j})}catch(a){if(a instanceof Error&&"Unauthorized"===a.message)return e.NextResponse.json({error:"Unauthorized"},{status:401});return console.error("[Admin Functions API] Error:",a),e.NextResponse.json({error:"Internal server error"},{status:500})}}async function k(a,{params:b}){try{await (0,f.oC)();let{id:c,functionId:d}=await b,i=await a.json(),j=(0,g.q)();await j.init();let k=await j.getSite?.(c);if(!k)return e.NextResponse.json({error:"Site not found"},{status:404});if(!k.databaseEnabled)return e.NextResponse.json({error:"Site database not enabled"},{status:400});let l=j.getSiteDatabaseForAnalytics(c);if(!l)return e.NextResponse.json({error:"Site database not available"},{status:500});let m=l.getFunction(d);if(!m)return e.NextResponse.json({error:"Function not found"},{status:404});let n={};if(void 0!==i.name&&i.name!==m.name){let a=(0,h.QH)(i.name);if(a)return e.NextResponse.json({error:a},{status:400});let b=l.getFunctionByName(i.name);if(b&&b.id!==d)return e.NextResponse.json({error:"A function with this name already exists"},{status:409});n.name=i.name}if(void 0!==i.code){let a=(0,h.c2)(i.code);if(a)return e.NextResponse.json({error:a},{status:400});n.code=i.code}if(void 0!==i.description&&(n.description=i.description),void 0!==i.method){if(!["GET","POST","PUT","DELETE","ANY"].includes(i.method))return e.NextResponse.json({error:"Invalid HTTP method"},{status:400});n.method=i.method}void 0!==i.enabled&&(n.enabled=i.enabled),void 0!==i.timeoutMs&&(n.timeoutMs=Math.min(Math.max(i.timeoutMs,1e3),3e4)),Object.keys(n).length>0&&l.updateFunction(d,n);let o=l.getFunction(d);return e.NextResponse.json({function:o})}catch(a){if(a instanceof Error&&"Unauthorized"===a.message)return e.NextResponse.json({error:"Unauthorized"},{status:401});return console.error("[Admin Functions API] Error:",a),e.NextResponse.json({error:"Internal server error"},{status:500})}}async function l(a,{params:b}){try{await (0,f.oC)();let{id:a,functionId:c}=await b,d=(0,g.q)();await d.init();let h=await d.getSite?.(a);if(!h)return e.NextResponse.json({error:"Site not found"},{status:404});if(!h.databaseEnabled)return e.NextResponse.json({error:"Site database not enabled"},{status:400});let i=d.getSiteDatabaseForAnalytics(a);if(!i)return e.NextResponse.json({error:"Site database not available"},{status:500});if(!i.getFunction(c))return e.NextResponse.json({error:"Function not found"},{status:404});return i.deleteFunction(c),e.NextResponse.json({success:!0})}catch(a){if(a instanceof Error&&"Unauthorized"===a.message)return e.NextResponse.json({error:"Unauthorized"},{status:401});return console.error("[Admin Functions API] Error:",a),e.NextResponse.json({error:"Internal server error"},{status:500})}}h=(i.then?(await i)():i)[0],d()}catch(a){d(a)}})},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},83188:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{handler:()=>x,patchFetch:()=>w,routeModule:()=>y,serverHooks:()=>B,workAsyncStorage:()=>z,workUnitAsyncStorage:()=>A});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(44426),v=a([u]);u=(v.then?(await v)():v)[0];let y=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/admin/sites/[id]/functions/[functionId]/route",pathname:"/api/admin/sites/[id]/functions/[functionId]",filename:"route",bundlePath:"app/api/admin/sites/[id]/functions/[functionId]/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/sites/[id]/functions/[functionId]/route.ts",nextConfigOutput:"standalone",userland:u}),{workAsyncStorage:z,workUnitAsyncStorage:A,serverHooks:B}=y;function w(){return(0,g.patchFetch)({workAsyncStorage:z,workUnitAsyncStorage:A})}async function x(a,b,c){var d;let e="/api/admin/sites/[id]/functions/[functionId]/route";"/index"===e&&(e="/");let g=await y.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:z,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(z.dynamicRoutes[E]||z.routes[D]);if(F&&!x){let a=!!z.routes[D],b=z.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||y.isDev||x||(G=D,G="/index"===G?"/":G);let H=!0===y.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:z,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>y.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>y.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await y.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await y.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:z,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await y.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("../../../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,726,9958],()=>b(b.s=83188));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/admin/sites/[id]/functions/[functionId]/route.js.nft.json b/.next/server/app/api/admin/sites/[id]/functions/[functionId]/route.js.nft.json deleted file mode 100644 index 3da12e5e8f8cbb68d9888607fa67a43dd57b99b2..0000000000000000000000000000000000000000 --- a/.next/server/app/api/admin/sites/[id]/functions/[functionId]/route.js.nft.json +++ /dev/null @@ -1 +0,0 @@ -{"version":1,"files":["../../../../../../../../../data/osws.sqlite","../../../../../../../../../data/osws.sqlite-shm","../../../../../../../../../data/osws.sqlite-wal","../../../../../../../../../node_modules/@jitl/quickjs-ffi-types/dist/index.js","../../../../../../../../../node_modules/@jitl/quickjs-ffi-types/dist/index.mjs","../../../../../../../../../node_modules/@jitl/quickjs-ffi-types/package.json","../../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/emscripten-module.mjs","../../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/emscripten-module.wasm","../../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/ffi.mjs","../../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/index.js","../../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/index.mjs","../../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/package.json","../../../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../../../node_modules/bindings/bindings.js","../../../../../../../../../node_modules/bindings/package.json","../../../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../../../node_modules/next/package.json","../../../../../../../../../node_modules/quickjs-emscripten-core/dist/chunk-JTKJZQYV.mjs","../../../../../../../../../node_modules/quickjs-emscripten-core/dist/chunk-PEXOKBOE.mjs","../../../../../../../../../node_modules/quickjs-emscripten-core/dist/index.js","../../../../../../../../../node_modules/quickjs-emscripten-core/dist/index.mjs","../../../../../../../../../node_modules/quickjs-emscripten-core/dist/module-6F3E5H7Y.mjs","../../../../../../../../../node_modules/quickjs-emscripten-core/dist/module-asyncify-R6PWJ6ZV.mjs","../../../../../../../../../node_modules/quickjs-emscripten-core/package.json","../../../../../../../../../package.json","../../../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite","../../../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-shm","../../../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-wal","../../../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite","../../../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-shm","../../../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-wal","../../../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite","../../../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-shm","../../../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-wal","../../../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite","../../../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-shm","../../../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-wal","../../../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite","../../../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-shm","../../../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-wal","../../../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite","../../../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-shm","../../../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-wal","../../../../../../../../package.json","../../../../../../../chunks/1692.js","../../../../../../../chunks/4586.js","../../../../../../../chunks/6151.js","../../../../../../../chunks/726.js","../../../../../../../chunks/9958.js","../../../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/admin/sites/[id]/functions/route.js b/.next/server/app/api/admin/sites/[id]/functions/route.js deleted file mode 100644 index ec434ebc662f7fa073288ff650cd97a1c913880f..0000000000000000000000000000000000000000 --- a/.next/server/app/api/admin/sites/[id]/functions/route.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(()=>{var a={};a.id=5646,a.ids=[5646],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},5205:a=>{a.exports=import("quickjs-emscripten-core")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},11266:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>j,POST:()=>k});var e=c(10641),f=c(39588),g=c(97778),h=c(19958),i=a([h]);async function j(a,{params:b}){try{await (0,f.oC)();let{id:a}=await b,c=(0,g.q)();await c.init();let d=await c.getSite?.(a);if(!d)return e.NextResponse.json({error:"Site not found"},{status:404});if(!d.databaseEnabled)return e.NextResponse.json({error:"Site database not enabled"},{status:400});let h=c.getSiteDatabaseForAnalytics(a);if(!h)return e.NextResponse.json({error:"Site database not available"},{status:500});let i=h.listFunctions();return e.NextResponse.json({functions:i})}catch(a){if(a instanceof Error&&"Unauthorized"===a.message)return e.NextResponse.json({error:"Unauthorized"},{status:401});return console.error("[Admin Functions API] Error:",a),e.NextResponse.json({error:"Internal server error"},{status:500})}}async function k(a,{params:b}){try{await (0,f.oC)();let{id:c}=await b,d=await a.json();if(!d.name)return e.NextResponse.json({error:"Function name is required"},{status:400});if(!d.code)return e.NextResponse.json({error:"Function code is required"},{status:400});let i=(0,h.QH)(d.name);if(i)return e.NextResponse.json({error:i},{status:400});let j=(0,h.c2)(d.code);if(j)return e.NextResponse.json({error:j},{status:400});let k=d.method||"ANY";if(!["GET","POST","PUT","DELETE","ANY"].includes(k))return e.NextResponse.json({error:"Invalid HTTP method"},{status:400});let l=Math.min(Math.max(d.timeoutMs||5e3,1e3),3e4),m=(0,g.q)();await m.init();let n=await m.getSite?.(c);if(!n)return e.NextResponse.json({error:"Site not found"},{status:404});n.databaseEnabled||(n.databaseEnabled=!0,await m.enableSiteDatabase(c),await m.updateSite?.(n));let o=m.getSiteDatabaseForAnalytics(c);if(!o)return e.NextResponse.json({error:"Site database not available"},{status:500});if(o.getFunctionByName(d.name))return e.NextResponse.json({error:"A function with this name already exists"},{status:409});let p=o.createFunction({name:d.name,description:d.description||void 0,code:d.code,method:k,enabled:!1!==d.enabled,timeoutMs:l}),q=o.getFunction(p);return e.NextResponse.json({function:q},{status:201})}catch(a){if(a instanceof Error&&"Unauthorized"===a.message)return e.NextResponse.json({error:"Unauthorized"},{status:401});return console.error("[Admin Functions API] Error:",a),e.NextResponse.json({error:"Internal server error"},{status:500})}}h=(i.then?(await i)():i)[0],d()}catch(a){d(a)}})},17915:a=>{a.exports=import("@jitl/quickjs-wasmfile-release-sync")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},71370:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{handler:()=>x,patchFetch:()=>w,routeModule:()=>y,serverHooks:()=>B,workAsyncStorage:()=>z,workUnitAsyncStorage:()=>A});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(11266),v=a([u]);u=(v.then?(await v)():v)[0];let y=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/admin/sites/[id]/functions/route",pathname:"/api/admin/sites/[id]/functions",filename:"route",bundlePath:"app/api/admin/sites/[id]/functions/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/sites/[id]/functions/route.ts",nextConfigOutput:"standalone",userland:u}),{workAsyncStorage:z,workUnitAsyncStorage:A,serverHooks:B}=y;function w(){return(0,g.patchFetch)({workAsyncStorage:z,workUnitAsyncStorage:A})}async function x(a,b,c){var d;let e="/api/admin/sites/[id]/functions/route";"/index"===e&&(e="/");let g=await y.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:z,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(z.dynamicRoutes[E]||z.routes[D]);if(F&&!x){let a=!!z.routes[D],b=z.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||y.isDev||x||(G=D,G="/index"===G?"/":G);let H=!0===y.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:z,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>y.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>y.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await y.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await y.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:z,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await y.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("../../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,726,9958],()=>b(b.s=71370));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/admin/sites/[id]/functions/route.js.nft.json b/.next/server/app/api/admin/sites/[id]/functions/route.js.nft.json deleted file mode 100644 index 451a90f907542306b90c01bdcb039f0f731408da..0000000000000000000000000000000000000000 --- a/.next/server/app/api/admin/sites/[id]/functions/route.js.nft.json +++ /dev/null @@ -1 +0,0 @@ -{"version":1,"files":["../../../../../../../../data/osws.sqlite","../../../../../../../../data/osws.sqlite-shm","../../../../../../../../data/osws.sqlite-wal","../../../../../../../../node_modules/@jitl/quickjs-ffi-types/dist/index.js","../../../../../../../../node_modules/@jitl/quickjs-ffi-types/dist/index.mjs","../../../../../../../../node_modules/@jitl/quickjs-ffi-types/package.json","../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/emscripten-module.mjs","../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/emscripten-module.wasm","../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/ffi.mjs","../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/index.js","../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/index.mjs","../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/package.json","../../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../../node_modules/bindings/bindings.js","../../../../../../../../node_modules/bindings/package.json","../../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../../node_modules/next/package.json","../../../../../../../../node_modules/quickjs-emscripten-core/dist/chunk-JTKJZQYV.mjs","../../../../../../../../node_modules/quickjs-emscripten-core/dist/chunk-PEXOKBOE.mjs","../../../../../../../../node_modules/quickjs-emscripten-core/dist/index.js","../../../../../../../../node_modules/quickjs-emscripten-core/dist/index.mjs","../../../../../../../../node_modules/quickjs-emscripten-core/dist/module-6F3E5H7Y.mjs","../../../../../../../../node_modules/quickjs-emscripten-core/dist/module-asyncify-R6PWJ6ZV.mjs","../../../../../../../../node_modules/quickjs-emscripten-core/package.json","../../../../../../../../package.json","../../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite","../../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-shm","../../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-wal","../../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite","../../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-shm","../../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-wal","../../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite","../../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-shm","../../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-wal","../../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite","../../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-shm","../../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-wal","../../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite","../../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-shm","../../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-wal","../../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite","../../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-shm","../../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-wal","../../../../../../../package.json","../../../../../../chunks/1692.js","../../../../../../chunks/4586.js","../../../../../../chunks/6151.js","../../../../../../chunks/726.js","../../../../../../chunks/9958.js","../../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/admin/sites/[id]/provision/route.js b/.next/server/app/api/admin/sites/[id]/provision/route.js deleted file mode 100644 index 742dcedb140d5277db61146580846de72523b54b..0000000000000000000000000000000000000000 --- a/.next/server/app/api/admin/sites/[id]/provision/route.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(()=>{var a={};a.id=72,a.ids=[72],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{a.exports=require("path")},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},85229:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>F,patchFetch:()=>E,routeModule:()=>A,serverHooks:()=>D,workAsyncStorage:()=>B,workUnitAsyncStorage:()=>C});var d={};c.r(d),c.d(d,{POST:()=>z});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(39588),w=c(97778),x=c(5622),y=c.n(x);async function z(a,{params:b}){try{await (0,v.oC)();let{id:c}=await b,d=(await a.json()).siteFeatures;if(!d)return u.NextResponse.json({error:"siteFeatures is required"},{status:400});let e=(0,w.q)();await e.init();let f=await e.getSite?.(c);if(!f)return u.NextResponse.json({error:"Site not found"},{status:404});f.databaseEnabled||(f.databaseEnabled=!0,await e.enableSiteDatabase(c),await e.updateSite?.(f));let g=e.getSiteDatabaseForAnalytics(c);if(!g)return u.NextResponse.json({error:"Site database not available"},{status:500});let h={edgeFunctions:0,serverFunctions:0,secrets:0,scheduledFunctions:0,databaseSchemaApplied:!1};if(d.databaseSchema&&(g.executeDDL(d.databaseSchema),h.databaseSchemaApplied=!0),d.edgeFunctions)for(let a of d.edgeFunctions)!g.getFunctionByName(a.name)&&(g.createFunction({name:a.name,description:a.description,code:a.code,method:a.method||"ANY",enabled:!1!==a.enabled,timeoutMs:a.timeoutMs||5e3}),h.edgeFunctions++);if(d.serverFunctions)for(let a of d.serverFunctions)!g.getServerFunctionByName(a.name)&&(g.createServerFunction({name:a.name,description:a.description,code:a.code,enabled:!1!==a.enabled}),h.serverFunctions++);if(d.secrets)for(let a of d.secrets)!g.getSecretByName(a.name)&&(g.createSecretPlaceholder(a.name,a.description),h.secrets++);let i=0;if(d.scheduledFunctions)for(let a of d.scheduledFunctions){let b;if(g.getScheduledFunctionByName(a.name))continue;let c=g.getFunctionByName(a.functionName);if(!c){console.warn(`[Admin Provision API] Skipping scheduled function "${a.name}": edge function "${a.functionName}" not found`);continue}try{b=y().parseExpression(a.cronExpression,{tz:a.timezone||"UTC",currentDate:new Date}).next().toDate()}catch{}g.createScheduledFunction({name:a.name,description:a.description,functionId:c.id,cronExpression:a.cronExpression,timezone:a.timezone||"UTC",config:a.config||{},enabled:!1!==a.enabled,nextRunAt:b}),i++}return h.scheduledFunctions=i,u.NextResponse.json({provisioned:h},{status:201})}catch(a){if(a instanceof Error&&"Unauthorized"===a.message)return u.NextResponse.json({error:"Unauthorized"},{status:401});return console.error("[Admin Provision API] Error:",a),u.NextResponse.json({error:"Internal server error"},{status:500})}}let A=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/admin/sites/[id]/provision/route",pathname:"/api/admin/sites/[id]/provision",filename:"route",bundlePath:"app/api/admin/sites/[id]/provision/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/sites/[id]/provision/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:B,workUnitAsyncStorage:C,serverHooks:D}=A;function E(){return(0,g.patchFetch)({workAsyncStorage:B,workUnitAsyncStorage:C})}async function F(a,b,c){var d;let e="/api/admin/sites/[id]/provision/route";"/index"===e&&(e="/");let g=await A.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:y,routerServerContext:z,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(y.dynamicRoutes[E]||y.routes[D]);if(F&&!x){let a=!!y.routes[D],b=y.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||A.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===A.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:y,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>A.onRequestError(a,b,d,z)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>A.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await A.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},z),b}},l=await A.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await A.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("../../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,8215,726],()=>b(b.s=85229));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/admin/sites/[id]/provision/route.js.nft.json b/.next/server/app/api/admin/sites/[id]/provision/route.js.nft.json deleted file mode 100644 index e71e70c06bcae7ad7a75e6e573692237f8f49c9c..0000000000000000000000000000000000000000 --- a/.next/server/app/api/admin/sites/[id]/provision/route.js.nft.json +++ /dev/null @@ -1 +0,0 @@ -{"version":1,"files":["../../../../../../../../data/osws.sqlite","../../../../../../../../data/osws.sqlite-shm","../../../../../../../../data/osws.sqlite-wal","../../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../../node_modules/bindings/bindings.js","../../../../../../../../node_modules/bindings/package.json","../../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../../node_modules/next/package.json","../../../../../../../../package.json","../../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite","../../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-shm","../../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-wal","../../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite","../../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-shm","../../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-wal","../../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite","../../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-shm","../../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-wal","../../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite","../../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-shm","../../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-wal","../../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite","../../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-shm","../../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-wal","../../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite","../../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-shm","../../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-wal","../../../../../../../package.json","../../../../../../chunks/1692.js","../../../../../../chunks/4586.js","../../../../../../chunks/6151.js","../../../../../../chunks/726.js","../../../../../../chunks/8215.js","../../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/admin/sites/[id]/provision/route_client-reference-manifest.js b/.next/server/app/api/admin/sites/[id]/provision/route_client-reference-manifest.js deleted file mode 100644 index 8eb25932879b080bb64a9d982f9263e887171b6a..0000000000000000000000000000000000000000 --- a/.next/server/app/api/admin/sites/[id]/provision/route_client-reference-manifest.js +++ /dev/null @@ -1 +0,0 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/admin/sites/[id]/provision/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/sites/[id]/provision/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/admin/sites/[id]/scheduled-functions/[scheduledFunctionId]/route.js b/.next/server/app/api/admin/sites/[id]/scheduled-functions/[scheduledFunctionId]/route.js deleted file mode 100644 index fdef08fa70642ec7e783cdc4355d0a24c25b9eb6..0000000000000000000000000000000000000000 --- a/.next/server/app/api/admin/sites/[id]/scheduled-functions/[scheduledFunctionId]/route.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(()=>{var a={};a.id=4485,a.ids=[4485],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},5205:a=>{a.exports=import("quickjs-emscripten-core")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},17915:a=>{a.exports=import("@jitl/quickjs-wasmfile-release-sync")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{a.exports=require("path")},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},47488:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{handler:()=>x,patchFetch:()=>w,routeModule:()=>y,serverHooks:()=>B,workAsyncStorage:()=>z,workUnitAsyncStorage:()=>A});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(97563),v=a([u]);u=(v.then?(await v)():v)[0];let y=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/admin/sites/[id]/scheduled-functions/[scheduledFunctionId]/route",pathname:"/api/admin/sites/[id]/scheduled-functions/[scheduledFunctionId]",filename:"route",bundlePath:"app/api/admin/sites/[id]/scheduled-functions/[scheduledFunctionId]/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/sites/[id]/scheduled-functions/[scheduledFunctionId]/route.ts",nextConfigOutput:"standalone",userland:u}),{workAsyncStorage:z,workUnitAsyncStorage:A,serverHooks:B}=y;function w(){return(0,g.patchFetch)({workAsyncStorage:z,workUnitAsyncStorage:A})}async function x(a,b,c){var d;let e="/api/admin/sites/[id]/scheduled-functions/[scheduledFunctionId]/route";"/index"===e&&(e="/");let g=await y.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:z,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(z.dynamicRoutes[E]||z.routes[D]);if(F&&!x){let a=!!z.routes[D],b=z.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||y.isDev||x||(G=D,G="/index"===G?"/":G);let H=!0===y.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:z,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>y.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>y.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await y.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await y.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:z,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await y.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},97563:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{DELETE:()=>n,GET:()=>l,PUT:()=>m});var e=c(10641),f=c(39588),g=c(97778),h=c(19958),i=c(5622),j=c.n(i),k=a([h]);async function l(a,{params:b}){try{await (0,f.oC)();let{id:a,scheduledFunctionId:c}=await b,d=(0,g.q)();await d.init();let h=await d.getSite?.(a);if(!h)return e.NextResponse.json({error:"Site not found"},{status:404});if(!h.databaseEnabled)return e.NextResponse.json({error:"Site database not enabled"},{status:400});let i=d.getSiteDatabaseForAnalytics(a);if(!i)return e.NextResponse.json({error:"Site database not available"},{status:500});let j=i.getScheduledFunction(c);if(!j)return e.NextResponse.json({error:"Scheduled function not found"},{status:404});return e.NextResponse.json({scheduledFunction:j})}catch(a){if(a instanceof Error&&"Unauthorized"===a.message)return e.NextResponse.json({error:"Unauthorized"},{status:401});return console.error("[Admin Scheduled Functions API] Error:",a),e.NextResponse.json({error:"Internal server error"},{status:500})}}async function m(a,{params:b}){try{await (0,f.oC)();let{id:c,scheduledFunctionId:d}=await b,i=await a.json(),k=(0,g.q)();await k.init();let l=await k.getSite?.(c);if(!l)return e.NextResponse.json({error:"Site not found"},{status:404});if(!l.databaseEnabled)return e.NextResponse.json({error:"Site database not enabled"},{status:400});let m=k.getSiteDatabaseForAnalytics(c);if(!m)return e.NextResponse.json({error:"Site database not available"},{status:500});let n=m.getScheduledFunction(d);if(!n)return e.NextResponse.json({error:"Scheduled function not found"},{status:404});let o={};if(void 0!==i.name&&i.name!==n.name){let a=(0,h.QH)(i.name);if(a)return e.NextResponse.json({error:a},{status:400});let b=m.getScheduledFunctionByName(i.name);if(b&&b.id!==d)return e.NextResponse.json({error:"A scheduled function with this name already exists"},{status:409});o.name=i.name}if(void 0!==i.functionId){if(!m.getFunction(i.functionId))return e.NextResponse.json({error:"Edge function not found"},{status:404});o.functionId=i.functionId}if(void 0!==i.cronExpression){try{let a=j().parseExpression(i.cronExpression),b=a.next().toDate().getTime();if(a.next().toDate().getTime()-b<299e3)return e.NextResponse.json({error:"Minimum interval is 5 minutes"},{status:400})}catch{return e.NextResponse.json({error:"Invalid cron expression"},{status:400})}o.cronExpression=i.cronExpression}if(void 0!==i.timezone){try{Intl.DateTimeFormat(void 0,{timeZone:i.timezone})}catch{return e.NextResponse.json({error:`Invalid timezone: ${i.timezone}`},{status:400})}o.timezone=i.timezone}if(void 0!==i.description){if(i.description&&i.description.length>500)return e.NextResponse.json({error:"Description must be 500 characters or less"},{status:400});o.description=i.description}if(void 0!==i.config){if("object"!=typeof i.config||null===i.config||Array.isArray(i.config))return e.NextResponse.json({error:"config must be a plain object"},{status:400});if(JSON.stringify(i.config).length>65536)return e.NextResponse.json({error:"config must be less than 64KB"},{status:400});o.config=i.config}if(void 0!==i.enabled&&(o.enabled=i.enabled),void 0!==o.cronExpression||void 0!==o.timezone){let a=o.cronExpression||n.cronExpression,b=o.timezone||n.timezone;try{o.nextRunAt=j().parseExpression(a,{tz:b,currentDate:new Date}).next().toDate()}catch{}}Object.keys(o).length>0&&m.updateScheduledFunction(d,o);let p=m.getScheduledFunction(d);return e.NextResponse.json({scheduledFunction:p})}catch(a){if(a instanceof Error&&"Unauthorized"===a.message)return e.NextResponse.json({error:"Unauthorized"},{status:401});return console.error("[Admin Scheduled Functions API] Error:",a),e.NextResponse.json({error:"Internal server error"},{status:500})}}async function n(a,{params:b}){try{await (0,f.oC)();let{id:a,scheduledFunctionId:c}=await b,d=(0,g.q)();await d.init();let h=await d.getSite?.(a);if(!h)return e.NextResponse.json({error:"Site not found"},{status:404});if(!h.databaseEnabled)return e.NextResponse.json({error:"Site database not enabled"},{status:400});let i=d.getSiteDatabaseForAnalytics(a);if(!i)return e.NextResponse.json({error:"Site database not available"},{status:500});if(!i.getScheduledFunction(c))return e.NextResponse.json({error:"Scheduled function not found"},{status:404});return i.deleteScheduledFunction(c),e.NextResponse.json({success:!0})}catch(a){if(a instanceof Error&&"Unauthorized"===a.message)return e.NextResponse.json({error:"Unauthorized"},{status:401});return console.error("[Admin Scheduled Functions API] Error:",a),e.NextResponse.json({error:"Internal server error"},{status:500})}}h=(k.then?(await k)():k)[0],d()}catch(a){d(a)}})}};var b=require("../../../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,8215,726,9958],()=>b(b.s=47488));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/admin/sites/[id]/scheduled-functions/[scheduledFunctionId]/route.js.nft.json b/.next/server/app/api/admin/sites/[id]/scheduled-functions/[scheduledFunctionId]/route.js.nft.json deleted file mode 100644 index d2cf49319c71f1974af33711dea322b3ebfc1df0..0000000000000000000000000000000000000000 --- a/.next/server/app/api/admin/sites/[id]/scheduled-functions/[scheduledFunctionId]/route.js.nft.json +++ /dev/null @@ -1 +0,0 @@ -{"version":1,"files":["../../../../../../../../../data/osws.sqlite","../../../../../../../../../data/osws.sqlite-shm","../../../../../../../../../data/osws.sqlite-wal","../../../../../../../../../node_modules/@jitl/quickjs-ffi-types/dist/index.js","../../../../../../../../../node_modules/@jitl/quickjs-ffi-types/dist/index.mjs","../../../../../../../../../node_modules/@jitl/quickjs-ffi-types/package.json","../../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/emscripten-module.mjs","../../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/emscripten-module.wasm","../../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/ffi.mjs","../../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/index.js","../../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/index.mjs","../../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/package.json","../../../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../../../node_modules/bindings/bindings.js","../../../../../../../../../node_modules/bindings/package.json","../../../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../../../node_modules/next/package.json","../../../../../../../../../node_modules/quickjs-emscripten-core/dist/chunk-JTKJZQYV.mjs","../../../../../../../../../node_modules/quickjs-emscripten-core/dist/chunk-PEXOKBOE.mjs","../../../../../../../../../node_modules/quickjs-emscripten-core/dist/index.js","../../../../../../../../../node_modules/quickjs-emscripten-core/dist/index.mjs","../../../../../../../../../node_modules/quickjs-emscripten-core/dist/module-6F3E5H7Y.mjs","../../../../../../../../../node_modules/quickjs-emscripten-core/dist/module-asyncify-R6PWJ6ZV.mjs","../../../../../../../../../node_modules/quickjs-emscripten-core/package.json","../../../../../../../../../package.json","../../../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite","../../../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-shm","../../../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-wal","../../../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite","../../../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-shm","../../../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-wal","../../../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite","../../../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-shm","../../../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-wal","../../../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite","../../../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-shm","../../../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-wal","../../../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite","../../../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-shm","../../../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-wal","../../../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite","../../../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-shm","../../../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-wal","../../../../../../../../package.json","../../../../../../../chunks/1692.js","../../../../../../../chunks/4586.js","../../../../../../../chunks/6151.js","../../../../../../../chunks/726.js","../../../../../../../chunks/8215.js","../../../../../../../chunks/9958.js","../../../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/admin/sites/[id]/scheduled-functions/[scheduledFunctionId]/route_client-reference-manifest.js b/.next/server/app/api/admin/sites/[id]/scheduled-functions/[scheduledFunctionId]/route_client-reference-manifest.js deleted file mode 100644 index bdb3515d5b5f694d43c87603d300a4682bbea10e..0000000000000000000000000000000000000000 --- a/.next/server/app/api/admin/sites/[id]/scheduled-functions/[scheduledFunctionId]/route_client-reference-manifest.js +++ /dev/null @@ -1 +0,0 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/admin/sites/[id]/scheduled-functions/[scheduledFunctionId]/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/sites/[id]/scheduled-functions/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/sites/[id]/scheduled-functions/[scheduledFunctionId]/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/admin/sites/[id]/scheduled-functions/route.js b/.next/server/app/api/admin/sites/[id]/scheduled-functions/route.js deleted file mode 100644 index 50f3331d4b72a2372470609b41ea19388b1cefd5..0000000000000000000000000000000000000000 --- a/.next/server/app/api/admin/sites/[id]/scheduled-functions/route.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(()=>{var a={};a.id=5956,a.ids=[5956],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},5205:a=>{a.exports=import("quickjs-emscripten-core")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},17915:a=>{a.exports=import("@jitl/quickjs-wasmfile-release-sync")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{a.exports=require("path")},37270:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{handler:()=>x,patchFetch:()=>w,routeModule:()=>y,serverHooks:()=>B,workAsyncStorage:()=>z,workUnitAsyncStorage:()=>A});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(92592),v=a([u]);u=(v.then?(await v)():v)[0];let y=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/admin/sites/[id]/scheduled-functions/route",pathname:"/api/admin/sites/[id]/scheduled-functions",filename:"route",bundlePath:"app/api/admin/sites/[id]/scheduled-functions/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/sites/[id]/scheduled-functions/route.ts",nextConfigOutput:"standalone",userland:u}),{workAsyncStorage:z,workUnitAsyncStorage:A,serverHooks:B}=y;function w(){return(0,g.patchFetch)({workAsyncStorage:z,workUnitAsyncStorage:A})}async function x(a,b,c){var d;let e="/api/admin/sites/[id]/scheduled-functions/route";"/index"===e&&(e="/");let g=await y.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:z,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(z.dynamicRoutes[E]||z.routes[D]);if(F&&!x){let a=!!z.routes[D],b=z.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||y.isDev||x||(G=D,G="/index"===G?"/":G);let H=!0===y.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:z,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>y.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>y.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await y.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await y.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:z,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await y.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},92592:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>l,POST:()=>m});var e=c(10641),f=c(39588),g=c(97778),h=c(19958),i=c(5622),j=c.n(i),k=a([h]);async function l(a,{params:b}){try{await (0,f.oC)();let{id:a}=await b,c=(0,g.q)();await c.init();let d=await c.getSite?.(a);if(!d)return e.NextResponse.json({error:"Site not found"},{status:404});if(!d.databaseEnabled)return e.NextResponse.json({error:"Site database not enabled"},{status:400});let h=c.getSiteDatabaseForAnalytics(a);if(!h)return e.NextResponse.json({error:"Site database not available"},{status:500});let i=h.listScheduledFunctions();return e.NextResponse.json({scheduledFunctions:i})}catch(a){if(a instanceof Error&&"Unauthorized"===a.message)return e.NextResponse.json({error:"Unauthorized"},{status:401});return console.error("[Admin Scheduled Functions API] Error:",a),e.NextResponse.json({error:"Internal server error"},{status:500})}}async function m(a,{params:b}){try{let c;await (0,f.oC)();let{id:d}=await b,i=await a.json();if(!i.name)return e.NextResponse.json({error:"Name is required"},{status:400});if(!i.functionId)return e.NextResponse.json({error:"functionId is required"},{status:400});if(!i.cronExpression)return e.NextResponse.json({error:"cronExpression is required"},{status:400});let k=(0,h.QH)(i.name);if(k)return e.NextResponse.json({error:k},{status:400});try{let a=j().parseExpression(i.cronExpression),b=a.next().toDate().getTime();if(a.next().toDate().getTime()-b<299e3)return e.NextResponse.json({error:"Minimum interval is 5 minutes"},{status:400})}catch{return e.NextResponse.json({error:"Invalid cron expression"},{status:400})}let l=i.timezone||"UTC";try{Intl.DateTimeFormat(void 0,{timeZone:l})}catch{return e.NextResponse.json({error:`Invalid timezone: ${l}`},{status:400})}if(i.description&&i.description.length>500)return e.NextResponse.json({error:"Description must be 500 characters or less"},{status:400});if(void 0!==i.config){if("object"!=typeof i.config||null===i.config||Array.isArray(i.config))return e.NextResponse.json({error:"config must be a plain object"},{status:400});if(JSON.stringify(i.config).length>65536)return e.NextResponse.json({error:"config must be less than 64KB"},{status:400})}let m=(0,g.q)();await m.init();let n=await m.getSite?.(d);if(!n)return e.NextResponse.json({error:"Site not found"},{status:404});if(!n.databaseEnabled)return e.NextResponse.json({error:"Site database not enabled"},{status:400});let o=m.getSiteDatabaseForAnalytics(d);if(!o)return e.NextResponse.json({error:"Site database not available"},{status:500});if(!o.getFunction(i.functionId))return e.NextResponse.json({error:"Edge function not found"},{status:404});if(o.listScheduledFunctions().length>=50)return e.NextResponse.json({error:"Maximum of 50 scheduled functions per site"},{status:400});if(o.getScheduledFunctionByName(i.name))return e.NextResponse.json({error:"A scheduled function with this name already exists"},{status:409});try{c=j().parseExpression(i.cronExpression,{tz:l,currentDate:new Date}).next().toDate()}catch{}let p=o.createScheduledFunction({name:i.name,description:i.description||void 0,functionId:i.functionId,cronExpression:i.cronExpression,timezone:l,config:i.config||{},enabled:!1!==i.enabled,nextRunAt:c}),q=o.getScheduledFunction(p);return e.NextResponse.json({scheduledFunction:q},{status:201})}catch(a){if(a instanceof Error&&"Unauthorized"===a.message)return e.NextResponse.json({error:"Unauthorized"},{status:401});return console.error("[Admin Scheduled Functions API] Error:",a),e.NextResponse.json({error:"Internal server error"},{status:500})}}h=(k.then?(await k)():k)[0],d()}catch(a){d(a)}})}};var b=require("../../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,8215,726,9958],()=>b(b.s=37270));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/admin/sites/[id]/scheduled-functions/route.js.nft.json b/.next/server/app/api/admin/sites/[id]/scheduled-functions/route.js.nft.json deleted file mode 100644 index f876af48a40a7f3eb89454f1c47017198a2e190b..0000000000000000000000000000000000000000 --- a/.next/server/app/api/admin/sites/[id]/scheduled-functions/route.js.nft.json +++ /dev/null @@ -1 +0,0 @@ -{"version":1,"files":["../../../../../../../../data/osws.sqlite","../../../../../../../../data/osws.sqlite-shm","../../../../../../../../data/osws.sqlite-wal","../../../../../../../../node_modules/@jitl/quickjs-ffi-types/dist/index.js","../../../../../../../../node_modules/@jitl/quickjs-ffi-types/dist/index.mjs","../../../../../../../../node_modules/@jitl/quickjs-ffi-types/package.json","../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/emscripten-module.mjs","../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/emscripten-module.wasm","../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/ffi.mjs","../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/index.js","../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/index.mjs","../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/package.json","../../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../../node_modules/bindings/bindings.js","../../../../../../../../node_modules/bindings/package.json","../../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../../node_modules/next/package.json","../../../../../../../../node_modules/quickjs-emscripten-core/dist/chunk-JTKJZQYV.mjs","../../../../../../../../node_modules/quickjs-emscripten-core/dist/chunk-PEXOKBOE.mjs","../../../../../../../../node_modules/quickjs-emscripten-core/dist/index.js","../../../../../../../../node_modules/quickjs-emscripten-core/dist/index.mjs","../../../../../../../../node_modules/quickjs-emscripten-core/dist/module-6F3E5H7Y.mjs","../../../../../../../../node_modules/quickjs-emscripten-core/dist/module-asyncify-R6PWJ6ZV.mjs","../../../../../../../../node_modules/quickjs-emscripten-core/package.json","../../../../../../../../package.json","../../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite","../../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-shm","../../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-wal","../../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite","../../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-shm","../../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-wal","../../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite","../../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-shm","../../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-wal","../../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite","../../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-shm","../../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-wal","../../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite","../../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-shm","../../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-wal","../../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite","../../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-shm","../../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-wal","../../../../../../../package.json","../../../../../../chunks/1692.js","../../../../../../chunks/4586.js","../../../../../../chunks/6151.js","../../../../../../chunks/726.js","../../../../../../chunks/8215.js","../../../../../../chunks/9958.js","../../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/admin/sites/[id]/secrets/[secretId]/route.js b/.next/server/app/api/admin/sites/[id]/secrets/[secretId]/route.js deleted file mode 100644 index 60ceff81db38b6f6174c4c59d7628db08940990e..0000000000000000000000000000000000000000 --- a/.next/server/app/api/admin/sites/[id]/secrets/[secretId]/route.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(()=>{var a={};a.id=5940,a.ids=[5940],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},28478:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>G,patchFetch:()=>F,routeModule:()=>B,serverHooks:()=>E,workAsyncStorage:()=>C,workUnitAsyncStorage:()=>D});var d={};c.r(d),c.d(d,{DELETE:()=>A,GET:()=>y,PUT:()=>z});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(39588),w=c(97778),x=c(75794);async function y(a,{params:b}){try{await (0,v.oC)();let{id:a,secretId:c}=await b,d=(0,w.q)();await d.init();let e=await d.getSite?.(a);if(!e)return u.NextResponse.json({error:"Site not found"},{status:404});if(!e.databaseEnabled)return u.NextResponse.json({error:"Site database not enabled"},{status:400});let f=d.getSiteDatabaseForAnalytics(a);if(!f)return u.NextResponse.json({error:"Site database not available"},{status:500});let g=f.getSecret(c);if(!g)return u.NextResponse.json({error:"Secret not found"},{status:404});return u.NextResponse.json({secret:g})}catch(a){if(a instanceof Error&&"Unauthorized"===a.message)return u.NextResponse.json({error:"Unauthorized"},{status:401});return console.error("[Admin Secrets API] Error:",a),u.NextResponse.json({error:"Internal server error"},{status:500})}}async function z(a,{params:b}){try{await (0,v.oC)();let{id:d,secretId:e}=await b,f=await a.json(),g=(0,w.q)();await g.init();let h=await g.getSite?.(d);if(!h)return u.NextResponse.json({error:"Site not found"},{status:404});if(!h.databaseEnabled)return u.NextResponse.json({error:"Site database not enabled"},{status:400});let i=g.getSiteDatabaseForAnalytics(d);if(!i)return u.NextResponse.json({error:"Site database not available"},{status:500});let j=i.getSecret(e);if(!j)return u.NextResponse.json({error:"Secret not found"},{status:404});if(void 0!==f.value&&""!==f.value){if(!(0,x.yg)())return u.NextResponse.json({error:"Secrets encryption not configured. Set SECRETS_ENCRYPTION_KEY environment variable."},{status:500});i.updateSecretValue(e,f.value)}let k={};if(void 0!==f.name&&f.name!==j.name){var c;let a=(c=f.name)&&0!==c.trim().length?c.length>64?"Secret name must be 64 characters or less":/^[A-Z][A-Z0-9_]*$/.test(c)?null:"Secret name must be SCREAMING_SNAKE_CASE (uppercase letters, numbers, underscores; must start with letter)":"Secret name is required";if(a)return u.NextResponse.json({error:a},{status:400});let b=i.getSecretByName(f.name);if(b&&b.id!==e)return u.NextResponse.json({error:"A secret with this name already exists"},{status:409});k.name=f.name}void 0!==f.description&&(k.description=f.description),Object.keys(k).length>0&&i.updateSecretMetadata(e,k);let l=i.getSecret(e);return u.NextResponse.json({secret:l})}catch(a){if(a instanceof Error&&"Unauthorized"===a.message)return u.NextResponse.json({error:"Unauthorized"},{status:401});return console.error("[Admin Secrets API] Error:",a),u.NextResponse.json({error:"Internal server error"},{status:500})}}async function A(a,{params:b}){try{await (0,v.oC)();let{id:a,secretId:c}=await b,d=(0,w.q)();await d.init();let e=await d.getSite?.(a);if(!e)return u.NextResponse.json({error:"Site not found"},{status:404});if(!e.databaseEnabled)return u.NextResponse.json({error:"Site database not enabled"},{status:400});let f=d.getSiteDatabaseForAnalytics(a);if(!f)return u.NextResponse.json({error:"Site database not available"},{status:500});if(!f.getSecret(c))return u.NextResponse.json({error:"Secret not found"},{status:404});return f.deleteSecret(c),u.NextResponse.json({success:!0})}catch(a){if(a instanceof Error&&"Unauthorized"===a.message)return u.NextResponse.json({error:"Unauthorized"},{status:401});return console.error("[Admin Secrets API] Error:",a),u.NextResponse.json({error:"Internal server error"},{status:500})}}let B=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/admin/sites/[id]/secrets/[secretId]/route",pathname:"/api/admin/sites/[id]/secrets/[secretId]",filename:"route",bundlePath:"app/api/admin/sites/[id]/secrets/[secretId]/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/sites/[id]/secrets/[secretId]/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:C,workUnitAsyncStorage:D,serverHooks:E}=B;function F(){return(0,g.patchFetch)({workAsyncStorage:C,workUnitAsyncStorage:D})}async function G(a,b,c){var d;let e="/api/admin/sites/[id]/secrets/[secretId]/route";"/index"===e&&(e="/");let g=await B.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:y,routerServerContext:z,isOnDemandRevalidate:A,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(y.dynamicRoutes[E]||y.routes[D]);if(F&&!x){let a=!!y.routes[D],b=y.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||B.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===B.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:y,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>B.onRequestError(a,b,d,z)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>B.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&A&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await B.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:A})},z),b}},l=await B.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:A,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",A?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await B.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:A})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("../../../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,726],()=>b(b.s=28478));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/admin/sites/[id]/secrets/[secretId]/route.js.nft.json b/.next/server/app/api/admin/sites/[id]/secrets/[secretId]/route.js.nft.json deleted file mode 100644 index 4a48f71c88de4863341cabe79ff83e89b584a0d6..0000000000000000000000000000000000000000 --- a/.next/server/app/api/admin/sites/[id]/secrets/[secretId]/route.js.nft.json +++ /dev/null @@ -1 +0,0 @@ -{"version":1,"files":["../../../../../../../../../data/osws.sqlite","../../../../../../../../../data/osws.sqlite-shm","../../../../../../../../../data/osws.sqlite-wal","../../../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../../../node_modules/bindings/bindings.js","../../../../../../../../../node_modules/bindings/package.json","../../../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../../../node_modules/next/package.json","../../../../../../../../../package.json","../../../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite","../../../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-shm","../../../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-wal","../../../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite","../../../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-shm","../../../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-wal","../../../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite","../../../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-shm","../../../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-wal","../../../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite","../../../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-shm","../../../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-wal","../../../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite","../../../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-shm","../../../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-wal","../../../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite","../../../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-shm","../../../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-wal","../../../../../../../../package.json","../../../../../../../chunks/1692.js","../../../../../../../chunks/4586.js","../../../../../../../chunks/6151.js","../../../../../../../chunks/726.js","../../../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/admin/sites/[id]/secrets/route.js b/.next/server/app/api/admin/sites/[id]/secrets/route.js deleted file mode 100644 index 6b12316998f7f885cb38ef516ab78e6f1c44d52d..0000000000000000000000000000000000000000 --- a/.next/server/app/api/admin/sites/[id]/secrets/route.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(()=>{var a={};a.id=134,a.ids=[134],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},34901:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>F,patchFetch:()=>E,routeModule:()=>A,serverHooks:()=>D,workAsyncStorage:()=>B,workUnitAsyncStorage:()=>C});var d={};c.r(d),c.d(d,{GET:()=>y,POST:()=>z});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(39588),w=c(97778),x=c(75794);async function y(a,{params:b}){try{await (0,v.oC)();let{id:a}=await b,c=(0,w.q)();await c.init();let d=await c.getSite?.(a);if(!d)return u.NextResponse.json({error:"Site not found"},{status:404});if(!d.databaseEnabled)return u.NextResponse.json({error:"Site database not enabled"},{status:400});let e=c.getSiteDatabaseForAnalytics(a);if(!e)return u.NextResponse.json({error:"Site database not available"},{status:500});let f=e.listSecrets();return u.NextResponse.json({secrets:f,encryptionConfigured:(0,x.yg)()})}catch(a){if(a instanceof Error&&"Unauthorized"===a.message)return u.NextResponse.json({error:"Unauthorized"},{status:401});return console.error("[Admin Secrets API] Error:",a),u.NextResponse.json({error:"Internal server error"},{status:500})}}async function z(a,{params:b}){try{var c;await (0,v.oC)();let{id:d}=await b,e=await a.json();if(!(0,x.yg)())return u.NextResponse.json({error:"Secrets encryption not configured. Set SECRETS_ENCRYPTION_KEY environment variable."},{status:500});if(!e.name)return u.NextResponse.json({error:"Secret name is required"},{status:400});if(!e.value)return u.NextResponse.json({error:"Secret value is required"},{status:400});let f=(c=e.name)&&0!==c.trim().length?c.length>64?"Secret name must be 64 characters or less":/^[A-Z][A-Z0-9_]*$/.test(c)?null:"Secret name must be SCREAMING_SNAKE_CASE (uppercase letters, numbers, underscores; must start with letter)":"Secret name is required";if(f)return u.NextResponse.json({error:f},{status:400});let g=(0,w.q)();await g.init();let h=await g.getSite?.(d);if(!h)return u.NextResponse.json({error:"Site not found"},{status:404});h.databaseEnabled||(h.databaseEnabled=!0,await g.enableSiteDatabase(d),await g.updateSite?.(h));let i=g.getSiteDatabaseForAnalytics(d);if(!i)return u.NextResponse.json({error:"Site database not available"},{status:500});if(i.getSecretByName(e.name))return u.NextResponse.json({error:"A secret with this name already exists"},{status:409});let j=i.createSecret(e.name,e.value,e.description||void 0),k=i.getSecret(j);return u.NextResponse.json({secret:k},{status:201})}catch(a){if(a instanceof Error&&"Unauthorized"===a.message)return u.NextResponse.json({error:"Unauthorized"},{status:401});return console.error("[Admin Secrets API] Error:",a),u.NextResponse.json({error:"Internal server error"},{status:500})}}let A=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/admin/sites/[id]/secrets/route",pathname:"/api/admin/sites/[id]/secrets",filename:"route",bundlePath:"app/api/admin/sites/[id]/secrets/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/sites/[id]/secrets/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:B,workUnitAsyncStorage:C,serverHooks:D}=A;function E(){return(0,g.patchFetch)({workAsyncStorage:B,workUnitAsyncStorage:C})}async function F(a,b,c){var d;let e="/api/admin/sites/[id]/secrets/route";"/index"===e&&(e="/");let g=await A.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:y,routerServerContext:z,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(y.dynamicRoutes[E]||y.routes[D]);if(F&&!x){let a=!!y.routes[D],b=y.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||A.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===A.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:y,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>A.onRequestError(a,b,d,z)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>A.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await A.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},z),b}},l=await A.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await A.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("../../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,726],()=>b(b.s=34901));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/admin/sites/[id]/secrets/route.js.nft.json b/.next/server/app/api/admin/sites/[id]/secrets/route.js.nft.json deleted file mode 100644 index 16ce0cb26288c662f1d5ffabc205de4190582aef..0000000000000000000000000000000000000000 --- a/.next/server/app/api/admin/sites/[id]/secrets/route.js.nft.json +++ /dev/null @@ -1 +0,0 @@ -{"version":1,"files":["../../../../../../../../data/osws.sqlite","../../../../../../../../data/osws.sqlite-shm","../../../../../../../../data/osws.sqlite-wal","../../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../../node_modules/bindings/bindings.js","../../../../../../../../node_modules/bindings/package.json","../../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../../node_modules/next/package.json","../../../../../../../../package.json","../../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite","../../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-shm","../../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-wal","../../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite","../../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-shm","../../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-wal","../../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite","../../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-shm","../../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-wal","../../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite","../../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-shm","../../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-wal","../../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite","../../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-shm","../../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-wal","../../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite","../../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-shm","../../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-wal","../../../../../../../package.json","../../../../../../chunks/1692.js","../../../../../../chunks/4586.js","../../../../../../chunks/6151.js","../../../../../../chunks/726.js","../../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/admin/sites/[id]/server-context/mutate/route.js b/.next/server/app/api/admin/sites/[id]/server-context/mutate/route.js deleted file mode 100644 index e2df550f90905833f24d2af0e1aa43671d6cf67f..0000000000000000000000000000000000000000 --- a/.next/server/app/api/admin/sites/[id]/server-context/mutate/route.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(()=>{var a={};a.id=7061,a.ids=[7061],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{a.exports=require("path")},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},85317:(a,b,c)=>{c.d(b,{hS:()=>f,V7:()=>i,e0:()=>h,HI:()=>g,K3:()=>k,Au:()=>n,xJ:()=>m,W8:()=>l});var d=c(5622),e=c.n(d);function f(a){return JSON.stringify({name:a.name,method:a.method,description:a.description,enabled:a.enabled,timeoutMs:a.timeoutMs||5e3,code:a.code},null,2)}function g(a){return JSON.stringify({name:a.name,description:a.description,enabled:a.enabled,code:a.code},null,2)}function h(a){return JSON.stringify({name:a.name,description:a.description||void 0,hasValue:a.hasValue},null,2)}function i(a,b){return JSON.stringify({name:a.name,description:a.description,functionName:b,cronExpression:a.cronExpression,timezone:a.timezone,enabled:a.enabled,config:a.config,lastRunAt:a.lastRunAt?.toISOString(),nextRunAt:a.nextRunAt?.toISOString(),lastStatus:a.lastStatus},null,2)}let j=["db","fetch","console","args","request","Response","server","secrets","atob","btoa"];function k(a){let b=[];if(!a||"object"!=typeof a)return{valid:!1,errors:["Invalid JSON: expected an object"]};a.name&&"string"==typeof a.name?/^[a-z0-9][a-z0-9-]*[a-z0-9]$|^[a-z0-9]$/.test(a.name)||b.push('Name must be lowercase letters, numbers, and hyphens only (e.g., "get-users")'):b.push('Missing or invalid "name" field');let c=["GET","POST","PUT","DELETE","ANY"];if(a.method&&"string"==typeof a.method?c.includes(a.method)||b.push(`Method must be one of: ${c.join(", ")}`):b.push('Missing or invalid "method" field'),a.code&&"string"==typeof a.code)try{Function(a.code)}catch(c){let a=c instanceof Error?c.message:String(c);b.push(`JavaScript syntax error: ${a}`)}else b.push('Missing or invalid "code" field');return void 0!==a.enabled&&"boolean"!=typeof a.enabled&&b.push('"enabled" must be a boolean'),void 0!==a.timeoutMs&&("number"!=typeof a.timeoutMs?b.push('"timeoutMs" must be a number'):(a.timeoutMs<1e3||a.timeoutMs>3e4)&&b.push("Timeout must be between 1000 and 30000 ms")),{valid:0===b.length,errors:b}}function l(a){let b=[];if(!a||"object"!=typeof a)return{valid:!1,errors:["Invalid JSON: expected an object"]};if(a.name&&"string"==typeof a.name?/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(a.name)?j.includes(a.name)&&b.push(`Cannot use reserved name: ${a.name}`):b.push('Name must be a valid JavaScript identifier (e.g., "validateAuth", "formatPrice")'):b.push('Missing or invalid "name" field'),a.code&&"string"==typeof a.code)try{Function("args","db","fetch","console",a.code)}catch(c){let a=c instanceof Error?c.message:String(c);b.push(`JavaScript syntax error: ${a}`)}else b.push('Missing or invalid "code" field');return void 0!==a.enabled&&"boolean"!=typeof a.enabled&&b.push('"enabled" must be a boolean'),{valid:0===b.length,errors:b}}function m(a){let b=[];return a&&"object"==typeof a?(a.name&&"string"==typeof a.name?/^[A-Z][A-Z0-9_]*$/.test(a.name)?a.name.length>64&&b.push("Name must be 64 characters or less"):b.push("Name must be SCREAMING_SNAKE_CASE (e.g., MY_API_KEY, SMTP_PASSWORD)"):b.push('Missing or invalid "name" field'),void 0!==a.description&&"string"!=typeof a.description&&b.push('"description" must be a string'),{valid:0===b.length,errors:b}):{valid:!1,errors:["Invalid JSON: expected an object"]}}function n(a){let b=[];if(!a||"object"!=typeof a)return{valid:!1,errors:["Invalid JSON: expected an object"]};if(a.name&&"string"==typeof a.name?/^[a-z0-9][a-z0-9-]*[a-z0-9]$|^[a-z0-9]$/.test(a.name)||b.push("Name must be lowercase letters, numbers, and hyphens only"):b.push('Missing or invalid "name" field'),a.functionName&&"string"==typeof a.functionName||b.push('Missing or invalid "functionName" field'),a.cronExpression&&"string"==typeof a.cronExpression)try{e().parseExpression(a.cronExpression)}catch{b.push("Invalid cron expression")}else b.push('Missing or invalid "cronExpression" field');if(void 0!==a.timezone)if("string"!=typeof a.timezone)b.push('"timezone" must be a string');else try{Intl.DateTimeFormat(void 0,{timeZone:a.timezone})}catch{b.push(`Invalid timezone: ${a.timezone}`)}return void 0!==a.enabled&&"boolean"!=typeof a.enabled&&b.push('"enabled" must be a boolean'),void 0!==a.config&&("object"!=typeof a.config||null===a.config||Array.isArray(a.config))&&b.push('"config" must be a plain object'),{valid:0===b.length,errors:b}}},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},91481:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>G,patchFetch:()=>F,routeModule:()=>B,serverHooks:()=>E,workAsyncStorage:()=>C,workUnitAsyncStorage:()=>D});var d={};c.r(d),c.d(d,{POST:()=>A});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(39588),w=c(97778),x=c(85317),y=c(5622),z=c.n(y);async function A(a,b){try{await (0,v.oC)();let{id:c}=await b.params,{operation:d,path:e,content:f}=await a.json();if(!e)return u.NextResponse.json({success:!1,error:"Path is required"},{status:400});let g=(0,w.q)();if(await g.init(),!await g.getSite(c))return u.NextResponse.json({success:!1,error:"Site not found"},{status:404});let h=g.getSiteDatabaseForAnalytics(c);if(!h)return u.NextResponse.json({success:!1,error:"Site database not available"},{status:500});if("delete"===d)return function(a,b){if(a.startsWith("/.server/secrets/")&&a.endsWith(".json")){let c=a.split("/").pop().replace(".json",""),d=b.getSecretByName(c);return d?(b.deleteSecret(d.id),u.NextResponse.json({success:!0})):u.NextResponse.json({success:!1,error:`Secret not found: ${c}`},{status:404})}if(a.startsWith("/.server/edge-functions/")&&a.endsWith(".json")){let c=a.split("/").pop().replace(".json",""),d=b.getFunctionByName(c);return d?(b.deleteFunction(d.id),u.NextResponse.json({success:!0})):u.NextResponse.json({success:!1,error:`Edge function not found: ${c}`},{status:404})}if(a.startsWith("/.server/server-functions/")&&a.endsWith(".json")){let c=a.split("/").pop().replace(".json",""),d=b.getServerFunctionByName(c);return d?(b.deleteServerFunction(d.id),u.NextResponse.json({success:!0})):u.NextResponse.json({success:!1,error:`Server function not found: ${c}`},{status:404})}if(a.startsWith("/.server/scheduled-functions/")&&a.endsWith(".json")){let c=a.split("/").pop().replace(".json",""),d=b.getScheduledFunctionByName(c);return d?(b.deleteScheduledFunction(d.id),u.NextResponse.json({success:!0})):u.NextResponse.json({success:!1,error:`Scheduled function not found: ${c}`},{status:404})}return u.NextResponse.json({success:!1,error:`Cannot delete ${a}`},{status:400})}(e,h);if(!f)return u.NextResponse.json({success:!1,error:"Content is required for create/update"},{status:400});if("/.server/db/schema.sql"===e)return u.NextResponse.json({success:!1,error:`Cannot modify ${e} - read-only file`},{status:400});if(e.startsWith("/.server/secrets/")&&e.endsWith(".json"))return function(a,b,c){let d;try{d=JSON.parse(b)}catch(b){let a=b instanceof Error?b.message:String(b);return u.NextResponse.json({success:!1,error:`Invalid JSON: ${a}`},{status:400})}let e=(0,x.xJ)(d);if(!e.valid)return u.NextResponse.json({success:!1,error:`Validation failed: ${e.errors.join("; ")}`},{status:400});let f=d,g=a.split("/").pop().replace(".json",""),h=c.getSecretByName(g);h?c.updateSecretMetadata(h.id,{name:f.name,description:f.description||""}):c.createSecretPlaceholder(f.name,f.description||"");let i=c.getSecretByName(f.name),j=`/.server/secrets/${f.name}.json`;return u.NextResponse.json({success:!0,file:{path:j,content:(0,x.e0)(i),isReadOnly:!1}})}(e,f,h);if(e.startsWith("/.server/edge-functions/")&&e.endsWith(".json"))return function(a,b,c){let d;try{d=JSON.parse(b)}catch(b){let a=b instanceof Error?b.message:String(b);return u.NextResponse.json({success:!1,error:`Invalid JSON: ${a}`},{status:400})}let e=(0,x.K3)(d);if(!e.valid)return u.NextResponse.json({success:!1,error:`Validation failed: ${e.errors.join("; ")}`},{status:400});let f=d,g=a.split("/").pop().replace(".json",""),h=c.getFunctionByName(g);h?c.updateFunction(h.id,{name:f.name,code:f.code,method:f.method,description:f.description,enabled:f.enabled??!0,timeoutMs:f.timeoutMs??5e3}):c.createFunction({name:f.name,code:f.code,method:f.method,description:f.description,enabled:f.enabled??!0,timeoutMs:f.timeoutMs??5e3});let i=c.getFunctionByName(f.name),j=`/.server/edge-functions/${f.name}.json`;return u.NextResponse.json({success:!0,file:{path:j,content:(0,x.hS)(i),isReadOnly:!1}})}(e,f,h);if(e.startsWith("/.server/server-functions/")&&e.endsWith(".json"))return function(a,b,c){let d;try{d=JSON.parse(b)}catch(b){let a=b instanceof Error?b.message:String(b);return u.NextResponse.json({success:!1,error:`Invalid JSON: ${a}`},{status:400})}let e=(0,x.W8)(d);if(!e.valid)return u.NextResponse.json({success:!1,error:`Validation failed: ${e.errors.join("; ")}`},{status:400});let f=d,g=a.split("/").pop().replace(".json",""),h=c.getServerFunctionByName(g);h?c.updateServerFunction(h.id,{name:f.name,code:f.code,description:f.description,enabled:f.enabled??!0}):c.createServerFunction({name:f.name,code:f.code,description:f.description,enabled:f.enabled??!0});let i=c.getServerFunctionByName(f.name),j=`/.server/server-functions/${f.name}.json`;return u.NextResponse.json({success:!0,file:{path:j,content:(0,x.HI)(i),isReadOnly:!1}})}(e,f,h);if(e.startsWith("/.server/scheduled-functions/")&&e.endsWith(".json"))return function(a,b,c){let d,e;try{d=JSON.parse(b)}catch(b){let a=b instanceof Error?b.message:String(b);return u.NextResponse.json({success:!1,error:`Invalid JSON: ${a}`},{status:400})}let f=(0,x.Au)(d);if(!f.valid)return u.NextResponse.json({success:!1,error:`Validation failed: ${f.errors.join("; ")}`},{status:400});let g=d;try{let a=z().parseExpression(g.cronExpression),b=a.next().toDate().getTime();if(a.next().toDate().getTime()-b<299e3)return u.NextResponse.json({success:!1,error:"Minimum interval is 5 minutes"},{status:400})}catch{return u.NextResponse.json({success:!1,error:"Invalid cron expression"},{status:400})}let h=c.getFunctionByName(g.functionName);if(!h)return u.NextResponse.json({success:!1,error:`Edge function not found: ${g.functionName}`},{status:400});let i=a.split("/").pop().replace(".json",""),j=c.getScheduledFunctionByName(i);if(!j&&c.listScheduledFunctions().length>=50)return u.NextResponse.json({success:!1,error:"Maximum of 50 scheduled functions per site"},{status:400});try{e=z().parseExpression(g.cronExpression,{tz:g.timezone||"UTC",currentDate:new Date}).next().toDate()}catch{}j?c.updateScheduledFunction(j.id,{name:g.name,functionId:h.id,cronExpression:g.cronExpression,timezone:g.timezone||"UTC",description:g.description,enabled:g.enabled??!0,config:g.config||{},nextRunAt:e}):c.createScheduledFunction({name:g.name,functionId:h.id,cronExpression:g.cronExpression,timezone:g.timezone||"UTC",description:g.description,enabled:g.enabled??!0,config:g.config||{},nextRunAt:e});let k=c.getScheduledFunctionByName(g.name),l=`/.server/scheduled-functions/${g.name}.json`;return u.NextResponse.json({success:!0,file:{path:l,content:(0,x.V7)(k,h.name),isReadOnly:!1}})}(e,f,h);return u.NextResponse.json({success:!1,error:`Unrecognized server context path: ${e}`},{status:400})}catch(a){if(a instanceof Error&&"Unauthorized"===a.message)return u.NextResponse.json({success:!1,error:"Unauthorized"},{status:401});return console.error("[API] Server context mutation failed:",a),u.NextResponse.json({success:!1,error:"Mutation failed"},{status:500})}}let B=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/admin/sites/[id]/server-context/mutate/route",pathname:"/api/admin/sites/[id]/server-context/mutate",filename:"route",bundlePath:"app/api/admin/sites/[id]/server-context/mutate/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/sites/[id]/server-context/mutate/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:C,workUnitAsyncStorage:D,serverHooks:E}=B;function F(){return(0,g.patchFetch)({workAsyncStorage:C,workUnitAsyncStorage:D})}async function G(a,b,c){var d;let e="/api/admin/sites/[id]/server-context/mutate/route";"/index"===e&&(e="/");let g=await B.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:y,routerServerContext:z,isOnDemandRevalidate:A,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(y.dynamicRoutes[E]||y.routes[D]);if(F&&!x){let a=!!y.routes[D],b=y.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||B.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===B.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:y,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>B.onRequestError(a,b,d,z)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>B.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&A&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await B.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:A})},z),b}},l=await B.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:A,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",A?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await B.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:A})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}}};var b=require("../../../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,8215,726],()=>b(b.s=91481));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/admin/sites/[id]/server-context/mutate/route.js.nft.json b/.next/server/app/api/admin/sites/[id]/server-context/mutate/route.js.nft.json deleted file mode 100644 index 06537d0cc3cea24eebcde9d7ab329680a6263062..0000000000000000000000000000000000000000 --- a/.next/server/app/api/admin/sites/[id]/server-context/mutate/route.js.nft.json +++ /dev/null @@ -1 +0,0 @@ -{"version":1,"files":["../../../../../../../../../data/osws.sqlite","../../../../../../../../../data/osws.sqlite-shm","../../../../../../../../../data/osws.sqlite-wal","../../../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../../../node_modules/bindings/bindings.js","../../../../../../../../../node_modules/bindings/package.json","../../../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../../../node_modules/next/package.json","../../../../../../../../../package.json","../../../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite","../../../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-shm","../../../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-wal","../../../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite","../../../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-shm","../../../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-wal","../../../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite","../../../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-shm","../../../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-wal","../../../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite","../../../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-shm","../../../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-wal","../../../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite","../../../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-shm","../../../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-wal","../../../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite","../../../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-shm","../../../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-wal","../../../../../../../../package.json","../../../../../../../chunks/1692.js","../../../../../../../chunks/4586.js","../../../../../../../chunks/6151.js","../../../../../../../chunks/726.js","../../../../../../../chunks/8215.js","../../../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/admin/sites/[id]/server-context/route.js b/.next/server/app/api/admin/sites/[id]/server-context/route.js deleted file mode 100644 index 2744a39c9376ace4661534c01298798dda0e6a47..0000000000000000000000000000000000000000 --- a/.next/server/app/api/admin/sites/[id]/server-context/route.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(()=>{var a={};a.id=5468,a.ids=[5468],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{a.exports=require("path")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},71012:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>D,patchFetch:()=>C,routeModule:()=>y,serverHooks:()=>B,workAsyncStorage:()=>z,workUnitAsyncStorage:()=>A});var d={};c.r(d),c.d(d,{GET:()=>x});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(97778),w=c(85317);async function x(a,b){try{let{id:a}=await b.params,c=(0,v.q)();await c.init();let d=await c.getSite(a);if(!d)return u.NextResponse.json({error:"Site not found"},{status:404});let e=c.getSiteDatabaseForAnalytics(a);if(!e)return u.NextResponse.json({error:"Site database not available"},{status:500});let f=[];f.push({path:"/.server/db/schema.sql",content:e.getSchemaForExport(),isReadOnly:!0});let g=e.listSecrets();for(let a of g)f.push({path:`/.server/secrets/${a.name}.json`,content:(0,w.e0)(a),isReadOnly:!1});let h=e.listFunctions();for(let a of h)f.push({path:`/.server/edge-functions/${a.name}.json`,content:(0,w.hS)(a),isReadOnly:!1});let i=e.listServerFunctions();for(let a of i)f.push({path:`/.server/server-functions/${a.name}.json`,content:(0,w.HI)(a),isReadOnly:!1});let j=e.listScheduledFunctions();for(let a of j){let b=e.getFunction(a.functionId);f.push({path:`/.server/scheduled-functions/${a.name}.json`,content:(0,w.V7)(a,b?.name??"unknown"),isReadOnly:!1})}let k={siteName:d.name,siteId:a,hasDatabase:!0,edgeFunctionCount:h.filter(a=>a.enabled).length,serverFunctionCount:i.filter(a=>a.enabled).length,secretCount:g.length,scheduledFunctionCount:j.filter(a=>a.enabled).length};return u.NextResponse.json({files:f,metadata:k})}catch(a){return console.error("[API] Failed to get server context:",a),u.NextResponse.json({error:"Failed to get server context"},{status:500})}}let y=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/admin/sites/[id]/server-context/route",pathname:"/api/admin/sites/[id]/server-context",filename:"route",bundlePath:"app/api/admin/sites/[id]/server-context/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/sites/[id]/server-context/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:z,workUnitAsyncStorage:A,serverHooks:B}=y;function C(){return(0,g.patchFetch)({workAsyncStorage:z,workUnitAsyncStorage:A})}async function D(a,b,c){var d;let e="/api/admin/sites/[id]/server-context/route";"/index"===e&&(e="/");let g=await y.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:z,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(z.dynamicRoutes[E]||z.routes[D]);if(F&&!x){let a=!!z.routes[D],b=z.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||y.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===y.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:z,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>y.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>y.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await y.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await y.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:z,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await y.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},85317:(a,b,c)=>{c.d(b,{hS:()=>f,V7:()=>i,e0:()=>h,HI:()=>g,K3:()=>k,Au:()=>n,xJ:()=>m,W8:()=>l});var d=c(5622),e=c.n(d);function f(a){return JSON.stringify({name:a.name,method:a.method,description:a.description,enabled:a.enabled,timeoutMs:a.timeoutMs||5e3,code:a.code},null,2)}function g(a){return JSON.stringify({name:a.name,description:a.description,enabled:a.enabled,code:a.code},null,2)}function h(a){return JSON.stringify({name:a.name,description:a.description||void 0,hasValue:a.hasValue},null,2)}function i(a,b){return JSON.stringify({name:a.name,description:a.description,functionName:b,cronExpression:a.cronExpression,timezone:a.timezone,enabled:a.enabled,config:a.config,lastRunAt:a.lastRunAt?.toISOString(),nextRunAt:a.nextRunAt?.toISOString(),lastStatus:a.lastStatus},null,2)}let j=["db","fetch","console","args","request","Response","server","secrets","atob","btoa"];function k(a){let b=[];if(!a||"object"!=typeof a)return{valid:!1,errors:["Invalid JSON: expected an object"]};a.name&&"string"==typeof a.name?/^[a-z0-9][a-z0-9-]*[a-z0-9]$|^[a-z0-9]$/.test(a.name)||b.push('Name must be lowercase letters, numbers, and hyphens only (e.g., "get-users")'):b.push('Missing or invalid "name" field');let c=["GET","POST","PUT","DELETE","ANY"];if(a.method&&"string"==typeof a.method?c.includes(a.method)||b.push(`Method must be one of: ${c.join(", ")}`):b.push('Missing or invalid "method" field'),a.code&&"string"==typeof a.code)try{Function(a.code)}catch(c){let a=c instanceof Error?c.message:String(c);b.push(`JavaScript syntax error: ${a}`)}else b.push('Missing or invalid "code" field');return void 0!==a.enabled&&"boolean"!=typeof a.enabled&&b.push('"enabled" must be a boolean'),void 0!==a.timeoutMs&&("number"!=typeof a.timeoutMs?b.push('"timeoutMs" must be a number'):(a.timeoutMs<1e3||a.timeoutMs>3e4)&&b.push("Timeout must be between 1000 and 30000 ms")),{valid:0===b.length,errors:b}}function l(a){let b=[];if(!a||"object"!=typeof a)return{valid:!1,errors:["Invalid JSON: expected an object"]};if(a.name&&"string"==typeof a.name?/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(a.name)?j.includes(a.name)&&b.push(`Cannot use reserved name: ${a.name}`):b.push('Name must be a valid JavaScript identifier (e.g., "validateAuth", "formatPrice")'):b.push('Missing or invalid "name" field'),a.code&&"string"==typeof a.code)try{Function("args","db","fetch","console",a.code)}catch(c){let a=c instanceof Error?c.message:String(c);b.push(`JavaScript syntax error: ${a}`)}else b.push('Missing or invalid "code" field');return void 0!==a.enabled&&"boolean"!=typeof a.enabled&&b.push('"enabled" must be a boolean'),{valid:0===b.length,errors:b}}function m(a){let b=[];return a&&"object"==typeof a?(a.name&&"string"==typeof a.name?/^[A-Z][A-Z0-9_]*$/.test(a.name)?a.name.length>64&&b.push("Name must be 64 characters or less"):b.push("Name must be SCREAMING_SNAKE_CASE (e.g., MY_API_KEY, SMTP_PASSWORD)"):b.push('Missing or invalid "name" field'),void 0!==a.description&&"string"!=typeof a.description&&b.push('"description" must be a string'),{valid:0===b.length,errors:b}):{valid:!1,errors:["Invalid JSON: expected an object"]}}function n(a){let b=[];if(!a||"object"!=typeof a)return{valid:!1,errors:["Invalid JSON: expected an object"]};if(a.name&&"string"==typeof a.name?/^[a-z0-9][a-z0-9-]*[a-z0-9]$|^[a-z0-9]$/.test(a.name)||b.push("Name must be lowercase letters, numbers, and hyphens only"):b.push('Missing or invalid "name" field'),a.functionName&&"string"==typeof a.functionName||b.push('Missing or invalid "functionName" field'),a.cronExpression&&"string"==typeof a.cronExpression)try{e().parseExpression(a.cronExpression)}catch{b.push("Invalid cron expression")}else b.push('Missing or invalid "cronExpression" field');if(void 0!==a.timezone)if("string"!=typeof a.timezone)b.push('"timezone" must be a string');else try{Intl.DateTimeFormat(void 0,{timeZone:a.timezone})}catch{b.push(`Invalid timezone: ${a.timezone}`)}return void 0!==a.enabled&&"boolean"!=typeof a.enabled&&b.push('"enabled" must be a boolean'),void 0!==a.config&&("object"!=typeof a.config||null===a.config||Array.isArray(a.config))&&b.push('"config" must be a plain object'),{valid:0===b.length,errors:b}}},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("../../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,8215,726],()=>b(b.s=71012));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/admin/sites/[id]/server-context/route.js.nft.json b/.next/server/app/api/admin/sites/[id]/server-context/route.js.nft.json deleted file mode 100644 index 48d19d86d074001a9eb1d8ce71cf2690d908d3ad..0000000000000000000000000000000000000000 --- a/.next/server/app/api/admin/sites/[id]/server-context/route.js.nft.json +++ /dev/null @@ -1 +0,0 @@ -{"version":1,"files":["../../../../../../../../data/osws.sqlite","../../../../../../../../data/osws.sqlite-shm","../../../../../../../../data/osws.sqlite-wal","../../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../../node_modules/bindings/bindings.js","../../../../../../../../node_modules/bindings/package.json","../../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../../node_modules/next/package.json","../../../../../../../../package.json","../../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite","../../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-shm","../../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-wal","../../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite","../../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-shm","../../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-wal","../../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite","../../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-shm","../../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-wal","../../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite","../../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-shm","../../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-wal","../../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite","../../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-shm","../../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-wal","../../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite","../../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-shm","../../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-wal","../../../../../../../package.json","../../../../../../chunks/1692.js","../../../../../../chunks/4586.js","../../../../../../chunks/726.js","../../../../../../chunks/8215.js","../../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/admin/sites/[id]/server-context/route_client-reference-manifest.js b/.next/server/app/api/admin/sites/[id]/server-context/route_client-reference-manifest.js deleted file mode 100644 index e8eeccb521b3be6d1123290c006534a90b00ccbe..0000000000000000000000000000000000000000 --- a/.next/server/app/api/admin/sites/[id]/server-context/route_client-reference-manifest.js +++ /dev/null @@ -1 +0,0 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/admin/sites/[id]/server-context/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/sites/[id]/server-context/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/admin/sites/[id]/server-functions/[functionId]/route.js b/.next/server/app/api/admin/sites/[id]/server-functions/[functionId]/route.js deleted file mode 100644 index c9c6a2750579ad2787955c41512fb2adc7ebe9c4..0000000000000000000000000000000000000000 --- a/.next/server/app/api/admin/sites/[id]/server-functions/[functionId]/route.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(()=>{var a={};a.id=820,a.ids=[820],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},5205:a=>{a.exports=import("quickjs-emscripten-core")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},13026:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{handler:()=>x,patchFetch:()=>w,routeModule:()=>y,serverHooks:()=>B,workAsyncStorage:()=>z,workUnitAsyncStorage:()=>A});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(55032),v=a([u]);u=(v.then?(await v)():v)[0];let y=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/admin/sites/[id]/server-functions/[functionId]/route",pathname:"/api/admin/sites/[id]/server-functions/[functionId]",filename:"route",bundlePath:"app/api/admin/sites/[id]/server-functions/[functionId]/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/sites/[id]/server-functions/[functionId]/route.ts",nextConfigOutput:"standalone",userland:u}),{workAsyncStorage:z,workUnitAsyncStorage:A,serverHooks:B}=y;function w(){return(0,g.patchFetch)({workAsyncStorage:z,workUnitAsyncStorage:A})}async function x(a,b,c){var d;let e="/api/admin/sites/[id]/server-functions/[functionId]/route";"/index"===e&&(e="/");let g=await y.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:z,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(z.dynamicRoutes[E]||z.routes[D]);if(F&&!x){let a=!!z.routes[D],b=z.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||y.isDev||x||(G=D,G="/index"===G?"/":G);let H=!0===y.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:z,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>y.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>y.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await y.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await y.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:z,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await y.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},17915:a=>{a.exports=import("@jitl/quickjs-wasmfile-release-sync")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55032:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{DELETE:()=>l,GET:()=>j,PUT:()=>k});var e=c(10641),f=c(39588),g=c(97778),h=c(19958),i=a([h]);async function j(a,{params:b}){try{await (0,f.oC)();let{id:a,functionId:c}=await b,d=(0,g.q)();await d.init();let h=await d.getSite?.(a);if(!h)return e.NextResponse.json({error:"Site not found"},{status:404});if(!h.databaseEnabled)return e.NextResponse.json({error:"Site database not enabled"},{status:400});let i=d.getSiteDatabaseForAnalytics(a);if(!i)return e.NextResponse.json({error:"Site database not available"},{status:500});let j=i.getServerFunction(c);if(!j)return e.NextResponse.json({error:"Server function not found"},{status:404});return e.NextResponse.json({function:j})}catch(a){if(a instanceof Error&&"Unauthorized"===a.message)return e.NextResponse.json({error:"Unauthorized"},{status:401});return console.error("[Admin Server Functions API] Error:",a),e.NextResponse.json({error:"Internal server error"},{status:500})}}async function k(a,{params:b}){try{await (0,f.oC)();let{id:c,functionId:d}=await b,i=await a.json(),j=(0,g.q)();await j.init();let k=await j.getSite?.(c);if(!k)return e.NextResponse.json({error:"Site not found"},{status:404});if(!k.databaseEnabled)return e.NextResponse.json({error:"Site database not enabled"},{status:400});let l=j.getSiteDatabaseForAnalytics(c);if(!l)return e.NextResponse.json({error:"Site database not available"},{status:500});let m=l.getServerFunction(d);if(!m)return e.NextResponse.json({error:"Server function not found"},{status:404});let n={};if(void 0!==i.name&&i.name!==m.name){let a=(0,h.Rv)(i.name);if(a)return e.NextResponse.json({error:a},{status:400});let b=l.getServerFunctionByName(i.name);if(b&&b.id!==d)return e.NextResponse.json({error:"A server function with this name already exists"},{status:409});n.name=i.name}if(void 0!==i.code){let a=(0,h.c2)(i.code);if(a)return e.NextResponse.json({error:a},{status:400});n.code=i.code}void 0!==i.description&&(n.description=i.description),void 0!==i.enabled&&(n.enabled=i.enabled),Object.keys(n).length>0&&l.updateServerFunction(d,n);let o=l.getServerFunction(d);return e.NextResponse.json({function:o})}catch(a){if(a instanceof Error&&"Unauthorized"===a.message)return e.NextResponse.json({error:"Unauthorized"},{status:401});return console.error("[Admin Server Functions API] Error:",a),e.NextResponse.json({error:"Internal server error"},{status:500})}}async function l(a,{params:b}){try{await (0,f.oC)();let{id:a,functionId:c}=await b,d=(0,g.q)();await d.init();let h=await d.getSite?.(a);if(!h)return e.NextResponse.json({error:"Site not found"},{status:404});if(!h.databaseEnabled)return e.NextResponse.json({error:"Site database not enabled"},{status:400});let i=d.getSiteDatabaseForAnalytics(a);if(!i)return e.NextResponse.json({error:"Site database not available"},{status:500});if(!i.getServerFunction(c))return e.NextResponse.json({error:"Server function not found"},{status:404});return i.deleteServerFunction(c),e.NextResponse.json({success:!0})}catch(a){if(a instanceof Error&&"Unauthorized"===a.message)return e.NextResponse.json({error:"Unauthorized"},{status:401});return console.error("[Admin Server Functions API] Error:",a),e.NextResponse.json({error:"Internal server error"},{status:500})}}h=(i.then?(await i)():i)[0],d()}catch(a){d(a)}})},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("../../../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,726,9958],()=>b(b.s=13026));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/admin/sites/[id]/server-functions/[functionId]/route.js.nft.json b/.next/server/app/api/admin/sites/[id]/server-functions/[functionId]/route.js.nft.json deleted file mode 100644 index 3da12e5e8f8cbb68d9888607fa67a43dd57b99b2..0000000000000000000000000000000000000000 --- a/.next/server/app/api/admin/sites/[id]/server-functions/[functionId]/route.js.nft.json +++ /dev/null @@ -1 +0,0 @@ -{"version":1,"files":["../../../../../../../../../data/osws.sqlite","../../../../../../../../../data/osws.sqlite-shm","../../../../../../../../../data/osws.sqlite-wal","../../../../../../../../../node_modules/@jitl/quickjs-ffi-types/dist/index.js","../../../../../../../../../node_modules/@jitl/quickjs-ffi-types/dist/index.mjs","../../../../../../../../../node_modules/@jitl/quickjs-ffi-types/package.json","../../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/emscripten-module.mjs","../../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/emscripten-module.wasm","../../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/ffi.mjs","../../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/index.js","../../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/index.mjs","../../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/package.json","../../../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../../../node_modules/bindings/bindings.js","../../../../../../../../../node_modules/bindings/package.json","../../../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../../../node_modules/next/package.json","../../../../../../../../../node_modules/quickjs-emscripten-core/dist/chunk-JTKJZQYV.mjs","../../../../../../../../../node_modules/quickjs-emscripten-core/dist/chunk-PEXOKBOE.mjs","../../../../../../../../../node_modules/quickjs-emscripten-core/dist/index.js","../../../../../../../../../node_modules/quickjs-emscripten-core/dist/index.mjs","../../../../../../../../../node_modules/quickjs-emscripten-core/dist/module-6F3E5H7Y.mjs","../../../../../../../../../node_modules/quickjs-emscripten-core/dist/module-asyncify-R6PWJ6ZV.mjs","../../../../../../../../../node_modules/quickjs-emscripten-core/package.json","../../../../../../../../../package.json","../../../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite","../../../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-shm","../../../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-wal","../../../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite","../../../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-shm","../../../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-wal","../../../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite","../../../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-shm","../../../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-wal","../../../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite","../../../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-shm","../../../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-wal","../../../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite","../../../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-shm","../../../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-wal","../../../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite","../../../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-shm","../../../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-wal","../../../../../../../../package.json","../../../../../../../chunks/1692.js","../../../../../../../chunks/4586.js","../../../../../../../chunks/6151.js","../../../../../../../chunks/726.js","../../../../../../../chunks/9958.js","../../../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/admin/sites/[id]/server-functions/[functionId]/route_client-reference-manifest.js b/.next/server/app/api/admin/sites/[id]/server-functions/[functionId]/route_client-reference-manifest.js deleted file mode 100644 index e26b88be6f0a837d0d652daa6b6d3c054c6696ab..0000000000000000000000000000000000000000 --- a/.next/server/app/api/admin/sites/[id]/server-functions/[functionId]/route_client-reference-manifest.js +++ /dev/null @@ -1 +0,0 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/admin/sites/[id]/server-functions/[functionId]/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/sites/[id]/server-functions/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/sites/[id]/server-functions/[functionId]/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/admin/sites/[id]/server-functions/route.js b/.next/server/app/api/admin/sites/[id]/server-functions/route.js deleted file mode 100644 index 64b202cbc9f2ca661a4396da2dab8c8e90eab7f6..0000000000000000000000000000000000000000 --- a/.next/server/app/api/admin/sites/[id]/server-functions/route.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(()=>{var a={};a.id=1618,a.ids=[1618],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},5205:a=>{a.exports=import("quickjs-emscripten-core")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},17915:a=>{a.exports=import("@jitl/quickjs-wasmfile-release-sync")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},19924:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{handler:()=>x,patchFetch:()=>w,routeModule:()=>y,serverHooks:()=>B,workAsyncStorage:()=>z,workUnitAsyncStorage:()=>A});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(60160),v=a([u]);u=(v.then?(await v)():v)[0];let y=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/admin/sites/[id]/server-functions/route",pathname:"/api/admin/sites/[id]/server-functions",filename:"route",bundlePath:"app/api/admin/sites/[id]/server-functions/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/sites/[id]/server-functions/route.ts",nextConfigOutput:"standalone",userland:u}),{workAsyncStorage:z,workUnitAsyncStorage:A,serverHooks:B}=y;function w(){return(0,g.patchFetch)({workAsyncStorage:z,workUnitAsyncStorage:A})}async function x(a,b,c){var d;let e="/api/admin/sites/[id]/server-functions/route";"/index"===e&&(e="/");let g=await y.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:z,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(z.dynamicRoutes[E]||z.routes[D]);if(F&&!x){let a=!!z.routes[D],b=z.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||y.isDev||x||(G=D,G="/index"===G?"/":G);let H=!0===y.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:z,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>y.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>y.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await y.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await y.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:z,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await y.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},60160:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>j,POST:()=>k});var e=c(10641),f=c(39588),g=c(97778),h=c(19958),i=a([h]);async function j(a,{params:b}){try{await (0,f.oC)();let{id:a}=await b,c=(0,g.q)();await c.init();let d=await c.getSite?.(a);if(!d)return e.NextResponse.json({error:"Site not found"},{status:404});if(!d.databaseEnabled)return e.NextResponse.json({error:"Site database not enabled"},{status:400});let h=c.getSiteDatabaseForAnalytics(a);if(!h)return e.NextResponse.json({error:"Site database not available"},{status:500});let i=h.listServerFunctions();return e.NextResponse.json({functions:i})}catch(a){if(a instanceof Error&&"Unauthorized"===a.message)return e.NextResponse.json({error:"Unauthorized"},{status:401});return console.error("[Admin Server Functions API] Error:",a),e.NextResponse.json({error:"Internal server error"},{status:500})}}async function k(a,{params:b}){try{await (0,f.oC)();let{id:c}=await b,d=await a.json();if(!d.name)return e.NextResponse.json({error:"Function name is required"},{status:400});if(!d.code)return e.NextResponse.json({error:"Function code is required"},{status:400});let i=(0,h.Rv)(d.name);if(i)return e.NextResponse.json({error:i},{status:400});let j=(0,h.c2)(d.code);if(j)return e.NextResponse.json({error:j},{status:400});let k=(0,g.q)();await k.init();let l=await k.getSite?.(c);if(!l)return e.NextResponse.json({error:"Site not found"},{status:404});l.databaseEnabled||(l.databaseEnabled=!0,await k.enableSiteDatabase(c),await k.updateSite?.(l));let m=k.getSiteDatabaseForAnalytics(c);if(!m)return e.NextResponse.json({error:"Site database not available"},{status:500});if(m.getServerFunctionByName(d.name))return e.NextResponse.json({error:"A server function with this name already exists"},{status:409});let n=m.createServerFunction({name:d.name,description:d.description||void 0,code:d.code,enabled:!1!==d.enabled}),o=m.getServerFunction(n);return e.NextResponse.json({function:o},{status:201})}catch(a){if(a instanceof Error&&"Unauthorized"===a.message)return e.NextResponse.json({error:"Unauthorized"},{status:401});return console.error("[Admin Server Functions API] Error:",a),e.NextResponse.json({error:"Internal server error"},{status:500})}}h=(i.then?(await i)():i)[0],d()}catch(a){d(a)}})},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("../../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,726,9958],()=>b(b.s=19924));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/admin/sites/[id]/server-functions/route.js.nft.json b/.next/server/app/api/admin/sites/[id]/server-functions/route.js.nft.json deleted file mode 100644 index 451a90f907542306b90c01bdcb039f0f731408da..0000000000000000000000000000000000000000 --- a/.next/server/app/api/admin/sites/[id]/server-functions/route.js.nft.json +++ /dev/null @@ -1 +0,0 @@ -{"version":1,"files":["../../../../../../../../data/osws.sqlite","../../../../../../../../data/osws.sqlite-shm","../../../../../../../../data/osws.sqlite-wal","../../../../../../../../node_modules/@jitl/quickjs-ffi-types/dist/index.js","../../../../../../../../node_modules/@jitl/quickjs-ffi-types/dist/index.mjs","../../../../../../../../node_modules/@jitl/quickjs-ffi-types/package.json","../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/emscripten-module.mjs","../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/emscripten-module.wasm","../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/ffi.mjs","../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/index.js","../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/index.mjs","../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/package.json","../../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../../node_modules/bindings/bindings.js","../../../../../../../../node_modules/bindings/package.json","../../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../../node_modules/next/package.json","../../../../../../../../node_modules/quickjs-emscripten-core/dist/chunk-JTKJZQYV.mjs","../../../../../../../../node_modules/quickjs-emscripten-core/dist/chunk-PEXOKBOE.mjs","../../../../../../../../node_modules/quickjs-emscripten-core/dist/index.js","../../../../../../../../node_modules/quickjs-emscripten-core/dist/index.mjs","../../../../../../../../node_modules/quickjs-emscripten-core/dist/module-6F3E5H7Y.mjs","../../../../../../../../node_modules/quickjs-emscripten-core/dist/module-asyncify-R6PWJ6ZV.mjs","../../../../../../../../node_modules/quickjs-emscripten-core/package.json","../../../../../../../../package.json","../../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite","../../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-shm","../../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-wal","../../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite","../../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-shm","../../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-wal","../../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite","../../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-shm","../../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-wal","../../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite","../../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-shm","../../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-wal","../../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite","../../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-shm","../../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-wal","../../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite","../../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-shm","../../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-wal","../../../../../../../package.json","../../../../../../chunks/1692.js","../../../../../../chunks/4586.js","../../../../../../chunks/6151.js","../../../../../../chunks/726.js","../../../../../../chunks/9958.js","../../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/analytics/[deploymentId]/clear/route.js b/.next/server/app/api/analytics/[deploymentId]/clear/route.js new file mode 100644 index 0000000000000000000000000000000000000000..181d684e1be2d4eb8c896d11fae902774cc9b31e --- /dev/null +++ b/.next/server/app/api/analytics/[deploymentId]/clear/route.js @@ -0,0 +1 @@ +"use strict";(()=>{var a={};a.id=7485,a.ids=[7485],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},25130:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>D,patchFetch:()=>C,routeModule:()=>y,serverHooks:()=>B,workAsyncStorage:()=>z,workUnitAsyncStorage:()=>A});var d={};c.r(d),c.d(d,{DELETE:()=>x});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(39588),w=c(32907);async function x(a,{params:b}){try{if(!await (0,v.Ht)())return u.NextResponse.json({error:"Unauthorized"},{status:401});let{deploymentId:c}=await b,d=a.nextUrl.searchParams.get("type")||"all";if(!["all","pageviews","interactions","sessions"].includes(d))return u.NextResponse.json({error:"Invalid type parameter. Must be one of: all, pageviews, interactions, sessions"},{status:400});let e=(0,w.q)();if(await e.init(),!await e.getDeployment(c))return u.NextResponse.json({error:"Deployment not found"},{status:404});let f=e.getAnalyticsDatabaseInstance(c);if(!f)return u.NextResponse.json({error:"Deployment database not enabled"},{status:404});let g=f.getAnalyticsStorageInfo();"all"===d?f.clearAnalytics():f.clearAnalytics(d);let h=f.getAnalyticsStorageInfo(),i={pageviews:g.pageviewCount-h.pageviewCount,interactions:g.interactionCount-h.interactionCount,sessions:g.sessionCount-h.sessionCount};return u.NextResponse.json({success:!0,message:"Analytics data cleared successfully",deleted:i})}catch(a){return console.error("[Analytics Clear API] Error:",a),u.NextResponse.json({error:"Failed to clear analytics data"},{status:500})}}let y=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/analytics/[deploymentId]/clear/route",pathname:"/api/analytics/[deploymentId]/clear",filename:"route",bundlePath:"app/api/analytics/[deploymentId]/clear/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/analytics/[deploymentId]/clear/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:z,workUnitAsyncStorage:A,serverHooks:B}=y;function C(){return(0,g.patchFetch)({workAsyncStorage:z,workUnitAsyncStorage:A})}async function D(a,b,c){var d;let e="/api/analytics/[deploymentId]/clear/route";"/index"===e&&(e="/");let g=await y.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:z,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(z.dynamicRoutes[E]||z.routes[D]);if(F&&!x){let a=!!z.routes[D],b=z.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||y.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===y.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:z,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>y.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>y.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await y.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await y.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:z,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await y.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,3343],()=>b(b.s=25130));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/analytics/[deploymentId]/clear/route.js.nft.json b/.next/server/app/api/analytics/[deploymentId]/clear/route.js.nft.json new file mode 100644 index 0000000000000000000000000000000000000000..3952e2b6d7834b7d64b6cc71c5308b2edf9b4c8a --- /dev/null +++ b/.next/server/app/api/analytics/[deploymentId]/clear/route.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../../../../data/osws.sqlite","../../../../../../../data/osws.sqlite-shm","../../../../../../../data/osws.sqlite-wal","../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite","../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-shm","../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-wal","../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite","../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-shm","../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-wal","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/analytics.sqlite","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-shm","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-wal","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/analytics.sqlite","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-shm","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-wal","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/analytics.sqlite","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-shm","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-wal","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/analytics.sqlite","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-shm","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-wal","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/analytics.sqlite","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-shm","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-wal","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/analytics.sqlite","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-shm","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-wal","../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../node_modules/bindings/bindings.js","../../../../../../../node_modules/bindings/package.json","../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../node_modules/next/package.json","../../../../../../../package.json","../../../../../../package.json","../../../../../chunks/1692.js","../../../../../chunks/3343.js","../../../../../chunks/4586.js","../../../../../chunks/6151.js","../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/sites/[id]/functions/[...path]/route_client-reference-manifest.js b/.next/server/app/api/analytics/[deploymentId]/clear/route_client-reference-manifest.js similarity index 77% rename from .next/server/app/api/sites/[id]/functions/[...path]/route_client-reference-manifest.js rename to .next/server/app/api/analytics/[deploymentId]/clear/route_client-reference-manifest.js index 9cfb3298a7c8e8b0ac27d0c34e4e3f8e9ad2b340..e26f1f4b74898a7dfc0bbb2c39d2d492f66f9a9e 100644 --- a/.next/server/app/api/sites/[id]/functions/[...path]/route_client-reference-manifest.js +++ b/.next/server/app/api/analytics/[deploymentId]/clear/route_client-reference-manifest.js @@ -1 +1 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/sites/[id]/functions/[...path]/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/sites/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/sites/[id]/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/sites/[id]/functions/[...path]/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/analytics/[deploymentId]/clear/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/analytics/[deploymentId]/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/analytics/[deploymentId]/clear/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/analytics/[deploymentId]/engagement/route.js b/.next/server/app/api/analytics/[deploymentId]/engagement/route.js new file mode 100644 index 0000000000000000000000000000000000000000..576d5f794c9be2140523875990a49bc1ee3daa18 --- /dev/null +++ b/.next/server/app/api/analytics/[deploymentId]/engagement/route.js @@ -0,0 +1 @@ +"use strict";(()=>{var a={};a.id=379,a.ids=[379],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},51918:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>D,patchFetch:()=>C,routeModule:()=>y,serverHooks:()=>B,workAsyncStorage:()=>z,workUnitAsyncStorage:()=>A});var d={};c.r(d),c.d(d,{GET:()=>x});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(39588),w=c(32907);async function x(a,{params:b}){try{if(!await (0,v.Ht)())return u.NextResponse.json({error:"Unauthorized"},{status:401});let{deploymentId:c}=await b,{searchParams:d}=new URL(a.url),e=parseInt(d.get("days")||"30",10),f=(0,w.q)();if(await f.init(),!await f.getDeployment(c))return u.NextResponse.json({error:"Deployment not found"},{status:404});let g=f.getAnalyticsDatabaseInstance(c);if(!g)return u.NextResponse.json({error:"Deployment database not enabled"},{status:404});let h=g.getEngagementMetrics(e),i={timeOnPage:{average:h.avgTimeOnPage,median:h.avgTimeOnPage,distribution:{}},scrollDepth:{average:h.avgScrollDepth,milestones:h.scrollDepthDistribution},exitPages:h.exitPageCounts.map((a,b,c)=>{let d=c.reduce((a,b)=>a+b.count,0);return{page:a.page,exitCount:a.count,exitRate:d>0?a.count/d:0}}),topLandingPages:[]};return u.NextResponse.json(i)}catch(a){return console.error("[Analytics Engagement API] Error:",a),u.NextResponse.json({error:"Failed to fetch engagement metrics"},{status:500})}}let y=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/analytics/[deploymentId]/engagement/route",pathname:"/api/analytics/[deploymentId]/engagement",filename:"route",bundlePath:"app/api/analytics/[deploymentId]/engagement/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/analytics/[deploymentId]/engagement/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:z,workUnitAsyncStorage:A,serverHooks:B}=y;function C(){return(0,g.patchFetch)({workAsyncStorage:z,workUnitAsyncStorage:A})}async function D(a,b,c){var d;let e="/api/analytics/[deploymentId]/engagement/route";"/index"===e&&(e="/");let g=await y.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:z,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(z.dynamicRoutes[E]||z.routes[D]);if(F&&!x){let a=!!z.routes[D],b=z.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||y.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===y.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:z,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>y.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>y.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await y.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await y.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:z,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await y.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,3343],()=>b(b.s=51918));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/analytics/[deploymentId]/engagement/route.js.nft.json b/.next/server/app/api/analytics/[deploymentId]/engagement/route.js.nft.json new file mode 100644 index 0000000000000000000000000000000000000000..3952e2b6d7834b7d64b6cc71c5308b2edf9b4c8a --- /dev/null +++ b/.next/server/app/api/analytics/[deploymentId]/engagement/route.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../../../../data/osws.sqlite","../../../../../../../data/osws.sqlite-shm","../../../../../../../data/osws.sqlite-wal","../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite","../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-shm","../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-wal","../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite","../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-shm","../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-wal","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/analytics.sqlite","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-shm","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-wal","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/analytics.sqlite","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-shm","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-wal","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/analytics.sqlite","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-shm","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-wal","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/analytics.sqlite","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-shm","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-wal","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/analytics.sqlite","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-shm","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-wal","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/analytics.sqlite","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-shm","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-wal","../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../node_modules/bindings/bindings.js","../../../../../../../node_modules/bindings/package.json","../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../node_modules/next/package.json","../../../../../../../package.json","../../../../../../package.json","../../../../../chunks/1692.js","../../../../../chunks/3343.js","../../../../../chunks/4586.js","../../../../../chunks/6151.js","../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/admin/sites/[id]/secrets/[secretId]/route_client-reference-manifest.js b/.next/server/app/api/analytics/[deploymentId]/engagement/route_client-reference-manifest.js similarity index 91% rename from .next/server/app/api/admin/sites/[id]/secrets/[secretId]/route_client-reference-manifest.js rename to .next/server/app/api/analytics/[deploymentId]/engagement/route_client-reference-manifest.js index f7abf40bf77784a09b3754066e17628d6bb15b94..a421575c006af09824fd800ddbc8a057905856c7 100644 --- a/.next/server/app/api/admin/sites/[id]/secrets/[secretId]/route_client-reference-manifest.js +++ b/.next/server/app/api/analytics/[deploymentId]/engagement/route_client-reference-manifest.js @@ -1 +1 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/admin/sites/[id]/secrets/[secretId]/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/sites/[id]/secrets/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/sites/[id]/secrets/[secretId]/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/analytics/[deploymentId]/engagement/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/analytics/[deploymentId]/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/analytics/[deploymentId]/engagement/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/analytics/[deploymentId]/export/route.js b/.next/server/app/api/analytics/[deploymentId]/export/route.js new file mode 100644 index 0000000000000000000000000000000000000000..abdec90c410761c8a90f8a26376b03fd728ff8be --- /dev/null +++ b/.next/server/app/api/analytics/[deploymentId]/export/route.js @@ -0,0 +1,3 @@ +"use strict";(()=>{var a={};a.id=184,a.ids=[184],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},13024:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>D,patchFetch:()=>C,routeModule:()=>y,serverHooks:()=>B,workAsyncStorage:()=>z,workUnitAsyncStorage:()=>A});var d={};c.r(d),c.d(d,{POST:()=>x});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(39588),w=c(32907);async function x(a,{params:b}){try{if(!await (0,v.Ht)())return u.NextResponse.json({error:"Unauthorized"},{status:401});let{deploymentId:c}=await b,{format:d="csv",type:e="all"}=await a.json(),f=(0,w.q)();if(await f.init(),!await f.getDeployment(c))return u.NextResponse.json({error:"Deployment not found"},{status:404});let g=f.getAnalyticsDatabaseInstance(c);if(!g)return u.NextResponse.json({error:"Deployment database not enabled"},{status:404});let h=g.exportAnalyticsData(e);if("json"===d)return u.NextResponse.json(h,{headers:{"Content-Disposition":`attachment; filename="analytics-${c}-${Date.now()}.json"`}});{let a=[];for(let[b,c]of Object.entries(h)){if(!Array.isArray(c)||0===c.length)continue;a.push(` +# ${b.toUpperCase()} +`);let d=Object.keys(c[0]);for(let b of(a.push(d.join(",")),c)){let c=d.map(a=>{let c=b[a];return null==c?"":"object"==typeof c?JSON.stringify(c):`"${String(c).replace(/"/g,'""')}"`});a.push(c.join(","))}}let b=a.join("\n");return new u.NextResponse(b,{headers:{"Content-Type":"text/csv","Content-Disposition":`attachment; filename="analytics-${c}-${Date.now()}.csv"`}})}}catch(a){return console.error("[Analytics Export API] Error:",a),u.NextResponse.json({error:"Failed to export analytics data"},{status:500})}}let y=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/analytics/[deploymentId]/export/route",pathname:"/api/analytics/[deploymentId]/export",filename:"route",bundlePath:"app/api/analytics/[deploymentId]/export/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/analytics/[deploymentId]/export/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:z,workUnitAsyncStorage:A,serverHooks:B}=y;function C(){return(0,g.patchFetch)({workAsyncStorage:z,workUnitAsyncStorage:A})}async function D(a,b,c){var d;let e="/api/analytics/[deploymentId]/export/route";"/index"===e&&(e="/");let g=await y.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:z,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(z.dynamicRoutes[E]||z.routes[D]);if(F&&!x){let a=!!z.routes[D],b=z.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||y.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===y.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:z,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>y.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>y.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await y.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await y.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:z,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await y.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,3343],()=>b(b.s=13024));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/analytics/[deploymentId]/export/route.js.nft.json b/.next/server/app/api/analytics/[deploymentId]/export/route.js.nft.json new file mode 100644 index 0000000000000000000000000000000000000000..3952e2b6d7834b7d64b6cc71c5308b2edf9b4c8a --- /dev/null +++ b/.next/server/app/api/analytics/[deploymentId]/export/route.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../../../../data/osws.sqlite","../../../../../../../data/osws.sqlite-shm","../../../../../../../data/osws.sqlite-wal","../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite","../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-shm","../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-wal","../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite","../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-shm","../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-wal","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/analytics.sqlite","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-shm","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-wal","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/analytics.sqlite","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-shm","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-wal","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/analytics.sqlite","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-shm","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-wal","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/analytics.sqlite","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-shm","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-wal","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/analytics.sqlite","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-shm","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-wal","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/analytics.sqlite","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-shm","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-wal","../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../node_modules/bindings/bindings.js","../../../../../../../node_modules/bindings/package.json","../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../node_modules/next/package.json","../../../../../../../package.json","../../../../../../package.json","../../../../../chunks/1692.js","../../../../../chunks/3343.js","../../../../../chunks/4586.js","../../../../../chunks/6151.js","../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/admin/sites/[id]/database/query/route_client-reference-manifest.js b/.next/server/app/api/analytics/[deploymentId]/export/route_client-reference-manifest.js similarity index 78% rename from .next/server/app/api/admin/sites/[id]/database/query/route_client-reference-manifest.js rename to .next/server/app/api/analytics/[deploymentId]/export/route_client-reference-manifest.js index d4a41f0cb101bbced3ceb81e448c183ac65e2c76..3971dc81fadbffd3faf3b48b57731f0cf9e793d9 100644 --- a/.next/server/app/api/admin/sites/[id]/database/query/route_client-reference-manifest.js +++ b/.next/server/app/api/analytics/[deploymentId]/export/route_client-reference-manifest.js @@ -1 +1 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/admin/sites/[id]/database/query/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/sites/[id]/database/query/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/analytics/[deploymentId]/export/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/analytics/[deploymentId]/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/analytics/[deploymentId]/export/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/analytics/[deploymentId]/heatmap/route.js b/.next/server/app/api/analytics/[deploymentId]/heatmap/route.js new file mode 100644 index 0000000000000000000000000000000000000000..6503fd047bce485c44fe6268396981891b3fdc64 --- /dev/null +++ b/.next/server/app/api/analytics/[deploymentId]/heatmap/route.js @@ -0,0 +1 @@ +"use strict";(()=>{var a={};a.id=2830,a.ids=[2830],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},75377:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>D,patchFetch:()=>C,routeModule:()=>y,serverHooks:()=>B,workAsyncStorage:()=>z,workUnitAsyncStorage:()=>A});var d={};c.r(d),c.d(d,{GET:()=>x});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(39588),w=c(32907);async function x(a,{params:b}){try{if(!await (0,v.Ht)())return u.NextResponse.json({error:"Unauthorized"},{status:401});let{deploymentId:c}=await b,{searchParams:d}=new URL(a.url),e=d.get("page"),f=d.get("type")||"click",g=d.get("device"),h=d.get("dateFrom"),i=d.get("dateTo");if(!e)return u.NextResponse.json({error:"Missing required parameter: page"},{status:400});let j=(0,w.q)();if(await j.init(),!await j.getDeployment(c))return u.NextResponse.json({error:"Deployment not found"},{status:404});let k=j.getAnalyticsDatabaseInstance(c);if(!k)return u.NextResponse.json({error:"Deployment database not enabled"},{status:404});if("click"===f){let a=k.getClickData(e,h||void 0,i||void 0).map(a=>{try{let b="string"==typeof a.coordinates?JSON.parse(a.coordinates):a.coordinates;return{x:b.x,y:b.y,scrollY:b.scrollY||0,viewportWidth:b.viewportWidth,viewportHeight:b.viewportHeight,documentHeight:b.documentHeight,elementSelector:a.elementSelector,timestamp:a.timestamp}}catch{return null}}).filter(a=>null!==a);return g&&"all"!==g&&(a=a.filter(a=>{let b=a.viewportWidth;return"mobile"===g?b<768:"tablet"===g?b>=768&&b<1024:"desktop"!==g||b>=1024})),u.NextResponse.json({type:"click",page:e,sampleSize:a.length,points:a})}if("scroll"===f){let a=k.getScrollData(e,h||void 0,i||void 0),b=a.reduce((a,b)=>{let c=b.scrollDepth;return a[c]=(a[c]||0)+1,a},{});return u.NextResponse.json({type:"scroll",page:e,sampleSize:a.length,depthDistribution:b,rawData:a})}return u.NextResponse.json({error:"Invalid type"},{status:400})}catch(a){return console.error("[Analytics Heatmap API] Error:",a),u.NextResponse.json({error:"Failed to fetch heatmap data"},{status:500})}}let y=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/analytics/[deploymentId]/heatmap/route",pathname:"/api/analytics/[deploymentId]/heatmap",filename:"route",bundlePath:"app/api/analytics/[deploymentId]/heatmap/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/analytics/[deploymentId]/heatmap/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:z,workUnitAsyncStorage:A,serverHooks:B}=y;function C(){return(0,g.patchFetch)({workAsyncStorage:z,workUnitAsyncStorage:A})}async function D(a,b,c){var d;let e="/api/analytics/[deploymentId]/heatmap/route";"/index"===e&&(e="/");let g=await y.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:z,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(z.dynamicRoutes[E]||z.routes[D]);if(F&&!x){let a=!!z.routes[D],b=z.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||y.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===y.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:z,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>y.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>y.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await y.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await y.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:z,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await y.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,3343],()=>b(b.s=75377));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/analytics/[deploymentId]/heatmap/route.js.nft.json b/.next/server/app/api/analytics/[deploymentId]/heatmap/route.js.nft.json new file mode 100644 index 0000000000000000000000000000000000000000..3952e2b6d7834b7d64b6cc71c5308b2edf9b4c8a --- /dev/null +++ b/.next/server/app/api/analytics/[deploymentId]/heatmap/route.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../../../../data/osws.sqlite","../../../../../../../data/osws.sqlite-shm","../../../../../../../data/osws.sqlite-wal","../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite","../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-shm","../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-wal","../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite","../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-shm","../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-wal","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/analytics.sqlite","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-shm","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-wal","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/analytics.sqlite","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-shm","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-wal","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/analytics.sqlite","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-shm","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-wal","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/analytics.sqlite","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-shm","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-wal","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/analytics.sqlite","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-shm","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-wal","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/analytics.sqlite","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-shm","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-wal","../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../node_modules/bindings/bindings.js","../../../../../../../node_modules/bindings/package.json","../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../node_modules/next/package.json","../../../../../../../package.json","../../../../../../package.json","../../../../../chunks/1692.js","../../../../../chunks/3343.js","../../../../../chunks/4586.js","../../../../../chunks/6151.js","../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/analytics/[deploymentId]/heatmap/route_client-reference-manifest.js b/.next/server/app/api/analytics/[deploymentId]/heatmap/route_client-reference-manifest.js new file mode 100644 index 0000000000000000000000000000000000000000..3e140fd1acf370e8d8164c56d6fcece5fea4260e --- /dev/null +++ b/.next/server/app/api/analytics/[deploymentId]/heatmap/route_client-reference-manifest.js @@ -0,0 +1 @@ +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/analytics/[deploymentId]/heatmap/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/analytics/[deploymentId]/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/analytics/[deploymentId]/heatmap/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/analytics/[deploymentId]/overview/route.js b/.next/server/app/api/analytics/[deploymentId]/overview/route.js new file mode 100644 index 0000000000000000000000000000000000000000..79bd5eba24e506f522b04b7bbbb007103e4c85e8 --- /dev/null +++ b/.next/server/app/api/analytics/[deploymentId]/overview/route.js @@ -0,0 +1 @@ +"use strict";(()=>{var a={};a.id=8571,a.ids=[8571],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},25291:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>D,patchFetch:()=>C,routeModule:()=>y,serverHooks:()=>B,workAsyncStorage:()=>z,workUnitAsyncStorage:()=>A});var d={};c.r(d),c.d(d,{GET:()=>x});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(39588),w=c(32907);async function x(a,{params:b}){try{if(!await (0,v.Ht)())return u.NextResponse.json({error:"Unauthorized"},{status:401});let{deploymentId:c}=await b,{searchParams:d}=new URL(a.url),e=parseInt(d.get("days")||"30",10),f=(0,w.q)();if(await f.init(),!await f.getDeployment(c))return u.NextResponse.json({error:"Deployment not found"},{status:404});let g=f.getAnalyticsDatabaseInstance(c);if(!g)return u.NextResponse.json({error:"Deployment database not enabled"},{status:404});let h=g.getOverviewStats(e),i=g.getStats(e),j={totalPageviews:h.totalPageviews,uniqueVisitors:h.uniqueSessions,averageTimeOnSite:h.avgSessionDuration,bounceRate:h.bounceRate/100,topPages:i.topPages.map(a=>({page:a.path,views:a.views})),topReferrers:i.topReferrers,deviceBreakdown:h.deviceBreakdown.reduce((a,b)=>(a[b.device]=b.count,a),{}),countryBreakdown:{}};return u.NextResponse.json(j)}catch(a){return console.error("[Analytics Overview API] Error:",a),u.NextResponse.json({error:"Failed to fetch analytics overview"},{status:500})}}let y=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/analytics/[deploymentId]/overview/route",pathname:"/api/analytics/[deploymentId]/overview",filename:"route",bundlePath:"app/api/analytics/[deploymentId]/overview/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/analytics/[deploymentId]/overview/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:z,workUnitAsyncStorage:A,serverHooks:B}=y;function C(){return(0,g.patchFetch)({workAsyncStorage:z,workUnitAsyncStorage:A})}async function D(a,b,c){var d;let e="/api/analytics/[deploymentId]/overview/route";"/index"===e&&(e="/");let g=await y.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:z,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(z.dynamicRoutes[E]||z.routes[D]);if(F&&!x){let a=!!z.routes[D],b=z.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||y.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===y.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:z,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>y.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>y.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await y.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await y.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:z,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await y.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,3343],()=>b(b.s=25291));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/analytics/[deploymentId]/overview/route.js.nft.json b/.next/server/app/api/analytics/[deploymentId]/overview/route.js.nft.json new file mode 100644 index 0000000000000000000000000000000000000000..3952e2b6d7834b7d64b6cc71c5308b2edf9b4c8a --- /dev/null +++ b/.next/server/app/api/analytics/[deploymentId]/overview/route.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../../../../data/osws.sqlite","../../../../../../../data/osws.sqlite-shm","../../../../../../../data/osws.sqlite-wal","../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite","../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-shm","../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-wal","../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite","../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-shm","../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-wal","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/analytics.sqlite","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-shm","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-wal","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/analytics.sqlite","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-shm","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-wal","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/analytics.sqlite","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-shm","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-wal","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/analytics.sqlite","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-shm","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-wal","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/analytics.sqlite","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-shm","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-wal","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/analytics.sqlite","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-shm","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-wal","../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../node_modules/bindings/bindings.js","../../../../../../../node_modules/bindings/package.json","../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../node_modules/next/package.json","../../../../../../../package.json","../../../../../../package.json","../../../../../chunks/1692.js","../../../../../chunks/3343.js","../../../../../chunks/4586.js","../../../../../chunks/6151.js","../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/analytics/[deploymentId]/overview/route_client-reference-manifest.js b/.next/server/app/api/analytics/[deploymentId]/overview/route_client-reference-manifest.js new file mode 100644 index 0000000000000000000000000000000000000000..eaa6cab5b2ce010ab11e5738e04310d568bf0d58 --- /dev/null +++ b/.next/server/app/api/analytics/[deploymentId]/overview/route_client-reference-manifest.js @@ -0,0 +1 @@ +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/analytics/[deploymentId]/overview/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/analytics/[deploymentId]/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/analytics/[deploymentId]/overview/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/analytics/[deploymentId]/route.js b/.next/server/app/api/analytics/[deploymentId]/route.js new file mode 100644 index 0000000000000000000000000000000000000000..49f4563ece5ba458784fd48743acc0fe10340e5d --- /dev/null +++ b/.next/server/app/api/analytics/[deploymentId]/route.js @@ -0,0 +1 @@ +"use strict";(()=>{var a={};a.id=9655,a.ids=[9655],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},38469:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>C,patchFetch:()=>B,routeModule:()=>x,serverHooks:()=>A,workAsyncStorage:()=>y,workUnitAsyncStorage:()=>z});var d={};c.r(d),c.d(d,{GET:()=>w});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(32907);async function w(a,{params:b}){try{let{deploymentId:c}=await b,d=a.nextUrl.searchParams,e=parseInt(d.get("days")||"30",10),f=(0,v.q)();if(await f.init(),!await f.getDeployment(c))return u.NextResponse.json({error:"Deployment not found"},{status:404});let g=f.getAnalyticsDatabaseInstance(c);if(!g)return u.NextResponse.json({error:"Deployment database not enabled"},{status:404});let h=g.getStats(e),i=g.getTopPages(e,10),j=g.getTopReferrers(e,10),k=g.getPageviewsOverTime(e),l={totalPageviews:h.totalPageviews,uniqueVisitors:h.uniqueSessions,topPages:i,topReferrers:j.map(a=>({referrer:a.referrer,views:a.count})),countries:[],pageviewsOverTime:k.map(a=>({date:a.date,views:a.views}))};return u.NextResponse.json(l)}catch(a){return console.error("[Analytics API] Error fetching analytics:",a),u.NextResponse.json({error:"Failed to fetch analytics"},{status:500})}}let x=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/analytics/[deploymentId]/route",pathname:"/api/analytics/[deploymentId]",filename:"route",bundlePath:"app/api/analytics/[deploymentId]/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/analytics/[deploymentId]/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:y,workUnitAsyncStorage:z,serverHooks:A}=x;function B(){return(0,g.patchFetch)({workAsyncStorage:y,workUnitAsyncStorage:z})}async function C(a,b,c){var d;let e="/api/analytics/[deploymentId]/route";"/index"===e&&(e="/");let g=await x.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:y,prerenderManifest:z,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(z.dynamicRoutes[E]||z.routes[D]);if(F&&!y){let a=!!z.routes[D],b=z.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||x.isDev||y||(G="/index"===(G=D)?"/":G);let H=!0===x.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:z,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>x.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>x.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await x.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await x.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:z,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),y&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await x.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,3343],()=>b(b.s=38469));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/analytics/[deploymentId]/route.js.nft.json b/.next/server/app/api/analytics/[deploymentId]/route.js.nft.json new file mode 100644 index 0000000000000000000000000000000000000000..4b725186881bff2f8e4c49cf092b63b314236758 --- /dev/null +++ b/.next/server/app/api/analytics/[deploymentId]/route.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../../../data/osws.sqlite","../../../../../../data/osws.sqlite-shm","../../../../../../data/osws.sqlite-wal","../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite","../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-shm","../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-wal","../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite","../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-shm","../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-wal","../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/analytics.sqlite","../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite","../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-shm","../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-wal","../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/analytics.sqlite","../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite","../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-shm","../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-wal","../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/analytics.sqlite","../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite","../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-shm","../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-wal","../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/analytics.sqlite","../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite","../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-shm","../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-wal","../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/analytics.sqlite","../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite","../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-shm","../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-wal","../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/analytics.sqlite","../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite","../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-shm","../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-wal","../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../node_modules/better-sqlite3/package.json","../../../../../../node_modules/bindings/bindings.js","../../../../../../node_modules/bindings/package.json","../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../node_modules/next/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1692.js","../../../../chunks/3343.js","../../../../chunks/4586.js","../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/admin/sites/[id]/secrets/route_client-reference-manifest.js b/.next/server/app/api/analytics/[deploymentId]/route_client-reference-manifest.js similarity index 92% rename from .next/server/app/api/admin/sites/[id]/secrets/route_client-reference-manifest.js rename to .next/server/app/api/analytics/[deploymentId]/route_client-reference-manifest.js index 49e5c2788060933e743bb3618bdadaf8b5cf8c62..9bc1cf73a6229c08803dad1801fb8877c9b93425 100644 --- a/.next/server/app/api/admin/sites/[id]/secrets/route_client-reference-manifest.js +++ b/.next/server/app/api/analytics/[deploymentId]/route_client-reference-manifest.js @@ -1 +1 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/admin/sites/[id]/secrets/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/sites/[id]/secrets/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/analytics/[deploymentId]/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/analytics/[deploymentId]/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/analytics/[deploymentId]/sessions/route.js b/.next/server/app/api/analytics/[deploymentId]/sessions/route.js new file mode 100644 index 0000000000000000000000000000000000000000..4351c9e667a88f78ada79f568dd5c9bb62164623 --- /dev/null +++ b/.next/server/app/api/analytics/[deploymentId]/sessions/route.js @@ -0,0 +1 @@ +"use strict";(()=>{var a={};a.id=7421,a.ids=[7421],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},81355:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>D,patchFetch:()=>C,routeModule:()=>y,serverHooks:()=>B,workAsyncStorage:()=>z,workUnitAsyncStorage:()=>A});var d={};c.r(d),c.d(d,{GET:()=>x});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(39588),w=c(32907);async function x(a,{params:b}){try{if(!await (0,v.Ht)())return u.NextResponse.json({error:"Unauthorized"},{status:401});let{deploymentId:c}=await b,{searchParams:d}=new URL(a.url),e=d.get("dateFrom"),f=d.get("dateTo"),g=Math.min(parseInt(d.get("limit")||"100",10),1e3),h=(0,w.q)();if(await h.init(),!await h.getDeployment(c))return u.NextResponse.json({error:"Deployment not found"},{status:404});let i=h.getAnalyticsDatabaseInstance(c);if(!i)return u.NextResponse.json({error:"Deployment database not enabled"},{status:404});let j=i.getSessionsWithJourneys(e||void 0,f||void 0,g).map(a=>({sessionId:a.sessionId,pages:a.pages.map((b,c)=>({path:b.path,timestamp:b.timestamp,duration:c{a.pages.forEach((d,e)=>{if(c.set(d.path,(c.get(d.path)||0)+1),e({id:a,label:"/"===a?"Home":a,value:b})).sort((a,b)=>b.value-a.value).slice(0,20),e=new Set(d.map(a=>a.id));return{nodes:d,links:Array.from(b.entries()).map(([a,b])=>{let[c,d]=a.split("::");return{source:c,target:d,value:b}}).filter(a=>e.has(a.source)&&e.has(a.target)).sort((a,b)=>b.value-a.value)}}(j);return u.NextResponse.json({sessions:j,flowData:k,summary:{totalSessions:j.length,bounceRate:j.length>0?j.filter(a=>a.isBounce).length/j.length:0,averageDuration:j.length>0?j.reduce((a,b)=>a+b.totalDuration,0)/j.length:0,averagePageCount:j.length>0?j.reduce((a,b)=>a+b.pageCount,0)/j.length:0}})}catch(a){return console.error("[Analytics Sessions API] Error:",a),u.NextResponse.json({error:"Failed to fetch session data"},{status:500})}}let y=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/analytics/[deploymentId]/sessions/route",pathname:"/api/analytics/[deploymentId]/sessions",filename:"route",bundlePath:"app/api/analytics/[deploymentId]/sessions/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/analytics/[deploymentId]/sessions/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:z,workUnitAsyncStorage:A,serverHooks:B}=y;function C(){return(0,g.patchFetch)({workAsyncStorage:z,workUnitAsyncStorage:A})}async function D(a,b,c){var d;let e="/api/analytics/[deploymentId]/sessions/route";"/index"===e&&(e="/");let g=await y.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:z,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(z.dynamicRoutes[E]||z.routes[D]);if(F&&!x){let a=!!z.routes[D],b=z.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||y.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===y.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:z,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>y.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>y.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await y.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await y.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:z,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await y.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,3343],()=>b(b.s=81355));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/analytics/[deploymentId]/sessions/route.js.nft.json b/.next/server/app/api/analytics/[deploymentId]/sessions/route.js.nft.json new file mode 100644 index 0000000000000000000000000000000000000000..3952e2b6d7834b7d64b6cc71c5308b2edf9b4c8a --- /dev/null +++ b/.next/server/app/api/analytics/[deploymentId]/sessions/route.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../../../../data/osws.sqlite","../../../../../../../data/osws.sqlite-shm","../../../../../../../data/osws.sqlite-wal","../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite","../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-shm","../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-wal","../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite","../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-shm","../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-wal","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/analytics.sqlite","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-shm","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-wal","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/analytics.sqlite","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-shm","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-wal","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/analytics.sqlite","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-shm","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-wal","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/analytics.sqlite","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-shm","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-wal","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/analytics.sqlite","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-shm","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-wal","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/analytics.sqlite","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-shm","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-wal","../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../node_modules/bindings/bindings.js","../../../../../../../node_modules/bindings/package.json","../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../node_modules/next/package.json","../../../../../../../package.json","../../../../../../package.json","../../../../../chunks/1692.js","../../../../../chunks/3343.js","../../../../../chunks/4586.js","../../../../../chunks/6151.js","../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/analytics/[deploymentId]/sessions/route_client-reference-manifest.js b/.next/server/app/api/analytics/[deploymentId]/sessions/route_client-reference-manifest.js new file mode 100644 index 0000000000000000000000000000000000000000..4f3bcbad2d22e7b50da5f36a6762d67c6ba14530 --- /dev/null +++ b/.next/server/app/api/analytics/[deploymentId]/sessions/route_client-reference-manifest.js @@ -0,0 +1 @@ +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/analytics/[deploymentId]/sessions/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/analytics/[deploymentId]/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/analytics/[deploymentId]/sessions/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/analytics/[deploymentId]/storage/route.js b/.next/server/app/api/analytics/[deploymentId]/storage/route.js new file mode 100644 index 0000000000000000000000000000000000000000..c2269bbbda3ab428182980099c83a19db19ddcf4 --- /dev/null +++ b/.next/server/app/api/analytics/[deploymentId]/storage/route.js @@ -0,0 +1 @@ +"use strict";(()=>{var a={};a.id=4833,a.ids=[4833],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},51273:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>D,patchFetch:()=>C,routeModule:()=>y,serverHooks:()=>B,workAsyncStorage:()=>z,workUnitAsyncStorage:()=>A});var d={};c.r(d),c.d(d,{GET:()=>x});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(39588),w=c(32907);async function x(a,{params:b}){try{if(!await (0,v.Ht)())return u.NextResponse.json({error:"Unauthorized"},{status:401});let{deploymentId:a}=await b,c=(0,w.q)();if(await c.init(),!await c.getDeployment(a))return u.NextResponse.json({error:"Deployment not found"},{status:404});let d=c.getAnalyticsDatabaseInstance(a);if(!d)return u.NextResponse.json({error:"Deployment database not enabled"},{status:404});let e=d.getAnalyticsStorageInfo(),f=200*e.pageviewCount/1048576,g=150*e.interactionCount/1048576,h=100*e.sessionCount/1048576,i=f+g+h,j={totalMB:parseFloat(i.toFixed(2)),breakdown:{pageviews:{count:e.pageviewCount,sizeMB:parseFloat(f.toFixed(2))},interactions:{count:e.interactionCount,sizeMB:parseFloat(g.toFixed(2))},sessions:{count:e.sessionCount,sizeMB:parseFloat(h.toFixed(2))}}};return u.NextResponse.json(j)}catch(a){return console.error("[Analytics Storage API] Error:",a),u.NextResponse.json({error:"Failed to get storage usage"},{status:500})}}let y=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/analytics/[deploymentId]/storage/route",pathname:"/api/analytics/[deploymentId]/storage",filename:"route",bundlePath:"app/api/analytics/[deploymentId]/storage/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/analytics/[deploymentId]/storage/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:z,workUnitAsyncStorage:A,serverHooks:B}=y;function C(){return(0,g.patchFetch)({workAsyncStorage:z,workUnitAsyncStorage:A})}async function D(a,b,c){var d;let e="/api/analytics/[deploymentId]/storage/route";"/index"===e&&(e="/");let g=await y.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:z,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(z.dynamicRoutes[E]||z.routes[D]);if(F&&!x){let a=!!z.routes[D],b=z.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||y.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===y.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:z,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>y.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>y.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await y.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await y.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:z,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await y.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,3343],()=>b(b.s=51273));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/analytics/[deploymentId]/storage/route.js.nft.json b/.next/server/app/api/analytics/[deploymentId]/storage/route.js.nft.json new file mode 100644 index 0000000000000000000000000000000000000000..3952e2b6d7834b7d64b6cc71c5308b2edf9b4c8a --- /dev/null +++ b/.next/server/app/api/analytics/[deploymentId]/storage/route.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../../../../data/osws.sqlite","../../../../../../../data/osws.sqlite-shm","../../../../../../../data/osws.sqlite-wal","../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite","../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-shm","../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-wal","../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite","../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-shm","../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-wal","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/analytics.sqlite","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-shm","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-wal","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/analytics.sqlite","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-shm","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-wal","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/analytics.sqlite","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-shm","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-wal","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/analytics.sqlite","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-shm","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-wal","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/analytics.sqlite","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-shm","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-wal","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/analytics.sqlite","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-shm","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-wal","../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../node_modules/bindings/bindings.js","../../../../../../../node_modules/bindings/package.json","../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../node_modules/next/package.json","../../../../../../../package.json","../../../../../../package.json","../../../../../chunks/1692.js","../../../../../chunks/3343.js","../../../../../chunks/4586.js","../../../../../chunks/6151.js","../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/analytics/[deploymentId]/storage/route_client-reference-manifest.js b/.next/server/app/api/analytics/[deploymentId]/storage/route_client-reference-manifest.js new file mode 100644 index 0000000000000000000000000000000000000000..cb4ff9cc3d80cb0d83c8c2c201365a7b73812dff --- /dev/null +++ b/.next/server/app/api/analytics/[deploymentId]/storage/route_client-reference-manifest.js @@ -0,0 +1 @@ +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/analytics/[deploymentId]/storage/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/analytics/[deploymentId]/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/analytics/[deploymentId]/storage/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/analytics/[siteId]/clear/route.js b/.next/server/app/api/analytics/[siteId]/clear/route.js deleted file mode 100644 index a334b473e26d23ec74e0c270668f514f4284ea52..0000000000000000000000000000000000000000 --- a/.next/server/app/api/analytics/[siteId]/clear/route.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(()=>{var a={};a.id=1989,a.ids=[1989],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},71499:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>D,patchFetch:()=>C,routeModule:()=>y,serverHooks:()=>B,workAsyncStorage:()=>z,workUnitAsyncStorage:()=>A});var d={};c.r(d),c.d(d,{DELETE:()=>x});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(39588),w=c(97778);async function x(a,{params:b}){try{if(!await (0,v.Ht)())return u.NextResponse.json({error:"Unauthorized"},{status:401});let{siteId:c}=await b,d=a.nextUrl.searchParams.get("type")||"all";if(!["all","pageviews","interactions","sessions"].includes(d))return u.NextResponse.json({error:"Invalid type parameter. Must be one of: all, pageviews, interactions, sessions"},{status:400});let e=(0,w.q)();if(await e.init(),!await e.getSite(c))return u.NextResponse.json({error:"Site not found"},{status:404});let f=e.getSiteDatabaseForAnalytics(c);if(!f)return u.NextResponse.json({error:"Site database not enabled"},{status:404});let g=f.getAnalyticsStorageInfo();"all"===d?f.clearAnalytics():f.clearAnalytics(d);let h=f.getAnalyticsStorageInfo(),i={pageviews:g.pageviewCount-h.pageviewCount,interactions:g.interactionCount-h.interactionCount,sessions:g.sessionCount-h.sessionCount};return u.NextResponse.json({success:!0,message:"Analytics data cleared successfully",deleted:i})}catch(a){return console.error("[Analytics Clear API] Error:",a),u.NextResponse.json({error:"Failed to clear analytics data"},{status:500})}}let y=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/analytics/[siteId]/clear/route",pathname:"/api/analytics/[siteId]/clear",filename:"route",bundlePath:"app/api/analytics/[siteId]/clear/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/analytics/[siteId]/clear/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:z,workUnitAsyncStorage:A,serverHooks:B}=y;function C(){return(0,g.patchFetch)({workAsyncStorage:z,workUnitAsyncStorage:A})}async function D(a,b,c){var d;let e="/api/analytics/[siteId]/clear/route";"/index"===e&&(e="/");let g=await y.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:z,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(z.dynamicRoutes[E]||z.routes[D]);if(F&&!x){let a=!!z.routes[D],b=z.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||y.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===y.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:z,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>y.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>y.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await y.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await y.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:z,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await y.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,726],()=>b(b.s=71499));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/analytics/[siteId]/clear/route.js.nft.json b/.next/server/app/api/analytics/[siteId]/clear/route.js.nft.json deleted file mode 100644 index 59e9edd852dd23da7e26935f908d738e6605f507..0000000000000000000000000000000000000000 --- a/.next/server/app/api/analytics/[siteId]/clear/route.js.nft.json +++ /dev/null @@ -1 +0,0 @@ -{"version":1,"files":["../../../../../../../data/osws.sqlite","../../../../../../../data/osws.sqlite-shm","../../../../../../../data/osws.sqlite-wal","../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../node_modules/bindings/bindings.js","../../../../../../../node_modules/bindings/package.json","../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../node_modules/next/package.json","../../../../../../../package.json","../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite","../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-shm","../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-wal","../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite","../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-shm","../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-wal","../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite","../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-shm","../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-wal","../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite","../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-shm","../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-wal","../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite","../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-shm","../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-wal","../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite","../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-shm","../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-wal","../../../../../../package.json","../../../../../chunks/1692.js","../../../../../chunks/4586.js","../../../../../chunks/6151.js","../../../../../chunks/726.js","../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/analytics/[siteId]/engagement/route.js b/.next/server/app/api/analytics/[siteId]/engagement/route.js deleted file mode 100644 index 1d6929c65cb64bb2a160dfc4061cd9b534b109cd..0000000000000000000000000000000000000000 --- a/.next/server/app/api/analytics/[siteId]/engagement/route.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(()=>{var a={};a.id=9379,a.ids=[9379],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},22963:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>D,patchFetch:()=>C,routeModule:()=>y,serverHooks:()=>B,workAsyncStorage:()=>z,workUnitAsyncStorage:()=>A});var d={};c.r(d),c.d(d,{GET:()=>x});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(39588),w=c(97778);async function x(a,{params:b}){try{if(!await (0,v.Ht)())return u.NextResponse.json({error:"Unauthorized"},{status:401});let{siteId:c}=await b,{searchParams:d}=new URL(a.url),e=parseInt(d.get("days")||"30",10),f=(0,w.q)();if(await f.init(),!await f.getSite(c))return u.NextResponse.json({error:"Site not found"},{status:404});let g=f.getSiteDatabaseForAnalytics(c);if(!g)return u.NextResponse.json({error:"Site database not enabled"},{status:404});let h=g.getEngagementMetrics(e),i={timeOnPage:{average:h.avgTimeOnPage,median:h.avgTimeOnPage,distribution:{}},scrollDepth:{average:h.avgScrollDepth,milestones:h.scrollDepthDistribution},exitPages:h.exitPageCounts.map((a,b,c)=>{let d=c.reduce((a,b)=>a+b.count,0);return{page:a.page,exitCount:a.count,exitRate:d>0?a.count/d:0}}),topLandingPages:[]};return u.NextResponse.json(i)}catch(a){return console.error("[Analytics Engagement API] Error:",a),u.NextResponse.json({error:"Failed to fetch engagement metrics"},{status:500})}}let y=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/analytics/[siteId]/engagement/route",pathname:"/api/analytics/[siteId]/engagement",filename:"route",bundlePath:"app/api/analytics/[siteId]/engagement/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/analytics/[siteId]/engagement/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:z,workUnitAsyncStorage:A,serverHooks:B}=y;function C(){return(0,g.patchFetch)({workAsyncStorage:z,workUnitAsyncStorage:A})}async function D(a,b,c){var d;let e="/api/analytics/[siteId]/engagement/route";"/index"===e&&(e="/");let g=await y.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:z,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(z.dynamicRoutes[E]||z.routes[D]);if(F&&!x){let a=!!z.routes[D],b=z.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||y.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===y.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:z,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>y.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>y.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await y.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await y.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:z,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await y.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,726],()=>b(b.s=22963));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/analytics/[siteId]/engagement/route.js.nft.json b/.next/server/app/api/analytics/[siteId]/engagement/route.js.nft.json deleted file mode 100644 index 59e9edd852dd23da7e26935f908d738e6605f507..0000000000000000000000000000000000000000 --- a/.next/server/app/api/analytics/[siteId]/engagement/route.js.nft.json +++ /dev/null @@ -1 +0,0 @@ -{"version":1,"files":["../../../../../../../data/osws.sqlite","../../../../../../../data/osws.sqlite-shm","../../../../../../../data/osws.sqlite-wal","../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../node_modules/bindings/bindings.js","../../../../../../../node_modules/bindings/package.json","../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../node_modules/next/package.json","../../../../../../../package.json","../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite","../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-shm","../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-wal","../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite","../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-shm","../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-wal","../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite","../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-shm","../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-wal","../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite","../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-shm","../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-wal","../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite","../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-shm","../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-wal","../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite","../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-shm","../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-wal","../../../../../../package.json","../../../../../chunks/1692.js","../../../../../chunks/4586.js","../../../../../chunks/6151.js","../../../../../chunks/726.js","../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/analytics/[siteId]/export/route.js b/.next/server/app/api/analytics/[siteId]/export/route.js deleted file mode 100644 index 5a12425571bac61c90acc102a432f0540ab9de51..0000000000000000000000000000000000000000 --- a/.next/server/app/api/analytics/[siteId]/export/route.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict";(()=>{var a={};a.id=8080,a.ids=[8080],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},93584:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>D,patchFetch:()=>C,routeModule:()=>y,serverHooks:()=>B,workAsyncStorage:()=>z,workUnitAsyncStorage:()=>A});var d={};c.r(d),c.d(d,{POST:()=>x});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(39588),w=c(97778);async function x(a,{params:b}){try{if(!await (0,v.Ht)())return u.NextResponse.json({error:"Unauthorized"},{status:401});let{siteId:c}=await b,{format:d="csv",type:e="all"}=await a.json(),f=(0,w.q)();if(await f.init(),!await f.getSite(c))return u.NextResponse.json({error:"Site not found"},{status:404});let g=f.getSiteDatabaseForAnalytics(c);if(!g)return u.NextResponse.json({error:"Site database not enabled"},{status:404});let h=g.exportAnalyticsData(e);if("json"===d)return u.NextResponse.json(h,{headers:{"Content-Disposition":`attachment; filename="analytics-${c}-${Date.now()}.json"`}});{let a=[];for(let[b,c]of Object.entries(h)){if(!Array.isArray(c)||0===c.length)continue;a.push(` -# ${b.toUpperCase()} -`);let d=Object.keys(c[0]);for(let b of(a.push(d.join(",")),c)){let c=d.map(a=>{let c=b[a];return null==c?"":"object"==typeof c?JSON.stringify(c):`"${String(c).replace(/"/g,'""')}"`});a.push(c.join(","))}}let b=a.join("\n");return new u.NextResponse(b,{headers:{"Content-Type":"text/csv","Content-Disposition":`attachment; filename="analytics-${c}-${Date.now()}.csv"`}})}}catch(a){return console.error("[Analytics Export API] Error:",a),u.NextResponse.json({error:"Failed to export analytics data"},{status:500})}}let y=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/analytics/[siteId]/export/route",pathname:"/api/analytics/[siteId]/export",filename:"route",bundlePath:"app/api/analytics/[siteId]/export/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/analytics/[siteId]/export/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:z,workUnitAsyncStorage:A,serverHooks:B}=y;function C(){return(0,g.patchFetch)({workAsyncStorage:z,workUnitAsyncStorage:A})}async function D(a,b,c){var d;let e="/api/analytics/[siteId]/export/route";"/index"===e&&(e="/");let g=await y.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:z,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(z.dynamicRoutes[E]||z.routes[D]);if(F&&!x){let a=!!z.routes[D],b=z.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||y.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===y.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:z,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>y.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>y.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await y.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await y.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:z,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await y.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,726],()=>b(b.s=93584));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/analytics/[siteId]/export/route.js.nft.json b/.next/server/app/api/analytics/[siteId]/export/route.js.nft.json deleted file mode 100644 index 59e9edd852dd23da7e26935f908d738e6605f507..0000000000000000000000000000000000000000 --- a/.next/server/app/api/analytics/[siteId]/export/route.js.nft.json +++ /dev/null @@ -1 +0,0 @@ -{"version":1,"files":["../../../../../../../data/osws.sqlite","../../../../../../../data/osws.sqlite-shm","../../../../../../../data/osws.sqlite-wal","../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../node_modules/bindings/bindings.js","../../../../../../../node_modules/bindings/package.json","../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../node_modules/next/package.json","../../../../../../../package.json","../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite","../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-shm","../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-wal","../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite","../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-shm","../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-wal","../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite","../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-shm","../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-wal","../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite","../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-shm","../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-wal","../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite","../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-shm","../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-wal","../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite","../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-shm","../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-wal","../../../../../../package.json","../../../../../chunks/1692.js","../../../../../chunks/4586.js","../../../../../chunks/6151.js","../../../../../chunks/726.js","../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/analytics/[siteId]/heatmap/route.js b/.next/server/app/api/analytics/[siteId]/heatmap/route.js deleted file mode 100644 index 030eba7cc9e22f5922efd86d87a0ec8878fffaa7..0000000000000000000000000000000000000000 --- a/.next/server/app/api/analytics/[siteId]/heatmap/route.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(()=>{var a={};a.id=6758,a.ids=[6758],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},87687:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>D,patchFetch:()=>C,routeModule:()=>y,serverHooks:()=>B,workAsyncStorage:()=>z,workUnitAsyncStorage:()=>A});var d={};c.r(d),c.d(d,{GET:()=>x});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(39588),w=c(97778);async function x(a,{params:b}){try{if(!await (0,v.Ht)())return u.NextResponse.json({error:"Unauthorized"},{status:401});let{siteId:c}=await b,{searchParams:d}=new URL(a.url),e=d.get("page"),f=d.get("type")||"click",g=d.get("device"),h=d.get("dateFrom"),i=d.get("dateTo");if(!e)return u.NextResponse.json({error:"Missing required parameter: page"},{status:400});let j=(0,w.q)();if(await j.init(),!await j.getSite(c))return u.NextResponse.json({error:"Site not found"},{status:404});let k=j.getSiteDatabaseForAnalytics(c);if(!k)return u.NextResponse.json({error:"Site database not enabled"},{status:404});if("click"===f){let a=k.getClickData(e,h||void 0,i||void 0).map(a=>{try{let b="string"==typeof a.coordinates?JSON.parse(a.coordinates):a.coordinates;return{x:b.x,y:b.y,scrollY:b.scrollY||0,viewportWidth:b.viewportWidth,viewportHeight:b.viewportHeight,documentHeight:b.documentHeight,elementSelector:a.elementSelector,timestamp:a.timestamp}}catch{return null}}).filter(a=>null!==a);return g&&"all"!==g&&(a=a.filter(a=>{let b=a.viewportWidth;return"mobile"===g?b<768:"tablet"===g?b>=768&&b<1024:"desktop"!==g||b>=1024})),u.NextResponse.json({type:"click",page:e,sampleSize:a.length,points:a})}if("scroll"===f){let a=k.getScrollData(e,h||void 0,i||void 0),b=a.reduce((a,b)=>{let c=b.scrollDepth;return a[c]=(a[c]||0)+1,a},{});return u.NextResponse.json({type:"scroll",page:e,sampleSize:a.length,depthDistribution:b,rawData:a})}return u.NextResponse.json({error:"Invalid type"},{status:400})}catch(a){return console.error("[Analytics Heatmap API] Error:",a),u.NextResponse.json({error:"Failed to fetch heatmap data"},{status:500})}}let y=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/analytics/[siteId]/heatmap/route",pathname:"/api/analytics/[siteId]/heatmap",filename:"route",bundlePath:"app/api/analytics/[siteId]/heatmap/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/analytics/[siteId]/heatmap/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:z,workUnitAsyncStorage:A,serverHooks:B}=y;function C(){return(0,g.patchFetch)({workAsyncStorage:z,workUnitAsyncStorage:A})}async function D(a,b,c){var d;let e="/api/analytics/[siteId]/heatmap/route";"/index"===e&&(e="/");let g=await y.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:z,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(z.dynamicRoutes[E]||z.routes[D]);if(F&&!x){let a=!!z.routes[D],b=z.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||y.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===y.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:z,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>y.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>y.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await y.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await y.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:z,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await y.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,726],()=>b(b.s=87687));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/analytics/[siteId]/heatmap/route.js.nft.json b/.next/server/app/api/analytics/[siteId]/heatmap/route.js.nft.json deleted file mode 100644 index 59e9edd852dd23da7e26935f908d738e6605f507..0000000000000000000000000000000000000000 --- a/.next/server/app/api/analytics/[siteId]/heatmap/route.js.nft.json +++ /dev/null @@ -1 +0,0 @@ -{"version":1,"files":["../../../../../../../data/osws.sqlite","../../../../../../../data/osws.sqlite-shm","../../../../../../../data/osws.sqlite-wal","../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../node_modules/bindings/bindings.js","../../../../../../../node_modules/bindings/package.json","../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../node_modules/next/package.json","../../../../../../../package.json","../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite","../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-shm","../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-wal","../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite","../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-shm","../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-wal","../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite","../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-shm","../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-wal","../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite","../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-shm","../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-wal","../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite","../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-shm","../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-wal","../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite","../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-shm","../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-wal","../../../../../../package.json","../../../../../chunks/1692.js","../../../../../chunks/4586.js","../../../../../chunks/6151.js","../../../../../chunks/726.js","../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/analytics/[siteId]/heatmap/route_client-reference-manifest.js b/.next/server/app/api/analytics/[siteId]/heatmap/route_client-reference-manifest.js deleted file mode 100644 index 4031f1ed90cfd917f723f96b977a6da285b1669e..0000000000000000000000000000000000000000 --- a/.next/server/app/api/analytics/[siteId]/heatmap/route_client-reference-manifest.js +++ /dev/null @@ -1 +0,0 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/analytics/[siteId]/heatmap/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/analytics/[siteId]/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/analytics/[siteId]/heatmap/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/analytics/[siteId]/overview/route.js b/.next/server/app/api/analytics/[siteId]/overview/route.js deleted file mode 100644 index 294eedb9505d9c2edf97612b28f017b7376b5067..0000000000000000000000000000000000000000 --- a/.next/server/app/api/analytics/[siteId]/overview/route.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(()=>{var a={};a.id=7715,a.ids=[7715],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},78632:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>D,patchFetch:()=>C,routeModule:()=>y,serverHooks:()=>B,workAsyncStorage:()=>z,workUnitAsyncStorage:()=>A});var d={};c.r(d),c.d(d,{GET:()=>x});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(39588),w=c(97778);async function x(a,{params:b}){try{if(!await (0,v.Ht)())return u.NextResponse.json({error:"Unauthorized"},{status:401});let{siteId:c}=await b,{searchParams:d}=new URL(a.url),e=parseInt(d.get("days")||"30",10),f=(0,w.q)();if(await f.init(),!await f.getSite(c))return u.NextResponse.json({error:"Site not found"},{status:404});let g=f.getSiteDatabaseForAnalytics(c);if(!g)return u.NextResponse.json({error:"Site database not enabled"},{status:404});let h=g.getOverviewStats(e),i=g.getStats(e),j={totalPageviews:h.totalPageviews,uniqueVisitors:h.uniqueSessions,averageTimeOnSite:h.avgSessionDuration,bounceRate:h.bounceRate/100,topPages:i.topPages.map(a=>({page:a.path,views:a.views})),topReferrers:i.topReferrers,deviceBreakdown:h.deviceBreakdown.reduce((a,b)=>(a[b.device]=b.count,a),{}),countryBreakdown:{}};return u.NextResponse.json(j)}catch(a){return console.error("[Analytics Overview API] Error:",a),u.NextResponse.json({error:"Failed to fetch analytics overview"},{status:500})}}let y=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/analytics/[siteId]/overview/route",pathname:"/api/analytics/[siteId]/overview",filename:"route",bundlePath:"app/api/analytics/[siteId]/overview/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/analytics/[siteId]/overview/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:z,workUnitAsyncStorage:A,serverHooks:B}=y;function C(){return(0,g.patchFetch)({workAsyncStorage:z,workUnitAsyncStorage:A})}async function D(a,b,c){var d;let e="/api/analytics/[siteId]/overview/route";"/index"===e&&(e="/");let g=await y.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:z,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(z.dynamicRoutes[E]||z.routes[D]);if(F&&!x){let a=!!z.routes[D],b=z.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||y.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===y.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:z,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>y.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>y.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await y.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await y.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:z,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await y.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,726],()=>b(b.s=78632));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/analytics/[siteId]/overview/route.js.nft.json b/.next/server/app/api/analytics/[siteId]/overview/route.js.nft.json deleted file mode 100644 index 59e9edd852dd23da7e26935f908d738e6605f507..0000000000000000000000000000000000000000 --- a/.next/server/app/api/analytics/[siteId]/overview/route.js.nft.json +++ /dev/null @@ -1 +0,0 @@ -{"version":1,"files":["../../../../../../../data/osws.sqlite","../../../../../../../data/osws.sqlite-shm","../../../../../../../data/osws.sqlite-wal","../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../node_modules/bindings/bindings.js","../../../../../../../node_modules/bindings/package.json","../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../node_modules/next/package.json","../../../../../../../package.json","../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite","../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-shm","../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-wal","../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite","../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-shm","../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-wal","../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite","../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-shm","../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-wal","../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite","../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-shm","../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-wal","../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite","../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-shm","../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-wal","../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite","../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-shm","../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-wal","../../../../../../package.json","../../../../../chunks/1692.js","../../../../../chunks/4586.js","../../../../../chunks/6151.js","../../../../../chunks/726.js","../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/analytics/[siteId]/overview/route_client-reference-manifest.js b/.next/server/app/api/analytics/[siteId]/overview/route_client-reference-manifest.js deleted file mode 100644 index 9f8ab023cfeb4c22d10fcb277ba0b85360ae07ac..0000000000000000000000000000000000000000 --- a/.next/server/app/api/analytics/[siteId]/overview/route_client-reference-manifest.js +++ /dev/null @@ -1 +0,0 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/analytics/[siteId]/overview/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/analytics/[siteId]/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/analytics/[siteId]/overview/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/analytics/[siteId]/route.js b/.next/server/app/api/analytics/[siteId]/route.js deleted file mode 100644 index 9748e3a5d515a82d6e4c56e073d3c05742b9bec8..0000000000000000000000000000000000000000 --- a/.next/server/app/api/analytics/[siteId]/route.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(()=>{var a={};a.id=4975,a.ids=[4975],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},29855:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>C,patchFetch:()=>B,routeModule:()=>x,serverHooks:()=>A,workAsyncStorage:()=>y,workUnitAsyncStorage:()=>z});var d={};c.r(d),c.d(d,{GET:()=>w});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(97778);async function w(a,{params:b}){try{let{siteId:c}=await b,d=a.nextUrl.searchParams,e=parseInt(d.get("days")||"30",10),f=(0,v.q)();if(await f.init(),!await f.getSite(c))return u.NextResponse.json({error:"Site not found"},{status:404});let g=f.getSiteDatabaseForAnalytics(c);if(!g)return u.NextResponse.json({error:"Site database not enabled"},{status:404});let h=g.getStats(e),i=g.getTopPages(e,10),j=g.getTopReferrers(e,10),k=g.getPageviewsOverTime(e),l={totalPageviews:h.totalPageviews,uniqueVisitors:h.uniqueSessions,topPages:i,topReferrers:j.map(a=>({referrer:a.referrer,views:a.count})),countries:[],pageviewsOverTime:k.map(a=>({date:a.date,views:a.views}))};return u.NextResponse.json(l)}catch(a){return console.error("[Analytics API] Error fetching analytics:",a),u.NextResponse.json({error:"Failed to fetch analytics"},{status:500})}}let x=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/analytics/[siteId]/route",pathname:"/api/analytics/[siteId]",filename:"route",bundlePath:"app/api/analytics/[siteId]/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/analytics/[siteId]/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:y,workUnitAsyncStorage:z,serverHooks:A}=x;function B(){return(0,g.patchFetch)({workAsyncStorage:y,workUnitAsyncStorage:z})}async function C(a,b,c){var d;let e="/api/analytics/[siteId]/route";"/index"===e&&(e="/");let g=await x.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:y,prerenderManifest:z,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(z.dynamicRoutes[E]||z.routes[D]);if(F&&!y){let a=!!z.routes[D],b=z.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||x.isDev||y||(G="/index"===(G=D)?"/":G);let H=!0===x.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:z,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>x.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>x.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await x.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await x.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:z,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),y&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await x.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,726],()=>b(b.s=29855));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/analytics/[siteId]/route.js.nft.json b/.next/server/app/api/analytics/[siteId]/route.js.nft.json deleted file mode 100644 index e7d845a31bbc5e993536ac387af4ae5148cc6a7b..0000000000000000000000000000000000000000 --- a/.next/server/app/api/analytics/[siteId]/route.js.nft.json +++ /dev/null @@ -1 +0,0 @@ -{"version":1,"files":["../../../../../../data/osws.sqlite","../../../../../../data/osws.sqlite-shm","../../../../../../data/osws.sqlite-wal","../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../node_modules/better-sqlite3/package.json","../../../../../../node_modules/bindings/bindings.js","../../../../../../node_modules/bindings/package.json","../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../node_modules/next/package.json","../../../../../../package.json","../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite","../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-shm","../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-wal","../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite","../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-shm","../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-wal","../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite","../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-shm","../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-wal","../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite","../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-shm","../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-wal","../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite","../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-shm","../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-wal","../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite","../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-shm","../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-wal","../../../../../package.json","../../../../chunks/1692.js","../../../../chunks/4586.js","../../../../chunks/726.js","../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/analytics/[siteId]/route_client-reference-manifest.js b/.next/server/app/api/analytics/[siteId]/route_client-reference-manifest.js deleted file mode 100644 index 3c211adf876a7298b7ebc71d884997b440b2be06..0000000000000000000000000000000000000000 --- a/.next/server/app/api/analytics/[siteId]/route_client-reference-manifest.js +++ /dev/null @@ -1 +0,0 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/analytics/[siteId]/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/analytics/[siteId]/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/analytics/[siteId]/sessions/route.js b/.next/server/app/api/analytics/[siteId]/sessions/route.js deleted file mode 100644 index e4a27ca7309e7f66b8f5047a11048ccbd7011948..0000000000000000000000000000000000000000 --- a/.next/server/app/api/analytics/[siteId]/sessions/route.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(()=>{var a={};a.id=2133,a.ids=[2133],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},4325:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>D,patchFetch:()=>C,routeModule:()=>y,serverHooks:()=>B,workAsyncStorage:()=>z,workUnitAsyncStorage:()=>A});var d={};c.r(d),c.d(d,{GET:()=>x});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(39588),w=c(97778);async function x(a,{params:b}){try{if(!await (0,v.Ht)())return u.NextResponse.json({error:"Unauthorized"},{status:401});let{siteId:c}=await b,{searchParams:d}=new URL(a.url),e=d.get("dateFrom"),f=d.get("dateTo"),g=Math.min(parseInt(d.get("limit")||"100",10),1e3),h=(0,w.q)();if(await h.init(),!await h.getSite(c))return u.NextResponse.json({error:"Site not found"},{status:404});let i=h.getSiteDatabaseForAnalytics(c);if(!i)return u.NextResponse.json({error:"Site database not enabled"},{status:404});let j=i.getSessionsWithJourneys(e||void 0,f||void 0,g).map(a=>({sessionId:a.sessionId,pages:a.pages.map((b,c)=>({path:b.path,timestamp:b.timestamp,duration:c{a.pages.forEach((d,e)=>{if(c.set(d.path,(c.get(d.path)||0)+1),e({id:a,label:"/"===a?"Home":a,value:b})).sort((a,b)=>b.value-a.value).slice(0,20),e=new Set(d.map(a=>a.id));return{nodes:d,links:Array.from(b.entries()).map(([a,b])=>{let[c,d]=a.split("::");return{source:c,target:d,value:b}}).filter(a=>e.has(a.source)&&e.has(a.target)).sort((a,b)=>b.value-a.value)}}(j);return u.NextResponse.json({sessions:j,flowData:k,summary:{totalSessions:j.length,bounceRate:j.length>0?j.filter(a=>a.isBounce).length/j.length:0,averageDuration:j.length>0?j.reduce((a,b)=>a+b.totalDuration,0)/j.length:0,averagePageCount:j.length>0?j.reduce((a,b)=>a+b.pageCount,0)/j.length:0}})}catch(a){return console.error("[Analytics Sessions API] Error:",a),u.NextResponse.json({error:"Failed to fetch session data"},{status:500})}}let y=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/analytics/[siteId]/sessions/route",pathname:"/api/analytics/[siteId]/sessions",filename:"route",bundlePath:"app/api/analytics/[siteId]/sessions/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/analytics/[siteId]/sessions/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:z,workUnitAsyncStorage:A,serverHooks:B}=y;function C(){return(0,g.patchFetch)({workAsyncStorage:z,workUnitAsyncStorage:A})}async function D(a,b,c){var d;let e="/api/analytics/[siteId]/sessions/route";"/index"===e&&(e="/");let g=await y.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:z,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(z.dynamicRoutes[E]||z.routes[D]);if(F&&!x){let a=!!z.routes[D],b=z.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||y.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===y.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:z,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>y.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>y.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await y.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await y.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:z,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await y.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,726],()=>b(b.s=4325));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/analytics/[siteId]/sessions/route.js.nft.json b/.next/server/app/api/analytics/[siteId]/sessions/route.js.nft.json deleted file mode 100644 index 59e9edd852dd23da7e26935f908d738e6605f507..0000000000000000000000000000000000000000 --- a/.next/server/app/api/analytics/[siteId]/sessions/route.js.nft.json +++ /dev/null @@ -1 +0,0 @@ -{"version":1,"files":["../../../../../../../data/osws.sqlite","../../../../../../../data/osws.sqlite-shm","../../../../../../../data/osws.sqlite-wal","../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../node_modules/bindings/bindings.js","../../../../../../../node_modules/bindings/package.json","../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../node_modules/next/package.json","../../../../../../../package.json","../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite","../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-shm","../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-wal","../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite","../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-shm","../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-wal","../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite","../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-shm","../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-wal","../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite","../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-shm","../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-wal","../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite","../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-shm","../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-wal","../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite","../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-shm","../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-wal","../../../../../../package.json","../../../../../chunks/1692.js","../../../../../chunks/4586.js","../../../../../chunks/6151.js","../../../../../chunks/726.js","../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/analytics/[siteId]/sessions/route_client-reference-manifest.js b/.next/server/app/api/analytics/[siteId]/sessions/route_client-reference-manifest.js deleted file mode 100644 index 6893908dff4ec09894cea471013d59e27bba2dcb..0000000000000000000000000000000000000000 --- a/.next/server/app/api/analytics/[siteId]/sessions/route_client-reference-manifest.js +++ /dev/null @@ -1 +0,0 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/analytics/[siteId]/sessions/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/analytics/[siteId]/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/analytics/[siteId]/sessions/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/analytics/[siteId]/storage/route.js b/.next/server/app/api/analytics/[siteId]/storage/route.js deleted file mode 100644 index 0851bf0e0d5cee7fcb3bd7d06be68fa56d80fd75..0000000000000000000000000000000000000000 --- a/.next/server/app/api/analytics/[siteId]/storage/route.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(()=>{var a={};a.id=1497,a.ids=[1497],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},83704:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>D,patchFetch:()=>C,routeModule:()=>y,serverHooks:()=>B,workAsyncStorage:()=>z,workUnitAsyncStorage:()=>A});var d={};c.r(d),c.d(d,{GET:()=>x});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(39588),w=c(97778);async function x(a,{params:b}){try{if(!await (0,v.Ht)())return u.NextResponse.json({error:"Unauthorized"},{status:401});let{siteId:a}=await b,c=(0,w.q)();if(await c.init(),!await c.getSite(a))return u.NextResponse.json({error:"Site not found"},{status:404});let d=c.getSiteDatabaseForAnalytics(a);if(!d)return u.NextResponse.json({error:"Site database not enabled"},{status:404});let e=d.getAnalyticsStorageInfo(),f=200*e.pageviewCount/1048576,g=150*e.interactionCount/1048576,h=100*e.sessionCount/1048576,i=f+g+h,j={totalMB:parseFloat(i.toFixed(2)),breakdown:{pageviews:{count:e.pageviewCount,sizeMB:parseFloat(f.toFixed(2))},interactions:{count:e.interactionCount,sizeMB:parseFloat(g.toFixed(2))},sessions:{count:e.sessionCount,sizeMB:parseFloat(h.toFixed(2))}}};return u.NextResponse.json(j)}catch(a){return console.error("[Analytics Storage API] Error:",a),u.NextResponse.json({error:"Failed to get storage usage"},{status:500})}}let y=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/analytics/[siteId]/storage/route",pathname:"/api/analytics/[siteId]/storage",filename:"route",bundlePath:"app/api/analytics/[siteId]/storage/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/analytics/[siteId]/storage/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:z,workUnitAsyncStorage:A,serverHooks:B}=y;function C(){return(0,g.patchFetch)({workAsyncStorage:z,workUnitAsyncStorage:A})}async function D(a,b,c){var d;let e="/api/analytics/[siteId]/storage/route";"/index"===e&&(e="/");let g=await y.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:z,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(z.dynamicRoutes[E]||z.routes[D]);if(F&&!x){let a=!!z.routes[D],b=z.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||y.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===y.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:z,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>y.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>y.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await y.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await y.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:z,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await y.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,726],()=>b(b.s=83704));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/analytics/[siteId]/storage/route.js.nft.json b/.next/server/app/api/analytics/[siteId]/storage/route.js.nft.json deleted file mode 100644 index 59e9edd852dd23da7e26935f908d738e6605f507..0000000000000000000000000000000000000000 --- a/.next/server/app/api/analytics/[siteId]/storage/route.js.nft.json +++ /dev/null @@ -1 +0,0 @@ -{"version":1,"files":["../../../../../../../data/osws.sqlite","../../../../../../../data/osws.sqlite-shm","../../../../../../../data/osws.sqlite-wal","../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../node_modules/bindings/bindings.js","../../../../../../../node_modules/bindings/package.json","../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../node_modules/next/package.json","../../../../../../../package.json","../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite","../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-shm","../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-wal","../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite","../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-shm","../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-wal","../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite","../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-shm","../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-wal","../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite","../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-shm","../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-wal","../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite","../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-shm","../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-wal","../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite","../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-shm","../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-wal","../../../../../../package.json","../../../../../chunks/1692.js","../../../../../chunks/4586.js","../../../../../chunks/6151.js","../../../../../chunks/726.js","../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/analytics/[siteId]/storage/route_client-reference-manifest.js b/.next/server/app/api/analytics/[siteId]/storage/route_client-reference-manifest.js deleted file mode 100644 index eaba16eb2992da16436e0f15481b05296f2d8134..0000000000000000000000000000000000000000 --- a/.next/server/app/api/analytics/[siteId]/storage/route_client-reference-manifest.js +++ /dev/null @@ -1 +0,0 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/analytics/[siteId]/storage/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/analytics/[siteId]/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/analytics/[siteId]/storage/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/analytics/interaction/route.js b/.next/server/app/api/analytics/interaction/route.js index 35100fa618e66c69e29279e7ffbb5ccd1eada20b..e94cf59386a4f1536a0fe141bdc467fb2b12fd68 100644 --- a/.next/server/app/api/analytics/interaction/route.js +++ b/.next/server/app/api/analytics/interaction/route.js @@ -1 +1 @@ -"use strict";(()=>{var a={};a.id=8687,a.ids=[8687],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},37310:(a,b,c)=>{function d(a,b){let c=a.headers.get("origin")||"",d=a.headers.get("referer")||"";return b.some(a=>c.startsWith(a)||d.startsWith(a))}function e(a,b){let c=process.env.NEXT_PUBLIC_APP_URL||"http://localhost:3000",d=[`${c}/sites/${a}`,c];return c.includes("localhost")&&(d.push("http://localhost:3000"),d.push("http://127.0.0.1:3000")),b&&(d.push(`https://${b}`),d.push(`http://${b}`)),d}function f(a){if(!a)return!0;let b=a.toLowerCase();return["bot","crawl","spider","scrape","curl","wget","python","java","http","go-http-client","axios","fetch","node-fetch","requests","urllib","headless","phantom","selenium","puppeteer","playwright"].some(a=>b.includes(a))}function g(a){if(a.pagePath&&a.pagePath.length>500||a.referrer&&a.referrer.length>500||a.userAgent&&a.userAgent.length>500)return!0;let b=/(union|select|insert|update|delete|drop|create|alter)/i;return!!(a.pagePath&&b.test(a.pagePath)||a.referrer&&b.test(a.referrer))}c.d(b,{H6:()=>g,In:()=>e,TB:()=>d,iJ:()=>f}),c(55511)},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},51987:(a,b,c)=>{c.d(b,{Cm:()=>h,F7:()=>e,fi:()=>f,iH:()=>g});class d{check(a,b){let c=Date.now();c-this.lastCleanup>this.CLEANUP_INTERVAL&&this.cleanup(b.windowMs);let d=(this.requests.get(a)||[]).filter(a=>c-a=b.limit)return!1;if(d.push(c),this.requests.set(a,d),this.requests.size>this.MAX_KEYS){let a=this.requests.keys().next().value;void 0!==a&&this.requests.delete(a)}return!0}getCount(a,b){let c=Date.now();return(this.requests.get(a)||[]).filter(a=>c-ad-ab-c{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},93527:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>H,patchFetch:()=>G,routeModule:()=>C,serverHooks:()=>F,workAsyncStorage:()=>D,workUnitAsyncStorage:()=>E});var d={};c.r(d),c.d(d,{POST:()=>y});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(97778),w=c(51987),x=c(37310);async function y(a){try{let b=await a.json();if("batch"in b&&!0===b.batch)return B(a,b);let{siteId:c,pagePath:d,interactionType:e,elementSelector:f,coordinates:g,scrollDepth:h,timeOnPage:i,userAgent:j}=b,k=(0,w.Cm)(a);if(!w.fi.check(k,w.iH.interaction)){let a=w.fi.getResetTime(k,w.iH.interaction);return u.NextResponse.json({error:"Rate limit exceeded"},{status:429,headers:{"Retry-After":a.toString(),"X-RateLimit-Limit":w.iH.interaction.limit.toString(),"X-RateLimit-Remaining":"0"}})}if(!c||!d||!e)return u.NextResponse.json({error:"Missing required fields: siteId, pagePath, interactionType"},{status:400});if((0,x.H6)({pagePath:d,userAgent:j}))return console.warn("[Analytics Interaction] Suspicious request detected:",{siteId:c,pagePath:d,ip:k}),u.NextResponse.json({error:"Invalid request"},{status:400});if(j&&(0,x.iJ)(j))return u.NextResponse.json({success:!0});let l=(0,v.q)();await l.init();let m=await l.getSite(c);if(!m)return u.NextResponse.json({error:"Site not found"},{status:404});if(!m.analytics.enabled||"builtin"!==m.analytics.provider)return u.NextResponse.json({error:"Built-in analytics not enabled for this site"},{status:403});let n=l.getSiteDatabaseForAnalytics(c);if(!n)return u.NextResponse.json({error:"Site database not enabled"},{status:404});let o=m.analytics.features||{};if("click"===e&&!o.heatmaps)return u.NextResponse.json({error:"Heatmaps feature not enabled"},{status:403});if("scroll"===e&&!o.engagementTracking&&!o.heatmaps||"exit"===e&&!o.engagementTracking)return u.NextResponse.json({error:"Engagement tracking not enabled"},{status:403});let p=(0,x.In)(c,m.customDomain);if(!(0,x.TB)(a,p))return console.warn("[Analytics Interaction] Invalid origin (rejected):",{origin:a.headers.get("origin"),referer:a.headers.get("referer"),allowedOrigins:p,siteId:c,ip:k}),u.NextResponse.json({error:"Origin not allowed"},{status:403});let q=z(j||a.headers.get("user-agent")||"",a),r=A(d);return n.recordInteraction({sessionId:q,pagePath:r,interactionType:e,elementSelector:f,coordinates:g?{x:g.x,y:g.y,scrollY:g.scrollY,viewportWidth:g.viewportWidth,viewportHeight:g.viewportHeight,documentHeight:g.documentHeight}:void 0,scrollDepth:h,timeOnPage:i}),u.NextResponse.json({success:!0})}catch(a){return console.error("[Analytics Interaction API] Error:",a),u.NextResponse.json({error:"Failed to track interaction"},{status:500})}}function z(a,b){var c;let d=b.headers.get("x-forwarded-for"),e=(c=d?d.split(",")[0]:"")?c.includes(":")?c.split(":").slice(0,4).join(":")+"::":c.split(".").slice(0,2).join(".")+".0.0":"",f=`${a}|${e}|${new Date().toDateString()}`,g=0;for(let a=0;a100)return u.NextResponse.json({error:"Batch size exceeds maximum of 100 interactions"},{status:400});let d=(0,w.Cm)(a);if(!w.fi.check(d,w.iH.interaction)){let a=w.fi.getResetTime(d,w.iH.interaction);return u.NextResponse.json({error:"Rate limit exceeded"},{status:429,headers:{"Retry-After":a.toString(),"X-RateLimit-Limit":w.iH.interaction.limit.toString(),"X-RateLimit-Remaining":"0"}})}let{siteId:e,userAgent:f}=c[0];if(!e)return u.NextResponse.json({error:"Missing required field: siteId"},{status:400});if(f&&(0,x.iJ)(f))return u.NextResponse.json({success:!0});let g=(0,v.q)();await g.init();try{let b=await g.getSite(e);if(!b)return u.NextResponse.json({error:"Site not found"},{status:404});if(!b.analytics.enabled||"builtin"!==b.analytics.provider)return u.NextResponse.json({error:"Built-in analytics not enabled for this site"},{status:403});let f=g.getSiteDatabaseForAnalytics(e);if(!f)return u.NextResponse.json({error:"Site database not enabled"},{status:404});let h=(0,x.In)(e,b.customDomain);if(!(0,x.TB)(a,h))return console.warn("[Analytics Batch] Invalid origin (rejected):",{origin:a.headers.get("origin"),referer:a.headers.get("referer"),allowedOrigins:h,siteId:e,ip:d}),u.NextResponse.json({error:"Origin not allowed"},{status:403});let i=a.headers.get("user-agent")||"",j=0,k=0;for(let d of c){let{pagePath:c,interactionType:e,elementSelector:g,coordinates:h,scrollDepth:l,timeOnPage:m,userAgent:n}=d;if(!c||!e){k++;continue}let o=b.analytics.features||{};if("click"===e&&!o.heatmaps||"scroll"===e&&!o.engagementTracking&&!o.heatmaps||"exit"===e&&!o.engagementTracking||(0,x.H6)({pagePath:c,userAgent:n})){k++;continue}let p=z(n||i,a),q=A(c);try{f.recordInteraction({sessionId:p,pagePath:q,interactionType:e,elementSelector:g,coordinates:h?{x:h.x,y:h.y,scrollY:h.scrollY,viewportWidth:h.viewportWidth,viewportHeight:h.viewportHeight,documentHeight:h.documentHeight}:void 0,scrollDepth:l,timeOnPage:m}),j++}catch(a){console.error("[Analytics Batch] Error inserting interaction:",a),k++}}return u.NextResponse.json({success:!0,processed:j,skipped:k,total:c.length})}catch(a){return console.error("[Analytics Batch] Error processing batch:",a),u.NextResponse.json({error:"Failed to process batch interactions"},{status:500})}}let C=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/analytics/interaction/route",pathname:"/api/analytics/interaction",filename:"route",bundlePath:"app/api/analytics/interaction/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/analytics/interaction/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:D,workUnitAsyncStorage:E,serverHooks:F}=C;function G(){return(0,g.patchFetch)({workAsyncStorage:D,workUnitAsyncStorage:E})}async function H(a,b,c){var d;let e="/api/analytics/interaction/route";"/index"===e&&(e="/");let g=await C.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:y,routerServerContext:z,isOnDemandRevalidate:A,revalidateOnlyGenerated:B,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(y.dynamicRoutes[E]||y.routes[D]);if(F&&!x){let a=!!y.routes[D],b=y.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||C.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===C.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:y,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>C.onRequestError(a,b,d,z)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>C.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&A&&B&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await C.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:A})},z),b}},l=await C.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:A,revalidateOnlyGenerated:B,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",A?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await C.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:A})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,726],()=>b(b.s=93527));module.exports=c})(); \ No newline at end of file +"use strict";(()=>{var a={};a.id=8687,a.ids=[8687],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},37310:(a,b,c)=>{function d(a,b){let c=a.headers.get("origin")||"",d=a.headers.get("referer")||"";return b.some(a=>c.startsWith(a)||d.startsWith(a))}function e(a,b){let c=process.env.NEXT_PUBLIC_APP_URL||"http://localhost:3000",d=[`${c}/deployments/${a}`,c];return c.includes("localhost")&&(d.push("http://localhost:3000"),d.push("http://127.0.0.1:3000")),b&&(d.push(`https://${b}`),d.push(`http://${b}`)),d}function f(a){if(!a)return!0;let b=a.toLowerCase();return["bot","crawl","spider","scrape","curl","wget","python","java","http","go-http-client","axios","fetch","node-fetch","requests","urllib","headless","phantom","selenium","puppeteer","playwright"].some(a=>b.includes(a))}function g(a){if(a.pagePath&&a.pagePath.length>500||a.referrer&&a.referrer.length>500||a.userAgent&&a.userAgent.length>500)return!0;let b=/(union|select|insert|update|delete|drop|create|alter)/i;return!!(a.pagePath&&b.test(a.pagePath)||a.referrer&&b.test(a.referrer))}c.d(b,{H6:()=>g,In:()=>e,TB:()=>d,iJ:()=>f}),c(55511)},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},51987:(a,b,c)=>{c.d(b,{Cm:()=>h,F7:()=>e,fi:()=>f,iH:()=>g});class d{check(a,b){let c=Date.now();c-this.lastCleanup>this.CLEANUP_INTERVAL&&this.cleanup(b.windowMs);let d=(this.requests.get(a)||[]).filter(a=>c-a=b.limit)return!1;if(d.push(c),this.requests.set(a,d),this.requests.size>this.MAX_KEYS){let a=this.requests.keys().next().value;void 0!==a&&this.requests.delete(a)}return!0}getCount(a,b){let c=Date.now();return(this.requests.get(a)||[]).filter(a=>c-ad-ab-c{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},93527:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>H,patchFetch:()=>G,routeModule:()=>C,serverHooks:()=>F,workAsyncStorage:()=>D,workUnitAsyncStorage:()=>E});var d={};c.r(d),c.d(d,{POST:()=>y});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(32907),w=c(51987),x=c(37310);async function y(a){try{let b=await a.json();if("batch"in b&&!0===b.batch)return B(a,b);let{deploymentId:c,pagePath:d,interactionType:e,elementSelector:f,coordinates:g,scrollDepth:h,timeOnPage:i,userAgent:j}=b,k=(0,w.Cm)(a);if(!w.fi.check(k,w.iH.interaction)){let a=w.fi.getResetTime(k,w.iH.interaction);return u.NextResponse.json({error:"Rate limit exceeded"},{status:429,headers:{"Retry-After":a.toString(),"X-RateLimit-Limit":w.iH.interaction.limit.toString(),"X-RateLimit-Remaining":"0"}})}if(!c||!d||!e)return u.NextResponse.json({error:"Missing required fields: deploymentId, pagePath, interactionType"},{status:400});if((0,x.H6)({pagePath:d,userAgent:j}))return console.warn("[Analytics Interaction] Suspicious request detected:",{deploymentId:c,pagePath:d,ip:k}),u.NextResponse.json({error:"Invalid request"},{status:400});if(j&&(0,x.iJ)(j))return u.NextResponse.json({success:!0});let l=(0,v.q)();await l.init();let m=await l.getDeployment(c);if(!m)return u.NextResponse.json({error:"Deployment not found"},{status:404});if(!m.analytics.enabled||"builtin"!==m.analytics.provider)return u.NextResponse.json({error:"Built-in analytics not enabled for this deployment"},{status:403});let n=l.getAnalyticsDatabaseInstance(c);if(!n)return u.NextResponse.json({error:"Deployment database not enabled"},{status:404});let o=m.analytics.features||{};if("click"===e&&!o.heatmaps)return u.NextResponse.json({error:"Heatmaps feature not enabled"},{status:403});if("scroll"===e&&!o.engagementTracking&&!o.heatmaps||"exit"===e&&!o.engagementTracking)return u.NextResponse.json({error:"Engagement tracking not enabled"},{status:403});let p=(0,x.In)(c,m.customDomain);if(!(0,x.TB)(a,p))return console.warn("[Analytics Interaction] Invalid origin (rejected):",{origin:a.headers.get("origin"),referer:a.headers.get("referer"),allowedOrigins:p,deploymentId:c,ip:k}),u.NextResponse.json({error:"Origin not allowed"},{status:403});let q=z(j||a.headers.get("user-agent")||"",a),r=A(d);return n.recordInteraction({sessionId:q,pagePath:r,interactionType:e,elementSelector:f,coordinates:g?{x:g.x,y:g.y,scrollY:g.scrollY,viewportWidth:g.viewportWidth,viewportHeight:g.viewportHeight,documentHeight:g.documentHeight}:void 0,scrollDepth:h,timeOnPage:i}),u.NextResponse.json({success:!0})}catch(a){return console.error("[Analytics Interaction API] Error:",a),u.NextResponse.json({error:"Failed to track interaction"},{status:500})}}function z(a,b){var c;let d=b.headers.get("x-forwarded-for"),e=(c=d?d.split(",")[0]:"")?c.includes(":")?c.split(":").slice(0,4).join(":")+"::":c.split(".").slice(0,2).join(".")+".0.0":"",f=`${a}|${e}|${new Date().toDateString()}`,g=0;for(let a=0;a100)return u.NextResponse.json({error:"Batch size exceeds maximum of 100 interactions"},{status:400});let d=(0,w.Cm)(a);if(!w.fi.check(d,w.iH.interaction)){let a=w.fi.getResetTime(d,w.iH.interaction);return u.NextResponse.json({error:"Rate limit exceeded"},{status:429,headers:{"Retry-After":a.toString(),"X-RateLimit-Limit":w.iH.interaction.limit.toString(),"X-RateLimit-Remaining":"0"}})}let{deploymentId:e,userAgent:f}=c[0];if(!e)return u.NextResponse.json({error:"Missing required field: deploymentId"},{status:400});if(f&&(0,x.iJ)(f))return u.NextResponse.json({success:!0});let g=(0,v.q)();await g.init();try{let b=await g.getDeployment(e);if(!b)return u.NextResponse.json({error:"Deployment not found"},{status:404});if(!b.analytics.enabled||"builtin"!==b.analytics.provider)return u.NextResponse.json({error:"Built-in analytics not enabled for this deployment"},{status:403});let f=g.getAnalyticsDatabaseInstance(e);if(!f)return u.NextResponse.json({error:"Deployment database not enabled"},{status:404});let h=(0,x.In)(e,b.customDomain);if(!(0,x.TB)(a,h))return console.warn("[Analytics Batch] Invalid origin (rejected):",{origin:a.headers.get("origin"),referer:a.headers.get("referer"),allowedOrigins:h,deploymentId:e,ip:d}),u.NextResponse.json({error:"Origin not allowed"},{status:403});let i=a.headers.get("user-agent")||"",j=0,k=0;for(let d of c){let{pagePath:c,interactionType:e,elementSelector:g,coordinates:h,scrollDepth:l,timeOnPage:m,userAgent:n}=d;if(!c||!e){k++;continue}let o=b.analytics.features||{};if("click"===e&&!o.heatmaps||"scroll"===e&&!o.engagementTracking&&!o.heatmaps||"exit"===e&&!o.engagementTracking||(0,x.H6)({pagePath:c,userAgent:n})){k++;continue}let p=z(n||i,a),q=A(c);try{f.recordInteraction({sessionId:p,pagePath:q,interactionType:e,elementSelector:g,coordinates:h?{x:h.x,y:h.y,scrollY:h.scrollY,viewportWidth:h.viewportWidth,viewportHeight:h.viewportHeight,documentHeight:h.documentHeight}:void 0,scrollDepth:l,timeOnPage:m}),j++}catch(a){console.error("[Analytics Batch] Error inserting interaction:",a),k++}}return u.NextResponse.json({success:!0,processed:j,skipped:k,total:c.length})}catch(a){return console.error("[Analytics Batch] Error processing batch:",a),u.NextResponse.json({error:"Failed to process batch interactions"},{status:500})}}let C=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/analytics/interaction/route",pathname:"/api/analytics/interaction",filename:"route",bundlePath:"app/api/analytics/interaction/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/analytics/interaction/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:D,workUnitAsyncStorage:E,serverHooks:F}=C;function G(){return(0,g.patchFetch)({workAsyncStorage:D,workUnitAsyncStorage:E})}async function H(a,b,c){var d;let e="/api/analytics/interaction/route";"/index"===e&&(e="/");let g=await C.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:y,routerServerContext:z,isOnDemandRevalidate:A,revalidateOnlyGenerated:B,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(y.dynamicRoutes[E]||y.routes[D]);if(F&&!x){let a=!!y.routes[D],b=y.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||C.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===C.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:y,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>C.onRequestError(a,b,d,z)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>C.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&A&&B&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await C.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:A})},z),b}},l=await C.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:A,revalidateOnlyGenerated:B,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",A?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await C.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:A})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,3343],()=>b(b.s=93527));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/analytics/interaction/route.js.nft.json b/.next/server/app/api/analytics/interaction/route.js.nft.json index e7d845a31bbc5e993536ac387af4ae5148cc6a7b..4b725186881bff2f8e4c49cf092b63b314236758 100644 --- a/.next/server/app/api/analytics/interaction/route.js.nft.json +++ b/.next/server/app/api/analytics/interaction/route.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../data/osws.sqlite","../../../../../../data/osws.sqlite-shm","../../../../../../data/osws.sqlite-wal","../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../node_modules/better-sqlite3/package.json","../../../../../../node_modules/bindings/bindings.js","../../../../../../node_modules/bindings/package.json","../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../node_modules/next/package.json","../../../../../../package.json","../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite","../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-shm","../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-wal","../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite","../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-shm","../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-wal","../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite","../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-shm","../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-wal","../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite","../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-shm","../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-wal","../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite","../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-shm","../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-wal","../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite","../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-shm","../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-wal","../../../../../package.json","../../../../chunks/1692.js","../../../../chunks/4586.js","../../../../chunks/726.js","../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../data/osws.sqlite","../../../../../../data/osws.sqlite-shm","../../../../../../data/osws.sqlite-wal","../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite","../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-shm","../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-wal","../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite","../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-shm","../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-wal","../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/analytics.sqlite","../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite","../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-shm","../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-wal","../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/analytics.sqlite","../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite","../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-shm","../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-wal","../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/analytics.sqlite","../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite","../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-shm","../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-wal","../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/analytics.sqlite","../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite","../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-shm","../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-wal","../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/analytics.sqlite","../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite","../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-shm","../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-wal","../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/analytics.sqlite","../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite","../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-shm","../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-wal","../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../node_modules/better-sqlite3/package.json","../../../../../../node_modules/bindings/bindings.js","../../../../../../node_modules/bindings/package.json","../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../node_modules/next/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1692.js","../../../../chunks/3343.js","../../../../chunks/4586.js","../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/analytics/interaction/route_client-reference-manifest.js b/.next/server/app/api/analytics/interaction/route_client-reference-manifest.js index 800c5f0eff3c91cac491ccf2924924ca4aeb6f89..794e6ba5d994ebcb63089ba652d3c3e9b76d8d1d 100644 --- a/.next/server/app/api/analytics/interaction/route_client-reference-manifest.js +++ b/.next/server/app/api/analytics/interaction/route_client-reference-manifest.js @@ -1 +1 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/analytics/interaction/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/analytics/interaction/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/analytics/interaction/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/analytics/interaction/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/analytics/track/route.js b/.next/server/app/api/analytics/track/route.js index 97d98d7fdfb472e4dcc6239db4656352fe2e2283..8ff158726f6c9fcf9576174bbd61136eb8ed88ae 100644 --- a/.next/server/app/api/analytics/track/route.js +++ b/.next/server/app/api/analytics/track/route.js @@ -1 +1 @@ -"use strict";(()=>{var a={};a.id=3618,a.ids=[3618],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},24162:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>F,patchFetch:()=>E,routeModule:()=>A,serverHooks:()=>D,workAsyncStorage:()=>B,workUnitAsyncStorage:()=>C});var d={};c.r(d),c.d(d,{POST:()=>y});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(97778),w=c(51987),x=c(37310);async function y(a){try{let{siteId:b,pagePath:c,referrer:d,userAgent:e,deviceType:f}=await a.json(),g=(0,w.Cm)(a);if(!w.F7.check(g,w.iH.pageview)){let a=w.F7.getResetTime(g,w.iH.pageview);return u.NextResponse.json({error:"Rate limit exceeded"},{status:429,headers:{"Retry-After":a.toString(),"X-RateLimit-Limit":w.iH.pageview.limit.toString(),"X-RateLimit-Remaining":"0"}})}if(!b||!c)return u.NextResponse.json({error:"Missing required fields: siteId, pagePath"},{status:400});if((0,x.H6)({pagePath:c,referrer:d,userAgent:e}))return console.warn("[Analytics] Suspicious request detected:",{siteId:b,pagePath:c,ip:g}),u.NextResponse.json({error:"Invalid request"},{status:400});if((0,x.iJ)(e))return u.NextResponse.json({success:!0});let h=(0,v.q)();await h.init();let i=await h.getSite(b);if(!i)return u.NextResponse.json({error:"Site not found"},{status:404});if(!i.analytics.enabled||"builtin"!==i.analytics.provider)return u.NextResponse.json({error:"Built-in analytics not enabled for this site"},{status:403});let j=h.getSiteDatabaseForAnalytics(b);if(!j)return u.NextResponse.json({error:"Site database not enabled"},{status:404});let k=(0,x.In)(b,i.customDomain);if(!(0,x.TB)(a,k))return console.warn("[Analytics] Invalid origin (rejected):",{origin:a.headers.get("origin"),referer:a.headers.get("referer"),allowedOrigins:k,siteId:b,ip:g}),u.NextResponse.json({error:"Origin not allowed"},{status:403});let l=function(a,b){var c;let d=b.headers.get("x-forwarded-for"),e=(c=d?d.split(",")[0]:"")?c.includes(":")?c.split(":").slice(0,4).join(":")+"::":c.split(".").slice(0,2).join(".")+".0.0":"",f=`${a}|${e}|${new Date().toDateString()}`,g=0;for(let a=0;a{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>A.onRequestError(a,b,d,z)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>A.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await A.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},z),b}},l=await A.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await A.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},37310:(a,b,c)=>{function d(a,b){let c=a.headers.get("origin")||"",d=a.headers.get("referer")||"";return b.some(a=>c.startsWith(a)||d.startsWith(a))}function e(a,b){let c=process.env.NEXT_PUBLIC_APP_URL||"http://localhost:3000",d=[`${c}/sites/${a}`,c];return c.includes("localhost")&&(d.push("http://localhost:3000"),d.push("http://127.0.0.1:3000")),b&&(d.push(`https://${b}`),d.push(`http://${b}`)),d}function f(a){if(!a)return!0;let b=a.toLowerCase();return["bot","crawl","spider","scrape","curl","wget","python","java","http","go-http-client","axios","fetch","node-fetch","requests","urllib","headless","phantom","selenium","puppeteer","playwright"].some(a=>b.includes(a))}function g(a){if(a.pagePath&&a.pagePath.length>500||a.referrer&&a.referrer.length>500||a.userAgent&&a.userAgent.length>500)return!0;let b=/(union|select|insert|update|delete|drop|create|alter)/i;return!!(a.pagePath&&b.test(a.pagePath)||a.referrer&&b.test(a.referrer))}c.d(b,{H6:()=>g,In:()=>e,TB:()=>d,iJ:()=>f}),c(55511)},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},51987:(a,b,c)=>{c.d(b,{Cm:()=>h,F7:()=>e,fi:()=>f,iH:()=>g});class d{check(a,b){let c=Date.now();c-this.lastCleanup>this.CLEANUP_INTERVAL&&this.cleanup(b.windowMs);let d=(this.requests.get(a)||[]).filter(a=>c-a=b.limit)return!1;if(d.push(c),this.requests.set(a,d),this.requests.size>this.MAX_KEYS){let a=this.requests.keys().next().value;void 0!==a&&this.requests.delete(a)}return!0}getCount(a,b){let c=Date.now();return(this.requests.get(a)||[]).filter(a=>c-ad-ab-c{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,726],()=>b(b.s=24162));module.exports=c})(); \ No newline at end of file +"use strict";(()=>{var a={};a.id=3618,a.ids=[3618],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},24162:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>F,patchFetch:()=>E,routeModule:()=>A,serverHooks:()=>D,workAsyncStorage:()=>B,workUnitAsyncStorage:()=>C});var d={};c.r(d),c.d(d,{POST:()=>y});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(32907),w=c(51987),x=c(37310);async function y(a){try{let{deploymentId:b,pagePath:c,referrer:d,userAgent:e,deviceType:f}=await a.json(),g=(0,w.Cm)(a);if(!w.F7.check(g,w.iH.pageview)){let a=w.F7.getResetTime(g,w.iH.pageview);return u.NextResponse.json({error:"Rate limit exceeded"},{status:429,headers:{"Retry-After":a.toString(),"X-RateLimit-Limit":w.iH.pageview.limit.toString(),"X-RateLimit-Remaining":"0"}})}if(!b||!c)return u.NextResponse.json({error:"Missing required fields: deploymentId, pagePath"},{status:400});if((0,x.H6)({pagePath:c,referrer:d,userAgent:e}))return console.warn("[Analytics] Suspicious request detected:",{deploymentId:b,pagePath:c,ip:g}),u.NextResponse.json({error:"Invalid request"},{status:400});if((0,x.iJ)(e))return u.NextResponse.json({success:!0});let h=(0,v.q)();await h.init();let i=await h.getDeployment(b);if(!i)return u.NextResponse.json({error:"Deployment not found"},{status:404});if(!i.analytics.enabled||"builtin"!==i.analytics.provider)return u.NextResponse.json({error:"Built-in analytics not enabled for this deployment"},{status:403});let j=h.getAnalyticsDatabaseInstance(b);if(!j)return u.NextResponse.json({error:"Deployment database not enabled"},{status:404});let k=(0,x.In)(b,i.customDomain);if(!(0,x.TB)(a,k))return console.warn("[Analytics] Invalid origin (rejected):",{origin:a.headers.get("origin"),referer:a.headers.get("referer"),allowedOrigins:k,deploymentId:b,ip:g}),u.NextResponse.json({error:"Origin not allowed"},{status:403});let l=function(a,b){var c;let d=b.headers.get("x-forwarded-for"),e=(c=d?d.split(",")[0]:"")?c.includes(":")?c.split(":").slice(0,4).join(":")+"::":c.split(".").slice(0,2).join(".")+".0.0":"",f=`${a}|${e}|${new Date().toDateString()}`,g=0;for(let a=0;a{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>A.onRequestError(a,b,d,z)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>A.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await A.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},z),b}},l=await A.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await A.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},37310:(a,b,c)=>{function d(a,b){let c=a.headers.get("origin")||"",d=a.headers.get("referer")||"";return b.some(a=>c.startsWith(a)||d.startsWith(a))}function e(a,b){let c=process.env.NEXT_PUBLIC_APP_URL||"http://localhost:3000",d=[`${c}/deployments/${a}`,c];return c.includes("localhost")&&(d.push("http://localhost:3000"),d.push("http://127.0.0.1:3000")),b&&(d.push(`https://${b}`),d.push(`http://${b}`)),d}function f(a){if(!a)return!0;let b=a.toLowerCase();return["bot","crawl","spider","scrape","curl","wget","python","java","http","go-http-client","axios","fetch","node-fetch","requests","urllib","headless","phantom","selenium","puppeteer","playwright"].some(a=>b.includes(a))}function g(a){if(a.pagePath&&a.pagePath.length>500||a.referrer&&a.referrer.length>500||a.userAgent&&a.userAgent.length>500)return!0;let b=/(union|select|insert|update|delete|drop|create|alter)/i;return!!(a.pagePath&&b.test(a.pagePath)||a.referrer&&b.test(a.referrer))}c.d(b,{H6:()=>g,In:()=>e,TB:()=>d,iJ:()=>f}),c(55511)},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},51987:(a,b,c)=>{c.d(b,{Cm:()=>h,F7:()=>e,fi:()=>f,iH:()=>g});class d{check(a,b){let c=Date.now();c-this.lastCleanup>this.CLEANUP_INTERVAL&&this.cleanup(b.windowMs);let d=(this.requests.get(a)||[]).filter(a=>c-a=b.limit)return!1;if(d.push(c),this.requests.set(a,d),this.requests.size>this.MAX_KEYS){let a=this.requests.keys().next().value;void 0!==a&&this.requests.delete(a)}return!0}getCount(a,b){let c=Date.now();return(this.requests.get(a)||[]).filter(a=>c-ad-ab-c{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,3343],()=>b(b.s=24162));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/analytics/track/route.js.nft.json b/.next/server/app/api/analytics/track/route.js.nft.json index e7d845a31bbc5e993536ac387af4ae5148cc6a7b..4b725186881bff2f8e4c49cf092b63b314236758 100644 --- a/.next/server/app/api/analytics/track/route.js.nft.json +++ b/.next/server/app/api/analytics/track/route.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../data/osws.sqlite","../../../../../../data/osws.sqlite-shm","../../../../../../data/osws.sqlite-wal","../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../node_modules/better-sqlite3/package.json","../../../../../../node_modules/bindings/bindings.js","../../../../../../node_modules/bindings/package.json","../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../node_modules/next/package.json","../../../../../../package.json","../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite","../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-shm","../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-wal","../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite","../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-shm","../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-wal","../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite","../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-shm","../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-wal","../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite","../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-shm","../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-wal","../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite","../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-shm","../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-wal","../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite","../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-shm","../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-wal","../../../../../package.json","../../../../chunks/1692.js","../../../../chunks/4586.js","../../../../chunks/726.js","../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../data/osws.sqlite","../../../../../../data/osws.sqlite-shm","../../../../../../data/osws.sqlite-wal","../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite","../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-shm","../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-wal","../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite","../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-shm","../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-wal","../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/analytics.sqlite","../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite","../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-shm","../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-wal","../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/analytics.sqlite","../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite","../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-shm","../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-wal","../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/analytics.sqlite","../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite","../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-shm","../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-wal","../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/analytics.sqlite","../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite","../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-shm","../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-wal","../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/analytics.sqlite","../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite","../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-shm","../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-wal","../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/analytics.sqlite","../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite","../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-shm","../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-wal","../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../node_modules/better-sqlite3/package.json","../../../../../../node_modules/bindings/bindings.js","../../../../../../node_modules/bindings/package.json","../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../node_modules/next/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1692.js","../../../../chunks/3343.js","../../../../chunks/4586.js","../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/analytics/track/route_client-reference-manifest.js b/.next/server/app/api/analytics/track/route_client-reference-manifest.js index 0f08143276b406b64de540a3e3ff6ba843572848..354e1976435022a1ded98c575f3f775376c2b296 100644 --- a/.next/server/app/api/analytics/track/route_client-reference-manifest.js +++ b/.next/server/app/api/analytics/track/route_client-reference-manifest.js @@ -1 +1 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/analytics/track/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/analytics/track/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/analytics/track/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/analytics/track/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/auth/check/route_client-reference-manifest.js b/.next/server/app/api/auth/check/route_client-reference-manifest.js index afa7a3c0578b11f902c7c50ebe64534c27e7c179..93d5a6e9c2dfad9ab8b93c8822235c188d6308db 100644 --- a/.next/server/app/api/auth/check/route_client-reference-manifest.js +++ b/.next/server/app/api/auth/check/route_client-reference-manifest.js @@ -1 +1 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/auth/check/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/auth/check/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/auth/check/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/auth/check/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/auth/codex/connect/route_client-reference-manifest.js b/.next/server/app/api/auth/codex/connect/route_client-reference-manifest.js index 727987c4880adbc7e615e6a7fa4494875cf2d8e4..5169f1cc186db14caa041975d60d1ce4af77ade1 100644 --- a/.next/server/app/api/auth/codex/connect/route_client-reference-manifest.js +++ b/.next/server/app/api/auth/codex/connect/route_client-reference-manifest.js @@ -1 +1 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/auth/codex/connect/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/auth/codex/connect/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/auth/codex/connect/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/auth/codex/connect/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/auth/codex/disconnect/route_client-reference-manifest.js b/.next/server/app/api/auth/codex/disconnect/route_client-reference-manifest.js index 445f96d7244cf92501183de34516cc97fc59827b..e12de22fcd0762c009c09ce6b2bb0256bdffde94 100644 --- a/.next/server/app/api/auth/codex/disconnect/route_client-reference-manifest.js +++ b/.next/server/app/api/auth/codex/disconnect/route_client-reference-manifest.js @@ -1 +1 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/auth/codex/disconnect/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/auth/codex/disconnect/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/auth/codex/disconnect/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/auth/codex/disconnect/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/auth/codex/status/route_client-reference-manifest.js b/.next/server/app/api/auth/codex/status/route_client-reference-manifest.js index 0122057ea4c48a71937ef988e58e979059334d6c..3aed324d0aec02acbde36bd3484b939002310673 100644 --- a/.next/server/app/api/auth/codex/status/route_client-reference-manifest.js +++ b/.next/server/app/api/auth/codex/status/route_client-reference-manifest.js @@ -1 +1 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/auth/codex/status/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/auth/codex/status/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/auth/codex/status/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/auth/codex/status/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/auth/codex/token/route_client-reference-manifest.js b/.next/server/app/api/auth/codex/token/route_client-reference-manifest.js index b60b08da9dcd213ed049600320bfd3302a54a642..1e8683a798bf2bec13aabbd6ff8c3e86177dcba4 100644 --- a/.next/server/app/api/auth/codex/token/route_client-reference-manifest.js +++ b/.next/server/app/api/auth/codex/token/route_client-reference-manifest.js @@ -1 +1 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/auth/codex/token/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/auth/codex/token/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/auth/codex/token/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/auth/codex/token/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/auth/hf/capabilities/route_client-reference-manifest.js b/.next/server/app/api/auth/hf/capabilities/route_client-reference-manifest.js index e4281f42b551fb50e050a2b62ffe5671fdc4bc10..55d913664eef51a22deaffce3c2ccc83af9af433 100644 --- a/.next/server/app/api/auth/hf/capabilities/route_client-reference-manifest.js +++ b/.next/server/app/api/auth/hf/capabilities/route_client-reference-manifest.js @@ -1 +1 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/auth/hf/capabilities/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/auth/hf/capabilities/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/auth/hf/capabilities/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/auth/hf/capabilities/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/auth/login/route_client-reference-manifest.js b/.next/server/app/api/auth/login/route_client-reference-manifest.js index fcdd516876a7a517bae3e77861ee43f976afd4eb..98fff3ac5cb150e7932635d5c1126fdd37067ad5 100644 --- a/.next/server/app/api/auth/login/route_client-reference-manifest.js +++ b/.next/server/app/api/auth/login/route_client-reference-manifest.js @@ -1 +1 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/auth/login/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/auth/login/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/auth/login/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/auth/login/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/auth/logout/route_client-reference-manifest.js b/.next/server/app/api/auth/logout/route_client-reference-manifest.js index 483ab6cf792a19e4a833fee051bfc32ee47af59f..2b758d2bd5f416c984148a6d3564d158172b94e2 100644 --- a/.next/server/app/api/auth/logout/route_client-reference-manifest.js +++ b/.next/server/app/api/auth/logout/route_client-reference-manifest.js @@ -1 +1 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/auth/logout/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/auth/logout/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/auth/logout/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/auth/logout/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/auth/me/route_client-reference-manifest.js b/.next/server/app/api/auth/me/route_client-reference-manifest.js index 2ec740b1e163b15a60a5bb74f8e41670c3c0b661..33d418719b9221fe171cf825767f36217798e02d 100644 --- a/.next/server/app/api/auth/me/route_client-reference-manifest.js +++ b/.next/server/app/api/auth/me/route_client-reference-manifest.js @@ -1 +1 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/auth/me/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/auth/me/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/auth/me/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/auth/me/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/deployments/[id]/functions/[...path]/route.js b/.next/server/app/api/deployments/[id]/functions/[...path]/route.js new file mode 100644 index 0000000000000000000000000000000000000000..b9252b0abb1b5b5a81f41e205678f09ceb39f321 --- /dev/null +++ b/.next/server/app/api/deployments/[id]/functions/[...path]/route.js @@ -0,0 +1 @@ +"use strict";(()=>{var a={};a.id=3312,a.ids=[3312],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},5205:a=>{a.exports=import("quickjs-emscripten-core")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},17915:a=>{a.exports=import("@jitl/quickjs-wasmfile-release-sync")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},23724:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{DELETE:()=>n,GET:()=>k,PATCH:()=>o,POST:()=>l,PUT:()=>m});var e=c(10641),f=c(32907),g=c(19958),h=c(95012),i=a([g]);async function j(a,{params:b}){let c=Date.now();try{let d,{id:i,path:j}=await b,k=j[0],l=j.slice(1).join("/");if(!k)return e.NextResponse.json({error:"Function name is required"},{status:400});let m=(0,f.q)();await m.init();let n=await m.getDeployment?.(i)??null;if(!n&&m.getDeploymentBySlug&&(n=await m.getDeploymentBySlug(i)),!n)return e.NextResponse.json({error:"Deployment not found"},{status:404});let o=n.id;if(!n.databaseEnabled)return e.NextResponse.json({error:"Edge functions not enabled for this deployment"},{status:404});let p=m.getDeploymentDatabaseForAnalytics(o);if(!p)return e.NextResponse.json({error:"Deployment database not available"},{status:500});let q=p.getFunctionByName(k);if(!q)return e.NextResponse.json({error:`Function "${k}" not found`},{status:404});if(!q.enabled)return e.NextResponse.json({error:`Function "${k}" is disabled`},{status:503});if("ANY"!==q.method&&q.method!==a.method)return e.NextResponse.json({error:`Method ${a.method} not allowed for this function`},{status:405});let r=null;if("GET"!==a.method&&"HEAD"!==a.method){let b=a.headers.get("content-type")||"";if(b.includes("application/json"))try{r=await a.json()}catch{r=null}else b.includes("text/")&&(r=await a.text())}let s=new URL(a.url),t={};s.searchParams.forEach((a,b)=>{t[b]=a});let u={},v=["accept","accept-language","content-type","content-length","origin","referer","user-agent","x-requested-with","cookie"];a.headers.forEach((a,b)=>{v.includes(b.toLowerCase())&&(u[b.toLowerCase()]=a)});let w={method:a.method,headers:u,body:r,params:{path:l},query:t,path:`/${k}${l?"/"+l:""}`},x=await (0,g.cv)(q,w,p);try{p.logFunctionExecution(q.id,{method:a.method,path:w.path,statusCode:x.response.status,durationMs:x.durationMs,error:x.error})}catch(a){h.v.error("[Edge Functions] Failed to log execution:",a)}let y=new Headers;return Object.entries(x.response.headers).forEach(([a,b])=>{y.set(a,b)}),y.set("X-Execution-Time",`${Date.now()-c}ms`),"object"==typeof x.response.body?(d=JSON.stringify(x.response.body),y.has("Content-Type")||y.set("Content-Type","application/json")):d=x.response.body,new e.NextResponse(d,{status:x.response.status,headers:y})}catch(a){return h.v.error("[Edge Functions] Unexpected error:",a),e.NextResponse.json({error:"Internal server error"},{status:500})}}g=(i.then?(await i)():i)[0];let k=j,l=j,m=j,n=j,o=j;d()}catch(a){d(a)}})},25434:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{handler:()=>x,patchFetch:()=>w,routeModule:()=>y,serverHooks:()=>B,workAsyncStorage:()=>z,workUnitAsyncStorage:()=>A});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(23724),v=a([u]);u=(v.then?(await v)():v)[0];let y=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/deployments/[id]/functions/[...path]/route",pathname:"/api/deployments/[id]/functions/[...path]",filename:"route",bundlePath:"app/api/deployments/[id]/functions/[...path]/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/deployments/[id]/functions/[...path]/route.ts",nextConfigOutput:"standalone",userland:u}),{workAsyncStorage:z,workUnitAsyncStorage:A,serverHooks:B}=y;function w(){return(0,g.patchFetch)({workAsyncStorage:z,workUnitAsyncStorage:A})}async function x(a,b,c){var d;let e="/api/deployments/[id]/functions/[...path]/route";"/index"===e&&(e="/");let g=await y.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:z,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(z.dynamicRoutes[E]||z.routes[D]);if(F&&!x){let a=!!z.routes[D],b=z.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||y.isDev||x||(G=D,G="/index"===G?"/":G);let H=!0===y.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:z,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>y.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>y.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await y.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await y.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:z,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await y.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},95012:(a,b,c)=>{c.d(b,{v:()=>g});let d={debug:10,info:20,warn:30,error:40,silent:50},e="undefined"!=typeof process&&"warn"||"warn";function f(a){return d[e]<=d[a]}let g={debug:(...a)=>{f("debug")&&console.debug(...a)},info:(...a)=>{f("info")&&console.info(...a)},warn:(...a)=>{f("warn")&&console.warn(...a)},error:(...a)=>{f("error")&&console.error(...a)}}}};var b=require("../../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,3343,9958],()=>b(b.s=25434));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/deployments/[id]/functions/[...path]/route.js.nft.json b/.next/server/app/api/deployments/[id]/functions/[...path]/route.js.nft.json new file mode 100644 index 0000000000000000000000000000000000000000..219e114ed3dd1393ab9191ac0c4dd2d44b7b2bc1 --- /dev/null +++ b/.next/server/app/api/deployments/[id]/functions/[...path]/route.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../../../../../data/osws.sqlite","../../../../../../../../data/osws.sqlite-shm","../../../../../../../../data/osws.sqlite-wal","../../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite","../../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-shm","../../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-wal","../../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite","../../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-shm","../../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-wal","../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/analytics.sqlite","../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite","../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-shm","../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-wal","../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/analytics.sqlite","../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite","../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-shm","../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-wal","../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/analytics.sqlite","../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite","../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-shm","../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-wal","../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/analytics.sqlite","../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite","../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-shm","../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-wal","../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/analytics.sqlite","../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite","../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-shm","../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-wal","../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/analytics.sqlite","../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite","../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-shm","../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-wal","../../../../../../../../node_modules/@jitl/quickjs-ffi-types/dist/index.js","../../../../../../../../node_modules/@jitl/quickjs-ffi-types/dist/index.mjs","../../../../../../../../node_modules/@jitl/quickjs-ffi-types/package.json","../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/emscripten-module.mjs","../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/emscripten-module.wasm","../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/ffi.mjs","../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/index.js","../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/index.mjs","../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/package.json","../../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../../node_modules/bindings/bindings.js","../../../../../../../../node_modules/bindings/package.json","../../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../../node_modules/next/package.json","../../../../../../../../node_modules/quickjs-emscripten-core/dist/chunk-JTKJZQYV.mjs","../../../../../../../../node_modules/quickjs-emscripten-core/dist/chunk-PEXOKBOE.mjs","../../../../../../../../node_modules/quickjs-emscripten-core/dist/index.js","../../../../../../../../node_modules/quickjs-emscripten-core/dist/index.mjs","../../../../../../../../node_modules/quickjs-emscripten-core/dist/module-6F3E5H7Y.mjs","../../../../../../../../node_modules/quickjs-emscripten-core/dist/module-asyncify-R6PWJ6ZV.mjs","../../../../../../../../node_modules/quickjs-emscripten-core/package.json","../../../../../../../../package.json","../../../../../../../package.json","../../../../../../chunks/1692.js","../../../../../../chunks/3343.js","../../../../../../chunks/4586.js","../../../../../../chunks/9958.js","../../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/deployments/[id]/functions/[...path]/route_client-reference-manifest.js b/.next/server/app/api/deployments/[id]/functions/[...path]/route_client-reference-manifest.js new file mode 100644 index 0000000000000000000000000000000000000000..e890a0f882c0e498826c9e20fb01ccf0e9463af8 --- /dev/null +++ b/.next/server/app/api/deployments/[id]/functions/[...path]/route_client-reference-manifest.js @@ -0,0 +1 @@ +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/deployments/[id]/functions/[...path]/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/deployments/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/deployments/[id]/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/deployments/[id]/functions/[...path]/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/deployments/[id]/publish/route.js b/.next/server/app/api/deployments/[id]/publish/route.js new file mode 100644 index 0000000000000000000000000000000000000000..a9c66e24c8fad5e6e6b45d62c698e5162efbf416 --- /dev/null +++ b/.next/server/app/api/deployments/[id]/publish/route.js @@ -0,0 +1 @@ +"use strict";(()=>{var a={};a.id=2756,a.ids=[2756],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},9930:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>D,patchFetch:()=>C,routeModule:()=>y,serverHooks:()=>B,workAsyncStorage:()=>z,workUnitAsyncStorage:()=>A});var d={};c.r(d),c.d(d,{POST:()=>x});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(12644),w=c(32907);async function x(a,{params:b}){try{let{id:a}=await b,c=await (0,v.KJ)(a);if(!c.success)return u.NextResponse.json({error:c.error||"Failed to build deployment"},{status:500});let d=(0,w.q)();await d.init();let e=await d.getDeployment?.(a);return e&&d.updateDeployment&&(e.lastPublishedVersion=e.settingsVersion,e.publishedAt=new Date,e.updatedAt=new Date,e.databaseEnabled||(e.databaseEnabled=!0,await d.enableDeploymentDatabase(a)),await d.updateDeployment(e)),u.NextResponse.json({success:!0,deploymentId:c.deploymentId,projectId:c.projectId,filesWritten:c.filesWritten,outputPath:c.outputPath})}catch(a){return console.error("[Deployments API] Error publishing deployment:",a),u.NextResponse.json({error:"Failed to publish deployment"},{status:500})}}let y=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/deployments/[id]/publish/route",pathname:"/api/deployments/[id]/publish",filename:"route",bundlePath:"app/api/deployments/[id]/publish/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/deployments/[id]/publish/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:z,workUnitAsyncStorage:A,serverHooks:B}=y;function C(){return(0,g.patchFetch)({workAsyncStorage:z,workUnitAsyncStorage:A})}async function D(a,b,c){var d;let e="/api/deployments/[id]/publish/route";"/index"===e&&(e="/");let g=await y.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:z,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(z.dynamicRoutes[E]||z.routes[D]);if(F&&!x){let a=!!z.routes[D],b=z.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||y.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===y.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:z,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>y.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>y.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await y.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await y.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:z,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await y.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{a.exports=require("path")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,9298,3343,2644],()=>b(b.s=9930));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/deployments/[id]/publish/route.js.nft.json b/.next/server/app/api/deployments/[id]/publish/route.js.nft.json new file mode 100644 index 0000000000000000000000000000000000000000..9e3eb1c78b45a56a2c6f8b40cacc650947fa28a4 --- /dev/null +++ b/.next/server/app/api/deployments/[id]/publish/route.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../../../../data/osws.sqlite","../../../../../../../data/osws.sqlite-shm","../../../../../../../data/osws.sqlite-wal","../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite","../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-shm","../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-wal","../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite","../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-shm","../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-wal","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/analytics.sqlite","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-shm","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-wal","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/analytics.sqlite","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-shm","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-wal","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/analytics.sqlite","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-shm","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-wal","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/analytics.sqlite","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-shm","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-wal","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/analytics.sqlite","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-shm","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-wal","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/analytics.sqlite","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-shm","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-wal","../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../node_modules/bindings/bindings.js","../../../../../../../node_modules/bindings/package.json","../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../node_modules/next/package.json","../../../../../../../package.json","../../../../../../package.json","../../../../../chunks/1692.js","../../../../../chunks/2644.js","../../../../../chunks/3343.js","../../../../../chunks/4586.js","../../../../../chunks/9298.js","../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/analytics/[siteId]/clear/route_client-reference-manifest.js b/.next/server/app/api/deployments/[id]/publish/route_client-reference-manifest.js similarity index 77% rename from .next/server/app/api/analytics/[siteId]/clear/route_client-reference-manifest.js rename to .next/server/app/api/deployments/[id]/publish/route_client-reference-manifest.js index ec0b6f1424708155a6fe84e0f20813aadb8d1622..f0e7ed185652077b6554a8d347f8fa7996026018 100644 --- a/.next/server/app/api/analytics/[siteId]/clear/route_client-reference-manifest.js +++ b/.next/server/app/api/deployments/[id]/publish/route_client-reference-manifest.js @@ -1 +1 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/analytics/[siteId]/clear/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/analytics/[siteId]/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/analytics/[siteId]/clear/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/deployments/[id]/publish/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/deployments/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/deployments/[id]/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/deployments/[id]/publish/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/deployments/[id]/route.js b/.next/server/app/api/deployments/[id]/route.js new file mode 100644 index 0000000000000000000000000000000000000000..81111de14f5949d7e5ae4ebbc90c924ac8667e49 --- /dev/null +++ b/.next/server/app/api/deployments/[id]/route.js @@ -0,0 +1 @@ +"use strict";(()=>{var a={};a.id=9504,a.ids=[9504],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{a.exports=require("path")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},83819:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>F,patchFetch:()=>E,routeModule:()=>A,serverHooks:()=>D,workAsyncStorage:()=>B,workUnitAsyncStorage:()=>C});var d={};c.r(d),c.d(d,{DELETE:()=>z,GET:()=>x,PUT:()=>y});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(32907),w=c(12644);async function x(a,{params:b}){try{let{id:a}=await b,c=await (0,v.B)();await c.init();let d=await c.getDeployment?.(a);if(await c.close?.(),!d)return u.NextResponse.json({error:"Deployment not found"},{status:404});return u.NextResponse.json(d)}catch(a){return console.error("[Deployments API] Error getting deployment:",a),u.NextResponse.json({error:"Failed to get deployment"},{status:500})}}async function y(a,{params:b}){try{let{id:c}=await b,d=await a.json(),e=await (0,v.B)();await e.init();let f=await e.getDeployment?.(c);if(!f)return await e.close?.(),u.NextResponse.json({error:"Deployment not found"},{status:404});let g={...f,...d,id:c,updatedAt:new Date};return e.updateDeployment&&await e.updateDeployment(g),await e.close?.(),u.NextResponse.json(g)}catch(a){return console.error("[Deployments API] Error updating deployment:",a),u.NextResponse.json({error:"Failed to update deployment"},{status:500})}}async function z(a,{params:b}){try{let{id:a}=await b,c=await (0,v.B)();if(await c.init(),!await c.getDeployment?.(a))return await c.close?.(),u.NextResponse.json({error:"Deployment not found"},{status:404});return c.deleteDeployment&&await c.deleteDeployment(a),await c.close?.(),await (0,w.$_)(a),u.NextResponse.json({success:!0})}catch(a){return console.error("[Deployments API] Error deleting deployment:",a),u.NextResponse.json({error:"Failed to delete deployment"},{status:500})}}let A=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/deployments/[id]/route",pathname:"/api/deployments/[id]",filename:"route",bundlePath:"app/api/deployments/[id]/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/deployments/[id]/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:B,workUnitAsyncStorage:C,serverHooks:D}=A;function E(){return(0,g.patchFetch)({workAsyncStorage:B,workUnitAsyncStorage:C})}async function F(a,b,c){var d;let e="/api/deployments/[id]/route";"/index"===e&&(e="/");let g=await A.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:y,routerServerContext:z,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(y.dynamicRoutes[E]||y.routes[D]);if(F&&!x){let a=!!y.routes[D],b=y.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||A.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===A.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:y,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>A.onRequestError(a,b,d,z)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>A.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await A.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},z),b}},l=await A.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await A.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,9298,3343,2644],()=>b(b.s=83819));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/deployments/[id]/route.js.nft.json b/.next/server/app/api/deployments/[id]/route.js.nft.json new file mode 100644 index 0000000000000000000000000000000000000000..23de254935c67ef0b58b2d88acd4bea366032e27 --- /dev/null +++ b/.next/server/app/api/deployments/[id]/route.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../../../data/osws.sqlite","../../../../../../data/osws.sqlite-shm","../../../../../../data/osws.sqlite-wal","../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite","../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-shm","../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-wal","../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite","../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-shm","../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-wal","../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/analytics.sqlite","../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite","../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-shm","../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-wal","../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/analytics.sqlite","../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite","../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-shm","../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-wal","../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/analytics.sqlite","../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite","../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-shm","../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-wal","../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/analytics.sqlite","../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite","../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-shm","../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-wal","../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/analytics.sqlite","../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite","../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-shm","../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-wal","../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/analytics.sqlite","../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite","../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-shm","../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-wal","../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../node_modules/better-sqlite3/package.json","../../../../../../node_modules/bindings/bindings.js","../../../../../../node_modules/bindings/package.json","../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../node_modules/next/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1692.js","../../../../chunks/2644.js","../../../../chunks/3343.js","../../../../chunks/4586.js","../../../../chunks/9298.js","../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/sites/[id]/[...path]/route_client-reference-manifest.js b/.next/server/app/api/deployments/[id]/route_client-reference-manifest.js similarity index 77% rename from .next/server/app/sites/[id]/[...path]/route_client-reference-manifest.js rename to .next/server/app/api/deployments/[id]/route_client-reference-manifest.js index 521ace83922fbe8695f21adeaffbf85066660300..7b8ba9337fdbc145fa48b109355ce78d78956a7f 100644 --- a/.next/server/app/sites/[id]/[...path]/route_client-reference-manifest.js +++ b/.next/server/app/api/deployments/[id]/route_client-reference-manifest.js @@ -1 +1 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/sites/[id]/[...path]/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/sites/[id]/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/sites/[id]/[...path]/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/deployments/[id]/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/deployments/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/deployments/[id]/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/deployments/[id]/settings/route.js b/.next/server/app/api/deployments/[id]/settings/route.js new file mode 100644 index 0000000000000000000000000000000000000000..bb4ce5d7fc5204b718a4467d50f906e2f25423f6 --- /dev/null +++ b/.next/server/app/api/deployments/[id]/settings/route.js @@ -0,0 +1 @@ +"use strict";(()=>{var a={};a.id=2720,a.ids=[2720],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},70544:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>D,patchFetch:()=>C,routeModule:()=>y,serverHooks:()=>B,workAsyncStorage:()=>z,workUnitAsyncStorage:()=>A});var d={};c.r(d),c.d(d,{GET:()=>w,PUT:()=>x});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(32907);async function w(a,{params:b}){try{let{id:a}=await b,c=await (0,v.B)();await c.init();let d=await c.getDeployment?.(a);if(await c.close?.(),!d)return u.NextResponse.json({error:"Deployment not found"},{status:404});let e={enabled:d.enabled,underConstruction:d.underConstruction,customDomain:d.customDomain,headScripts:d.headScripts,bodyScripts:d.bodyScripts,cdnLinks:d.cdnLinks,analytics:d.analytics,seo:d.seo,compliance:d.compliance,settingsVersion:d.settingsVersion,lastPublishedVersion:d.lastPublishedVersion};return u.NextResponse.json(e)}catch(a){return console.error("[Deployments API] Error getting deployment settings:",a),u.NextResponse.json({error:"Failed to get deployment settings"},{status:500})}}async function x(a,{params:b}){try{let{id:c}=await b,d=await a.json(),e=await (0,v.B)();await e.init();let f=await e.getDeployment?.(c);if(!f)return await e.close?.(),u.NextResponse.json({error:"Deployment not found"},{status:404});let g={...f,enabled:d.enabled??f.enabled,underConstruction:d.underConstruction??f.underConstruction,customDomain:d.customDomain??f.customDomain,headScripts:d.headScripts??f.headScripts,bodyScripts:d.bodyScripts??f.bodyScripts,cdnLinks:d.cdnLinks??f.cdnLinks,analytics:d.analytics??f.analytics,seo:d.seo??f.seo,compliance:d.compliance??f.compliance,settingsVersion:f.settingsVersion+1,updatedAt:new Date};e.updateDeployment&&await e.updateDeployment(g),await e.close?.();let h={enabled:g.enabled,underConstruction:g.underConstruction,customDomain:g.customDomain,headScripts:g.headScripts,bodyScripts:g.bodyScripts,cdnLinks:g.cdnLinks,analytics:g.analytics,seo:g.seo,compliance:g.compliance,settingsVersion:g.settingsVersion,lastPublishedVersion:f.lastPublishedVersion};return u.NextResponse.json(h)}catch(a){return console.error("[Deployments API] Error updating deployment settings:",a),u.NextResponse.json({error:"Failed to update deployment settings"},{status:500})}}let y=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/deployments/[id]/settings/route",pathname:"/api/deployments/[id]/settings",filename:"route",bundlePath:"app/api/deployments/[id]/settings/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/deployments/[id]/settings/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:z,workUnitAsyncStorage:A,serverHooks:B}=y;function C(){return(0,g.patchFetch)({workAsyncStorage:z,workUnitAsyncStorage:A})}async function D(a,b,c){var d;let e="/api/deployments/[id]/settings/route";"/index"===e&&(e="/");let g=await y.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:z,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(z.dynamicRoutes[E]||z.routes[D]);if(F&&!x){let a=!!z.routes[D],b=z.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||y.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===y.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:z,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>y.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>y.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await y.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await y.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:z,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await y.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,3343],()=>b(b.s=70544));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/deployments/[id]/settings/route.js.nft.json b/.next/server/app/api/deployments/[id]/settings/route.js.nft.json new file mode 100644 index 0000000000000000000000000000000000000000..4f1b20eac27357d0b414611ee07dd203fd71bd4e --- /dev/null +++ b/.next/server/app/api/deployments/[id]/settings/route.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../../../../data/osws.sqlite","../../../../../../../data/osws.sqlite-shm","../../../../../../../data/osws.sqlite-wal","../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite","../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-shm","../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-wal","../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite","../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-shm","../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-wal","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/analytics.sqlite","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-shm","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-wal","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/analytics.sqlite","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-shm","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-wal","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/analytics.sqlite","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-shm","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-wal","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/analytics.sqlite","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-shm","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-wal","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/analytics.sqlite","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-shm","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-wal","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/analytics.sqlite","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-shm","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-wal","../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../node_modules/bindings/bindings.js","../../../../../../../node_modules/bindings/package.json","../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../node_modules/next/package.json","../../../../../../../package.json","../../../../../../package.json","../../../../../chunks/1692.js","../../../../../chunks/3343.js","../../../../../chunks/4586.js","../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/deployments/[id]/settings/route_client-reference-manifest.js b/.next/server/app/api/deployments/[id]/settings/route_client-reference-manifest.js new file mode 100644 index 0000000000000000000000000000000000000000..03b9b144ec3c5edae50071c688a56ec74f87612a --- /dev/null +++ b/.next/server/app/api/deployments/[id]/settings/route_client-reference-manifest.js @@ -0,0 +1 @@ +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/deployments/[id]/settings/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/deployments/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/deployments/[id]/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/deployments/[id]/settings/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/deployments/[id]/swap-project/route.js b/.next/server/app/api/deployments/[id]/swap-project/route.js new file mode 100644 index 0000000000000000000000000000000000000000..bd26d50f6b38d2025a223a2c571e5f2e1ddb7b98 --- /dev/null +++ b/.next/server/app/api/deployments/[id]/swap-project/route.js @@ -0,0 +1 @@ +"use strict";(()=>{var a={};a.id=1370,a.ids=[1370],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{a.exports=require("path")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},53797:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>H,patchFetch:()=>G,routeModule:()=>C,serverHooks:()=>F,workAsyncStorage:()=>D,workUnitAsyncStorage:()=>E});var d={};c.r(d),c.d(d,{GET:()=>A,POST:()=>B});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(32907),w=c(2304);function x(a,b){let c=new Map(a.map(a=>[a.name,a])),d=new Map(b.map(a=>[a.name,a])),e=[],f=[],g=[];for(let[a,b]of c){let c=d.get(a);c?"code"in b&&"code"in c&&b.code!==c.code?g.push(a):b.enabled!==c.enabled&&g.push(a):e.push(a)}for(let a of d.keys())c.has(a)||f.push(a);return{added:e,removed:f,changed:g}}async function y(a,b){let c=(0,v.q)();await c.init();let d=c.listEdgeFunctions?await c.listEdgeFunctions(a):[],e=c.listServerFunctions?await c.listServerFunctions(a):[],f=c.listSecrets?await c.listSecrets(a):[],g=c.listScheduledFunctions?await c.listScheduledFunctions(a):[],h=[],i=[],j=[],k=[];try{let a=new w.k(b);a.init(),h=a.listFunctions(),i=a.listServerFunctions(),j=a.listSecrets(),k=a.listScheduledFunctions()}catch{}let l=x(d,h),m=x(e,i),n=x(g,k),o=new Set(f.map(a=>a.name)),p=new Set(j.map(a=>a.name)),q=[...o].filter(a=>!p.has(a)),r=[...p].filter(a=>!o.has(a)),s=[...o].filter(a=>p.has(a));return{edgeFunctions:l,serverFunctions:m,secrets:{added:q,removed:r,overlapping:s},scheduledFunctions:n,hasConflicts:l.removed.length>0||l.changed.length>0||m.removed.length>0||m.changed.length>0||r.length>0||s.length>0||n.removed.length>0||n.changed.length>0}}var z=c(12644);async function A(a,{params:b}){try{let{id:c}=await b,d=a.nextUrl.searchParams.get("projectId");if(!d)return u.NextResponse.json({error:"projectId query parameter is required"},{status:400});let e=(0,v.q)();await e.init();let f=await e.getDeployment?.(c);if(!f)return u.NextResponse.json({error:"Deployment not found"},{status:404});let g=await e.getProject(d);if(!g)return u.NextResponse.json({error:"Project not found"},{status:404});let h=await y(d,c);return u.NextResponse.json({diff:h,currentProjectId:f.projectId,newProjectId:d,newProjectName:g.name})}catch(a){return console.error("[Swap Project API] Error analyzing swap:",a),u.NextResponse.json({error:"Failed to analyze project swap"},{status:500})}}async function B(a,{params:b}){try{let{id:c}=await b,{projectId:d}=await a.json();if(!d)return u.NextResponse.json({error:"projectId is required"},{status:400});let e=(0,v.q)();await e.init();let f=await e.getDeployment?.(c);if(!f)return u.NextResponse.json({error:"Deployment not found"},{status:404});if(!await e.getProject(d))return u.NextResponse.json({error:"Project not found"},{status:404});let g=f.projectId;e.updateDeployment&&(f.projectId=d,f.updatedAt=new Date,await e.updateDeployment(f));let h=await (0,z.KJ)(c);if(!h.success)return e.updateDeployment&&(f.projectId=g,f.updatedAt=new Date,await e.updateDeployment(f)),u.NextResponse.json({error:h.error||"Failed to rebuild deployment with new project"},{status:500});return e.updateDeployment&&(f.lastPublishedVersion=f.settingsVersion,f.publishedAt=new Date,f.updatedAt=new Date,await e.updateDeployment(f)),u.NextResponse.json({success:!0,previousProjectId:g,newProjectId:d,filesWritten:h.filesWritten})}catch(a){return console.error("[Swap Project API] Error executing swap:",a),u.NextResponse.json({error:"Failed to swap project"},{status:500})}}let C=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/deployments/[id]/swap-project/route",pathname:"/api/deployments/[id]/swap-project",filename:"route",bundlePath:"app/api/deployments/[id]/swap-project/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/deployments/[id]/swap-project/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:D,workUnitAsyncStorage:E,serverHooks:F}=C;function G(){return(0,g.patchFetch)({workAsyncStorage:D,workUnitAsyncStorage:E})}async function H(a,b,c){var d;let e="/api/deployments/[id]/swap-project/route";"/index"===e&&(e="/");let g=await C.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:y,routerServerContext:z,isOnDemandRevalidate:A,revalidateOnlyGenerated:B,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(y.dynamicRoutes[E]||y.routes[D]);if(F&&!x){let a=!!y.routes[D],b=y.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||C.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===C.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:y,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>C.onRequestError(a,b,d,z)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>C.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&A&&B&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await C.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:A})},z),b}},l=await C.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:A,revalidateOnlyGenerated:B,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",A?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await C.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:A})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,9298,3343,2644],()=>b(b.s=53797));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/deployments/[id]/swap-project/route.js.nft.json b/.next/server/app/api/deployments/[id]/swap-project/route.js.nft.json new file mode 100644 index 0000000000000000000000000000000000000000..9e3eb1c78b45a56a2c6f8b40cacc650947fa28a4 --- /dev/null +++ b/.next/server/app/api/deployments/[id]/swap-project/route.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../../../../data/osws.sqlite","../../../../../../../data/osws.sqlite-shm","../../../../../../../data/osws.sqlite-wal","../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite","../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-shm","../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-wal","../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite","../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-shm","../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-wal","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/analytics.sqlite","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-shm","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-wal","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/analytics.sqlite","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-shm","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-wal","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/analytics.sqlite","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-shm","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-wal","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/analytics.sqlite","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-shm","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-wal","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/analytics.sqlite","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-shm","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-wal","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/analytics.sqlite","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-shm","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-wal","../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../node_modules/bindings/bindings.js","../../../../../../../node_modules/bindings/package.json","../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../node_modules/next/package.json","../../../../../../../package.json","../../../../../../package.json","../../../../../chunks/1692.js","../../../../../chunks/2644.js","../../../../../chunks/3343.js","../../../../../chunks/4586.js","../../../../../chunks/9298.js","../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/deployments/[id]/swap-project/route_client-reference-manifest.js b/.next/server/app/api/deployments/[id]/swap-project/route_client-reference-manifest.js new file mode 100644 index 0000000000000000000000000000000000000000..c1003dd98a4460626de3c7eefb4f9dc4ead7104b --- /dev/null +++ b/.next/server/app/api/deployments/[id]/swap-project/route_client-reference-manifest.js @@ -0,0 +1 @@ +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/deployments/[id]/swap-project/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/deployments/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/deployments/[id]/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/deployments/[id]/swap-project/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/deployments/[id]/thumbnail/route.js b/.next/server/app/api/deployments/[id]/thumbnail/route.js new file mode 100644 index 0000000000000000000000000000000000000000..93a0ec8dc31b827b656e4bb114319a8984538bf7 --- /dev/null +++ b/.next/server/app/api/deployments/[id]/thumbnail/route.js @@ -0,0 +1 @@ +"use strict";(()=>{var a={};a.id=6409,a.ids=[6409],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},50148:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>C,patchFetch:()=>B,routeModule:()=>x,serverHooks:()=>A,workAsyncStorage:()=>y,workUnitAsyncStorage:()=>z});var d={};c.r(d),c.d(d,{PUT:()=>w});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(32907);async function w(a,{params:b}){try{let{id:c}=await b,{previewImage:d}=await a.json(),e=null===d||""===d;if(!e){if(!d||"string"!=typeof d)return u.NextResponse.json({error:"previewImage (base64 data URL) is required"},{status:400});if(!d.startsWith("data:image/"))return u.NextResponse.json({error:"previewImage must be a base64 data URL (data:image/...)"},{status:400})}let f=await (0,v.B)();await f.init();let g=await f.getDeployment?.(c);if(!g)return await f.close?.(),u.NextResponse.json({error:"Deployment not found"},{status:404});let h={...g,previewImage:e?void 0:d,previewUpdatedAt:e?void 0:new Date,updatedAt:new Date};return f.updateDeployment&&await f.updateDeployment(h),await f.close?.(),u.NextResponse.json({success:!0,previewImage:h.previewImage??null,previewUpdatedAt:h.previewUpdatedAt??null})}catch(a){return console.error("[Deployments API] Error updating deployment thumbnail:",a),u.NextResponse.json({error:"Failed to update deployment thumbnail"},{status:500})}}let x=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/deployments/[id]/thumbnail/route",pathname:"/api/deployments/[id]/thumbnail",filename:"route",bundlePath:"app/api/deployments/[id]/thumbnail/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/deployments/[id]/thumbnail/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:y,workUnitAsyncStorage:z,serverHooks:A}=x;function B(){return(0,g.patchFetch)({workAsyncStorage:y,workUnitAsyncStorage:z})}async function C(a,b,c){var d;let e="/api/deployments/[id]/thumbnail/route";"/index"===e&&(e="/");let g=await x.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:y,prerenderManifest:z,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(z.dynamicRoutes[E]||z.routes[D]);if(F&&!y){let a=!!z.routes[D],b=z.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||x.isDev||y||(G="/index"===(G=D)?"/":G);let H=!0===x.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:z,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>x.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>x.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await x.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await x.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:z,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),y&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await x.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,3343],()=>b(b.s=50148));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/deployments/[id]/thumbnail/route.js.nft.json b/.next/server/app/api/deployments/[id]/thumbnail/route.js.nft.json new file mode 100644 index 0000000000000000000000000000000000000000..4f1b20eac27357d0b414611ee07dd203fd71bd4e --- /dev/null +++ b/.next/server/app/api/deployments/[id]/thumbnail/route.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../../../../data/osws.sqlite","../../../../../../../data/osws.sqlite-shm","../../../../../../../data/osws.sqlite-wal","../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite","../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-shm","../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-wal","../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite","../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-shm","../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-wal","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/analytics.sqlite","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-shm","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-wal","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/analytics.sqlite","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-shm","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-wal","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/analytics.sqlite","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-shm","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-wal","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/analytics.sqlite","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-shm","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-wal","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/analytics.sqlite","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-shm","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-wal","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/analytics.sqlite","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-shm","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-wal","../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../node_modules/bindings/bindings.js","../../../../../../../node_modules/bindings/package.json","../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../node_modules/next/package.json","../../../../../../../package.json","../../../../../../package.json","../../../../../chunks/1692.js","../../../../../chunks/3343.js","../../../../../chunks/4586.js","../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/admin/sites/[id]/functions/route_client-reference-manifest.js b/.next/server/app/api/deployments/[id]/thumbnail/route_client-reference-manifest.js similarity index 77% rename from .next/server/app/api/admin/sites/[id]/functions/route_client-reference-manifest.js rename to .next/server/app/api/deployments/[id]/thumbnail/route_client-reference-manifest.js index 540147e3268836dcca2811cf7c519796496f5881..55d20ae322c6c31a7bfdaac34894c8add9313acb 100644 --- a/.next/server/app/api/admin/sites/[id]/functions/route_client-reference-manifest.js +++ b/.next/server/app/api/deployments/[id]/thumbnail/route_client-reference-manifest.js @@ -1 +1 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/admin/sites/[id]/functions/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/sites/[id]/functions/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/deployments/[id]/thumbnail/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/deployments/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/deployments/[id]/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/deployments/[id]/thumbnail/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/deployments/route.js b/.next/server/app/api/deployments/route.js new file mode 100644 index 0000000000000000000000000000000000000000..8db9458c37b1b1b5796621066b6127cb1000b5f9 --- /dev/null +++ b/.next/server/app/api/deployments/route.js @@ -0,0 +1 @@ +"use strict";(()=>{var a={};a.id=5066,a.ids=[5066],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},65874:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>E,patchFetch:()=>D,routeModule:()=>z,serverHooks:()=>C,workAsyncStorage:()=>A,workUnitAsyncStorage:()=>B});var d={};c.r(d),c.d(d,{GET:()=>x,POST:()=>y});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(32907),w=c(32524);async function x(){try{let a=await (0,v.B)();await a.init();let b=await a.listDeployments?.()||[];return await a.close?.(),u.NextResponse.json(b)}catch(a){return console.error("[Deployments API] Error listing deployments:",a),u.NextResponse.json({error:"Failed to list deployments"},{status:500})}}async function y(a){try{let{projectId:b,name:c,slug:d}=await a.json();if(!b||!c)return u.NextResponse.json({error:"projectId and name are required"},{status:400});let e=await (0,v.B)();if(await e.init(),!await e.getProject(b))return await e.close?.(),u.NextResponse.json({error:"Project not found"},{status:404});let f={id:(0,w.A)(),projectId:b,name:c,slug:d||void 0,enabled:!1,underConstruction:!1,headScripts:[],bodyScripts:[],cdnLinks:[],analytics:{enabled:!1,provider:"builtin",privacyMode:!0},seo:{},compliance:{enabled:!1,bannerPosition:"bottom",bannerStyle:"bar",message:"",acceptButtonText:"Accept",declineButtonText:"Decline",mode:"opt-in",blockAnalytics:!0},settingsVersion:1,createdAt:new Date,updatedAt:new Date};return e.createDeployment&&await e.createDeployment(f),await e.close?.(),u.NextResponse.json(f,{status:201})}catch(a){return console.error("[Deployments API] Error creating deployment:",a),u.NextResponse.json({error:"Failed to create deployment"},{status:500})}}let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/deployments/route",pathname:"/api/deployments",filename:"route",bundlePath:"app/api/deployments/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/deployments/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:A,workUnitAsyncStorage:B,serverHooks:C}=z;function D(){return(0,g.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:B})}async function E(a,b,c){var d;let e="/api/deployments/route";"/index"===e&&(e="/");let g=await z.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:y,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(y.dynamicRoutes[E]||y.routes[D]);if(F&&!x){let a=!!y.routes[D],b=y.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||z.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===z.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:y,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>z.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>z.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await z.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await z.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,3343],()=>b(b.s=65874));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/deployments/route.js.nft.json b/.next/server/app/api/deployments/route.js.nft.json new file mode 100644 index 0000000000000000000000000000000000000000..ce9fa9f8c1706a71b717fb7da59423cc4402d8b3 --- /dev/null +++ b/.next/server/app/api/deployments/route.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../../data/osws.sqlite","../../../../../data/osws.sqlite-shm","../../../../../data/osws.sqlite-wal","../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite","../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-shm","../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-wal","../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite","../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-shm","../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-wal","../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/analytics.sqlite","../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite","../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-shm","../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-wal","../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/analytics.sqlite","../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite","../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-shm","../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-wal","../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/analytics.sqlite","../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite","../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-shm","../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-wal","../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/analytics.sqlite","../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite","../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-shm","../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-wal","../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/analytics.sqlite","../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite","../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-shm","../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-wal","../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/analytics.sqlite","../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite","../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-shm","../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-wal","../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../node_modules/better-sqlite3/package.json","../../../../../node_modules/bindings/bindings.js","../../../../../node_modules/bindings/package.json","../../../../../node_modules/file-uri-to-path/index.js","../../../../../node_modules/file-uri-to-path/package.json","../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../node_modules/next/dist/lib/constants.js","../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../node_modules/next/dist/lib/is-error.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../node_modules/next/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1692.js","../../../chunks/3343.js","../../../chunks/4586.js","../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/deployments/route_client-reference-manifest.js b/.next/server/app/api/deployments/route_client-reference-manifest.js new file mode 100644 index 0000000000000000000000000000000000000000..59c5c6626670ff50ed0ccc171bdf475408b8856c --- /dev/null +++ b/.next/server/app/api/deployments/route_client-reference-manifest.js @@ -0,0 +1 @@ +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/deployments/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/deployments/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/docs/[...path]/route.js.nft.json b/.next/server/app/api/docs/[...path]/route.js.nft.json index 214cb97f4067f97104705df087b32f4aa6d6aab2..6f50db16344e8760d7b7facf5186d7630f131f58 100644 --- a/.next/server/app/api/docs/[...path]/route.js.nft.json +++ b/.next/server/app/api/docs/[...path]/route.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../docs/DEPLOYING_SITES.md","../../../../../../docs/FAQ.md","../../../../../../docs/GETTING_STARTED.md","../../../../../../docs/OVERVIEW.md","../../../../../../docs/PROJECTS.md","../../../../../../docs/SERVER_FEATURES.md","../../../../../../docs/SERVER_MODE.md","../../../../../../docs/SITE_PUBLISHING.md","../../../../../../docs/SKILLS.md","../../../../../../docs/TEMPLATES.md","../../../../../../docs/TROUBLESHOOTING.md","../../../../../../docs/VPS_DEPLOYMENT.md","../../../../../../docs/WHATS_NEW.md","../../../../../../docs/WORKING_WITH_AI.md","../../../../../../docs/plans/2026-02-05-mobile-ux-improvements-design.md","../../../../../../docs/plans/2026-02-05-mobile-ux-improvements.md","../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../node_modules/next/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1692.js","../../../../chunks/4586.js","../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../docs/BACKEND_FEATURES.md","../../../../../../docs/DEPLOYING_SITES.md","../../../../../../docs/FAQ.md","../../../../../../docs/GETTING_STARTED.md","../../../../../../docs/OVERVIEW.md","../../../../../../docs/PROJECTS.md","../../../../../../docs/SERVER_MODE.md","../../../../../../docs/SITE_PUBLISHING.md","../../../../../../docs/SKILLS.md","../../../../../../docs/TEMPLATES.md","../../../../../../docs/TROUBLESHOOTING.md","../../../../../../docs/VPS_DEPLOYMENT.md","../../../../../../docs/WHATS_NEW.md","../../../../../../docs/WORKING_WITH_AI.md","../../../../../../docs/plans/2026-02-05-mobile-ux-improvements-design.md","../../../../../../docs/plans/2026-02-05-mobile-ux-improvements.md","../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../node_modules/next/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1692.js","../../../../chunks/4586.js","../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/docs/[...path]/route_client-reference-manifest.js b/.next/server/app/api/docs/[...path]/route_client-reference-manifest.js index ca6a2f75cf555f3e4af5bd7941f7cca1f695e0f1..ef45dbb8020a7f934d570a1cf7e44b13f85fb04e 100644 --- a/.next/server/app/api/docs/[...path]/route_client-reference-manifest.js +++ b/.next/server/app/api/docs/[...path]/route_client-reference-manifest.js @@ -1 +1 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/docs/[...path]/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/docs/[...path]/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/docs/[...path]/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/docs/[...path]/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/generate/route_client-reference-manifest.js b/.next/server/app/api/generate/route_client-reference-manifest.js index 918e7e94fe4d3176d48dbb887d843096134567e6..6400c30288865a5a6c586d7b78ee43ec0a633a09 100644 --- a/.next/server/app/api/generate/route_client-reference-manifest.js +++ b/.next/server/app/api/generate/route_client-reference-manifest.js @@ -1 +1 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/generate/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/generate/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/generate/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/generate/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/models/route_client-reference-manifest.js b/.next/server/app/api/models/route_client-reference-manifest.js index ade9125ec58c92085049e290f613c103c9680477..4941decfd34b7aed0efbfe5efba652bc49db1490 100644 --- a/.next/server/app/api/models/route_client-reference-manifest.js +++ b/.next/server/app/api/models/route_client-reference-manifest.js @@ -1 +1 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/models/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/models/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/models/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/models/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/projects/[id]/database/query/route.js b/.next/server/app/api/projects/[id]/database/query/route.js new file mode 100644 index 0000000000000000000000000000000000000000..c59d1361a219a50847c51c8372c5e5e85892ac2f --- /dev/null +++ b/.next/server/app/api/projects/[id]/database/query/route.js @@ -0,0 +1 @@ +"use strict";(()=>{var a={};a.id=2395,a.ids=[2395],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},53944:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>D,patchFetch:()=>C,routeModule:()=>y,serverHooks:()=>B,workAsyncStorage:()=>z,workUnitAsyncStorage:()=>A});var d={};c.r(d),c.d(d,{POST:()=>x});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(39588),w=c(32907);async function x(a,{params:b}){try{await (0,v.oC)();let{id:c}=await b,{sql:d}=await a.json();if(!d||"string"!=typeof d)return u.NextResponse.json({error:"SQL query is required"},{status:400});let e=(0,w.q)();await e.init();let f=e.getProjectDatabase(c);try{let a=d.trim().toUpperCase();if(["ATTACH","DETACH","PRAGMA","VACUUM"].some(b=>a.startsWith(b)))return u.NextResponse.json({error:`${a.split(/\s/)[0]} statements are not allowed`},{status:400});if(a.startsWith("CREATE")||a.startsWith("ALTER")||a.startsWith("DROP"))return f.executeDDL(d),u.NextResponse.json({success:!0,columns:[],rows:[],rowsAffected:0});let b=f.executeRawSQL(d);return u.NextResponse.json({success:!0,columns:b.columns,rows:b.rows,rowsAffected:b.rowsAffected})}catch(b){let a=b instanceof Error?b.message:"Query failed";return u.NextResponse.json({error:a},{status:400})}}catch(a){if(a instanceof Error&&"Unauthorized"===a.message)return u.NextResponse.json({error:"Unauthorized"},{status:401});return console.error("[Project Database API] Error:",a),u.NextResponse.json({error:"Internal server error"},{status:500})}}let y=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/projects/[id]/database/query/route",pathname:"/api/projects/[id]/database/query",filename:"route",bundlePath:"app/api/projects/[id]/database/query/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/projects/[id]/database/query/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:z,workUnitAsyncStorage:A,serverHooks:B}=y;function C(){return(0,g.patchFetch)({workAsyncStorage:z,workUnitAsyncStorage:A})}async function D(a,b,c){var d;let e="/api/projects/[id]/database/query/route";"/index"===e&&(e="/");let g=await y.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:z,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(z.dynamicRoutes[E]||z.routes[D]);if(F&&!x){let a=!!z.routes[D],b=z.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||y.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===y.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:z,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>y.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>y.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await y.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await y.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:z,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await y.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("../../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,3343],()=>b(b.s=53944));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/projects/[id]/database/query/route.js.nft.json b/.next/server/app/api/projects/[id]/database/query/route.js.nft.json new file mode 100644 index 0000000000000000000000000000000000000000..bfd6ea7acc5ab46cfb7cffd384be868a2d074de7 --- /dev/null +++ b/.next/server/app/api/projects/[id]/database/query/route.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../../../../../data/osws.sqlite","../../../../../../../../data/osws.sqlite-shm","../../../../../../../../data/osws.sqlite-wal","../../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite","../../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-shm","../../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-wal","../../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite","../../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-shm","../../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-wal","../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/analytics.sqlite","../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite","../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-shm","../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-wal","../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/analytics.sqlite","../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite","../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-shm","../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-wal","../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/analytics.sqlite","../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite","../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-shm","../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-wal","../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/analytics.sqlite","../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite","../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-shm","../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-wal","../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/analytics.sqlite","../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite","../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-shm","../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-wal","../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/analytics.sqlite","../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite","../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-shm","../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-wal","../../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../../node_modules/bindings/bindings.js","../../../../../../../../node_modules/bindings/package.json","../../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../../node_modules/next/package.json","../../../../../../../../package.json","../../../../../../../package.json","../../../../../../chunks/1692.js","../../../../../../chunks/3343.js","../../../../../../chunks/4586.js","../../../../../../chunks/6151.js","../../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/projects/[id]/database/query/route_client-reference-manifest.js b/.next/server/app/api/projects/[id]/database/query/route_client-reference-manifest.js new file mode 100644 index 0000000000000000000000000000000000000000..fc4650eb09592d2cd48bd2014dd2d76396e468ee --- /dev/null +++ b/.next/server/app/api/projects/[id]/database/query/route_client-reference-manifest.js @@ -0,0 +1 @@ +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/projects/[id]/database/query/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/projects/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/projects/[id]/database/query/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/projects/[id]/database/schema/route.js b/.next/server/app/api/projects/[id]/database/schema/route.js new file mode 100644 index 0000000000000000000000000000000000000000..e9dad7dac351ab4590cdec33de06a243f2f33393 --- /dev/null +++ b/.next/server/app/api/projects/[id]/database/schema/route.js @@ -0,0 +1 @@ +"use strict";(()=>{var a={};a.id=1928,a.ids=[1928],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},45371:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>D,patchFetch:()=>C,routeModule:()=>y,serverHooks:()=>B,workAsyncStorage:()=>z,workUnitAsyncStorage:()=>A});var d={};c.r(d),c.d(d,{GET:()=>x});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(39588),w=c(32907);async function x(a,{params:b}){try{await (0,v.oC)();let{id:a}=await b,c=(0,w.q)();await c.init();let d=c.getProjectDatabase(a).getTableSchema();return u.NextResponse.json({tables:d})}catch(a){if(a instanceof Error&&"Unauthorized"===a.message)return u.NextResponse.json({error:"Unauthorized"},{status:401});return console.error("[Project Database API] Error:",a),u.NextResponse.json({error:"Internal server error"},{status:500})}}let y=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/projects/[id]/database/schema/route",pathname:"/api/projects/[id]/database/schema",filename:"route",bundlePath:"app/api/projects/[id]/database/schema/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/projects/[id]/database/schema/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:z,workUnitAsyncStorage:A,serverHooks:B}=y;function C(){return(0,g.patchFetch)({workAsyncStorage:z,workUnitAsyncStorage:A})}async function D(a,b,c){var d;let e="/api/projects/[id]/database/schema/route";"/index"===e&&(e="/");let g=await y.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:z,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(z.dynamicRoutes[E]||z.routes[D]);if(F&&!x){let a=!!z.routes[D],b=z.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||y.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===y.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:z,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>y.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>y.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await y.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await y.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:z,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await y.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("../../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,3343],()=>b(b.s=45371));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/projects/[id]/database/schema/route.js.nft.json b/.next/server/app/api/projects/[id]/database/schema/route.js.nft.json new file mode 100644 index 0000000000000000000000000000000000000000..bfd6ea7acc5ab46cfb7cffd384be868a2d074de7 --- /dev/null +++ b/.next/server/app/api/projects/[id]/database/schema/route.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../../../../../data/osws.sqlite","../../../../../../../../data/osws.sqlite-shm","../../../../../../../../data/osws.sqlite-wal","../../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite","../../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-shm","../../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-wal","../../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite","../../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-shm","../../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-wal","../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/analytics.sqlite","../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite","../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-shm","../../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-wal","../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/analytics.sqlite","../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite","../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-shm","../../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-wal","../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/analytics.sqlite","../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite","../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-shm","../../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-wal","../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/analytics.sqlite","../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite","../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-shm","../../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-wal","../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/analytics.sqlite","../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite","../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-shm","../../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-wal","../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/analytics.sqlite","../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite","../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-shm","../../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-wal","../../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../../node_modules/bindings/bindings.js","../../../../../../../../node_modules/bindings/package.json","../../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../../node_modules/next/package.json","../../../../../../../../package.json","../../../../../../../package.json","../../../../../../chunks/1692.js","../../../../../../chunks/3343.js","../../../../../../chunks/4586.js","../../../../../../chunks/6151.js","../../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/analytics/[siteId]/engagement/route_client-reference-manifest.js b/.next/server/app/api/projects/[id]/database/schema/route_client-reference-manifest.js similarity index 78% rename from .next/server/app/api/analytics/[siteId]/engagement/route_client-reference-manifest.js rename to .next/server/app/api/projects/[id]/database/schema/route_client-reference-manifest.js index 9c4b9c105a7a8ae6ed33985932cb0de4354ee86c..9003e50d12dc27467624a3cfa576900db8f33d0b 100644 --- a/.next/server/app/api/analytics/[siteId]/engagement/route_client-reference-manifest.js +++ b/.next/server/app/api/projects/[id]/database/schema/route_client-reference-manifest.js @@ -1 +1 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/analytics/[siteId]/engagement/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/analytics/[siteId]/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/analytics/[siteId]/engagement/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/projects/[id]/database/schema/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/projects/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/projects/[id]/database/schema/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/projects/[id]/deployments/route.js b/.next/server/app/api/projects/[id]/deployments/route.js new file mode 100644 index 0000000000000000000000000000000000000000..0a0ae4756a06cc89c6020d002276b97438f8fd09 --- /dev/null +++ b/.next/server/app/api/projects/[id]/deployments/route.js @@ -0,0 +1 @@ +"use strict";(()=>{var a={};a.id=1055,a.ids=[1055],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},93770:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>C,patchFetch:()=>B,routeModule:()=>x,serverHooks:()=>A,workAsyncStorage:()=>y,workUnitAsyncStorage:()=>z});var d={};c.r(d),c.d(d,{GET:()=>w});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(32907);async function w(a,{params:b}){try{let{id:a}=await b;if(!a)return u.NextResponse.json({error:"Project ID is required"},{status:400});let c=await (0,v.B)();if(await c.init(),!await c.getProject(a))return await c.close?.(),u.NextResponse.json({error:"Project not found"},{status:404});let d=await c.listDeploymentsByProject?.(a)||[];return await c.close?.(),u.NextResponse.json({deployments:d})}catch(a){return console.error("[Projects Deployments API] Error listing deployments:",a),u.NextResponse.json({error:"Failed to list deployments for project"},{status:500})}}let x=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/projects/[id]/deployments/route",pathname:"/api/projects/[id]/deployments",filename:"route",bundlePath:"app/api/projects/[id]/deployments/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/projects/[id]/deployments/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:y,workUnitAsyncStorage:z,serverHooks:A}=x;function B(){return(0,g.patchFetch)({workAsyncStorage:y,workUnitAsyncStorage:z})}async function C(a,b,c){var d;let e="/api/projects/[id]/deployments/route";"/index"===e&&(e="/");let g=await x.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:y,prerenderManifest:z,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(z.dynamicRoutes[E]||z.routes[D]);if(F&&!y){let a=!!z.routes[D],b=z.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||x.isDev||y||(G="/index"===(G=D)?"/":G);let H=!0===x.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:z,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>x.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>x.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await x.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await x.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:z,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),y&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await x.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,3343],()=>b(b.s=93770));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/projects/[id]/deployments/route.js.nft.json b/.next/server/app/api/projects/[id]/deployments/route.js.nft.json new file mode 100644 index 0000000000000000000000000000000000000000..4f1b20eac27357d0b414611ee07dd203fd71bd4e --- /dev/null +++ b/.next/server/app/api/projects/[id]/deployments/route.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../../../../data/osws.sqlite","../../../../../../../data/osws.sqlite-shm","../../../../../../../data/osws.sqlite-wal","../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite","../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-shm","../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-wal","../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite","../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-shm","../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-wal","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/analytics.sqlite","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-shm","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-wal","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/analytics.sqlite","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-shm","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-wal","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/analytics.sqlite","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-shm","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-wal","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/analytics.sqlite","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-shm","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-wal","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/analytics.sqlite","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-shm","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-wal","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/analytics.sqlite","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-shm","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-wal","../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../node_modules/bindings/bindings.js","../../../../../../../node_modules/bindings/package.json","../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../node_modules/next/package.json","../../../../../../../package.json","../../../../../../package.json","../../../../../chunks/1692.js","../../../../../chunks/3343.js","../../../../../chunks/4586.js","../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/analytics/[siteId]/export/route_client-reference-manifest.js b/.next/server/app/api/projects/[id]/deployments/route_client-reference-manifest.js similarity index 78% rename from .next/server/app/api/analytics/[siteId]/export/route_client-reference-manifest.js rename to .next/server/app/api/projects/[id]/deployments/route_client-reference-manifest.js index b1fe59b57aff9e7e6a9f4a9fb131dee2ddb40627..3c23443cf98e24eb96d87770350862d83b6f991a 100644 --- a/.next/server/app/api/analytics/[siteId]/export/route_client-reference-manifest.js +++ b/.next/server/app/api/projects/[id]/deployments/route_client-reference-manifest.js @@ -1 +1 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/analytics/[siteId]/export/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/analytics/[siteId]/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/analytics/[siteId]/export/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/projects/[id]/deployments/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/projects/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/projects/[id]/deployments/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/projects/[id]/sites/route.js b/.next/server/app/api/projects/[id]/sites/route.js deleted file mode 100644 index 6cf4b18de42cfe0a9f4b63bc6e0411fe6c2e4939..0000000000000000000000000000000000000000 --- a/.next/server/app/api/projects/[id]/sites/route.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(()=>{var a={};a.id=1471,a.ids=[1471],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},27991:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>C,patchFetch:()=>B,routeModule:()=>x,serverHooks:()=>A,workAsyncStorage:()=>y,workUnitAsyncStorage:()=>z});var d={};c.r(d),c.d(d,{GET:()=>w});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(97778);async function w(a,{params:b}){try{let{id:a}=await b;if(!a)return u.NextResponse.json({error:"Project ID is required"},{status:400});let c=await (0,v.B)();if(await c.init(),!await c.getProject(a))return await c.close?.(),u.NextResponse.json({error:"Project not found"},{status:404});let d=await c.listSitesByProject?.(a)||[];return await c.close?.(),u.NextResponse.json({sites:d})}catch(a){return console.error("[Projects Sites API] Error listing sites:",a),u.NextResponse.json({error:"Failed to list sites for project"},{status:500})}}let x=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/projects/[id]/sites/route",pathname:"/api/projects/[id]/sites",filename:"route",bundlePath:"app/api/projects/[id]/sites/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/projects/[id]/sites/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:y,workUnitAsyncStorage:z,serverHooks:A}=x;function B(){return(0,g.patchFetch)({workAsyncStorage:y,workUnitAsyncStorage:z})}async function C(a,b,c){var d;let e="/api/projects/[id]/sites/route";"/index"===e&&(e="/");let g=await x.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:y,prerenderManifest:z,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(z.dynamicRoutes[E]||z.routes[D]);if(F&&!y){let a=!!z.routes[D],b=z.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||x.isDev||y||(G="/index"===(G=D)?"/":G);let H=!0===x.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:z,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>x.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>x.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await x.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await x.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:z,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),y&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await x.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,726],()=>b(b.s=27991));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/projects/[id]/sites/route.js.nft.json b/.next/server/app/api/projects/[id]/sites/route.js.nft.json deleted file mode 100644 index f2da962a65c4d0a9a9131ebbd4b81baeec0f2b8a..0000000000000000000000000000000000000000 --- a/.next/server/app/api/projects/[id]/sites/route.js.nft.json +++ /dev/null @@ -1 +0,0 @@ -{"version":1,"files":["../../../../../../../data/osws.sqlite","../../../../../../../data/osws.sqlite-shm","../../../../../../../data/osws.sqlite-wal","../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../node_modules/bindings/bindings.js","../../../../../../../node_modules/bindings/package.json","../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../node_modules/next/package.json","../../../../../../../package.json","../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite","../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-shm","../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-wal","../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite","../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-shm","../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-wal","../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite","../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-shm","../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-wal","../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite","../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-shm","../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-wal","../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite","../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-shm","../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-wal","../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite","../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-shm","../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-wal","../../../../../../package.json","../../../../../chunks/1692.js","../../../../../chunks/4586.js","../../../../../chunks/726.js","../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/projects/[id]/sites/route_client-reference-manifest.js b/.next/server/app/api/projects/[id]/sites/route_client-reference-manifest.js deleted file mode 100644 index 9854ffba2a3f0ed9ac248f35f372a2cc47c11db4..0000000000000000000000000000000000000000 --- a/.next/server/app/api/projects/[id]/sites/route_client-reference-manifest.js +++ /dev/null @@ -1 +0,0 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/projects/[id]/sites/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/projects/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/projects/[id]/sites/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/projects/route.js b/.next/server/app/api/projects/route.js index 1063349b0c3340efa6300ab86fd71ed6df610398..04d36d67db48938d732e64674a3b989ac444db5c 100644 --- a/.next/server/app/api/projects/route.js +++ b/.next/server/app/api/projects/route.js @@ -1 +1 @@ -"use strict";(()=>{var a={};a.id=64,a.ids=[64],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},38338:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>E,patchFetch:()=>D,routeModule:()=>z,serverHooks:()=>C,workAsyncStorage:()=>A,workUnitAsyncStorage:()=>B});var d={};c.r(d),c.d(d,{GET:()=>y});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(39588),w=c(97778),x=c(95012);async function y(a){try{await (0,v.oC)();let b=await (0,w.B)();await b.init();let{searchParams:c}=new URL(a.url),d=c.get("fields"),e=d?d.split(",").map(a=>a.trim()):void 0,f=await b.listProjects(e);return await b.close?.(),u.NextResponse.json(f)}catch(a){if(x.v.error("[API /api/projects] ❌ Error:",a),a instanceof Error&&"Unauthorized"===a.message)return u.NextResponse.json({error:"Unauthorized"},{status:401});return u.NextResponse.json({error:a instanceof Error?a.message:"Failed to fetch projects"},{status:500})}}let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/projects/route",pathname:"/api/projects",filename:"route",bundlePath:"app/api/projects/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/projects/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:A,workUnitAsyncStorage:B,serverHooks:C}=z;function D(){return(0,g.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:B})}async function E(a,b,c){var d;let e="/api/projects/route";"/index"===e&&(e="/");let g=await z.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:y,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(y.dynamicRoutes[E]||y.routes[D]);if(F&&!x){let a=!!y.routes[D],b=y.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||z.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===z.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:y,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>z.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>z.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await z.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await z.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},95012:(a,b,c)=>{c.d(b,{v:()=>g});let d={debug:10,info:20,warn:30,error:40,silent:50},e="undefined"!=typeof process&&"warn"||"warn";function f(a){return d[e]<=d[a]}let g={debug:(...a)=>{f("debug")&&console.debug(...a)},info:(...a)=>{f("info")&&console.info(...a)},warn:(...a)=>{f("warn")&&console.warn(...a)},error:(...a)=>{f("error")&&console.error(...a)}}}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,726],()=>b(b.s=38338));module.exports=c})(); \ No newline at end of file +"use strict";(()=>{var a={};a.id=64,a.ids=[64],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},38338:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>E,patchFetch:()=>D,routeModule:()=>z,serverHooks:()=>C,workAsyncStorage:()=>A,workUnitAsyncStorage:()=>B});var d={};c.r(d),c.d(d,{GET:()=>y});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(39588),w=c(32907),x=c(95012);async function y(a){try{await (0,v.oC)();let b=await (0,w.B)();await b.init();let{searchParams:c}=new URL(a.url),d=c.get("fields"),e=d?d.split(",").map(a=>a.trim()):void 0,f=await b.listProjects(e);return await b.close?.(),u.NextResponse.json(f)}catch(a){if(x.v.error("[API /api/projects] ❌ Error:",a),a instanceof Error&&"Unauthorized"===a.message)return u.NextResponse.json({error:"Unauthorized"},{status:401});return u.NextResponse.json({error:a instanceof Error?a.message:"Failed to fetch projects"},{status:500})}}let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/projects/route",pathname:"/api/projects",filename:"route",bundlePath:"app/api/projects/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/projects/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:A,workUnitAsyncStorage:B,serverHooks:C}=z;function D(){return(0,g.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:B})}async function E(a,b,c){var d;let e="/api/projects/route";"/index"===e&&(e="/");let g=await z.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:y,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(y.dynamicRoutes[E]||y.routes[D]);if(F&&!x){let a=!!y.routes[D],b=y.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||z.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===z.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:y,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>z.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>z.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await z.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await z.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},95012:(a,b,c)=>{c.d(b,{v:()=>g});let d={debug:10,info:20,warn:30,error:40,silent:50},e="undefined"!=typeof process&&"warn"||"warn";function f(a){return d[e]<=d[a]}let g={debug:(...a)=>{f("debug")&&console.debug(...a)},info:(...a)=>{f("info")&&console.info(...a)},warn:(...a)=>{f("warn")&&console.warn(...a)},error:(...a)=>{f("error")&&console.error(...a)}}}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,3343],()=>b(b.s=38338));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/projects/route.js.nft.json b/.next/server/app/api/projects/route.js.nft.json index 9120c1c0ea8bcfecfbdf7e5f84ea39ef6cc4b8e2..e1b84c6470b8479494defb6f9a5605ecaeb392fa 100644 --- a/.next/server/app/api/projects/route.js.nft.json +++ b/.next/server/app/api/projects/route.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../data/osws.sqlite","../../../../../data/osws.sqlite-shm","../../../../../data/osws.sqlite-wal","../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../node_modules/better-sqlite3/package.json","../../../../../node_modules/bindings/bindings.js","../../../../../node_modules/bindings/package.json","../../../../../node_modules/file-uri-to-path/index.js","../../../../../node_modules/file-uri-to-path/package.json","../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../node_modules/next/dist/lib/constants.js","../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../node_modules/next/dist/lib/is-error.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../node_modules/next/package.json","../../../../../package.json","../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite","../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-shm","../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-wal","../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite","../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-shm","../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-wal","../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite","../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-shm","../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-wal","../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite","../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-shm","../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-wal","../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite","../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-shm","../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-wal","../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite","../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-shm","../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-wal","../../../../package.json","../../../chunks/1692.js","../../../chunks/4586.js","../../../chunks/6151.js","../../../chunks/726.js","../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../data/osws.sqlite","../../../../../data/osws.sqlite-shm","../../../../../data/osws.sqlite-wal","../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite","../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-shm","../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-wal","../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite","../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-shm","../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-wal","../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/analytics.sqlite","../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite","../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-shm","../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-wal","../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/analytics.sqlite","../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite","../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-shm","../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-wal","../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/analytics.sqlite","../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite","../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-shm","../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-wal","../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/analytics.sqlite","../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite","../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-shm","../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-wal","../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/analytics.sqlite","../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite","../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-shm","../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-wal","../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/analytics.sqlite","../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite","../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-shm","../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-wal","../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../node_modules/better-sqlite3/package.json","../../../../../node_modules/bindings/bindings.js","../../../../../node_modules/bindings/package.json","../../../../../node_modules/file-uri-to-path/index.js","../../../../../node_modules/file-uri-to-path/package.json","../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../node_modules/next/dist/lib/constants.js","../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../node_modules/next/dist/lib/is-error.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../node_modules/next/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1692.js","../../../chunks/3343.js","../../../chunks/4586.js","../../../chunks/6151.js","../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/projects/route_client-reference-manifest.js b/.next/server/app/api/projects/route_client-reference-manifest.js index b5b8329267b9b1c59b34a41c1a382d61d26e7da9..df03725dedcb1ab3614a3d0dc04a1b0b5e84d3d0 100644 --- a/.next/server/app/api/projects/route_client-reference-manifest.js +++ b/.next/server/app/api/projects/route_client-reference-manifest.js @@ -1 +1 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/projects/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/projects/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/projects/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/projects/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/shell/execute/route.js b/.next/server/app/api/shell/execute/route.js index 38574313a0ab12af977c9f55e5a1f3cc19947755..bad20a75a3a2923ea9dfbf8e1a496a9e1e269a93 100644 --- a/.next/server/app/api/shell/execute/route.js +++ b/.next/server/app/api/shell/execute/route.js @@ -1 +1 @@ -"use strict";(()=>{var a={};a.id=9552,a.ids=[9552],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31313:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>E,patchFetch:()=>D,routeModule:()=>z,serverHooks:()=>C,workAsyncStorage:()=>A,workUnitAsyncStorage:()=>B});var d={};c.r(d),c.d(d,{POST:()=>x});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(39588),w=c(97778);async function x(a){try{await (0,v.oC)();let{siteId:b,cmd:c}=await a.json();if(!b||"string"!=typeof b)return u.NextResponse.json({stdout:"",stderr:"siteId is required",exitCode:1},{status:400});if(!c||!Array.isArray(c)||0===c.length)return u.NextResponse.json({stdout:"",stderr:"cmd array is required",exitCode:1},{status:400});let d=c[0];if("sqlite3"===d)return y(b,c);return u.NextResponse.json({stdout:"",stderr:`${d}: not supported on server`,exitCode:1})}catch(a){if(a instanceof Error&&"Unauthorized"===a.message)return u.NextResponse.json({stdout:"",stderr:"Unauthorized",exitCode:1},{status:401});return console.error("[Shell Execute API] Error:",a),u.NextResponse.json({stdout:"",stderr:a instanceof Error?a.message:"Server error",exitCode:1},{status:500})}}async function y(a,b){try{let c=(0,w.q)();if(await c.init(),!await c.getSite?.(a))return u.NextResponse.json({stdout:"",stderr:"sqlite3: site not found",exitCode:1});let d=c.getSiteDatabaseForAnalytics(a);if(!d)return u.NextResponse.json({stdout:"",stderr:"sqlite3: site database not available",exitCode:1});let e=b.includes("-json"),f=b.slice(1).find(a=>!a.startsWith("-"));if(!f)return u.NextResponse.json({stdout:"",stderr:"sqlite3: no query provided",exitCode:1});let g=d.executeUserQuery(f);if(g.error)return u.NextResponse.json({stdout:"",stderr:`sqlite3: ${g.error}`,exitCode:1});let h="",i=f.trim().toUpperCase().startsWith("SELECT");if(e){let a=g.rows.map(a=>{let b={};return g.columns.forEach((c,d)=>{b[c]=a[d]}),b});h=JSON.stringify(a,null,2)}else h=g.rows.length>0?g.columns.length>0?g.columns.join("|")+"\n"+g.rows.map(a=>a.join("|")).join("\n"):g.rows.map(a=>a.join("|")).join("\n"):i?g.columns.length>0?g.columns.join("|")+"\n(0 rows)":"(0 rows)":g.rowsAffected>0?`${g.rowsAffected} row(s) affected`:"OK";return u.NextResponse.json({stdout:h,stderr:"",exitCode:0})}catch(a){return console.error("[Shell Execute API] sqlite3 error:",a),u.NextResponse.json({stdout:"",stderr:`sqlite3: ${a instanceof Error?a.message:"execution failed"}`,exitCode:1})}}let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/shell/execute/route",pathname:"/api/shell/execute",filename:"route",bundlePath:"app/api/shell/execute/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/shell/execute/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:A,workUnitAsyncStorage:B,serverHooks:C}=z;function D(){return(0,g.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:B})}async function E(a,b,c){var d;let e="/api/shell/execute/route";"/index"===e&&(e="/");let g=await z.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:y,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(y.dynamicRoutes[E]||y.routes[D]);if(F&&!x){let a=!!y.routes[D],b=y.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||z.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===z.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:y,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>z.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>z.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await z.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await z.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,726],()=>b(b.s=31313));module.exports=c})(); \ No newline at end of file +"use strict";(()=>{var a={};a.id=9552,a.ids=[9552],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31313:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>E,patchFetch:()=>D,routeModule:()=>z,serverHooks:()=>C,workAsyncStorage:()=>A,workUnitAsyncStorage:()=>B});var d={};c.r(d),c.d(d,{POST:()=>x});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(39588),w=c(32907);async function x(a){try{await (0,v.oC)();let{deploymentId:b,cmd:c}=await a.json();if(!b||"string"!=typeof b)return u.NextResponse.json({stdout:"",stderr:"deploymentId is required",exitCode:1},{status:400});if(!c||!Array.isArray(c)||0===c.length)return u.NextResponse.json({stdout:"",stderr:"cmd array is required",exitCode:1},{status:400});let d=c[0];if("sqlite3"===d)return y(b,c);return u.NextResponse.json({stdout:"",stderr:`${d}: not supported on server`,exitCode:1})}catch(a){if(a instanceof Error&&"Unauthorized"===a.message)return u.NextResponse.json({stdout:"",stderr:"Unauthorized",exitCode:1},{status:401});return console.error("[Shell Execute API] Error:",a),u.NextResponse.json({stdout:"",stderr:a instanceof Error?a.message:"Server error",exitCode:1},{status:500})}}async function y(a,b){try{let c=(0,w.q)();if(await c.init(),!await c.getDeployment?.(a))return u.NextResponse.json({stdout:"",stderr:"sqlite3: deployment not found",exitCode:1});let d=c.getDeploymentDatabaseForAnalytics(a);if(!d)return u.NextResponse.json({stdout:"",stderr:"sqlite3: deployment database not available",exitCode:1});let e=b.includes("-json"),f=b.slice(1).find(a=>!a.startsWith("-"));if(!f)return u.NextResponse.json({stdout:"",stderr:"sqlite3: no query provided",exitCode:1});let g=d.executeUserQuery(f);if(g.error)return u.NextResponse.json({stdout:"",stderr:`sqlite3: ${g.error}`,exitCode:1});let h="",i=f.trim().toUpperCase().startsWith("SELECT");if(e){let a=g.rows.map(a=>{let b={};return g.columns.forEach((c,d)=>{b[c]=a[d]}),b});h=JSON.stringify(a,null,2)}else h=g.rows.length>0?g.columns.length>0?g.columns.join("|")+"\n"+g.rows.map(a=>a.join("|")).join("\n"):g.rows.map(a=>a.join("|")).join("\n"):i?g.columns.length>0?g.columns.join("|")+"\n(0 rows)":"(0 rows)":g.rowsAffected>0?`${g.rowsAffected} row(s) affected`:"OK";return u.NextResponse.json({stdout:h,stderr:"",exitCode:0})}catch(a){return console.error("[Shell Execute API] sqlite3 error:",a),u.NextResponse.json({stdout:"",stderr:`sqlite3: ${a instanceof Error?a.message:"execution failed"}`,exitCode:1})}}let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/shell/execute/route",pathname:"/api/shell/execute",filename:"route",bundlePath:"app/api/shell/execute/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/shell/execute/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:A,workUnitAsyncStorage:B,serverHooks:C}=z;function D(){return(0,g.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:B})}async function E(a,b,c){var d;let e="/api/shell/execute/route";"/index"===e&&(e="/");let g=await z.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:y,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(y.dynamicRoutes[E]||y.routes[D]);if(F&&!x){let a=!!y.routes[D],b=y.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||z.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===z.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:y,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>z.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>z.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await z.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await z.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,3343],()=>b(b.s=31313));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/shell/execute/route.js.nft.json b/.next/server/app/api/shell/execute/route.js.nft.json index d7430d51ec26b60a3b1db7e68bd4a53160f2d344..54f4d5d4911d0f745374413a7934569ddbf7180d 100644 --- a/.next/server/app/api/shell/execute/route.js.nft.json +++ b/.next/server/app/api/shell/execute/route.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../data/osws.sqlite","../../../../../../data/osws.sqlite-shm","../../../../../../data/osws.sqlite-wal","../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../node_modules/better-sqlite3/package.json","../../../../../../node_modules/bindings/bindings.js","../../../../../../node_modules/bindings/package.json","../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../node_modules/next/package.json","../../../../../../package.json","../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite","../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-shm","../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-wal","../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite","../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-shm","../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-wal","../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite","../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-shm","../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-wal","../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite","../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-shm","../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-wal","../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite","../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-shm","../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-wal","../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite","../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-shm","../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-wal","../../../../../package.json","../../../../chunks/1692.js","../../../../chunks/4586.js","../../../../chunks/6151.js","../../../../chunks/726.js","../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../data/osws.sqlite","../../../../../../data/osws.sqlite-shm","../../../../../../data/osws.sqlite-wal","../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite","../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-shm","../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-wal","../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite","../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-shm","../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-wal","../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/analytics.sqlite","../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite","../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-shm","../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-wal","../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/analytics.sqlite","../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite","../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-shm","../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-wal","../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/analytics.sqlite","../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite","../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-shm","../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-wal","../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/analytics.sqlite","../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite","../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-shm","../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-wal","../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/analytics.sqlite","../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite","../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-shm","../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-wal","../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/analytics.sqlite","../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite","../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-shm","../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-wal","../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../node_modules/better-sqlite3/package.json","../../../../../../node_modules/bindings/bindings.js","../../../../../../node_modules/bindings/package.json","../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../node_modules/next/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1692.js","../../../../chunks/3343.js","../../../../chunks/4586.js","../../../../chunks/6151.js","../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/shell/execute/route_client-reference-manifest.js b/.next/server/app/api/shell/execute/route_client-reference-manifest.js index e6cff32abb238efc86567fb0628d445e293b97c2..488b9a6c1485f11a8d5bdc2ae3b8a48d4d7fdf49 100644 --- a/.next/server/app/api/shell/execute/route_client-reference-manifest.js +++ b/.next/server/app/api/shell/execute/route_client-reference-manifest.js @@ -1 +1 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/shell/execute/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/shell/execute/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/shell/execute/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/shell/execute/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/sites/[id]/functions/[...path]/route.js b/.next/server/app/api/sites/[id]/functions/[...path]/route.js deleted file mode 100644 index 18c67a86e946345d58c1c721d5904f1bf6c35a40..0000000000000000000000000000000000000000 --- a/.next/server/app/api/sites/[id]/functions/[...path]/route.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(()=>{var a={};a.id=4548,a.ids=[4548],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},5205:a=>{a.exports=import("quickjs-emscripten-core")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},17915:a=>{a.exports=import("@jitl/quickjs-wasmfile-release-sync")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},34348:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{DELETE:()=>n,GET:()=>k,PATCH:()=>o,POST:()=>l,PUT:()=>m});var e=c(10641),f=c(97778),g=c(19958),h=c(95012),i=a([g]);async function j(a,{params:b}){let c=Date.now();try{let d,{id:i,path:j}=await b,k=j[0],l=j.slice(1).join("/");if(!k)return e.NextResponse.json({error:"Function name is required"},{status:400});let m=(0,f.q)();await m.init();let n=await m.getSite?.(i)??null;if(!n&&m.getSiteBySlug&&(n=await m.getSiteBySlug(i)),!n)return e.NextResponse.json({error:"Site not found"},{status:404});let o=n.id;if(!n.databaseEnabled)return e.NextResponse.json({error:"Edge functions not enabled for this site"},{status:404});let p=m.getSiteDatabaseForAnalytics(o);if(!p)return e.NextResponse.json({error:"Site database not available"},{status:500});let q=p.getFunctionByName(k);if(!q)return e.NextResponse.json({error:`Function "${k}" not found`},{status:404});if(!q.enabled)return e.NextResponse.json({error:`Function "${k}" is disabled`},{status:503});if("ANY"!==q.method&&q.method!==a.method)return e.NextResponse.json({error:`Method ${a.method} not allowed for this function`},{status:405});let r=null;if("GET"!==a.method&&"HEAD"!==a.method){let b=a.headers.get("content-type")||"";if(b.includes("application/json"))try{r=await a.json()}catch{r=null}else b.includes("text/")&&(r=await a.text())}let s=new URL(a.url),t={};s.searchParams.forEach((a,b)=>{t[b]=a});let u={},v=["accept","accept-language","content-type","content-length","origin","referer","user-agent","x-requested-with","cookie"];a.headers.forEach((a,b)=>{v.includes(b.toLowerCase())&&(u[b.toLowerCase()]=a)});let w={method:a.method,headers:u,body:r,params:{path:l},query:t,path:`/${k}${l?"/"+l:""}`},x=await (0,g.cv)(q,w,p);try{p.logFunctionExecution(q.id,{method:a.method,path:w.path,statusCode:x.response.status,durationMs:x.durationMs,error:x.error})}catch(a){h.v.error("[Edge Functions] Failed to log execution:",a)}let y=new Headers;return Object.entries(x.response.headers).forEach(([a,b])=>{y.set(a,b)}),y.set("X-Execution-Time",`${Date.now()-c}ms`),"object"==typeof x.response.body?(d=JSON.stringify(x.response.body),y.has("Content-Type")||y.set("Content-Type","application/json")):d=x.response.body,new e.NextResponse(d,{status:x.response.status,headers:y})}catch(a){return h.v.error("[Edge Functions] Unexpected error:",a),e.NextResponse.json({error:"Internal server error"},{status:500})}}g=(i.then?(await i)():i)[0];let k=j,l=j,m=j,n=j,o=j;d()}catch(a){d(a)}})},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},74702:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{handler:()=>x,patchFetch:()=>w,routeModule:()=>y,serverHooks:()=>B,workAsyncStorage:()=>z,workUnitAsyncStorage:()=>A});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(34348),v=a([u]);u=(v.then?(await v)():v)[0];let y=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/sites/[id]/functions/[...path]/route",pathname:"/api/sites/[id]/functions/[...path]",filename:"route",bundlePath:"app/api/sites/[id]/functions/[...path]/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/sites/[id]/functions/[...path]/route.ts",nextConfigOutput:"standalone",userland:u}),{workAsyncStorage:z,workUnitAsyncStorage:A,serverHooks:B}=y;function w(){return(0,g.patchFetch)({workAsyncStorage:z,workUnitAsyncStorage:A})}async function x(a,b,c){var d;let e="/api/sites/[id]/functions/[...path]/route";"/index"===e&&(e="/");let g=await y.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:z,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(z.dynamicRoutes[E]||z.routes[D]);if(F&&!x){let a=!!z.routes[D],b=z.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||y.isDev||x||(G=D,G="/index"===G?"/":G);let H=!0===y.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:z,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>y.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>y.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await y.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await y.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:z,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await y.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},95012:(a,b,c)=>{c.d(b,{v:()=>g});let d={debug:10,info:20,warn:30,error:40,silent:50},e="undefined"!=typeof process&&"warn"||"warn";function f(a){return d[e]<=d[a]}let g={debug:(...a)=>{f("debug")&&console.debug(...a)},info:(...a)=>{f("info")&&console.info(...a)},warn:(...a)=>{f("warn")&&console.warn(...a)},error:(...a)=>{f("error")&&console.error(...a)}}}};var b=require("../../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,726,9958],()=>b(b.s=74702));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/sites/[id]/functions/[...path]/route.js.nft.json b/.next/server/app/api/sites/[id]/functions/[...path]/route.js.nft.json deleted file mode 100644 index fbc4f8f72d045cd9061e67e812090c9cb0eeee50..0000000000000000000000000000000000000000 --- a/.next/server/app/api/sites/[id]/functions/[...path]/route.js.nft.json +++ /dev/null @@ -1 +0,0 @@ -{"version":1,"files":["../../../../../../../../data/osws.sqlite","../../../../../../../../data/osws.sqlite-shm","../../../../../../../../data/osws.sqlite-wal","../../../../../../../../node_modules/@jitl/quickjs-ffi-types/dist/index.js","../../../../../../../../node_modules/@jitl/quickjs-ffi-types/dist/index.mjs","../../../../../../../../node_modules/@jitl/quickjs-ffi-types/package.json","../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/emscripten-module.mjs","../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/emscripten-module.wasm","../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/ffi.mjs","../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/index.js","../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/dist/index.mjs","../../../../../../../../node_modules/@jitl/quickjs-wasmfile-release-sync/package.json","../../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../../node_modules/bindings/bindings.js","../../../../../../../../node_modules/bindings/package.json","../../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../../node_modules/next/package.json","../../../../../../../../node_modules/quickjs-emscripten-core/dist/chunk-JTKJZQYV.mjs","../../../../../../../../node_modules/quickjs-emscripten-core/dist/chunk-PEXOKBOE.mjs","../../../../../../../../node_modules/quickjs-emscripten-core/dist/index.js","../../../../../../../../node_modules/quickjs-emscripten-core/dist/index.mjs","../../../../../../../../node_modules/quickjs-emscripten-core/dist/module-6F3E5H7Y.mjs","../../../../../../../../node_modules/quickjs-emscripten-core/dist/module-asyncify-R6PWJ6ZV.mjs","../../../../../../../../node_modules/quickjs-emscripten-core/package.json","../../../../../../../../package.json","../../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite","../../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-shm","../../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-wal","../../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite","../../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-shm","../../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-wal","../../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite","../../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-shm","../../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-wal","../../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite","../../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-shm","../../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-wal","../../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite","../../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-shm","../../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-wal","../../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite","../../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-shm","../../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-wal","../../../../../../../package.json","../../../../../../chunks/1692.js","../../../../../../chunks/4586.js","../../../../../../chunks/726.js","../../../../../../chunks/9958.js","../../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/sites/[id]/publish/route.js b/.next/server/app/api/sites/[id]/publish/route.js deleted file mode 100644 index 4406a6ab08ba1c0ff6d5e95f3614ee0a8a625953..0000000000000000000000000000000000000000 --- a/.next/server/app/api/sites/[id]/publish/route.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(()=>{var a={};a.id=6024,a.ids=[6024],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},26784:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>D,patchFetch:()=>C,routeModule:()=>y,serverHooks:()=>B,workAsyncStorage:()=>z,workUnitAsyncStorage:()=>A});var d={};c.r(d),c.d(d,{POST:()=>x});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(82797),w=c(97778);async function x(a,{params:b}){try{let{id:a}=await b,c=await (0,v.YE)(a);if(!c.success)return u.NextResponse.json({error:c.error||"Failed to build site"},{status:500});let d=(0,w.q)();await d.init();let e=await d.getSite?.(a);return e&&d.updateSite&&(e.lastPublishedVersion=e.settingsVersion,e.publishedAt=new Date,e.updatedAt=new Date,e.databaseEnabled||(e.databaseEnabled=!0,await d.enableSiteDatabase(a)),await d.updateSite(e)),u.NextResponse.json({success:!0,siteId:c.siteId,projectId:c.projectId,filesWritten:c.filesWritten,outputPath:c.outputPath})}catch(a){return console.error("[Sites API] Error publishing site:",a),u.NextResponse.json({error:"Failed to publish site"},{status:500})}}let y=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/sites/[id]/publish/route",pathname:"/api/sites/[id]/publish",filename:"route",bundlePath:"app/api/sites/[id]/publish/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/sites/[id]/publish/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:z,workUnitAsyncStorage:A,serverHooks:B}=y;function C(){return(0,g.patchFetch)({workAsyncStorage:z,workUnitAsyncStorage:A})}async function D(a,b,c){var d;let e="/api/sites/[id]/publish/route";"/index"===e&&(e="/");let g=await y.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:z,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(z.dynamicRoutes[E]||z.routes[D]);if(F&&!x){let a=!!z.routes[D],b=z.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||y.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===y.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:z,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>y.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>y.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await y.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await y.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:z,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await y.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{a.exports=require("path")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,9298,726,2797],()=>b(b.s=26784));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/sites/[id]/publish/route.js.nft.json b/.next/server/app/api/sites/[id]/publish/route.js.nft.json deleted file mode 100644 index 6269da7c854866215aeea60386b2a42cc575e63f..0000000000000000000000000000000000000000 --- a/.next/server/app/api/sites/[id]/publish/route.js.nft.json +++ /dev/null @@ -1 +0,0 @@ -{"version":1,"files":["../../../../../../../data/osws.sqlite","../../../../../../../data/osws.sqlite-shm","../../../../../../../data/osws.sqlite-wal","../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../node_modules/bindings/bindings.js","../../../../../../../node_modules/bindings/package.json","../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../node_modules/next/package.json","../../../../../../../package.json","../../../../../../../public/sites/039b8554-0a87-42f7-a969-570c3fa99cb5/aukioloajat.html","../../../../../../../public/sites/039b8554-0a87-42f7-a969-570c3fa99cb5/hinnat.html","../../../../../../../public/sites/039b8554-0a87-42f7-a969-570c3fa99cb5/index.html","../../../../../../../public/sites/039b8554-0a87-42f7-a969-570c3fa99cb5/palvelut.html","../../../../../../../public/sites/039b8554-0a87-42f7-a969-570c3fa99cb5/robots.txt","../../../../../../../public/sites/039b8554-0a87-42f7-a969-570c3fa99cb5/scripts/main.js","../../../../../../../public/sites/039b8554-0a87-42f7-a969-570c3fa99cb5/sitemap.xml","../../../../../../../public/sites/039b8554-0a87-42f7-a969-570c3fa99cb5/styles/style.css","../../../../../../../public/sites/039b8554-0a87-42f7-a969-570c3fa99cb5/yhteystiedot.html","../../../../../../../public/sites/08425b89-59bf-49b1-965c-67b67c46e5c4/blog/getting-started.html","../../../../../../../public/sites/08425b89-59bf-49b1-965c-67b67c46e5c4/blog/hello-world.html","../../../../../../../public/sites/08425b89-59bf-49b1-965c-67b67c46e5c4/index.html","../../../../../../../public/sites/08425b89-59bf-49b1-965c-67b67c46e5c4/robots.txt","../../../../../../../public/sites/08425b89-59bf-49b1-965c-67b67c46e5c4/scripts/main.js","../../../../../../../public/sites/08425b89-59bf-49b1-965c-67b67c46e5c4/sitemap.xml","../../../../../../../public/sites/08425b89-59bf-49b1-965c-67b67c46e5c4/styles/style.css","../../../../../../../public/sites/18efcdfd-9309-45d1-bf13-82a968da7216/about.html","../../../../../../../public/sites/18efcdfd-9309-45d1-bf13-82a968da7216/index.html","../../../../../../../public/sites/18efcdfd-9309-45d1-bf13-82a968da7216/plan.md","../../../../../../../public/sites/18efcdfd-9309-45d1-bf13-82a968da7216/players.html","../../../../../../../public/sites/18efcdfd-9309-45d1-bf13-82a968da7216/robots.txt","../../../../../../../public/sites/18efcdfd-9309-45d1-bf13-82a968da7216/schedule.html","../../../../../../../public/sites/18efcdfd-9309-45d1-bf13-82a968da7216/scripts/main.js","../../../../../../../public/sites/18efcdfd-9309-45d1-bf13-82a968da7216/sitemap.xml","../../../../../../../public/sites/18efcdfd-9309-45d1-bf13-82a968da7216/styles/style.css","../../../../../../../public/sites/18efcdfd-9309-45d1-bf13-82a968da7216/testing.txt","../../../../../../../public/sites/20af6c75-4c1b-4c53-94bc-fa2ff7e445fa/benefits.html","../../../../../../../public/sites/20af6c75-4c1b-4c53-94bc-fa2ff7e445fa/equipment.html","../../../../../../../public/sites/20af6c75-4c1b-4c53-94bc-fa2ff7e445fa/getting-started.html","../../../../../../../public/sites/20af6c75-4c1b-4c53-94bc-fa2ff7e445fa/index.html","../../../../../../../public/sites/20af6c75-4c1b-4c53-94bc-fa2ff7e445fa/scripts/main.js","../../../../../../../public/sites/20af6c75-4c1b-4c53-94bc-fa2ff7e445fa/styles/style.css","../../../../../../../public/sites/20af6c75-4c1b-4c53-94bc-fa2ff7e445fa/training.html","../../../../../../../public/sites/22950e26-4edf-45c9-8719-b212f697a8b1/index.html","../../../../../../../public/sites/22950e26-4edf-45c9-8719-b212f697a8b1/robots.txt","../../../../../../../public/sites/22950e26-4edf-45c9-8719-b212f697a8b1/scripts/main.js","../../../../../../../public/sites/22950e26-4edf-45c9-8719-b212f697a8b1/sitemap.xml","../../../../../../../public/sites/22950e26-4edf-45c9-8719-b212f697a8b1/styles/style.css","../../../../../../../public/sites/308c7d9c-09fe-4581-a361-4291db148cf3/index.html","../../../../../../../public/sites/308c7d9c-09fe-4581-a361-4291db148cf3/robots.txt","../../../../../../../public/sites/308c7d9c-09fe-4581-a361-4291db148cf3/scripts/main.js","../../../../../../../public/sites/308c7d9c-09fe-4581-a361-4291db148cf3/sitemap.xml","../../../../../../../public/sites/308c7d9c-09fe-4581-a361-4291db148cf3/styles/style.css","../../../../../../../public/sites/505b4e67-9ba5-4396-9a76-9368a6848874/contact.html","../../../../../../../public/sites/505b4e67-9ba5-4396-9a76-9368a6848874/index.html","../../../../../../../public/sites/505b4e67-9ba5-4396-9a76-9368a6848874/scripts/main.js","../../../../../../../public/sites/505b4e67-9ba5-4396-9a76-9368a6848874/services.html","../../../../../../../public/sites/505b4e67-9ba5-4396-9a76-9368a6848874/styles/style.css","../../../../../../../public/sites/6333fd6d-b2bf-4eb2-a48e-762b7a7be8b7/about.html","../../../../../../../public/sites/6333fd6d-b2bf-4eb2-a48e-762b7a7be8b7/index.html","../../../../../../../public/sites/6333fd6d-b2bf-4eb2-a48e-762b7a7be8b7/plan.md","../../../../../../../public/sites/6333fd6d-b2bf-4eb2-a48e-762b7a7be8b7/players.html","../../../../../../../public/sites/6333fd6d-b2bf-4eb2-a48e-762b7a7be8b7/robots.txt","../../../../../../../public/sites/6333fd6d-b2bf-4eb2-a48e-762b7a7be8b7/schedule.html","../../../../../../../public/sites/6333fd6d-b2bf-4eb2-a48e-762b7a7be8b7/scripts/main.js","../../../../../../../public/sites/6333fd6d-b2bf-4eb2-a48e-762b7a7be8b7/sitemap.xml","../../../../../../../public/sites/6333fd6d-b2bf-4eb2-a48e-762b7a7be8b7/styles/style.css","../../../../../../../public/sites/6333fd6d-b2bf-4eb2-a48e-762b7a7be8b7/testing.txt","../../../../../../../public/sites/69d3cb0a-3cd3-4d41-981c-3d4ba5c978cc/contact.html","../../../../../../../public/sites/69d3cb0a-3cd3-4d41-981c-3d4ba5c978cc/data/services.json","../../../../../../../public/sites/69d3cb0a-3cd3-4d41-981c-3d4ba5c978cc/data/testimonials.json","../../../../../../../public/sites/69d3cb0a-3cd3-4d41-981c-3d4ba5c978cc/index.html","../../../../../../../public/sites/69d3cb0a-3cd3-4d41-981c-3d4ba5c978cc/public/css/styles.css","../../../../../../../public/sites/69d3cb0a-3cd3-4d41-981c-3d4ba5c978cc/public/js/main.js","../../../../../../../public/sites/69d3cb0a-3cd3-4d41-981c-3d4ba5c978cc/robots.txt","../../../../../../../public/sites/69d3cb0a-3cd3-4d41-981c-3d4ba5c978cc/services.html","../../../../../../../public/sites/69d3cb0a-3cd3-4d41-981c-3d4ba5c978cc/sitemap.xml","../../../../../../../public/sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/PLAN.md","../../../../../../../public/sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/about.html","../../../../../../../public/sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/contact.html","../../../../../../../public/sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/index.html","../../../../../../../public/sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/practice-areas.html","../../../../../../../public/sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/pricing.html","../../../../../../../public/sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/robots.txt","../../../../../../../public/sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/scripts/main.js","../../../../../../../public/sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/sitemap.xml","../../../../../../../public/sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/styles.css","../../../../../../../public/sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/styles/style.css","../../../../../../../public/sites/8a671c27-1498-4164-9cdf-5429469f45f6/PLAN.md","../../../../../../../public/sites/8a671c27-1498-4164-9cdf-5429469f45f6/about.html","../../../../../../../public/sites/8a671c27-1498-4164-9cdf-5429469f45f6/contact.html","../../../../../../../public/sites/8a671c27-1498-4164-9cdf-5429469f45f6/index.html","../../../../../../../public/sites/8a671c27-1498-4164-9cdf-5429469f45f6/robots.txt","../../../../../../../public/sites/8a671c27-1498-4164-9cdf-5429469f45f6/scripts/main.js","../../../../../../../public/sites/8a671c27-1498-4164-9cdf-5429469f45f6/sitemap.xml","../../../../../../../public/sites/8a671c27-1498-4164-9cdf-5429469f45f6/styles/style.css","../../../../../../../public/sites/9e5a46cf-1efd-4377-9da5-1e2eb63b8ca4/benefits.html","../../../../../../../public/sites/9e5a46cf-1efd-4377-9da5-1e2eb63b8ca4/equipment.html","../../../../../../../public/sites/9e5a46cf-1efd-4377-9da5-1e2eb63b8ca4/getting-started.html","../../../../../../../public/sites/9e5a46cf-1efd-4377-9da5-1e2eb63b8ca4/index.html","../../../../../../../public/sites/9e5a46cf-1efd-4377-9da5-1e2eb63b8ca4/robots.txt","../../../../../../../public/sites/9e5a46cf-1efd-4377-9da5-1e2eb63b8ca4/scripts/main.js","../../../../../../../public/sites/9e5a46cf-1efd-4377-9da5-1e2eb63b8ca4/sitemap.xml","../../../../../../../public/sites/9e5a46cf-1efd-4377-9da5-1e2eb63b8ca4/styles/style.css","../../../../../../../public/sites/9e5a46cf-1efd-4377-9da5-1e2eb63b8ca4/training.html","../../../../../../../public/sites/a57c81e5-0175-49b9-b333-d0a4d1094271/index.html","../../../../../../../public/sites/a57c81e5-0175-49b9-b333-d0a4d1094271/plan.md","../../../../../../../public/sites/a57c81e5-0175-49b9-b333-d0a4d1094271/robots.txt","../../../../../../../public/sites/a57c81e5-0175-49b9-b333-d0a4d1094271/scripts/main.js","../../../../../../../public/sites/a57c81e5-0175-49b9-b333-d0a4d1094271/sitemap.xml","../../../../../../../public/sites/a57c81e5-0175-49b9-b333-d0a4d1094271/styles/style.css","../../../../../../../public/sites/af3ba693-4c5a-4564-9c93-0c9b9f3d74f1/index.html","../../../../../../../public/sites/af3ba693-4c5a-4564-9c93-0c9b9f3d74f1/plan.md","../../../../../../../public/sites/af3ba693-4c5a-4564-9c93-0c9b9f3d74f1/robots.txt","../../../../../../../public/sites/af3ba693-4c5a-4564-9c93-0c9b9f3d74f1/scripts/animations.js","../../../../../../../public/sites/af3ba693-4c5a-4564-9c93-0c9b9f3d74f1/scripts/main.js","../../../../../../../public/sites/af3ba693-4c5a-4564-9c93-0c9b9f3d74f1/sitemap.xml","../../../../../../../public/sites/af3ba693-4c5a-4564-9c93-0c9b9f3d74f1/styles/style.css","../../../../../../../public/sites/be28436b-5a58-4c1b-a1da-ec28036b41e3/index.html","../../../../../../../public/sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/PLAN.md","../../../../../../../public/sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/about.html","../../../../../../../public/sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/contact.html","../../../../../../../public/sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/index.html","../../../../../../../public/sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/menu.html","../../../../../../../public/sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/robots.txt","../../../../../../../public/sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/scripts/main.js","../../../../../../../public/sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/sitemap.xml","../../../../../../../public/sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/styles.css","../../../../../../../public/sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/styles/style.css","../../../../../../../public/sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/index.html","../../../../../../../public/sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/robots.txt","../../../../../../../public/sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/scripts/main.js","../../../../../../../public/sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/sitemap.xml","../../../../../../../public/sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/styles/style.css","../../../../../../../public/sites/ea724ee7-fc57-4bde-a505-e083d72d52b2/index.html","../../../../../../../public/sites/ea724ee7-fc57-4bde-a505-e083d72d52b2/robots.txt","../../../../../../../public/sites/ea724ee7-fc57-4bde-a505-e083d72d52b2/scripts/main.js","../../../../../../../public/sites/ea724ee7-fc57-4bde-a505-e083d72d52b2/sitemap.xml","../../../../../../../public/sites/ea724ee7-fc57-4bde-a505-e083d72d52b2/styles/style.css","../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite","../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-shm","../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-wal","../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite","../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-shm","../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-wal","../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite","../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-shm","../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-wal","../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite","../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-shm","../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-wal","../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite","../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-shm","../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-wal","../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite","../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-shm","../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-wal","../../../../../../package.json","../../../../../chunks/1692.js","../../../../../chunks/2797.js","../../../../../chunks/4586.js","../../../../../chunks/726.js","../../../../../chunks/9298.js","../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/sites/[id]/publish/route_client-reference-manifest.js b/.next/server/app/api/sites/[id]/publish/route_client-reference-manifest.js deleted file mode 100644 index 7674892498e8ab7be5e4c068e18de846f54eaf19..0000000000000000000000000000000000000000 --- a/.next/server/app/api/sites/[id]/publish/route_client-reference-manifest.js +++ /dev/null @@ -1 +0,0 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/sites/[id]/publish/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/sites/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/sites/[id]/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/sites/[id]/publish/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/sites/[id]/route.js b/.next/server/app/api/sites/[id]/route.js deleted file mode 100644 index ede14d0d666cd8c7112d7901cbdc3feaa84e42c1..0000000000000000000000000000000000000000 --- a/.next/server/app/api/sites/[id]/route.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(()=>{var a={};a.id=2684,a.ids=[2684],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},26993:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>F,patchFetch:()=>E,routeModule:()=>A,serverHooks:()=>D,workAsyncStorage:()=>B,workUnitAsyncStorage:()=>C});var d={};c.r(d),c.d(d,{DELETE:()=>z,GET:()=>x,PUT:()=>y});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(97778),w=c(82797);async function x(a,{params:b}){try{let{id:a}=await b,c=await (0,v.B)();await c.init();let d=await c.getSite?.(a);if(await c.close?.(),!d)return u.NextResponse.json({error:"Site not found"},{status:404});return u.NextResponse.json(d)}catch(a){return console.error("[Sites API] Error getting site:",a),u.NextResponse.json({error:"Failed to get site"},{status:500})}}async function y(a,{params:b}){try{let{id:c}=await b,d=await a.json(),e=await (0,v.B)();await e.init();let f=await e.getSite?.(c);if(!f)return await e.close?.(),u.NextResponse.json({error:"Site not found"},{status:404});let g={...f,...d,id:c,updatedAt:new Date};return e.updateSite&&await e.updateSite(g),await e.close?.(),u.NextResponse.json(g)}catch(a){return console.error("[Sites API] Error updating site:",a),u.NextResponse.json({error:"Failed to update site"},{status:500})}}async function z(a,{params:b}){try{let{id:a}=await b,c=await (0,v.B)();if(await c.init(),!await c.getSite?.(a))return await c.close?.(),u.NextResponse.json({error:"Site not found"},{status:404});return c.deleteSite&&await c.deleteSite(a),await c.close?.(),await (0,w.lN)(a),u.NextResponse.json({success:!0})}catch(a){return console.error("[Sites API] Error deleting site:",a),u.NextResponse.json({error:"Failed to delete site"},{status:500})}}let A=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/sites/[id]/route",pathname:"/api/sites/[id]",filename:"route",bundlePath:"app/api/sites/[id]/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/sites/[id]/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:B,workUnitAsyncStorage:C,serverHooks:D}=A;function E(){return(0,g.patchFetch)({workAsyncStorage:B,workUnitAsyncStorage:C})}async function F(a,b,c){var d;let e="/api/sites/[id]/route";"/index"===e&&(e="/");let g=await A.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:y,routerServerContext:z,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(y.dynamicRoutes[E]||y.routes[D]);if(F&&!x){let a=!!y.routes[D],b=y.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||A.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===A.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:y,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>A.onRequestError(a,b,d,z)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>A.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await A.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},z),b}},l=await A.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await A.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{a.exports=require("path")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,9298,726,2797],()=>b(b.s=26993));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/sites/[id]/route.js.nft.json b/.next/server/app/api/sites/[id]/route.js.nft.json deleted file mode 100644 index e364534891ff69dbf03016dc6de41b2cfe556b6e..0000000000000000000000000000000000000000 --- a/.next/server/app/api/sites/[id]/route.js.nft.json +++ /dev/null @@ -1 +0,0 @@ -{"version":1,"files":["../../../../../../data/osws.sqlite","../../../../../../data/osws.sqlite-shm","../../../../../../data/osws.sqlite-wal","../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../node_modules/better-sqlite3/package.json","../../../../../../node_modules/bindings/bindings.js","../../../../../../node_modules/bindings/package.json","../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../node_modules/next/package.json","../../../../../../package.json","../../../../../../public/sites/039b8554-0a87-42f7-a969-570c3fa99cb5/aukioloajat.html","../../../../../../public/sites/039b8554-0a87-42f7-a969-570c3fa99cb5/hinnat.html","../../../../../../public/sites/039b8554-0a87-42f7-a969-570c3fa99cb5/index.html","../../../../../../public/sites/039b8554-0a87-42f7-a969-570c3fa99cb5/palvelut.html","../../../../../../public/sites/039b8554-0a87-42f7-a969-570c3fa99cb5/robots.txt","../../../../../../public/sites/039b8554-0a87-42f7-a969-570c3fa99cb5/scripts/main.js","../../../../../../public/sites/039b8554-0a87-42f7-a969-570c3fa99cb5/sitemap.xml","../../../../../../public/sites/039b8554-0a87-42f7-a969-570c3fa99cb5/styles/style.css","../../../../../../public/sites/039b8554-0a87-42f7-a969-570c3fa99cb5/yhteystiedot.html","../../../../../../public/sites/08425b89-59bf-49b1-965c-67b67c46e5c4/blog/getting-started.html","../../../../../../public/sites/08425b89-59bf-49b1-965c-67b67c46e5c4/blog/hello-world.html","../../../../../../public/sites/08425b89-59bf-49b1-965c-67b67c46e5c4/index.html","../../../../../../public/sites/08425b89-59bf-49b1-965c-67b67c46e5c4/robots.txt","../../../../../../public/sites/08425b89-59bf-49b1-965c-67b67c46e5c4/scripts/main.js","../../../../../../public/sites/08425b89-59bf-49b1-965c-67b67c46e5c4/sitemap.xml","../../../../../../public/sites/08425b89-59bf-49b1-965c-67b67c46e5c4/styles/style.css","../../../../../../public/sites/18efcdfd-9309-45d1-bf13-82a968da7216/about.html","../../../../../../public/sites/18efcdfd-9309-45d1-bf13-82a968da7216/index.html","../../../../../../public/sites/18efcdfd-9309-45d1-bf13-82a968da7216/plan.md","../../../../../../public/sites/18efcdfd-9309-45d1-bf13-82a968da7216/players.html","../../../../../../public/sites/18efcdfd-9309-45d1-bf13-82a968da7216/robots.txt","../../../../../../public/sites/18efcdfd-9309-45d1-bf13-82a968da7216/schedule.html","../../../../../../public/sites/18efcdfd-9309-45d1-bf13-82a968da7216/scripts/main.js","../../../../../../public/sites/18efcdfd-9309-45d1-bf13-82a968da7216/sitemap.xml","../../../../../../public/sites/18efcdfd-9309-45d1-bf13-82a968da7216/styles/style.css","../../../../../../public/sites/18efcdfd-9309-45d1-bf13-82a968da7216/testing.txt","../../../../../../public/sites/20af6c75-4c1b-4c53-94bc-fa2ff7e445fa/benefits.html","../../../../../../public/sites/20af6c75-4c1b-4c53-94bc-fa2ff7e445fa/equipment.html","../../../../../../public/sites/20af6c75-4c1b-4c53-94bc-fa2ff7e445fa/getting-started.html","../../../../../../public/sites/20af6c75-4c1b-4c53-94bc-fa2ff7e445fa/index.html","../../../../../../public/sites/20af6c75-4c1b-4c53-94bc-fa2ff7e445fa/scripts/main.js","../../../../../../public/sites/20af6c75-4c1b-4c53-94bc-fa2ff7e445fa/styles/style.css","../../../../../../public/sites/20af6c75-4c1b-4c53-94bc-fa2ff7e445fa/training.html","../../../../../../public/sites/22950e26-4edf-45c9-8719-b212f697a8b1/index.html","../../../../../../public/sites/22950e26-4edf-45c9-8719-b212f697a8b1/robots.txt","../../../../../../public/sites/22950e26-4edf-45c9-8719-b212f697a8b1/scripts/main.js","../../../../../../public/sites/22950e26-4edf-45c9-8719-b212f697a8b1/sitemap.xml","../../../../../../public/sites/22950e26-4edf-45c9-8719-b212f697a8b1/styles/style.css","../../../../../../public/sites/308c7d9c-09fe-4581-a361-4291db148cf3/index.html","../../../../../../public/sites/308c7d9c-09fe-4581-a361-4291db148cf3/robots.txt","../../../../../../public/sites/308c7d9c-09fe-4581-a361-4291db148cf3/scripts/main.js","../../../../../../public/sites/308c7d9c-09fe-4581-a361-4291db148cf3/sitemap.xml","../../../../../../public/sites/308c7d9c-09fe-4581-a361-4291db148cf3/styles/style.css","../../../../../../public/sites/505b4e67-9ba5-4396-9a76-9368a6848874/contact.html","../../../../../../public/sites/505b4e67-9ba5-4396-9a76-9368a6848874/index.html","../../../../../../public/sites/505b4e67-9ba5-4396-9a76-9368a6848874/scripts/main.js","../../../../../../public/sites/505b4e67-9ba5-4396-9a76-9368a6848874/services.html","../../../../../../public/sites/505b4e67-9ba5-4396-9a76-9368a6848874/styles/style.css","../../../../../../public/sites/6333fd6d-b2bf-4eb2-a48e-762b7a7be8b7/about.html","../../../../../../public/sites/6333fd6d-b2bf-4eb2-a48e-762b7a7be8b7/index.html","../../../../../../public/sites/6333fd6d-b2bf-4eb2-a48e-762b7a7be8b7/plan.md","../../../../../../public/sites/6333fd6d-b2bf-4eb2-a48e-762b7a7be8b7/players.html","../../../../../../public/sites/6333fd6d-b2bf-4eb2-a48e-762b7a7be8b7/robots.txt","../../../../../../public/sites/6333fd6d-b2bf-4eb2-a48e-762b7a7be8b7/schedule.html","../../../../../../public/sites/6333fd6d-b2bf-4eb2-a48e-762b7a7be8b7/scripts/main.js","../../../../../../public/sites/6333fd6d-b2bf-4eb2-a48e-762b7a7be8b7/sitemap.xml","../../../../../../public/sites/6333fd6d-b2bf-4eb2-a48e-762b7a7be8b7/styles/style.css","../../../../../../public/sites/6333fd6d-b2bf-4eb2-a48e-762b7a7be8b7/testing.txt","../../../../../../public/sites/69d3cb0a-3cd3-4d41-981c-3d4ba5c978cc/contact.html","../../../../../../public/sites/69d3cb0a-3cd3-4d41-981c-3d4ba5c978cc/data/services.json","../../../../../../public/sites/69d3cb0a-3cd3-4d41-981c-3d4ba5c978cc/data/testimonials.json","../../../../../../public/sites/69d3cb0a-3cd3-4d41-981c-3d4ba5c978cc/index.html","../../../../../../public/sites/69d3cb0a-3cd3-4d41-981c-3d4ba5c978cc/public/css/styles.css","../../../../../../public/sites/69d3cb0a-3cd3-4d41-981c-3d4ba5c978cc/public/js/main.js","../../../../../../public/sites/69d3cb0a-3cd3-4d41-981c-3d4ba5c978cc/robots.txt","../../../../../../public/sites/69d3cb0a-3cd3-4d41-981c-3d4ba5c978cc/services.html","../../../../../../public/sites/69d3cb0a-3cd3-4d41-981c-3d4ba5c978cc/sitemap.xml","../../../../../../public/sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/PLAN.md","../../../../../../public/sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/about.html","../../../../../../public/sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/contact.html","../../../../../../public/sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/index.html","../../../../../../public/sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/practice-areas.html","../../../../../../public/sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/pricing.html","../../../../../../public/sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/robots.txt","../../../../../../public/sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/scripts/main.js","../../../../../../public/sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/sitemap.xml","../../../../../../public/sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/styles.css","../../../../../../public/sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/styles/style.css","../../../../../../public/sites/8a671c27-1498-4164-9cdf-5429469f45f6/PLAN.md","../../../../../../public/sites/8a671c27-1498-4164-9cdf-5429469f45f6/about.html","../../../../../../public/sites/8a671c27-1498-4164-9cdf-5429469f45f6/contact.html","../../../../../../public/sites/8a671c27-1498-4164-9cdf-5429469f45f6/index.html","../../../../../../public/sites/8a671c27-1498-4164-9cdf-5429469f45f6/robots.txt","../../../../../../public/sites/8a671c27-1498-4164-9cdf-5429469f45f6/scripts/main.js","../../../../../../public/sites/8a671c27-1498-4164-9cdf-5429469f45f6/sitemap.xml","../../../../../../public/sites/8a671c27-1498-4164-9cdf-5429469f45f6/styles/style.css","../../../../../../public/sites/9e5a46cf-1efd-4377-9da5-1e2eb63b8ca4/benefits.html","../../../../../../public/sites/9e5a46cf-1efd-4377-9da5-1e2eb63b8ca4/equipment.html","../../../../../../public/sites/9e5a46cf-1efd-4377-9da5-1e2eb63b8ca4/getting-started.html","../../../../../../public/sites/9e5a46cf-1efd-4377-9da5-1e2eb63b8ca4/index.html","../../../../../../public/sites/9e5a46cf-1efd-4377-9da5-1e2eb63b8ca4/robots.txt","../../../../../../public/sites/9e5a46cf-1efd-4377-9da5-1e2eb63b8ca4/scripts/main.js","../../../../../../public/sites/9e5a46cf-1efd-4377-9da5-1e2eb63b8ca4/sitemap.xml","../../../../../../public/sites/9e5a46cf-1efd-4377-9da5-1e2eb63b8ca4/styles/style.css","../../../../../../public/sites/9e5a46cf-1efd-4377-9da5-1e2eb63b8ca4/training.html","../../../../../../public/sites/a57c81e5-0175-49b9-b333-d0a4d1094271/index.html","../../../../../../public/sites/a57c81e5-0175-49b9-b333-d0a4d1094271/plan.md","../../../../../../public/sites/a57c81e5-0175-49b9-b333-d0a4d1094271/robots.txt","../../../../../../public/sites/a57c81e5-0175-49b9-b333-d0a4d1094271/scripts/main.js","../../../../../../public/sites/a57c81e5-0175-49b9-b333-d0a4d1094271/sitemap.xml","../../../../../../public/sites/a57c81e5-0175-49b9-b333-d0a4d1094271/styles/style.css","../../../../../../public/sites/af3ba693-4c5a-4564-9c93-0c9b9f3d74f1/index.html","../../../../../../public/sites/af3ba693-4c5a-4564-9c93-0c9b9f3d74f1/plan.md","../../../../../../public/sites/af3ba693-4c5a-4564-9c93-0c9b9f3d74f1/robots.txt","../../../../../../public/sites/af3ba693-4c5a-4564-9c93-0c9b9f3d74f1/scripts/animations.js","../../../../../../public/sites/af3ba693-4c5a-4564-9c93-0c9b9f3d74f1/scripts/main.js","../../../../../../public/sites/af3ba693-4c5a-4564-9c93-0c9b9f3d74f1/sitemap.xml","../../../../../../public/sites/af3ba693-4c5a-4564-9c93-0c9b9f3d74f1/styles/style.css","../../../../../../public/sites/be28436b-5a58-4c1b-a1da-ec28036b41e3/index.html","../../../../../../public/sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/PLAN.md","../../../../../../public/sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/about.html","../../../../../../public/sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/contact.html","../../../../../../public/sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/index.html","../../../../../../public/sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/menu.html","../../../../../../public/sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/robots.txt","../../../../../../public/sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/scripts/main.js","../../../../../../public/sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/sitemap.xml","../../../../../../public/sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/styles.css","../../../../../../public/sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/styles/style.css","../../../../../../public/sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/index.html","../../../../../../public/sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/robots.txt","../../../../../../public/sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/scripts/main.js","../../../../../../public/sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/sitemap.xml","../../../../../../public/sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/styles/style.css","../../../../../../public/sites/ea724ee7-fc57-4bde-a505-e083d72d52b2/index.html","../../../../../../public/sites/ea724ee7-fc57-4bde-a505-e083d72d52b2/robots.txt","../../../../../../public/sites/ea724ee7-fc57-4bde-a505-e083d72d52b2/scripts/main.js","../../../../../../public/sites/ea724ee7-fc57-4bde-a505-e083d72d52b2/sitemap.xml","../../../../../../public/sites/ea724ee7-fc57-4bde-a505-e083d72d52b2/styles/style.css","../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite","../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-shm","../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-wal","../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite","../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-shm","../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-wal","../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite","../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-shm","../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-wal","../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite","../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-shm","../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-wal","../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite","../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-shm","../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-wal","../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite","../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-shm","../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-wal","../../../../../package.json","../../../../chunks/1692.js","../../../../chunks/2797.js","../../../../chunks/4586.js","../../../../chunks/726.js","../../../../chunks/9298.js","../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/sites/[id]/route_client-reference-manifest.js b/.next/server/app/api/sites/[id]/route_client-reference-manifest.js deleted file mode 100644 index 6de967dcdefd4fb2b6d4afbb72aa25eeead9993d..0000000000000000000000000000000000000000 --- a/.next/server/app/api/sites/[id]/route_client-reference-manifest.js +++ /dev/null @@ -1 +0,0 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/sites/[id]/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/sites/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/sites/[id]/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/sites/[id]/settings/route.js b/.next/server/app/api/sites/[id]/settings/route.js deleted file mode 100644 index 54bd22bd0da4b8ab9776fc5b98b339296e848cf5..0000000000000000000000000000000000000000 --- a/.next/server/app/api/sites/[id]/settings/route.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(()=>{var a={};a.id=2260,a.ids=[2260],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},73182:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>D,patchFetch:()=>C,routeModule:()=>y,serverHooks:()=>B,workAsyncStorage:()=>z,workUnitAsyncStorage:()=>A});var d={};c.r(d),c.d(d,{GET:()=>w,PUT:()=>x});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(97778);async function w(a,{params:b}){try{let{id:a}=await b,c=await (0,v.B)();await c.init();let d=await c.getSite?.(a);if(await c.close?.(),!d)return u.NextResponse.json({error:"Site not found"},{status:404});let e={enabled:d.enabled,underConstruction:d.underConstruction,customDomain:d.customDomain,headScripts:d.headScripts,bodyScripts:d.bodyScripts,cdnLinks:d.cdnLinks,analytics:d.analytics,seo:d.seo,compliance:d.compliance,settingsVersion:d.settingsVersion,lastPublishedVersion:d.lastPublishedVersion};return u.NextResponse.json(e)}catch(a){return console.error("[Sites API] Error getting site settings:",a),u.NextResponse.json({error:"Failed to get site settings"},{status:500})}}async function x(a,{params:b}){try{let{id:c}=await b,d=await a.json(),e=await (0,v.B)();await e.init();let f=await e.getSite?.(c);if(!f)return await e.close?.(),u.NextResponse.json({error:"Site not found"},{status:404});let g={...f,enabled:d.enabled??f.enabled,underConstruction:d.underConstruction??f.underConstruction,customDomain:d.customDomain??f.customDomain,headScripts:d.headScripts??f.headScripts,bodyScripts:d.bodyScripts??f.bodyScripts,cdnLinks:d.cdnLinks??f.cdnLinks,analytics:d.analytics??f.analytics,seo:d.seo??f.seo,compliance:d.compliance??f.compliance,settingsVersion:f.settingsVersion+1,updatedAt:new Date};e.updateSite&&await e.updateSite(g),await e.close?.();let h={enabled:g.enabled,underConstruction:g.underConstruction,customDomain:g.customDomain,headScripts:g.headScripts,bodyScripts:g.bodyScripts,cdnLinks:g.cdnLinks,analytics:g.analytics,seo:g.seo,compliance:g.compliance,settingsVersion:g.settingsVersion,lastPublishedVersion:f.lastPublishedVersion};return u.NextResponse.json(h)}catch(a){return console.error("[Sites API] Error updating site settings:",a),u.NextResponse.json({error:"Failed to update site settings"},{status:500})}}let y=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/sites/[id]/settings/route",pathname:"/api/sites/[id]/settings",filename:"route",bundlePath:"app/api/sites/[id]/settings/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/sites/[id]/settings/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:z,workUnitAsyncStorage:A,serverHooks:B}=y;function C(){return(0,g.patchFetch)({workAsyncStorage:z,workUnitAsyncStorage:A})}async function D(a,b,c){var d;let e="/api/sites/[id]/settings/route";"/index"===e&&(e="/");let g=await y.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:z,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(z.dynamicRoutes[E]||z.routes[D]);if(F&&!x){let a=!!z.routes[D],b=z.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||y.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===y.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:z,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>y.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>y.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await y.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await y.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:z,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await y.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,726],()=>b(b.s=73182));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/sites/[id]/settings/route.js.nft.json b/.next/server/app/api/sites/[id]/settings/route.js.nft.json deleted file mode 100644 index f2da962a65c4d0a9a9131ebbd4b81baeec0f2b8a..0000000000000000000000000000000000000000 --- a/.next/server/app/api/sites/[id]/settings/route.js.nft.json +++ /dev/null @@ -1 +0,0 @@ -{"version":1,"files":["../../../../../../../data/osws.sqlite","../../../../../../../data/osws.sqlite-shm","../../../../../../../data/osws.sqlite-wal","../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../node_modules/bindings/bindings.js","../../../../../../../node_modules/bindings/package.json","../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../node_modules/next/package.json","../../../../../../../package.json","../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite","../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-shm","../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-wal","../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite","../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-shm","../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-wal","../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite","../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-shm","../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-wal","../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite","../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-shm","../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-wal","../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite","../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-shm","../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-wal","../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite","../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-shm","../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-wal","../../../../../../package.json","../../../../../chunks/1692.js","../../../../../chunks/4586.js","../../../../../chunks/726.js","../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/sites/[id]/settings/route_client-reference-manifest.js b/.next/server/app/api/sites/[id]/settings/route_client-reference-manifest.js deleted file mode 100644 index 654a4a8cc6684cdce9af78fd543edb921d6ec228..0000000000000000000000000000000000000000 --- a/.next/server/app/api/sites/[id]/settings/route_client-reference-manifest.js +++ /dev/null @@ -1 +0,0 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/sites/[id]/settings/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/sites/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/sites/[id]/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/sites/[id]/settings/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/sites/[id]/thumbnail/route.js b/.next/server/app/api/sites/[id]/thumbnail/route.js deleted file mode 100644 index 28a42dde9945ddeb698c190dc83737ced29a1742..0000000000000000000000000000000000000000 --- a/.next/server/app/api/sites/[id]/thumbnail/route.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(()=>{var a={};a.id=9221,a.ids=[9221],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},37108:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>C,patchFetch:()=>B,routeModule:()=>x,serverHooks:()=>A,workAsyncStorage:()=>y,workUnitAsyncStorage:()=>z});var d={};c.r(d),c.d(d,{PUT:()=>w});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(97778);async function w(a,{params:b}){try{let{id:c}=await b,{previewImage:d}=await a.json(),e=null===d||""===d;if(!e){if(!d||"string"!=typeof d)return u.NextResponse.json({error:"previewImage (base64 data URL) is required"},{status:400});if(!d.startsWith("data:image/"))return u.NextResponse.json({error:"previewImage must be a base64 data URL (data:image/...)"},{status:400})}let f=await (0,v.B)();await f.init();let g=await f.getSite?.(c);if(!g)return await f.close?.(),u.NextResponse.json({error:"Site not found"},{status:404});let h={...g,previewImage:e?void 0:d,previewUpdatedAt:e?void 0:new Date,updatedAt:new Date};return f.updateSite&&await f.updateSite(h),await f.close?.(),u.NextResponse.json({success:!0,previewImage:h.previewImage??null,previewUpdatedAt:h.previewUpdatedAt??null})}catch(a){return console.error("[Sites API] Error updating site thumbnail:",a),u.NextResponse.json({error:"Failed to update site thumbnail"},{status:500})}}let x=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/sites/[id]/thumbnail/route",pathname:"/api/sites/[id]/thumbnail",filename:"route",bundlePath:"app/api/sites/[id]/thumbnail/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/sites/[id]/thumbnail/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:y,workUnitAsyncStorage:z,serverHooks:A}=x;function B(){return(0,g.patchFetch)({workAsyncStorage:y,workUnitAsyncStorage:z})}async function C(a,b,c){var d;let e="/api/sites/[id]/thumbnail/route";"/index"===e&&(e="/");let g=await x.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:y,prerenderManifest:z,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(z.dynamicRoutes[E]||z.routes[D]);if(F&&!y){let a=!!z.routes[D],b=z.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||x.isDev||y||(G="/index"===(G=D)?"/":G);let H=!0===x.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:z,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>x.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>x.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await x.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await x.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:z,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),y&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await x.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,726],()=>b(b.s=37108));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/sites/[id]/thumbnail/route.js.nft.json b/.next/server/app/api/sites/[id]/thumbnail/route.js.nft.json deleted file mode 100644 index f2da962a65c4d0a9a9131ebbd4b81baeec0f2b8a..0000000000000000000000000000000000000000 --- a/.next/server/app/api/sites/[id]/thumbnail/route.js.nft.json +++ /dev/null @@ -1 +0,0 @@ -{"version":1,"files":["../../../../../../../data/osws.sqlite","../../../../../../../data/osws.sqlite-shm","../../../../../../../data/osws.sqlite-wal","../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../node_modules/bindings/bindings.js","../../../../../../../node_modules/bindings/package.json","../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../node_modules/next/package.json","../../../../../../../package.json","../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite","../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-shm","../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-wal","../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite","../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-shm","../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-wal","../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite","../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-shm","../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-wal","../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite","../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-shm","../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-wal","../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite","../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-shm","../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-wal","../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite","../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-shm","../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-wal","../../../../../../package.json","../../../../../chunks/1692.js","../../../../../chunks/4586.js","../../../../../chunks/726.js","../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/sites/[id]/thumbnail/route_client-reference-manifest.js b/.next/server/app/api/sites/[id]/thumbnail/route_client-reference-manifest.js deleted file mode 100644 index abf816b191c2aca326d6b790a39a40f713fd0d70..0000000000000000000000000000000000000000 --- a/.next/server/app/api/sites/[id]/thumbnail/route_client-reference-manifest.js +++ /dev/null @@ -1 +0,0 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/sites/[id]/thumbnail/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/sites/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/sites/[id]/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/sites/[id]/thumbnail/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/sites/route.js.nft.json b/.next/server/app/api/sites/route.js.nft.json deleted file mode 100644 index d433d8f105de2c04723fce8310a693fc4561165d..0000000000000000000000000000000000000000 --- a/.next/server/app/api/sites/route.js.nft.json +++ /dev/null @@ -1 +0,0 @@ -{"version":1,"files":["../../../../../data/osws.sqlite","../../../../../data/osws.sqlite-shm","../../../../../data/osws.sqlite-wal","../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../node_modules/better-sqlite3/package.json","../../../../../node_modules/bindings/bindings.js","../../../../../node_modules/bindings/package.json","../../../../../node_modules/file-uri-to-path/index.js","../../../../../node_modules/file-uri-to-path/package.json","../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../node_modules/next/dist/lib/constants.js","../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../node_modules/next/dist/lib/is-error.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../node_modules/next/package.json","../../../../../package.json","../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite","../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-shm","../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-wal","../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite","../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-shm","../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-wal","../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite","../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-shm","../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-wal","../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite","../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-shm","../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-wal","../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite","../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-shm","../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-wal","../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite","../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-shm","../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-wal","../../../../package.json","../../../chunks/1692.js","../../../chunks/4586.js","../../../chunks/726.js","../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/sites/route_client-reference-manifest.js b/.next/server/app/api/sites/route_client-reference-manifest.js deleted file mode 100644 index 64ef9da00e23b6881e1d78499237845a571a35d1..0000000000000000000000000000000000000000 --- a/.next/server/app/api/sites/route_client-reference-manifest.js +++ /dev/null @@ -1 +0,0 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/sites/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/sites/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/sync/backend-features/[projectId]/route.js b/.next/server/app/api/sync/backend-features/[projectId]/route.js new file mode 100644 index 0000000000000000000000000000000000000000..bc37fc6c66b9a1af1f210538878cb567cd85c740 --- /dev/null +++ b/.next/server/app/api/sync/backend-features/[projectId]/route.js @@ -0,0 +1,13 @@ +"use strict";(()=>{var a={};a.id=2177,a.ids=[2177],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},18730:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>F,patchFetch:()=>E,routeModule:()=>A,serverHooks:()=>D,workAsyncStorage:()=>B,workUnitAsyncStorage:()=>C});var d={};c.r(d),c.d(d,{GET:()=>y,POST:()=>z});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(32907),w=c(74051),x=c(39588);async function y(a,b){try{await (0,x.oC)();let{projectId:a}=await b.params,c=(0,v.q)();await c.init();let d=c.listEdgeFunctions?await c.listEdgeFunctions(a):[],e=c.listServerFunctions?await c.listServerFunctions(a):[],f=c.listSecrets?await c.listSecrets(a):[],g=c.listScheduledFunctions?await c.listScheduledFunctions(a):[],h=f.map(({value:a,...b})=>b);return u.NextResponse.json({edgeFunctions:d,serverFunctions:e,secrets:h,scheduledFunctions:g})}catch(a){if(a instanceof Error&&"Unauthorized"===a.message)return u.NextResponse.json({error:"Unauthorized"},{status:401});return console.error("[API /api/sync/backend-features GET] Error:",a),u.NextResponse.json({error:a instanceof Error?a.message:"Failed to fetch backend features"},{status:500})}}async function z(a,b){try{await (0,x.oC)();let{projectId:c}=await b.params,d=await a.json(),e=(0,v.q)();await e.init();let f=0,g=0,h=0,i=0,j=(0,w.getCoreDatabase)();return j.transaction(()=>{if(j.prepare("DELETE FROM project_edge_functions WHERE project_id = ?").run(c),j.prepare("DELETE FROM project_server_functions WHERE project_id = ?").run(c),j.prepare("DELETE FROM project_secrets WHERE project_id = ?").run(c),j.prepare("DELETE FROM project_scheduled_functions WHERE project_id = ?").run(c),d.edgeFunctions)for(let a of d.edgeFunctions)j.prepare(` + INSERT INTO project_edge_functions (id, project_id, name, description, code, method, enabled, timeout_ms, created_at, updated_at) + VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) + `).run(a.id,c,a.name,a.description||null,a.code,a.method,+!!a.enabled,a.timeoutMs||5e3,a.createdAt?.toString()||new Date().toISOString(),a.updatedAt?.toString()||new Date().toISOString()),f++;if(d.serverFunctions)for(let a of d.serverFunctions)j.prepare(` + INSERT INTO project_server_functions (id, project_id, name, description, code, enabled, created_at, updated_at) + VALUES (?, ?, ?, ?, ?, ?, ?, ?) + `).run(a.id,c,a.name,a.description||null,a.code,+!!a.enabled,a.createdAt?.toString()||new Date().toISOString(),a.updatedAt?.toString()||new Date().toISOString()),g++;if(d.secrets)for(let a of d.secrets)j.prepare(` + INSERT INTO project_secrets (id, project_id, name, description, value, has_value, created_at, updated_at) + VALUES (?, ?, ?, ?, ?, ?, ?, ?) + `).run(a.id,c,a.name,a.description||null,a.value||null,+!!a.hasValue,a.createdAt?.toString()||new Date().toISOString(),a.updatedAt?.toString()||new Date().toISOString()),h++;if(d.scheduledFunctions)for(let a of d.scheduledFunctions)j.prepare(` + INSERT INTO project_scheduled_functions (id, project_id, name, function_id, cron_expression, timezone, description, enabled, config, created_at, updated_at) + VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) + `).run(a.id,c,a.name,a.functionId,a.cronExpression,a.timezone||"UTC",a.description||null,+!!a.enabled,JSON.stringify(a.config||{}),a.createdAt?.toString()||new Date().toISOString(),a.updatedAt?.toString()||new Date().toISOString()),i++})(),u.NextResponse.json({success:!0,counts:{edgeFunctions:f,serverFunctions:g,secrets:h,scheduledFunctions:i}})}catch(a){if(a instanceof Error&&"Unauthorized"===a.message)return u.NextResponse.json({error:"Unauthorized"},{status:401});return console.error("[API /api/sync/backend-features POST] Error:",a),u.NextResponse.json({error:a instanceof Error?a.message:"Failed to sync backend features"},{status:500})}}let A=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/sync/backend-features/[projectId]/route",pathname:"/api/sync/backend-features/[projectId]",filename:"route",bundlePath:"app/api/sync/backend-features/[projectId]/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/sync/backend-features/[projectId]/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:B,workUnitAsyncStorage:C,serverHooks:D}=A;function E(){return(0,g.patchFetch)({workAsyncStorage:B,workUnitAsyncStorage:C})}async function F(a,b,c){var d;let e="/api/sync/backend-features/[projectId]/route";"/index"===e&&(e="/");let g=await A.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:y,routerServerContext:z,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(y.dynamicRoutes[E]||y.routes[D]);if(F&&!x){let a=!!y.routes[D],b=y.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||A.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===A.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:y,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>A.onRequestError(a,b,d,z)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>A.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await A.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},z),b}},l=await A.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await A.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,3343],()=>b(b.s=18730));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/sync/backend-features/[projectId]/route.js.nft.json b/.next/server/app/api/sync/backend-features/[projectId]/route.js.nft.json new file mode 100644 index 0000000000000000000000000000000000000000..3952e2b6d7834b7d64b6cc71c5308b2edf9b4c8a --- /dev/null +++ b/.next/server/app/api/sync/backend-features/[projectId]/route.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../../../../data/osws.sqlite","../../../../../../../data/osws.sqlite-shm","../../../../../../../data/osws.sqlite-wal","../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite","../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-shm","../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-wal","../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite","../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-shm","../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-wal","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/analytics.sqlite","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-shm","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-wal","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/analytics.sqlite","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-shm","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-wal","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/analytics.sqlite","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-shm","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-wal","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/analytics.sqlite","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-shm","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-wal","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/analytics.sqlite","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-shm","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-wal","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/analytics.sqlite","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-shm","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-wal","../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../node_modules/bindings/bindings.js","../../../../../../../node_modules/bindings/package.json","../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../node_modules/next/package.json","../../../../../../../package.json","../../../../../../package.json","../../../../../chunks/1692.js","../../../../../chunks/3343.js","../../../../../chunks/4586.js","../../../../../chunks/6151.js","../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/admin/sites/[id]/server-functions/route_client-reference-manifest.js b/.next/server/app/api/sync/backend-features/[projectId]/route_client-reference-manifest.js similarity index 92% rename from .next/server/app/api/admin/sites/[id]/server-functions/route_client-reference-manifest.js rename to .next/server/app/api/sync/backend-features/[projectId]/route_client-reference-manifest.js index c92619e5bbf44e7af88243073e3c63d6055a870a..d2defd87ed490c05c9b28a73323ae5dbd7062926 100644 --- a/.next/server/app/api/admin/sites/[id]/server-functions/route_client-reference-manifest.js +++ b/.next/server/app/api/sync/backend-features/[projectId]/route_client-reference-manifest.js @@ -1 +1 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/admin/sites/[id]/server-functions/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/admin/sites/[id]/server-functions/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/sync/backend-features/[projectId]/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/sync/backend-features/[projectId]/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/sync/files/route.js b/.next/server/app/api/sync/files/route.js index 170573fb1442eca90e0477a2a7b01875590b1f46..a51d7b2568f04e5435c7c3b5f337788a653c6d1e 100644 --- a/.next/server/app/api/sync/files/route.js +++ b/.next/server/app/api/sync/files/route.js @@ -1 +1 @@ -"use strict";(()=>{var a={};a.id=6543,a.ids=[6543],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},61468:(a,b,c)=>{c.d(b,{e:()=>d});function d(a){return a.map(a=>{if(a.content instanceof ArrayBuffer){let b=Buffer.from(a.content);return{...a,content:b.toString("base64"),_isBinaryBase64:!0}}return a})}},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},90987:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>G,patchFetch:()=>F,routeModule:()=>B,serverHooks:()=>E,workAsyncStorage:()=>C,workUnitAsyncStorage:()=>D});var d={};c.r(d),c.d(d,{GET:()=>z,POST:()=>A});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(97778),w=c(61468),x=c(39588),y=c(95012);async function z(a){try{await (0,x.oC)();let{searchParams:b}=new URL(a.url),c=b.get("projectId");if(!c)return u.NextResponse.json({error:"projectId parameter required"},{status:400});let d=await (0,v.B)();await d.init();let e=await d.listFiles(c);return await d.close?.(),u.NextResponse.json({files:(0,w.e)(e)})}catch(a){if(y.v.error("[API /api/sync/files GET] Error:",a),a instanceof Error&&"Unauthorized"===a.message)return u.NextResponse.json({error:"Unauthorized"},{status:401});return u.NextResponse.json({error:a instanceof Error?a.message:"Failed to fetch files"},{status:500})}}async function A(a){try{await (0,x.oC)();let{projectId:b,files:c}=await a.json();if(!b||!Array.isArray(c))return u.NextResponse.json({error:"Invalid request: projectId and files array required"},{status:400});let d=await (0,v.B)();for(let a of(await d.init(),await d.deleteProjectFiles(b),c)){let{_isBinaryBase64:b,...c}=a;await d.createFile(c)}return await d.close?.(),u.NextResponse.json({success:!0,count:c.length})}catch(a){if(y.v.error("[API /api/sync/files POST] Error:",a),a instanceof Error&&"Unauthorized"===a.message)return u.NextResponse.json({error:"Unauthorized"},{status:401});return u.NextResponse.json({error:a instanceof Error?a.message:"Failed to sync files"},{status:500})}}let B=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/sync/files/route",pathname:"/api/sync/files",filename:"route",bundlePath:"app/api/sync/files/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/sync/files/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:C,workUnitAsyncStorage:D,serverHooks:E}=B;function F(){return(0,g.patchFetch)({workAsyncStorage:C,workUnitAsyncStorage:D})}async function G(a,b,c){var d;let e="/api/sync/files/route";"/index"===e&&(e="/");let g=await B.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:y,routerServerContext:z,isOnDemandRevalidate:A,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(y.dynamicRoutes[E]||y.routes[D]);if(F&&!x){let a=!!y.routes[D],b=y.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||B.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===B.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:y,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>B.onRequestError(a,b,d,z)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>B.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&A&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await B.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:A})},z),b}},l=await B.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:A,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",A?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await B.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:A})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},95012:(a,b,c)=>{c.d(b,{v:()=>g});let d={debug:10,info:20,warn:30,error:40,silent:50},e="undefined"!=typeof process&&"warn"||"warn";function f(a){return d[e]<=d[a]}let g={debug:(...a)=>{f("debug")&&console.debug(...a)},info:(...a)=>{f("info")&&console.info(...a)},warn:(...a)=>{f("warn")&&console.warn(...a)},error:(...a)=>{f("error")&&console.error(...a)}}}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,726],()=>b(b.s=90987));module.exports=c})(); \ No newline at end of file +"use strict";(()=>{var a={};a.id=6543,a.ids=[6543],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},61468:(a,b,c)=>{c.d(b,{e:()=>d});function d(a){return a.map(a=>{if(a.content instanceof ArrayBuffer){let b=Buffer.from(a.content);return{...a,content:b.toString("base64"),_isBinaryBase64:!0}}return a})}},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},90987:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>G,patchFetch:()=>F,routeModule:()=>B,serverHooks:()=>E,workAsyncStorage:()=>C,workUnitAsyncStorage:()=>D});var d={};c.r(d),c.d(d,{GET:()=>z,POST:()=>A});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(32907),w=c(61468),x=c(39588),y=c(95012);async function z(a){try{await (0,x.oC)();let{searchParams:b}=new URL(a.url),c=b.get("projectId");if(!c)return u.NextResponse.json({error:"projectId parameter required"},{status:400});let d=await (0,v.B)();await d.init();let e=await d.listFiles(c);return await d.close?.(),u.NextResponse.json({files:(0,w.e)(e)})}catch(a){if(y.v.error("[API /api/sync/files GET] Error:",a),a instanceof Error&&"Unauthorized"===a.message)return u.NextResponse.json({error:"Unauthorized"},{status:401});return u.NextResponse.json({error:a instanceof Error?a.message:"Failed to fetch files"},{status:500})}}async function A(a){try{await (0,x.oC)();let{projectId:b,files:c}=await a.json();if(!b||!Array.isArray(c))return u.NextResponse.json({error:"Invalid request: projectId and files array required"},{status:400});let d=await (0,v.B)();for(let a of(await d.init(),await d.deleteProjectFiles(b),c)){let{_isBinaryBase64:b,...c}=a;await d.createFile(c)}return await d.close?.(),u.NextResponse.json({success:!0,count:c.length})}catch(a){if(y.v.error("[API /api/sync/files POST] Error:",a),a instanceof Error&&"Unauthorized"===a.message)return u.NextResponse.json({error:"Unauthorized"},{status:401});return u.NextResponse.json({error:a instanceof Error?a.message:"Failed to sync files"},{status:500})}}let B=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/sync/files/route",pathname:"/api/sync/files",filename:"route",bundlePath:"app/api/sync/files/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/sync/files/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:C,workUnitAsyncStorage:D,serverHooks:E}=B;function F(){return(0,g.patchFetch)({workAsyncStorage:C,workUnitAsyncStorage:D})}async function G(a,b,c){var d;let e="/api/sync/files/route";"/index"===e&&(e="/");let g=await B.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:y,routerServerContext:z,isOnDemandRevalidate:A,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(y.dynamicRoutes[E]||y.routes[D]);if(F&&!x){let a=!!y.routes[D],b=y.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||B.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===B.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:y,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>B.onRequestError(a,b,d,z)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>B.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&A&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await B.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:A})},z),b}},l=await B.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:A,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",A?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await B.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:A})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},95012:(a,b,c)=>{c.d(b,{v:()=>g});let d={debug:10,info:20,warn:30,error:40,silent:50},e="undefined"!=typeof process&&"warn"||"warn";function f(a){return d[e]<=d[a]}let g={debug:(...a)=>{f("debug")&&console.debug(...a)},info:(...a)=>{f("info")&&console.info(...a)},warn:(...a)=>{f("warn")&&console.warn(...a)},error:(...a)=>{f("error")&&console.error(...a)}}}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,3343],()=>b(b.s=90987));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/sync/files/route.js.nft.json b/.next/server/app/api/sync/files/route.js.nft.json index d7430d51ec26b60a3b1db7e68bd4a53160f2d344..54f4d5d4911d0f745374413a7934569ddbf7180d 100644 --- a/.next/server/app/api/sync/files/route.js.nft.json +++ b/.next/server/app/api/sync/files/route.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../data/osws.sqlite","../../../../../../data/osws.sqlite-shm","../../../../../../data/osws.sqlite-wal","../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../node_modules/better-sqlite3/package.json","../../../../../../node_modules/bindings/bindings.js","../../../../../../node_modules/bindings/package.json","../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../node_modules/next/package.json","../../../../../../package.json","../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite","../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-shm","../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-wal","../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite","../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-shm","../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-wal","../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite","../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-shm","../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-wal","../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite","../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-shm","../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-wal","../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite","../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-shm","../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-wal","../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite","../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-shm","../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-wal","../../../../../package.json","../../../../chunks/1692.js","../../../../chunks/4586.js","../../../../chunks/6151.js","../../../../chunks/726.js","../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../data/osws.sqlite","../../../../../../data/osws.sqlite-shm","../../../../../../data/osws.sqlite-wal","../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite","../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-shm","../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-wal","../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite","../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-shm","../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-wal","../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/analytics.sqlite","../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite","../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-shm","../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-wal","../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/analytics.sqlite","../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite","../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-shm","../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-wal","../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/analytics.sqlite","../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite","../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-shm","../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-wal","../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/analytics.sqlite","../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite","../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-shm","../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-wal","../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/analytics.sqlite","../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite","../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-shm","../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-wal","../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/analytics.sqlite","../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite","../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-shm","../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-wal","../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../node_modules/better-sqlite3/package.json","../../../../../../node_modules/bindings/bindings.js","../../../../../../node_modules/bindings/package.json","../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../node_modules/next/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1692.js","../../../../chunks/3343.js","../../../../chunks/4586.js","../../../../chunks/6151.js","../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/sync/files/route_client-reference-manifest.js b/.next/server/app/api/sync/files/route_client-reference-manifest.js index 9fd30a18f0839f75a39b8e08f3f5d8be23e4d0ed..bcb45fcbb1b493efd80f656b5d0e7a461f319456 100644 --- a/.next/server/app/api/sync/files/route_client-reference-manifest.js +++ b/.next/server/app/api/sync/files/route_client-reference-manifest.js @@ -1 +1 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/sync/files/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/sync/files/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/sync/files/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/sync/files/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/sync/projects/[id]/route.js b/.next/server/app/api/sync/projects/[id]/route.js index 65fc9a2abd724706a5cc017ac13d36d331e2bdae..377bb58961e706bec2d15765492b5497751d398c 100644 --- a/.next/server/app/api/sync/projects/[id]/route.js +++ b/.next/server/app/api/sync/projects/[id]/route.js @@ -1 +1 @@ -"use strict";(()=>{var a={};a.id=5350,a.ids=[5350],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},61468:(a,b,c)=>{c.d(b,{e:()=>d});function d(a){return a.map(a=>{if(a.content instanceof ArrayBuffer){let b=Buffer.from(a.content);return{...a,content:b.toString("base64"),_isBinaryBase64:!0}}return a})}},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87127:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>F,patchFetch:()=>E,routeModule:()=>A,serverHooks:()=>D,workAsyncStorage:()=>B,workUnitAsyncStorage:()=>C});var d={};c.r(d),c.d(d,{GET:()=>z,POST:()=>y});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(97778),w=c(61468),x=c(95012);async function y(a,{params:b}){try{let c,{id:d}=await b,{project:e,files:f}=await a.json();if(!e||e.id!==d)return u.NextResponse.json({error:"Invalid project data"},{status:400});try{c=await (0,v.B)()}catch(a){return x.v.error("[API /api/sync/projects/[id] POST] Server adapter initialization failed:",a),u.NextResponse.json({error:"Server mode not configured. Check DATABASE_URL environment variable."},{status:500})}await c.init();let g=new Date,h={...e,lastSyncedAt:g,serverUpdatedAt:e.updatedAt,syncStatus:"synced"};for(let a of(await c.getProject(d)?await c.updateProject(h):await c.createProject(h),await c.listFiles(d)))await c.deleteFile(d,a.path);for(let a of f){let{_isBinaryBase64:b,...d}=a;await c.createFile(d)}return x.v.debug(`[API /api/sync/projects/${d}] Project synced successfully`),u.NextResponse.json({success:!0,project:h,fileCount:f.length})}catch(a){return x.v.error("[API /api/sync/projects/[id] POST] Error:",a),u.NextResponse.json({error:a instanceof Error?a.message:"Failed to push project"},{status:500})}}async function z(a,{params:b}){try{let a,{id:c}=await b;try{a=await (0,v.B)()}catch(a){return x.v.error("[API /api/sync/projects/[id] GET] Server adapter initialization failed:",a),u.NextResponse.json({error:"Server mode not configured. Check DATABASE_URL environment variable."},{status:500})}await a.init();let d=await a.getProject(c);if(!d)return u.NextResponse.json({error:"Project not found"},{status:404});let e=await a.listFiles(c);return x.v.debug(`[API /api/sync/projects/${c}] Project pulled successfully`),u.NextResponse.json({success:!0,project:d,files:(0,w.e)(e)})}catch(a){return x.v.error("[API /api/sync/projects/[id] GET] Error:",a),u.NextResponse.json({error:a instanceof Error?a.message:"Failed to pull project"},{status:500})}}let A=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/sync/projects/[id]/route",pathname:"/api/sync/projects/[id]",filename:"route",bundlePath:"app/api/sync/projects/[id]/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/sync/projects/[id]/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:B,workUnitAsyncStorage:C,serverHooks:D}=A;function E(){return(0,g.patchFetch)({workAsyncStorage:B,workUnitAsyncStorage:C})}async function F(a,b,c){var d;let e="/api/sync/projects/[id]/route";"/index"===e&&(e="/");let g=await A.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:y,routerServerContext:z,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(y.dynamicRoutes[E]||y.routes[D]);if(F&&!x){let a=!!y.routes[D],b=y.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||A.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===A.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:y,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>A.onRequestError(a,b,d,z)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>A.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await A.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},z),b}},l=await A.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await A.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},87550:a=>{a.exports=require("better-sqlite3")},95012:(a,b,c)=>{c.d(b,{v:()=>g});let d={debug:10,info:20,warn:30,error:40,silent:50},e="undefined"!=typeof process&&"warn"||"warn";function f(a){return d[e]<=d[a]}let g={debug:(...a)=>{f("debug")&&console.debug(...a)},info:(...a)=>{f("info")&&console.info(...a)},warn:(...a)=>{f("warn")&&console.warn(...a)},error:(...a)=>{f("error")&&console.error(...a)}}}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,726],()=>b(b.s=87127));module.exports=c})(); \ No newline at end of file +"use strict";(()=>{var a={};a.id=5350,a.ids=[5350],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},61468:(a,b,c)=>{c.d(b,{e:()=>d});function d(a){return a.map(a=>{if(a.content instanceof ArrayBuffer){let b=Buffer.from(a.content);return{...a,content:b.toString("base64"),_isBinaryBase64:!0}}return a})}},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87127:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>F,patchFetch:()=>E,routeModule:()=>A,serverHooks:()=>D,workAsyncStorage:()=>B,workUnitAsyncStorage:()=>C});var d={};c.r(d),c.d(d,{GET:()=>z,POST:()=>y});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(32907),w=c(61468),x=c(95012);async function y(a,{params:b}){try{let c,{id:d}=await b,{project:e,files:f}=await a.json();if(!e||e.id!==d)return u.NextResponse.json({error:"Invalid project data"},{status:400});try{c=await (0,v.B)()}catch(a){return x.v.error("[API /api/sync/projects/[id] POST] Server adapter initialization failed:",a),u.NextResponse.json({error:"Server mode not configured. Set NEXT_PUBLIC_SERVER_MODE=true to enable."},{status:500})}await c.init();let g=new Date,h={...e,lastSyncedAt:g,serverUpdatedAt:e.updatedAt,syncStatus:"synced"};for(let a of(await c.getProject(d)?await c.updateProject(h):await c.createProject(h),await c.listFiles(d)))await c.deleteFile(d,a.path);for(let a of f){let{_isBinaryBase64:b,...d}=a;await c.createFile(d)}return x.v.debug(`[API /api/sync/projects/${d}] Project synced successfully`),u.NextResponse.json({success:!0,project:h,fileCount:f.length})}catch(a){return x.v.error("[API /api/sync/projects/[id] POST] Error:",a),u.NextResponse.json({error:a instanceof Error?a.message:"Failed to push project"},{status:500})}}async function z(a,{params:b}){try{let a,{id:c}=await b;try{a=await (0,v.B)()}catch(a){return x.v.error("[API /api/sync/projects/[id] GET] Server adapter initialization failed:",a),u.NextResponse.json({error:"Server mode not configured. Set NEXT_PUBLIC_SERVER_MODE=true to enable."},{status:500})}await a.init();let d=await a.getProject(c);if(!d)return u.NextResponse.json({error:"Project not found"},{status:404});let e=await a.listFiles(c);return x.v.debug(`[API /api/sync/projects/${c}] Project pulled successfully`),u.NextResponse.json({success:!0,project:d,files:(0,w.e)(e)})}catch(a){return x.v.error("[API /api/sync/projects/[id] GET] Error:",a),u.NextResponse.json({error:a instanceof Error?a.message:"Failed to pull project"},{status:500})}}let A=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/sync/projects/[id]/route",pathname:"/api/sync/projects/[id]",filename:"route",bundlePath:"app/api/sync/projects/[id]/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/sync/projects/[id]/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:B,workUnitAsyncStorage:C,serverHooks:D}=A;function E(){return(0,g.patchFetch)({workAsyncStorage:B,workUnitAsyncStorage:C})}async function F(a,b,c){var d;let e="/api/sync/projects/[id]/route";"/index"===e&&(e="/");let g=await A.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:y,routerServerContext:z,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(y.dynamicRoutes[E]||y.routes[D]);if(F&&!x){let a=!!y.routes[D],b=y.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||A.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===A.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:y,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>A.onRequestError(a,b,d,z)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>A.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await A.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},z),b}},l=await A.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await A.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},87550:a=>{a.exports=require("better-sqlite3")},95012:(a,b,c)=>{c.d(b,{v:()=>g});let d={debug:10,info:20,warn:30,error:40,silent:50},e="undefined"!=typeof process&&"warn"||"warn";function f(a){return d[e]<=d[a]}let g={debug:(...a)=>{f("debug")&&console.debug(...a)},info:(...a)=>{f("info")&&console.info(...a)},warn:(...a)=>{f("warn")&&console.warn(...a)},error:(...a)=>{f("error")&&console.error(...a)}}}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,3343],()=>b(b.s=87127));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/sync/projects/[id]/route.js.nft.json b/.next/server/app/api/sync/projects/[id]/route.js.nft.json index f2da962a65c4d0a9a9131ebbd4b81baeec0f2b8a..4f1b20eac27357d0b414611ee07dd203fd71bd4e 100644 --- a/.next/server/app/api/sync/projects/[id]/route.js.nft.json +++ b/.next/server/app/api/sync/projects/[id]/route.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../../data/osws.sqlite","../../../../../../../data/osws.sqlite-shm","../../../../../../../data/osws.sqlite-wal","../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../node_modules/bindings/bindings.js","../../../../../../../node_modules/bindings/package.json","../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../node_modules/next/package.json","../../../../../../../package.json","../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite","../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-shm","../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-wal","../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite","../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-shm","../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-wal","../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite","../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-shm","../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-wal","../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite","../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-shm","../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-wal","../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite","../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-shm","../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-wal","../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite","../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-shm","../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-wal","../../../../../../package.json","../../../../../chunks/1692.js","../../../../../chunks/4586.js","../../../../../chunks/726.js","../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../../data/osws.sqlite","../../../../../../../data/osws.sqlite-shm","../../../../../../../data/osws.sqlite-wal","../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite","../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-shm","../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-wal","../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite","../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-shm","../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-wal","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/analytics.sqlite","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-shm","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-wal","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/analytics.sqlite","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-shm","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-wal","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/analytics.sqlite","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-shm","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-wal","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/analytics.sqlite","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-shm","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-wal","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/analytics.sqlite","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-shm","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-wal","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/analytics.sqlite","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-shm","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-wal","../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../node_modules/bindings/bindings.js","../../../../../../../node_modules/bindings/package.json","../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../node_modules/next/package.json","../../../../../../../package.json","../../../../../../package.json","../../../../../chunks/1692.js","../../../../../chunks/3343.js","../../../../../chunks/4586.js","../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/sync/projects/[id]/route_client-reference-manifest.js b/.next/server/app/api/sync/projects/[id]/route_client-reference-manifest.js index 44e6f97979fac7efe31671bea807916728050eae..594489531b4ba1b122419889e1d6190fa4178651 100644 --- a/.next/server/app/api/sync/projects/[id]/route_client-reference-manifest.js +++ b/.next/server/app/api/sync/projects/[id]/route_client-reference-manifest.js @@ -1 +1 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/sync/projects/[id]/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/sync/projects/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/sync/projects/[id]/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/sync/projects/[id]/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/sync/projects/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/sync/projects/[id]/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/sync/projects/route.js b/.next/server/app/api/sync/projects/route.js index 948cb9dcda7b74e5f0c2276983bf9bdab31a13f9..e862e2f661587ad624bc8838c6c412b04fba47f3 100644 --- a/.next/server/app/api/sync/projects/route.js +++ b/.next/server/app/api/sync/projects/route.js @@ -1 +1 @@ -"use strict";(()=>{var a={};a.id=7564,a.ids=[7564],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},95012:(a,b,c)=>{c.d(b,{v:()=>g});let d={debug:10,info:20,warn:30,error:40,silent:50},e="undefined"!=typeof process&&"warn"||"warn";function f(a){return d[e]<=d[a]}let g={debug:(...a)=>{f("debug")&&console.debug(...a)},info:(...a)=>{f("info")&&console.info(...a)},warn:(...a)=>{f("warn")&&console.warn(...a)},error:(...a)=>{f("error")&&console.error(...a)}}},99559:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>F,patchFetch:()=>E,routeModule:()=>A,serverHooks:()=>D,workAsyncStorage:()=>B,workUnitAsyncStorage:()=>C});var d={};c.r(d),c.d(d,{GET:()=>y,POST:()=>z});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(97778),w=c(39588),x=c(95012);async function y(){try{await (0,w.oC)();let a=await (0,v.B)();await a.init();let b=await a.listProjects();return await a.close?.(),u.NextResponse.json({projects:b})}catch(a){if(x.v.error("[API /api/sync/projects GET] Error:",a),a instanceof Error&&"Unauthorized"===a.message)return u.NextResponse.json({error:"Unauthorized"},{status:401});return u.NextResponse.json({error:a instanceof Error?a.message:"Failed to fetch projects"},{status:500})}}async function z(a){try{await (0,w.oC)();let{project:b}=await a.json();if(!b||!b.id)return u.NextResponse.json({error:"Invalid project data"},{status:400});let c=await (0,v.B)();return await c.init(),await c.getProject(b.id)?await c.updateProject(b):await c.createProject(b),await c.close?.(),u.NextResponse.json({success:!0,project:b})}catch(a){if(x.v.error("[API /api/sync/projects POST] Error:",a),a instanceof Error&&"Unauthorized"===a.message)return u.NextResponse.json({error:"Unauthorized"},{status:401});return u.NextResponse.json({error:a instanceof Error?a.message:"Failed to sync project"},{status:500})}}let A=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/sync/projects/route",pathname:"/api/sync/projects",filename:"route",bundlePath:"app/api/sync/projects/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/sync/projects/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:B,workUnitAsyncStorage:C,serverHooks:D}=A;function E(){return(0,g.patchFetch)({workAsyncStorage:B,workUnitAsyncStorage:C})}async function F(a,b,c){var d;let e="/api/sync/projects/route";"/index"===e&&(e="/");let g=await A.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:y,routerServerContext:z,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(y.dynamicRoutes[E]||y.routes[D]);if(F&&!x){let a=!!y.routes[D],b=y.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||A.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===A.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:y,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>A.onRequestError(a,b,d,z)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>A.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await A.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},z),b}},l=await A.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await A.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,726],()=>b(b.s=99559));module.exports=c})(); \ No newline at end of file +"use strict";(()=>{var a={};a.id=7564,a.ids=[7564],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},95012:(a,b,c)=>{c.d(b,{v:()=>g});let d={debug:10,info:20,warn:30,error:40,silent:50},e="undefined"!=typeof process&&"warn"||"warn";function f(a){return d[e]<=d[a]}let g={debug:(...a)=>{f("debug")&&console.debug(...a)},info:(...a)=>{f("info")&&console.info(...a)},warn:(...a)=>{f("warn")&&console.warn(...a)},error:(...a)=>{f("error")&&console.error(...a)}}},99559:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>F,patchFetch:()=>E,routeModule:()=>A,serverHooks:()=>D,workAsyncStorage:()=>B,workUnitAsyncStorage:()=>C});var d={};c.r(d),c.d(d,{GET:()=>y,POST:()=>z});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(32907),w=c(39588),x=c(95012);async function y(){try{await (0,w.oC)();let a=await (0,v.B)();await a.init();let b=await a.listProjects();return await a.close?.(),u.NextResponse.json({projects:b})}catch(a){if(x.v.error("[API /api/sync/projects GET] Error:",a),a instanceof Error&&"Unauthorized"===a.message)return u.NextResponse.json({error:"Unauthorized"},{status:401});return u.NextResponse.json({error:a instanceof Error?a.message:"Failed to fetch projects"},{status:500})}}async function z(a){try{await (0,w.oC)();let{project:b}=await a.json();if(!b||!b.id)return u.NextResponse.json({error:"Invalid project data"},{status:400});let c=await (0,v.B)();return await c.init(),await c.getProject(b.id)?await c.updateProject(b):await c.createProject(b),await c.close?.(),u.NextResponse.json({success:!0,project:b})}catch(a){if(x.v.error("[API /api/sync/projects POST] Error:",a),a instanceof Error&&"Unauthorized"===a.message)return u.NextResponse.json({error:"Unauthorized"},{status:401});return u.NextResponse.json({error:a instanceof Error?a.message:"Failed to sync project"},{status:500})}}let A=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/sync/projects/route",pathname:"/api/sync/projects",filename:"route",bundlePath:"app/api/sync/projects/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/sync/projects/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:B,workUnitAsyncStorage:C,serverHooks:D}=A;function E(){return(0,g.patchFetch)({workAsyncStorage:B,workUnitAsyncStorage:C})}async function F(a,b,c){var d;let e="/api/sync/projects/route";"/index"===e&&(e="/");let g=await A.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:y,routerServerContext:z,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(y.dynamicRoutes[E]||y.routes[D]);if(F&&!x){let a=!!y.routes[D],b=y.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||A.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===A.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:y,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>A.onRequestError(a,b,d,z)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>A.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await A.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},z),b}},l=await A.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await A.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,3343],()=>b(b.s=99559));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/sync/projects/route.js.nft.json b/.next/server/app/api/sync/projects/route.js.nft.json index d7430d51ec26b60a3b1db7e68bd4a53160f2d344..54f4d5d4911d0f745374413a7934569ddbf7180d 100644 --- a/.next/server/app/api/sync/projects/route.js.nft.json +++ b/.next/server/app/api/sync/projects/route.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../data/osws.sqlite","../../../../../../data/osws.sqlite-shm","../../../../../../data/osws.sqlite-wal","../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../node_modules/better-sqlite3/package.json","../../../../../../node_modules/bindings/bindings.js","../../../../../../node_modules/bindings/package.json","../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../node_modules/next/package.json","../../../../../../package.json","../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite","../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-shm","../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-wal","../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite","../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-shm","../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-wal","../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite","../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-shm","../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-wal","../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite","../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-shm","../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-wal","../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite","../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-shm","../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-wal","../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite","../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-shm","../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-wal","../../../../../package.json","../../../../chunks/1692.js","../../../../chunks/4586.js","../../../../chunks/6151.js","../../../../chunks/726.js","../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../data/osws.sqlite","../../../../../../data/osws.sqlite-shm","../../../../../../data/osws.sqlite-wal","../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite","../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-shm","../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-wal","../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite","../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-shm","../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-wal","../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/analytics.sqlite","../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite","../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-shm","../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-wal","../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/analytics.sqlite","../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite","../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-shm","../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-wal","../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/analytics.sqlite","../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite","../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-shm","../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-wal","../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/analytics.sqlite","../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite","../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-shm","../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-wal","../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/analytics.sqlite","../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite","../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-shm","../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-wal","../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/analytics.sqlite","../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite","../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-shm","../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-wal","../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../node_modules/better-sqlite3/package.json","../../../../../../node_modules/bindings/bindings.js","../../../../../../node_modules/bindings/package.json","../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../node_modules/next/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1692.js","../../../../chunks/3343.js","../../../../chunks/4586.js","../../../../chunks/6151.js","../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/sync/projects/route_client-reference-manifest.js b/.next/server/app/api/sync/projects/route_client-reference-manifest.js index 49f21fd0c41e4c49e231d16bc32cdd8b5bb48c86..9bb9203819f3afc0b4b4680d5f1f37ff3236d99c 100644 --- a/.next/server/app/api/sync/projects/route_client-reference-manifest.js +++ b/.next/server/app/api/sync/projects/route_client-reference-manifest.js @@ -1 +1 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/sync/projects/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/sync/projects/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/sync/projects/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/sync/projects/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/sync/skills/[id]/route.js b/.next/server/app/api/sync/skills/[id]/route.js index ca049f71cd9b0e51e7781ab3dc60d3da1c1611e4..e16905515c4dcf98491ce2fb9be5db004d8362ce 100644 --- a/.next/server/app/api/sync/skills/[id]/route.js +++ b/.next/server/app/api/sync/skills/[id]/route.js @@ -1 +1 @@ -"use strict";(()=>{var a={};a.id=1502,a.ids=[1502],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},15017:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>G,patchFetch:()=>F,routeModule:()=>B,serverHooks:()=>E,workAsyncStorage:()=>C,workUnitAsyncStorage:()=>D});var d={};c.r(d),c.d(d,{DELETE:()=>A,GET:()=>y,POST:()=>z});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(97778),w=c(39588),x=c(95012);async function y(a,{params:b}){try{await (0,w.oC)();let{id:a}=await b,c=await (0,v.B)();await c.init();let d=await c.getSkill(a);if(await c.close?.(),!d)return u.NextResponse.json({error:"Skill not found"},{status:404});return u.NextResponse.json({success:!0,skill:d})}catch(a){if(x.v.error("[API /api/sync/skills/[id] GET] Error:",a),a instanceof Error&&"Unauthorized"===a.message)return u.NextResponse.json({error:"Unauthorized"},{status:401});return u.NextResponse.json({error:a instanceof Error?a.message:"Failed to fetch skill"},{status:500})}}async function z(a,{params:b}){try{await (0,w.oC)();let{id:c}=await b,{skill:d}=await a.json();if(!d||d.id!==c)return u.NextResponse.json({error:"Invalid skill data or ID mismatch"},{status:400});if(d.isBuiltIn)return u.NextResponse.json({error:"Cannot sync built-in skills"},{status:400});let e=await (0,v.B)();await e.init();let f=await e.getSkill(c),g=new Date;f?await e.updateSkill({id:d.id,name:d.name,description:d.description,content:d.content,markdown:d.markdown,createdAt:d.createdAt,updatedAt:g}):await e.createSkill({id:d.id,name:d.name,description:d.description,content:d.content,markdown:d.markdown,createdAt:d.createdAt,updatedAt:g});let h=await e.getSkill(c);return await e.close?.(),u.NextResponse.json({success:!0,skill:h,action:f?"updated":"created"})}catch(a){if(x.v.error("[API /api/sync/skills/[id] POST] Error:",a),a instanceof Error&&"Unauthorized"===a.message)return u.NextResponse.json({error:"Unauthorized"},{status:401});return u.NextResponse.json({error:a instanceof Error?a.message:"Failed to sync skill"},{status:500})}}async function A(a,{params:b}){try{await (0,w.oC)();let{id:a}=await b,c=await (0,v.B)();await c.init();let d=await c.getSkill(a);if(!d)return await c.close?.(),u.NextResponse.json({error:"Skill not found"},{status:404});if(d.isBuiltIn)return await c.close?.(),u.NextResponse.json({error:"Cannot delete built-in skills"},{status:400});return await c.deleteSkill(a),await c.close?.(),u.NextResponse.json({success:!0})}catch(a){if(x.v.error("[API /api/sync/skills/[id] DELETE] Error:",a),a instanceof Error&&"Unauthorized"===a.message)return u.NextResponse.json({error:"Unauthorized"},{status:401});return u.NextResponse.json({error:a instanceof Error?a.message:"Failed to delete skill"},{status:500})}}let B=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/sync/skills/[id]/route",pathname:"/api/sync/skills/[id]",filename:"route",bundlePath:"app/api/sync/skills/[id]/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/sync/skills/[id]/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:C,workUnitAsyncStorage:D,serverHooks:E}=B;function F(){return(0,g.patchFetch)({workAsyncStorage:C,workUnitAsyncStorage:D})}async function G(a,b,c){var d;let e="/api/sync/skills/[id]/route";"/index"===e&&(e="/");let g=await B.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:y,routerServerContext:z,isOnDemandRevalidate:A,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(y.dynamicRoutes[E]||y.routes[D]);if(F&&!x){let a=!!y.routes[D],b=y.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||B.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===B.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:y,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>B.onRequestError(a,b,d,z)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>B.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&A&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await B.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:A})},z),b}},l=await B.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:A,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",A?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await B.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:A})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},95012:(a,b,c)=>{c.d(b,{v:()=>g});let d={debug:10,info:20,warn:30,error:40,silent:50},e="undefined"!=typeof process&&"warn"||"warn";function f(a){return d[e]<=d[a]}let g={debug:(...a)=>{f("debug")&&console.debug(...a)},info:(...a)=>{f("info")&&console.info(...a)},warn:(...a)=>{f("warn")&&console.warn(...a)},error:(...a)=>{f("error")&&console.error(...a)}}}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,726],()=>b(b.s=15017));module.exports=c})(); \ No newline at end of file +"use strict";(()=>{var a={};a.id=1502,a.ids=[1502],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},15017:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>G,patchFetch:()=>F,routeModule:()=>B,serverHooks:()=>E,workAsyncStorage:()=>C,workUnitAsyncStorage:()=>D});var d={};c.r(d),c.d(d,{DELETE:()=>A,GET:()=>y,POST:()=>z});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(32907),w=c(39588),x=c(95012);async function y(a,{params:b}){try{await (0,w.oC)();let{id:a}=await b,c=await (0,v.B)();await c.init();let d=await c.getSkill(a);if(await c.close?.(),!d)return u.NextResponse.json({error:"Skill not found"},{status:404});return u.NextResponse.json({success:!0,skill:d})}catch(a){if(x.v.error("[API /api/sync/skills/[id] GET] Error:",a),a instanceof Error&&"Unauthorized"===a.message)return u.NextResponse.json({error:"Unauthorized"},{status:401});return u.NextResponse.json({error:a instanceof Error?a.message:"Failed to fetch skill"},{status:500})}}async function z(a,{params:b}){try{await (0,w.oC)();let{id:c}=await b,{skill:d}=await a.json();if(!d||d.id!==c)return u.NextResponse.json({error:"Invalid skill data or ID mismatch"},{status:400});if(d.isBuiltIn)return u.NextResponse.json({error:"Cannot sync built-in skills"},{status:400});let e=await (0,v.B)();await e.init();let f=await e.getSkill(c),g=new Date;f?await e.updateSkill({id:d.id,name:d.name,description:d.description,content:d.content,markdown:d.markdown,createdAt:d.createdAt,updatedAt:g}):await e.createSkill({id:d.id,name:d.name,description:d.description,content:d.content,markdown:d.markdown,createdAt:d.createdAt,updatedAt:g});let h=await e.getSkill(c);return await e.close?.(),u.NextResponse.json({success:!0,skill:h,action:f?"updated":"created"})}catch(a){if(x.v.error("[API /api/sync/skills/[id] POST] Error:",a),a instanceof Error&&"Unauthorized"===a.message)return u.NextResponse.json({error:"Unauthorized"},{status:401});return u.NextResponse.json({error:a instanceof Error?a.message:"Failed to sync skill"},{status:500})}}async function A(a,{params:b}){try{await (0,w.oC)();let{id:a}=await b,c=await (0,v.B)();await c.init();let d=await c.getSkill(a);if(!d)return await c.close?.(),u.NextResponse.json({error:"Skill not found"},{status:404});if(d.isBuiltIn)return await c.close?.(),u.NextResponse.json({error:"Cannot delete built-in skills"},{status:400});return await c.deleteSkill(a),await c.close?.(),u.NextResponse.json({success:!0})}catch(a){if(x.v.error("[API /api/sync/skills/[id] DELETE] Error:",a),a instanceof Error&&"Unauthorized"===a.message)return u.NextResponse.json({error:"Unauthorized"},{status:401});return u.NextResponse.json({error:a instanceof Error?a.message:"Failed to delete skill"},{status:500})}}let B=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/sync/skills/[id]/route",pathname:"/api/sync/skills/[id]",filename:"route",bundlePath:"app/api/sync/skills/[id]/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/sync/skills/[id]/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:C,workUnitAsyncStorage:D,serverHooks:E}=B;function F(){return(0,g.patchFetch)({workAsyncStorage:C,workUnitAsyncStorage:D})}async function G(a,b,c){var d;let e="/api/sync/skills/[id]/route";"/index"===e&&(e="/");let g=await B.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:y,routerServerContext:z,isOnDemandRevalidate:A,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(y.dynamicRoutes[E]||y.routes[D]);if(F&&!x){let a=!!y.routes[D],b=y.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||B.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===B.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:y,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>B.onRequestError(a,b,d,z)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>B.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&A&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await B.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:A})},z),b}},l=await B.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:A,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",A?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await B.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:A})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},95012:(a,b,c)=>{c.d(b,{v:()=>g});let d={debug:10,info:20,warn:30,error:40,silent:50},e="undefined"!=typeof process&&"warn"||"warn";function f(a){return d[e]<=d[a]}let g={debug:(...a)=>{f("debug")&&console.debug(...a)},info:(...a)=>{f("info")&&console.info(...a)},warn:(...a)=>{f("warn")&&console.warn(...a)},error:(...a)=>{f("error")&&console.error(...a)}}}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,3343],()=>b(b.s=15017));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/sync/skills/[id]/route.js.nft.json b/.next/server/app/api/sync/skills/[id]/route.js.nft.json index 59e9edd852dd23da7e26935f908d738e6605f507..3952e2b6d7834b7d64b6cc71c5308b2edf9b4c8a 100644 --- a/.next/server/app/api/sync/skills/[id]/route.js.nft.json +++ b/.next/server/app/api/sync/skills/[id]/route.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../../data/osws.sqlite","../../../../../../../data/osws.sqlite-shm","../../../../../../../data/osws.sqlite-wal","../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../node_modules/bindings/bindings.js","../../../../../../../node_modules/bindings/package.json","../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../node_modules/next/package.json","../../../../../../../package.json","../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite","../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-shm","../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-wal","../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite","../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-shm","../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-wal","../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite","../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-shm","../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-wal","../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite","../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-shm","../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-wal","../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite","../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-shm","../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-wal","../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite","../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-shm","../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-wal","../../../../../../package.json","../../../../../chunks/1692.js","../../../../../chunks/4586.js","../../../../../chunks/6151.js","../../../../../chunks/726.js","../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../../data/osws.sqlite","../../../../../../../data/osws.sqlite-shm","../../../../../../../data/osws.sqlite-wal","../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite","../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-shm","../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-wal","../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite","../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-shm","../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-wal","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/analytics.sqlite","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-shm","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-wal","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/analytics.sqlite","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-shm","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-wal","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/analytics.sqlite","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-shm","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-wal","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/analytics.sqlite","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-shm","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-wal","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/analytics.sqlite","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-shm","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-wal","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/analytics.sqlite","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-shm","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-wal","../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../node_modules/bindings/bindings.js","../../../../../../../node_modules/bindings/package.json","../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../node_modules/next/package.json","../../../../../../../package.json","../../../../../../package.json","../../../../../chunks/1692.js","../../../../../chunks/3343.js","../../../../../chunks/4586.js","../../../../../chunks/6151.js","../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/sync/skills/[id]/route_client-reference-manifest.js b/.next/server/app/api/sync/skills/[id]/route_client-reference-manifest.js index 0b86d6606e1e130dfa825afcf3f6ad1228f9457d..e6f528bda308f6b2396ada09e5dcdecd57d3a146 100644 --- a/.next/server/app/api/sync/skills/[id]/route_client-reference-manifest.js +++ b/.next/server/app/api/sync/skills/[id]/route_client-reference-manifest.js @@ -1 +1 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/sync/skills/[id]/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/sync/skills/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/sync/skills/[id]/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/sync/skills/[id]/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/sync/skills/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/sync/skills/[id]/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/sync/skills/route.js b/.next/server/app/api/sync/skills/route.js index 85511e5bf279ae48cc9a2aeec1294919bde60d4d..1ec9861a4d948a36feb9fe629a19590220c6ded6 100644 --- a/.next/server/app/api/sync/skills/route.js +++ b/.next/server/app/api/sync/skills/route.js @@ -1 +1 @@ -"use strict";(()=>{var a={};a.id=4596,a.ids=[4596],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},89201:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>F,patchFetch:()=>E,routeModule:()=>A,serverHooks:()=>D,workAsyncStorage:()=>B,workUnitAsyncStorage:()=>C});var d={};c.r(d),c.d(d,{GET:()=>y,POST:()=>z});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(97778),w=c(39588),x=c(95012);async function y(){try{await (0,w.oC)();let a=await (0,v.B)();await a.init();let b=(await a.getAllSkills()||[]).filter(a=>!a.isBuiltIn);return await a.close?.(),u.NextResponse.json({success:!0,skills:b})}catch(a){if(x.v.error("[API /api/sync/skills GET] Error:",a),a instanceof Error&&"Unauthorized"===a.message)return u.NextResponse.json({error:"Unauthorized"},{status:401});return u.NextResponse.json({error:a instanceof Error?a.message:"Failed to fetch skills"},{status:500})}}async function z(a){try{await (0,w.oC)();let{skills:b}=await a.json();if(!b||!Array.isArray(b))return u.NextResponse.json({error:"Invalid skills data - expected array"},{status:400});let c=await (0,v.B)();await c.init();let d=0,e=0,f=[];for(let a of b)if(!a.isBuiltIn)try{await c.getSkill(a.id)?(await c.updateSkill({id:a.id,name:a.name,description:a.description,content:a.content,markdown:a.markdown,createdAt:a.createdAt,updatedAt:new Date}),e++):(await c.createSkill({id:a.id,name:a.name,description:a.description,content:a.content,markdown:a.markdown,createdAt:a.createdAt,updatedAt:a.updatedAt}),d++)}catch(b){f.push(`Failed to sync skill "${a.name}": ${b instanceof Error?b.message:"Unknown error"}`)}return await c.close?.(),u.NextResponse.json({success:0===f.length,created:d,updated:e,errors:f.length>0?f:void 0})}catch(a){if(x.v.error("[API /api/sync/skills POST] Error:",a),a instanceof Error&&"Unauthorized"===a.message)return u.NextResponse.json({error:"Unauthorized"},{status:401});return u.NextResponse.json({error:a instanceof Error?a.message:"Failed to sync skills"},{status:500})}}let A=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/sync/skills/route",pathname:"/api/sync/skills",filename:"route",bundlePath:"app/api/sync/skills/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/sync/skills/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:B,workUnitAsyncStorage:C,serverHooks:D}=A;function E(){return(0,g.patchFetch)({workAsyncStorage:B,workUnitAsyncStorage:C})}async function F(a,b,c){var d;let e="/api/sync/skills/route";"/index"===e&&(e="/");let g=await A.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:y,routerServerContext:z,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(y.dynamicRoutes[E]||y.routes[D]);if(F&&!x){let a=!!y.routes[D],b=y.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||A.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===A.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:y,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>A.onRequestError(a,b,d,z)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>A.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await A.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},z),b}},l=await A.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await A.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},95012:(a,b,c)=>{c.d(b,{v:()=>g});let d={debug:10,info:20,warn:30,error:40,silent:50},e="undefined"!=typeof process&&"warn"||"warn";function f(a){return d[e]<=d[a]}let g={debug:(...a)=>{f("debug")&&console.debug(...a)},info:(...a)=>{f("info")&&console.info(...a)},warn:(...a)=>{f("warn")&&console.warn(...a)},error:(...a)=>{f("error")&&console.error(...a)}}}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,726],()=>b(b.s=89201));module.exports=c})(); \ No newline at end of file +"use strict";(()=>{var a={};a.id=4596,a.ids=[4596],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},89201:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>F,patchFetch:()=>E,routeModule:()=>A,serverHooks:()=>D,workAsyncStorage:()=>B,workUnitAsyncStorage:()=>C});var d={};c.r(d),c.d(d,{GET:()=>y,POST:()=>z});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(32907),w=c(39588),x=c(95012);async function y(){try{await (0,w.oC)();let a=await (0,v.B)();await a.init();let b=(await a.getAllSkills()||[]).filter(a=>!a.isBuiltIn);return await a.close?.(),u.NextResponse.json({success:!0,skills:b})}catch(a){if(x.v.error("[API /api/sync/skills GET] Error:",a),a instanceof Error&&"Unauthorized"===a.message)return u.NextResponse.json({error:"Unauthorized"},{status:401});return u.NextResponse.json({error:a instanceof Error?a.message:"Failed to fetch skills"},{status:500})}}async function z(a){try{await (0,w.oC)();let{skills:b}=await a.json();if(!b||!Array.isArray(b))return u.NextResponse.json({error:"Invalid skills data - expected array"},{status:400});let c=await (0,v.B)();await c.init();let d=0,e=0,f=[];for(let a of b)if(!a.isBuiltIn)try{await c.getSkill(a.id)?(await c.updateSkill({id:a.id,name:a.name,description:a.description,content:a.content,markdown:a.markdown,createdAt:a.createdAt,updatedAt:new Date}),e++):(await c.createSkill({id:a.id,name:a.name,description:a.description,content:a.content,markdown:a.markdown,createdAt:a.createdAt,updatedAt:a.updatedAt}),d++)}catch(b){f.push(`Failed to sync skill "${a.name}": ${b instanceof Error?b.message:"Unknown error"}`)}return await c.close?.(),u.NextResponse.json({success:0===f.length,created:d,updated:e,errors:f.length>0?f:void 0})}catch(a){if(x.v.error("[API /api/sync/skills POST] Error:",a),a instanceof Error&&"Unauthorized"===a.message)return u.NextResponse.json({error:"Unauthorized"},{status:401});return u.NextResponse.json({error:a instanceof Error?a.message:"Failed to sync skills"},{status:500})}}let A=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/sync/skills/route",pathname:"/api/sync/skills",filename:"route",bundlePath:"app/api/sync/skills/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/sync/skills/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:B,workUnitAsyncStorage:C,serverHooks:D}=A;function E(){return(0,g.patchFetch)({workAsyncStorage:B,workUnitAsyncStorage:C})}async function F(a,b,c){var d;let e="/api/sync/skills/route";"/index"===e&&(e="/");let g=await A.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:y,routerServerContext:z,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(y.dynamicRoutes[E]||y.routes[D]);if(F&&!x){let a=!!y.routes[D],b=y.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||A.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===A.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:y,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>A.onRequestError(a,b,d,z)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>A.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await A.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},z),b}},l=await A.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await A.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},95012:(a,b,c)=>{c.d(b,{v:()=>g});let d={debug:10,info:20,warn:30,error:40,silent:50},e="undefined"!=typeof process&&"warn"||"warn";function f(a){return d[e]<=d[a]}let g={debug:(...a)=>{f("debug")&&console.debug(...a)},info:(...a)=>{f("info")&&console.info(...a)},warn:(...a)=>{f("warn")&&console.warn(...a)},error:(...a)=>{f("error")&&console.error(...a)}}}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,3343],()=>b(b.s=89201));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/sync/skills/route.js.nft.json b/.next/server/app/api/sync/skills/route.js.nft.json index d7430d51ec26b60a3b1db7e68bd4a53160f2d344..54f4d5d4911d0f745374413a7934569ddbf7180d 100644 --- a/.next/server/app/api/sync/skills/route.js.nft.json +++ b/.next/server/app/api/sync/skills/route.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../data/osws.sqlite","../../../../../../data/osws.sqlite-shm","../../../../../../data/osws.sqlite-wal","../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../node_modules/better-sqlite3/package.json","../../../../../../node_modules/bindings/bindings.js","../../../../../../node_modules/bindings/package.json","../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../node_modules/next/package.json","../../../../../../package.json","../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite","../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-shm","../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-wal","../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite","../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-shm","../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-wal","../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite","../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-shm","../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-wal","../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite","../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-shm","../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-wal","../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite","../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-shm","../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-wal","../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite","../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-shm","../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-wal","../../../../../package.json","../../../../chunks/1692.js","../../../../chunks/4586.js","../../../../chunks/6151.js","../../../../chunks/726.js","../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../data/osws.sqlite","../../../../../../data/osws.sqlite-shm","../../../../../../data/osws.sqlite-wal","../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite","../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-shm","../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-wal","../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite","../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-shm","../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-wal","../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/analytics.sqlite","../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite","../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-shm","../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-wal","../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/analytics.sqlite","../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite","../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-shm","../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-wal","../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/analytics.sqlite","../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite","../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-shm","../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-wal","../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/analytics.sqlite","../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite","../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-shm","../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-wal","../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/analytics.sqlite","../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite","../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-shm","../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-wal","../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/analytics.sqlite","../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite","../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-shm","../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-wal","../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../node_modules/better-sqlite3/package.json","../../../../../../node_modules/bindings/bindings.js","../../../../../../node_modules/bindings/package.json","../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../node_modules/next/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1692.js","../../../../chunks/3343.js","../../../../chunks/4586.js","../../../../chunks/6151.js","../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/sync/skills/route_client-reference-manifest.js b/.next/server/app/api/sync/skills/route_client-reference-manifest.js index a782b75700e09fc390cd89a643afdf0cdde5c5a5..1c0b5a2507429565dda530a8212e426ed31d2ae3 100644 --- a/.next/server/app/api/sync/skills/route_client-reference-manifest.js +++ b/.next/server/app/api/sync/skills/route_client-reference-manifest.js @@ -1 +1 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/sync/skills/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/sync/skills/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/sync/skills/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/sync/skills/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/sync/status/route.js b/.next/server/app/api/sync/status/route.js index b7ac7cae99bc8f49f460eddcf88004ae336daa63..b32a41d87ad537c9099a0ef9866443fcff50d84b 100644 --- a/.next/server/app/api/sync/status/route.js +++ b/.next/server/app/api/sync/status/route.js @@ -1 +1 @@ -"use strict";(()=>{var a={};a.id=3084,a.ids=[3084],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},7698:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>E,patchFetch:()=>D,routeModule:()=>z,serverHooks:()=>C,workAsyncStorage:()=>A,workUnitAsyncStorage:()=>B});var d={};c.r(d),c.d(d,{GET:()=>y});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(97778),w=c(95012);function x(a,b=new Date){if(!a)return b;if(a instanceof Date)return isNaN(a.getTime())?b:a;let c=new Date(a);return isNaN(c.getTime())?b:c}async function y(a){try{let a;try{a=await (0,v.B)()}catch(a){return w.v.error("[API /api/sync/status] Server adapter initialization failed:",a),u.NextResponse.json({error:"Server mode not configured. Check DATABASE_URL environment variable."},{status:500})}await a.init();let b=await a.listProjects()||[],c=a.listSites?await a.listSites():[],d=(await a.getAllSkills()||[]).filter(a=>!a.isBuiltIn),e=await a.getAllCustomTemplates()||[],f=b.map(a=>{let b=x(a.updatedAt);return{id:a.id,name:a.name,updatedAt:b.toISOString()}}),g=d.map(a=>{let b=x(a.updatedAt);return{id:a.id,name:a.name,updatedAt:b.toISOString()}}),h=e.map(a=>{let b=x(a.updatedAt||a.importedAt);return{id:a.id,name:a.name,updatedAt:b.toISOString()}}),i=[...f.map(a=>a.updatedAt),...g.map(a=>a.updatedAt),...h.map(a=>a.updatedAt)],j=null;i.length>0&&(j=[...i].sort((a,b)=>new Date(b).getTime()-new Date(a).getTime())[0]),w.v.debug(`[API /api/sync/status] Fetched status for ${f.length} projects, ${g.length} skills, ${h.length} templates, ${c.length} sites`);let k={success:!0,projects:f,skills:g,templates:h,summary:{projectCount:b.length,skillCount:d.length,templateCount:e.length,siteCount:c.length,lastUpdated:j,isUninitialized:0===b.length}};return u.NextResponse.json(k)}catch(a){return w.v.error("[API /api/sync/status] Error:",a),u.NextResponse.json({error:a instanceof Error?a.message:"Failed to fetch sync status"},{status:500})}}let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/sync/status/route",pathname:"/api/sync/status",filename:"route",bundlePath:"app/api/sync/status/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/sync/status/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:A,workUnitAsyncStorage:B,serverHooks:C}=z;function D(){return(0,g.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:B})}async function E(a,b,c){var d;let e="/api/sync/status/route";"/index"===e&&(e="/");let g=await z.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:y,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(y.dynamicRoutes[E]||y.routes[D]);if(F&&!x){let a=!!y.routes[D],b=y.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||z.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===z.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:y,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>z.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>z.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await z.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await z.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},95012:(a,b,c)=>{c.d(b,{v:()=>g});let d={debug:10,info:20,warn:30,error:40,silent:50},e="undefined"!=typeof process&&"warn"||"warn";function f(a){return d[e]<=d[a]}let g={debug:(...a)=>{f("debug")&&console.debug(...a)},info:(...a)=>{f("info")&&console.info(...a)},warn:(...a)=>{f("warn")&&console.warn(...a)},error:(...a)=>{f("error")&&console.error(...a)}}}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,726],()=>b(b.s=7698));module.exports=c})(); \ No newline at end of file +"use strict";(()=>{var a={};a.id=3084,a.ids=[3084],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},7698:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>E,patchFetch:()=>D,routeModule:()=>z,serverHooks:()=>C,workAsyncStorage:()=>A,workUnitAsyncStorage:()=>B});var d={};c.r(d),c.d(d,{GET:()=>y});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(32907),w=c(95012);function x(a,b=new Date){if(!a)return b;if(a instanceof Date)return isNaN(a.getTime())?b:a;let c=new Date(a);return isNaN(c.getTime())?b:c}async function y(a){try{let a;try{a=await (0,v.B)()}catch(a){return w.v.error("[API /api/sync/status] Server adapter initialization failed:",a),u.NextResponse.json({error:"Server mode not configured. Set NEXT_PUBLIC_SERVER_MODE=true to enable."},{status:500})}await a.init();let b=await a.listProjects()||[],c=a.listDeployments?await a.listDeployments():[],d=(await a.getAllSkills()||[]).filter(a=>!a.isBuiltIn),e=await a.getAllCustomTemplates()||[],f=b.map(a=>{let b=x(a.updatedAt);return{id:a.id,name:a.name,updatedAt:b.toISOString()}}),g=d.map(a=>{let b=x(a.updatedAt);return{id:a.id,name:a.name,updatedAt:b.toISOString()}}),h=e.map(a=>{let b=x(a.updatedAt||a.importedAt);return{id:a.id,name:a.name,updatedAt:b.toISOString()}}),i=[...f.map(a=>a.updatedAt),...g.map(a=>a.updatedAt),...h.map(a=>a.updatedAt)],j=null;i.length>0&&(j=[...i].sort((a,b)=>new Date(b).getTime()-new Date(a).getTime())[0]),w.v.debug(`[API /api/sync/status] Fetched status for ${f.length} projects, ${g.length} skills, ${h.length} templates, ${c.length} deployments`);let k={success:!0,projects:f,skills:g,templates:h,summary:{projectCount:b.length,skillCount:d.length,templateCount:e.length,deploymentCount:c.length,lastUpdated:j,isUninitialized:0===b.length}};return u.NextResponse.json(k)}catch(a){return w.v.error("[API /api/sync/status] Error:",a),u.NextResponse.json({error:a instanceof Error?a.message:"Failed to fetch sync status"},{status:500})}}let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/sync/status/route",pathname:"/api/sync/status",filename:"route",bundlePath:"app/api/sync/status/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/sync/status/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:A,workUnitAsyncStorage:B,serverHooks:C}=z;function D(){return(0,g.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:B})}async function E(a,b,c){var d;let e="/api/sync/status/route";"/index"===e&&(e="/");let g=await z.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:y,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(y.dynamicRoutes[E]||y.routes[D]);if(F&&!x){let a=!!y.routes[D],b=y.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||z.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===z.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:y,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>z.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>z.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await z.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await z.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},95012:(a,b,c)=>{c.d(b,{v:()=>g});let d={debug:10,info:20,warn:30,error:40,silent:50},e="undefined"!=typeof process&&"warn"||"warn";function f(a){return d[e]<=d[a]}let g={debug:(...a)=>{f("debug")&&console.debug(...a)},info:(...a)=>{f("info")&&console.info(...a)},warn:(...a)=>{f("warn")&&console.warn(...a)},error:(...a)=>{f("error")&&console.error(...a)}}}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,3343],()=>b(b.s=7698));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/sync/status/route.js.nft.json b/.next/server/app/api/sync/status/route.js.nft.json index e7d845a31bbc5e993536ac387af4ae5148cc6a7b..4b725186881bff2f8e4c49cf092b63b314236758 100644 --- a/.next/server/app/api/sync/status/route.js.nft.json +++ b/.next/server/app/api/sync/status/route.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../data/osws.sqlite","../../../../../../data/osws.sqlite-shm","../../../../../../data/osws.sqlite-wal","../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../node_modules/better-sqlite3/package.json","../../../../../../node_modules/bindings/bindings.js","../../../../../../node_modules/bindings/package.json","../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../node_modules/next/package.json","../../../../../../package.json","../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite","../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-shm","../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-wal","../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite","../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-shm","../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-wal","../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite","../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-shm","../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-wal","../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite","../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-shm","../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-wal","../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite","../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-shm","../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-wal","../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite","../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-shm","../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-wal","../../../../../package.json","../../../../chunks/1692.js","../../../../chunks/4586.js","../../../../chunks/726.js","../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../data/osws.sqlite","../../../../../../data/osws.sqlite-shm","../../../../../../data/osws.sqlite-wal","../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite","../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-shm","../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-wal","../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite","../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-shm","../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-wal","../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/analytics.sqlite","../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite","../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-shm","../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-wal","../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/analytics.sqlite","../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite","../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-shm","../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-wal","../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/analytics.sqlite","../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite","../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-shm","../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-wal","../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/analytics.sqlite","../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite","../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-shm","../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-wal","../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/analytics.sqlite","../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite","../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-shm","../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-wal","../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/analytics.sqlite","../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite","../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-shm","../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-wal","../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../node_modules/better-sqlite3/package.json","../../../../../../node_modules/bindings/bindings.js","../../../../../../node_modules/bindings/package.json","../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../node_modules/next/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1692.js","../../../../chunks/3343.js","../../../../chunks/4586.js","../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/sync/status/route_client-reference-manifest.js b/.next/server/app/api/sync/status/route_client-reference-manifest.js index 4e16d9f704a25fddb9383f108005765dd7a97e5a..0202255b185164ec16b844c865b71c9a09fdeece 100644 --- a/.next/server/app/api/sync/status/route_client-reference-manifest.js +++ b/.next/server/app/api/sync/status/route_client-reference-manifest.js @@ -1 +1 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/sync/status/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/sync/status/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/sync/status/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/sync/status/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/sync/templates/[id]/route.js b/.next/server/app/api/sync/templates/[id]/route.js index d41064e85bb4c1ec909656c9b7fee0f12eee2dc2..f9f5e3ee202dc89490db591083f849afc375af61 100644 --- a/.next/server/app/api/sync/templates/[id]/route.js +++ b/.next/server/app/api/sync/templates/[id]/route.js @@ -1 +1 @@ -"use strict";(()=>{var a={};a.id=1415,a.ids=[1415],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},83408:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>G,patchFetch:()=>F,routeModule:()=>B,serverHooks:()=>E,workAsyncStorage:()=>C,workUnitAsyncStorage:()=>D});var d={};c.r(d),c.d(d,{DELETE:()=>A,GET:()=>y,POST:()=>z});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(97778),w=c(39588),x=c(95012);async function y(a,{params:b}){try{await (0,w.oC)();let{id:a}=await b,c=await (0,v.B)();await c.init();let d=await c.getCustomTemplate(a);if(await c.close?.(),!d)return u.NextResponse.json({error:"Template not found"},{status:404});return u.NextResponse.json({success:!0,template:d})}catch(a){if(x.v.error("[API /api/sync/templates/[id] GET] Error:",a),a instanceof Error&&"Unauthorized"===a.message)return u.NextResponse.json({error:"Unauthorized"},{status:401});return u.NextResponse.json({error:a instanceof Error?a.message:"Failed to fetch template"},{status:500})}}async function z(a,{params:b}){try{await (0,w.oC)();let{id:c}=await b,{template:d}=await a.json();if(!d||d.id!==c)return u.NextResponse.json({error:"Invalid template data or ID mismatch"},{status:400});let e=await (0,v.B)();await e.init();let f=await e.getCustomTemplate(c),g={...d,updatedAt:new Date};await e.saveCustomTemplate(g);let h=await e.getCustomTemplate(c);return await e.close?.(),u.NextResponse.json({success:!0,template:h,action:f?"updated":"created"})}catch(a){if(x.v.error("[API /api/sync/templates/[id] POST] Error:",a),a instanceof Error&&"Unauthorized"===a.message)return u.NextResponse.json({error:"Unauthorized"},{status:401});return u.NextResponse.json({error:a instanceof Error?a.message:"Failed to sync template"},{status:500})}}async function A(a,{params:b}){try{await (0,w.oC)();let{id:a}=await b,c=await (0,v.B)();if(await c.init(),!await c.getCustomTemplate(a))return await c.close?.(),u.NextResponse.json({error:"Template not found"},{status:404});return await c.deleteCustomTemplate(a),await c.close?.(),u.NextResponse.json({success:!0})}catch(a){if(x.v.error("[API /api/sync/templates/[id] DELETE] Error:",a),a instanceof Error&&"Unauthorized"===a.message)return u.NextResponse.json({error:"Unauthorized"},{status:401});return u.NextResponse.json({error:a instanceof Error?a.message:"Failed to delete template"},{status:500})}}let B=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/sync/templates/[id]/route",pathname:"/api/sync/templates/[id]",filename:"route",bundlePath:"app/api/sync/templates/[id]/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/sync/templates/[id]/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:C,workUnitAsyncStorage:D,serverHooks:E}=B;function F(){return(0,g.patchFetch)({workAsyncStorage:C,workUnitAsyncStorage:D})}async function G(a,b,c){var d;let e="/api/sync/templates/[id]/route";"/index"===e&&(e="/");let g=await B.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:y,routerServerContext:z,isOnDemandRevalidate:A,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(y.dynamicRoutes[E]||y.routes[D]);if(F&&!x){let a=!!y.routes[D],b=y.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||B.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===B.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:y,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>B.onRequestError(a,b,d,z)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>B.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&A&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await B.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:A})},z),b}},l=await B.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:A,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",A?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await B.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:A})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},95012:(a,b,c)=>{c.d(b,{v:()=>g});let d={debug:10,info:20,warn:30,error:40,silent:50},e="undefined"!=typeof process&&"warn"||"warn";function f(a){return d[e]<=d[a]}let g={debug:(...a)=>{f("debug")&&console.debug(...a)},info:(...a)=>{f("info")&&console.info(...a)},warn:(...a)=>{f("warn")&&console.warn(...a)},error:(...a)=>{f("error")&&console.error(...a)}}}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,726],()=>b(b.s=83408));module.exports=c})(); \ No newline at end of file +"use strict";(()=>{var a={};a.id=1415,a.ids=[1415],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},83408:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>G,patchFetch:()=>F,routeModule:()=>B,serverHooks:()=>E,workAsyncStorage:()=>C,workUnitAsyncStorage:()=>D});var d={};c.r(d),c.d(d,{DELETE:()=>A,GET:()=>y,POST:()=>z});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(32907),w=c(39588),x=c(95012);async function y(a,{params:b}){try{await (0,w.oC)();let{id:a}=await b,c=await (0,v.B)();await c.init();let d=await c.getCustomTemplate(a);if(await c.close?.(),!d)return u.NextResponse.json({error:"Template not found"},{status:404});return u.NextResponse.json({success:!0,template:d})}catch(a){if(x.v.error("[API /api/sync/templates/[id] GET] Error:",a),a instanceof Error&&"Unauthorized"===a.message)return u.NextResponse.json({error:"Unauthorized"},{status:401});return u.NextResponse.json({error:a instanceof Error?a.message:"Failed to fetch template"},{status:500})}}async function z(a,{params:b}){try{await (0,w.oC)();let{id:c}=await b,{template:d}=await a.json();if(!d||d.id!==c)return u.NextResponse.json({error:"Invalid template data or ID mismatch"},{status:400});let e=await (0,v.B)();await e.init();let f=await e.getCustomTemplate(c),g={...d,updatedAt:new Date};await e.saveCustomTemplate(g);let h=await e.getCustomTemplate(c);return await e.close?.(),u.NextResponse.json({success:!0,template:h,action:f?"updated":"created"})}catch(a){if(x.v.error("[API /api/sync/templates/[id] POST] Error:",a),a instanceof Error&&"Unauthorized"===a.message)return u.NextResponse.json({error:"Unauthorized"},{status:401});return u.NextResponse.json({error:a instanceof Error?a.message:"Failed to sync template"},{status:500})}}async function A(a,{params:b}){try{await (0,w.oC)();let{id:a}=await b,c=await (0,v.B)();if(await c.init(),!await c.getCustomTemplate(a))return await c.close?.(),u.NextResponse.json({error:"Template not found"},{status:404});return await c.deleteCustomTemplate(a),await c.close?.(),u.NextResponse.json({success:!0})}catch(a){if(x.v.error("[API /api/sync/templates/[id] DELETE] Error:",a),a instanceof Error&&"Unauthorized"===a.message)return u.NextResponse.json({error:"Unauthorized"},{status:401});return u.NextResponse.json({error:a instanceof Error?a.message:"Failed to delete template"},{status:500})}}let B=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/sync/templates/[id]/route",pathname:"/api/sync/templates/[id]",filename:"route",bundlePath:"app/api/sync/templates/[id]/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/sync/templates/[id]/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:C,workUnitAsyncStorage:D,serverHooks:E}=B;function F(){return(0,g.patchFetch)({workAsyncStorage:C,workUnitAsyncStorage:D})}async function G(a,b,c){var d;let e="/api/sync/templates/[id]/route";"/index"===e&&(e="/");let g=await B.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:y,routerServerContext:z,isOnDemandRevalidate:A,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(y.dynamicRoutes[E]||y.routes[D]);if(F&&!x){let a=!!y.routes[D],b=y.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||B.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===B.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:y,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>B.onRequestError(a,b,d,z)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>B.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&A&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await B.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:A})},z),b}},l=await B.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:A,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",A?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await B.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:A})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},95012:(a,b,c)=>{c.d(b,{v:()=>g});let d={debug:10,info:20,warn:30,error:40,silent:50},e="undefined"!=typeof process&&"warn"||"warn";function f(a){return d[e]<=d[a]}let g={debug:(...a)=>{f("debug")&&console.debug(...a)},info:(...a)=>{f("info")&&console.info(...a)},warn:(...a)=>{f("warn")&&console.warn(...a)},error:(...a)=>{f("error")&&console.error(...a)}}}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,3343],()=>b(b.s=83408));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/sync/templates/[id]/route.js.nft.json b/.next/server/app/api/sync/templates/[id]/route.js.nft.json index 59e9edd852dd23da7e26935f908d738e6605f507..3952e2b6d7834b7d64b6cc71c5308b2edf9b4c8a 100644 --- a/.next/server/app/api/sync/templates/[id]/route.js.nft.json +++ b/.next/server/app/api/sync/templates/[id]/route.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../../data/osws.sqlite","../../../../../../../data/osws.sqlite-shm","../../../../../../../data/osws.sqlite-wal","../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../node_modules/bindings/bindings.js","../../../../../../../node_modules/bindings/package.json","../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../node_modules/next/package.json","../../../../../../../package.json","../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite","../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-shm","../../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-wal","../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite","../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-shm","../../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-wal","../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite","../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-shm","../../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-wal","../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite","../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-shm","../../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-wal","../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite","../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-shm","../../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-wal","../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite","../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-shm","../../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-wal","../../../../../../package.json","../../../../../chunks/1692.js","../../../../../chunks/4586.js","../../../../../chunks/6151.js","../../../../../chunks/726.js","../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../../data/osws.sqlite","../../../../../../../data/osws.sqlite-shm","../../../../../../../data/osws.sqlite-wal","../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite","../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-shm","../../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-wal","../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite","../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-shm","../../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-wal","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/analytics.sqlite","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-shm","../../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-wal","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/analytics.sqlite","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-shm","../../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-wal","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/analytics.sqlite","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-shm","../../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-wal","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/analytics.sqlite","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-shm","../../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-wal","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/analytics.sqlite","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-shm","../../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-wal","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/analytics.sqlite","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-shm","../../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-wal","../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../node_modules/bindings/bindings.js","../../../../../../../node_modules/bindings/package.json","../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../node_modules/next/package.json","../../../../../../../package.json","../../../../../../package.json","../../../../../chunks/1692.js","../../../../../chunks/3343.js","../../../../../chunks/4586.js","../../../../../chunks/6151.js","../../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/sync/templates/[id]/route_client-reference-manifest.js b/.next/server/app/api/sync/templates/[id]/route_client-reference-manifest.js index 735b92bb9e6917df9024ef4e98689568b3fdfebb..a6d4b14d745ff39080c608046a4a5caaac37dcbc 100644 --- a/.next/server/app/api/sync/templates/[id]/route_client-reference-manifest.js +++ b/.next/server/app/api/sync/templates/[id]/route_client-reference-manifest.js @@ -1 +1 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/sync/templates/[id]/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/sync/templates/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/sync/templates/[id]/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/sync/templates/[id]/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/sync/templates/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/sync/templates/[id]/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/sync/templates/route.js b/.next/server/app/api/sync/templates/route.js index db0911c612c6104ad44a34313ed956de6e407882..ce46e452af298886067818ec6f444f53946fea6a 100644 --- a/.next/server/app/api/sync/templates/route.js +++ b/.next/server/app/api/sync/templates/route.js @@ -1 +1 @@ -"use strict";(()=>{var a={};a.id=3771,a.ids=[3771],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},75414:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>F,patchFetch:()=>E,routeModule:()=>A,serverHooks:()=>D,workAsyncStorage:()=>B,workUnitAsyncStorage:()=>C});var d={};c.r(d),c.d(d,{GET:()=>y,POST:()=>z});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(97778),w=c(39588),x=c(95012);async function y(){try{await (0,w.oC)();let a=await (0,v.B)();await a.init();let b=await a.getAllCustomTemplates();return await a.close?.(),u.NextResponse.json({success:!0,templates:b})}catch(a){if(x.v.error("[API /api/sync/templates GET] Error:",a),a instanceof Error&&"Unauthorized"===a.message)return u.NextResponse.json({error:"Unauthorized"},{status:401});return u.NextResponse.json({error:a instanceof Error?a.message:"Failed to fetch templates"},{status:500})}}async function z(a){try{await (0,w.oC)();let{templates:b}=await a.json();if(!b||!Array.isArray(b))return u.NextResponse.json({error:"Invalid templates data - expected array"},{status:400});let c=await (0,v.B)();await c.init();let d=0,e=0,f=[];for(let a of b)try{let b=await c.getCustomTemplate(a.id),f={...a,updatedAt:new Date};await c.saveCustomTemplate(f),b?e++:d++}catch(b){f.push(`Failed to sync template "${a.name}": ${b instanceof Error?b.message:"Unknown error"}`)}return await c.close?.(),u.NextResponse.json({success:0===f.length,created:d,updated:e,errors:f.length>0?f:void 0})}catch(a){if(x.v.error("[API /api/sync/templates POST] Error:",a),a instanceof Error&&"Unauthorized"===a.message)return u.NextResponse.json({error:"Unauthorized"},{status:401});return u.NextResponse.json({error:a instanceof Error?a.message:"Failed to sync templates"},{status:500})}}let A=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/sync/templates/route",pathname:"/api/sync/templates",filename:"route",bundlePath:"app/api/sync/templates/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/sync/templates/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:B,workUnitAsyncStorage:C,serverHooks:D}=A;function E(){return(0,g.patchFetch)({workAsyncStorage:B,workUnitAsyncStorage:C})}async function F(a,b,c){var d;let e="/api/sync/templates/route";"/index"===e&&(e="/");let g=await A.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:y,routerServerContext:z,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(y.dynamicRoutes[E]||y.routes[D]);if(F&&!x){let a=!!y.routes[D],b=y.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||A.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===A.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:y,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>A.onRequestError(a,b,d,z)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>A.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await A.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},z),b}},l=await A.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await A.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},95012:(a,b,c)=>{c.d(b,{v:()=>g});let d={debug:10,info:20,warn:30,error:40,silent:50},e="undefined"!=typeof process&&"warn"||"warn";function f(a){return d[e]<=d[a]}let g={debug:(...a)=>{f("debug")&&console.debug(...a)},info:(...a)=>{f("info")&&console.info(...a)},warn:(...a)=>{f("warn")&&console.warn(...a)},error:(...a)=>{f("error")&&console.error(...a)}}}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,726],()=>b(b.s=75414));module.exports=c})(); \ No newline at end of file +"use strict";(()=>{var a={};a.id=3771,a.ids=[3771],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32524:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},33873:a=>{a.exports=require("path")},39588:(a,b,c)=>{c.d(b,{C0:()=>l,Ht:()=>k,gV:()=>j,jw:()=>i,oC:()=>m});var d=c(84440),e=c(47671),f=c(86802);let g="osw_session";function h(){let a=process.env.SESSION_SECRET;if(!a)throw Error("SESSION_SECRET environment variable not set");return new TextEncoder().encode(a)}async function i(a,b,c=!0){let e=h(),f=Math.floor((Date.now()+864e5)/1e3);return await new d.P({userId:a,email:b,isAdmin:c}).setProtectedHeader({alg:"HS256"}).setExpirationTime(f).setIssuedAt().sign(e)}async function j(a){try{let b=h(),{payload:c}=await (0,e.V)(a,b);return{userId:c.userId,email:c.email,isAdmin:c.isAdmin,exp:c.exp}}catch(a){return null}}async function k(){let a=await (0,f.UL)(),b=a.get(g)?.value;return b?j(b):null}async function l(){(await (0,f.UL)()).delete(g)}async function m(){let a=await k();if(!a)throw Error("Unauthorized");return a}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},75414:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>F,patchFetch:()=>E,routeModule:()=>A,serverHooks:()=>D,workAsyncStorage:()=>B,workUnitAsyncStorage:()=>C});var d={};c.r(d),c.d(d,{GET:()=>y,POST:()=>z});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(32907),w=c(39588),x=c(95012);async function y(){try{await (0,w.oC)();let a=await (0,v.B)();await a.init();let b=await a.getAllCustomTemplates();return await a.close?.(),u.NextResponse.json({success:!0,templates:b})}catch(a){if(x.v.error("[API /api/sync/templates GET] Error:",a),a instanceof Error&&"Unauthorized"===a.message)return u.NextResponse.json({error:"Unauthorized"},{status:401});return u.NextResponse.json({error:a instanceof Error?a.message:"Failed to fetch templates"},{status:500})}}async function z(a){try{await (0,w.oC)();let{templates:b}=await a.json();if(!b||!Array.isArray(b))return u.NextResponse.json({error:"Invalid templates data - expected array"},{status:400});let c=await (0,v.B)();await c.init();let d=0,e=0,f=[];for(let a of b)try{let b=await c.getCustomTemplate(a.id),f={...a,updatedAt:new Date};await c.saveCustomTemplate(f),b?e++:d++}catch(b){f.push(`Failed to sync template "${a.name}": ${b instanceof Error?b.message:"Unknown error"}`)}return await c.close?.(),u.NextResponse.json({success:0===f.length,created:d,updated:e,errors:f.length>0?f:void 0})}catch(a){if(x.v.error("[API /api/sync/templates POST] Error:",a),a instanceof Error&&"Unauthorized"===a.message)return u.NextResponse.json({error:"Unauthorized"},{status:401});return u.NextResponse.json({error:a instanceof Error?a.message:"Failed to sync templates"},{status:500})}}let A=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/sync/templates/route",pathname:"/api/sync/templates",filename:"route",bundlePath:"app/api/sync/templates/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/sync/templates/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:B,workUnitAsyncStorage:C,serverHooks:D}=A;function E(){return(0,g.patchFetch)({workAsyncStorage:B,workUnitAsyncStorage:C})}async function F(a,b,c){var d;let e="/api/sync/templates/route";"/index"===e&&(e="/");let g=await A.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:y,routerServerContext:z,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(y.dynamicRoutes[E]||y.routes[D]);if(F&&!x){let a=!!y.routes[D],b=y.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||A.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===A.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:y,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>A.onRequestError(a,b,d,z)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>A.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await A.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},z),b}},l=await A.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await A.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},95012:(a,b,c)=>{c.d(b,{v:()=>g});let d={debug:10,info:20,warn:30,error:40,silent:50},e="undefined"!=typeof process&&"warn"||"warn";function f(a){return d[e]<=d[a]}let g={debug:(...a)=>{f("debug")&&console.debug(...a)},info:(...a)=>{f("info")&&console.info(...a)},warn:(...a)=>{f("warn")&&console.warn(...a)},error:(...a)=>{f("error")&&console.error(...a)}}}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6151,3343],()=>b(b.s=75414));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/api/sync/templates/route.js.nft.json b/.next/server/app/api/sync/templates/route.js.nft.json index d7430d51ec26b60a3b1db7e68bd4a53160f2d344..54f4d5d4911d0f745374413a7934569ddbf7180d 100644 --- a/.next/server/app/api/sync/templates/route.js.nft.json +++ b/.next/server/app/api/sync/templates/route.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../data/osws.sqlite","../../../../../../data/osws.sqlite-shm","../../../../../../data/osws.sqlite-wal","../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../node_modules/better-sqlite3/package.json","../../../../../../node_modules/bindings/bindings.js","../../../../../../node_modules/bindings/package.json","../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../node_modules/next/package.json","../../../../../../package.json","../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite","../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-shm","../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-wal","../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite","../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-shm","../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-wal","../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite","../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-shm","../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-wal","../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite","../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-shm","../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-wal","../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite","../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-shm","../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-wal","../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite","../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-shm","../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-wal","../../../../../package.json","../../../../chunks/1692.js","../../../../chunks/4586.js","../../../../chunks/6151.js","../../../../chunks/726.js","../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../data/osws.sqlite","../../../../../../data/osws.sqlite-shm","../../../../../../data/osws.sqlite-wal","../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite","../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-shm","../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-wal","../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite","../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-shm","../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-wal","../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/analytics.sqlite","../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite","../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-shm","../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-wal","../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/analytics.sqlite","../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite","../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-shm","../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-wal","../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/analytics.sqlite","../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite","../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-shm","../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-wal","../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/analytics.sqlite","../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite","../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-shm","../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-wal","../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/analytics.sqlite","../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite","../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-shm","../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-wal","../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/analytics.sqlite","../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite","../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-shm","../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-wal","../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../node_modules/better-sqlite3/package.json","../../../../../../node_modules/bindings/bindings.js","../../../../../../node_modules/bindings/package.json","../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../node_modules/next/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1692.js","../../../../chunks/3343.js","../../../../chunks/4586.js","../../../../chunks/6151.js","../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/api/sync/templates/route_client-reference-manifest.js b/.next/server/app/api/sync/templates/route_client-reference-manifest.js index 3e975ddcfbb9553ab8524006f64bd3dc1fb60a03..d8749995bcaeef17fd4b4f769dc5b550e4b7c159 100644 --- a/.next/server/app/api/sync/templates/route_client-reference-manifest.js +++ b/.next/server/app/api/sync/templates/route_client-reference-manifest.js @@ -1 +1 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/sync/templates/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/sync/templates/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/sync/templates/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/sync/templates/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/api/validate-key/route_client-reference-manifest.js b/.next/server/app/api/validate-key/route_client-reference-manifest.js index c84513f9f34acc1b584d856bba34c9a05bc99242..152243319f51cd8802712cdb3d3cc3ed563c33d3 100644 --- a/.next/server/app/api/validate-key/route_client-reference-manifest.js +++ b/.next/server/app/api/validate-key/route_client-reference-manifest.js @@ -1 +1 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/validate-key/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/validate-key/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/validate-key/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/api/validate-key/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/deployments/[id]/[...path]/route.js b/.next/server/app/deployments/[id]/[...path]/route.js new file mode 100644 index 0000000000000000000000000000000000000000..4dcc72bcf1ec1b0f738554140e0670e7ff1ee86a --- /dev/null +++ b/.next/server/app/deployments/[id]/[...path]/route.js @@ -0,0 +1 @@ +"use strict";(()=>{var a={};a.id=2785,a.ids=[2785],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{a.exports=require("path")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55467:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>G,patchFetch:()=>F,routeModule:()=>B,serverHooks:()=>E,workAsyncStorage:()=>C,workUnitAsyncStorage:()=>D});var d={};c.r(d),c.d(d,{GET:()=>A});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(29021),w=c(33873),x=c.n(w),y=c(94471);let z={html:"text/html",htm:"text/html",css:"text/css",js:"application/javascript",json:"application/json",png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",svg:"image/svg+xml",ico:"image/x-icon",webp:"image/webp",woff:"font/woff",woff2:"font/woff2",ttf:"font/ttf",eot:"application/vnd.ms-fontobject",txt:"text/plain",pdf:"application/pdf",xml:"application/xml"};async function A(a,{params:b}){let{id:c,path:d=[]}=await b,e=d.length>0?d.join("/"):"index.html";try{let b=x().join(process.cwd(),"public","sites",c,e);try{await v.promises.access(b)}catch{return(0,y.ad)({deploymentId:c,path:"/"+e,statusCode:404,ip:a.headers.get("x-forwarded-for")||a.headers.get("x-real-ip")||"unknown",userAgent:a.headers.get("user-agent")||""}),new u.NextResponse("File not found",{status:404})}let d=await v.promises.readFile(b),f=z[e.split(".").pop()?.toLowerCase()||""]||"application/octet-stream";return(0,y.ad)({deploymentId:c,path:"/"+e,statusCode:200,ip:a.headers.get("x-forwarded-for")||a.headers.get("x-real-ip")||"unknown",userAgent:a.headers.get("user-agent")||""}),new u.NextResponse(new Uint8Array(d),{status:200,headers:{"Content-Type":f,"Cache-Control":"public, max-age=3600"}})}catch(b){return console.error("[Deployments Route] Error:",b),(0,y.ad)({deploymentId:c,path:"/"+e,statusCode:500,ip:a.headers.get("x-forwarded-for")||a.headers.get("x-real-ip")||"unknown",userAgent:a.headers.get("user-agent")||""}),new u.NextResponse("Internal server error",{status:500})}}let B=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/deployments/[id]/[...path]/route",pathname:"/deployments/[id]/[...path]",filename:"route",bundlePath:"app/deployments/[id]/[...path]/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/deployments/[id]/[...path]/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:C,workUnitAsyncStorage:D,serverHooks:E}=B;function F(){return(0,g.patchFetch)({workAsyncStorage:C,workUnitAsyncStorage:D})}async function G(a,b,c){var d;let e="/deployments/[id]/[...path]/route";"/index"===e&&(e="/");let g=await B.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:y,routerServerContext:z,isOnDemandRevalidate:A,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(y.dynamicRoutes[E]||y.routes[D]);if(F&&!x){let a=!!y.routes[D],b=y.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||B.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===B.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:y,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>B.onRequestError(a,b,d,z)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>B.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&A&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await B.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:A})},z),b}},l=await B.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:A,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",A?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await B.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:A})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6643],()=>b(b.s=55467));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/deployments/[id]/[...path]/route.js.nft.json b/.next/server/app/deployments/[id]/[...path]/route.js.nft.json new file mode 100644 index 0000000000000000000000000000000000000000..5f04af28e1e5c8a88202cd0f71f02302099a8e66 --- /dev/null +++ b/.next/server/app/deployments/[id]/[...path]/route.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../../../data/osws.sqlite","../../../../../../data/osws.sqlite-shm","../../../../../../data/osws.sqlite-wal","../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite","../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-shm","../../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-wal","../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite","../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-shm","../../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-wal","../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/analytics.sqlite","../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite","../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-shm","../../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-wal","../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/analytics.sqlite","../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite","../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-shm","../../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-wal","../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/analytics.sqlite","../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite","../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-shm","../../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-wal","../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/analytics.sqlite","../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite","../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-shm","../../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-wal","../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/analytics.sqlite","../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite","../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-shm","../../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-wal","../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/analytics.sqlite","../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite","../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-shm","../../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-wal","../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../node_modules/better-sqlite3/package.json","../../../../../../node_modules/bindings/bindings.js","../../../../../../node_modules/bindings/package.json","../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../node_modules/next/package.json","../../../../../../package.json","../../../../../../public/sites/039b8554-0a87-42f7-a969-570c3fa99cb5/aukioloajat.html","../../../../../../public/sites/039b8554-0a87-42f7-a969-570c3fa99cb5/hinnat.html","../../../../../../public/sites/039b8554-0a87-42f7-a969-570c3fa99cb5/index.html","../../../../../../public/sites/039b8554-0a87-42f7-a969-570c3fa99cb5/palvelut.html","../../../../../../public/sites/039b8554-0a87-42f7-a969-570c3fa99cb5/robots.txt","../../../../../../public/sites/039b8554-0a87-42f7-a969-570c3fa99cb5/scripts/main.js","../../../../../../public/sites/039b8554-0a87-42f7-a969-570c3fa99cb5/sitemap.xml","../../../../../../public/sites/039b8554-0a87-42f7-a969-570c3fa99cb5/styles/style.css","../../../../../../public/sites/039b8554-0a87-42f7-a969-570c3fa99cb5/yhteystiedot.html","../../../../../../public/sites/08425b89-59bf-49b1-965c-67b67c46e5c4/blog/getting-started.html","../../../../../../public/sites/08425b89-59bf-49b1-965c-67b67c46e5c4/blog/hello-world.html","../../../../../../public/sites/08425b89-59bf-49b1-965c-67b67c46e5c4/index.html","../../../../../../public/sites/08425b89-59bf-49b1-965c-67b67c46e5c4/robots.txt","../../../../../../public/sites/08425b89-59bf-49b1-965c-67b67c46e5c4/scripts/main.js","../../../../../../public/sites/08425b89-59bf-49b1-965c-67b67c46e5c4/sitemap.xml","../../../../../../public/sites/08425b89-59bf-49b1-965c-67b67c46e5c4/styles/style.css","../../../../../../public/sites/18efcdfd-9309-45d1-bf13-82a968da7216/about.html","../../../../../../public/sites/18efcdfd-9309-45d1-bf13-82a968da7216/index.html","../../../../../../public/sites/18efcdfd-9309-45d1-bf13-82a968da7216/plan.md","../../../../../../public/sites/18efcdfd-9309-45d1-bf13-82a968da7216/players.html","../../../../../../public/sites/18efcdfd-9309-45d1-bf13-82a968da7216/robots.txt","../../../../../../public/sites/18efcdfd-9309-45d1-bf13-82a968da7216/schedule.html","../../../../../../public/sites/18efcdfd-9309-45d1-bf13-82a968da7216/scripts/main.js","../../../../../../public/sites/18efcdfd-9309-45d1-bf13-82a968da7216/sitemap.xml","../../../../../../public/sites/18efcdfd-9309-45d1-bf13-82a968da7216/styles/style.css","../../../../../../public/sites/18efcdfd-9309-45d1-bf13-82a968da7216/testing.txt","../../../../../../public/sites/20af6c75-4c1b-4c53-94bc-fa2ff7e445fa/benefits.html","../../../../../../public/sites/20af6c75-4c1b-4c53-94bc-fa2ff7e445fa/equipment.html","../../../../../../public/sites/20af6c75-4c1b-4c53-94bc-fa2ff7e445fa/getting-started.html","../../../../../../public/sites/20af6c75-4c1b-4c53-94bc-fa2ff7e445fa/index.html","../../../../../../public/sites/20af6c75-4c1b-4c53-94bc-fa2ff7e445fa/scripts/main.js","../../../../../../public/sites/20af6c75-4c1b-4c53-94bc-fa2ff7e445fa/styles/style.css","../../../../../../public/sites/20af6c75-4c1b-4c53-94bc-fa2ff7e445fa/training.html","../../../../../../public/sites/22950e26-4edf-45c9-8719-b212f697a8b1/index.html","../../../../../../public/sites/22950e26-4edf-45c9-8719-b212f697a8b1/robots.txt","../../../../../../public/sites/22950e26-4edf-45c9-8719-b212f697a8b1/scripts/main.js","../../../../../../public/sites/22950e26-4edf-45c9-8719-b212f697a8b1/sitemap.xml","../../../../../../public/sites/22950e26-4edf-45c9-8719-b212f697a8b1/styles/style.css","../../../../../../public/sites/308c7d9c-09fe-4581-a361-4291db148cf3/index.html","../../../../../../public/sites/308c7d9c-09fe-4581-a361-4291db148cf3/robots.txt","../../../../../../public/sites/308c7d9c-09fe-4581-a361-4291db148cf3/scripts/main.js","../../../../../../public/sites/308c7d9c-09fe-4581-a361-4291db148cf3/sitemap.xml","../../../../../../public/sites/308c7d9c-09fe-4581-a361-4291db148cf3/styles/style.css","../../../../../../public/sites/505b4e67-9ba5-4396-9a76-9368a6848874/contact.html","../../../../../../public/sites/505b4e67-9ba5-4396-9a76-9368a6848874/index.html","../../../../../../public/sites/505b4e67-9ba5-4396-9a76-9368a6848874/scripts/main.js","../../../../../../public/sites/505b4e67-9ba5-4396-9a76-9368a6848874/services.html","../../../../../../public/sites/505b4e67-9ba5-4396-9a76-9368a6848874/styles/style.css","../../../../../../public/sites/6333fd6d-b2bf-4eb2-a48e-762b7a7be8b7/about.html","../../../../../../public/sites/6333fd6d-b2bf-4eb2-a48e-762b7a7be8b7/index.html","../../../../../../public/sites/6333fd6d-b2bf-4eb2-a48e-762b7a7be8b7/plan.md","../../../../../../public/sites/6333fd6d-b2bf-4eb2-a48e-762b7a7be8b7/players.html","../../../../../../public/sites/6333fd6d-b2bf-4eb2-a48e-762b7a7be8b7/robots.txt","../../../../../../public/sites/6333fd6d-b2bf-4eb2-a48e-762b7a7be8b7/schedule.html","../../../../../../public/sites/6333fd6d-b2bf-4eb2-a48e-762b7a7be8b7/scripts/main.js","../../../../../../public/sites/6333fd6d-b2bf-4eb2-a48e-762b7a7be8b7/sitemap.xml","../../../../../../public/sites/6333fd6d-b2bf-4eb2-a48e-762b7a7be8b7/styles/style.css","../../../../../../public/sites/6333fd6d-b2bf-4eb2-a48e-762b7a7be8b7/testing.txt","../../../../../../public/sites/69d3cb0a-3cd3-4d41-981c-3d4ba5c978cc/contact.html","../../../../../../public/sites/69d3cb0a-3cd3-4d41-981c-3d4ba5c978cc/data/services.json","../../../../../../public/sites/69d3cb0a-3cd3-4d41-981c-3d4ba5c978cc/data/testimonials.json","../../../../../../public/sites/69d3cb0a-3cd3-4d41-981c-3d4ba5c978cc/index.html","../../../../../../public/sites/69d3cb0a-3cd3-4d41-981c-3d4ba5c978cc/public/css/styles.css","../../../../../../public/sites/69d3cb0a-3cd3-4d41-981c-3d4ba5c978cc/public/js/main.js","../../../../../../public/sites/69d3cb0a-3cd3-4d41-981c-3d4ba5c978cc/robots.txt","../../../../../../public/sites/69d3cb0a-3cd3-4d41-981c-3d4ba5c978cc/services.html","../../../../../../public/sites/69d3cb0a-3cd3-4d41-981c-3d4ba5c978cc/sitemap.xml","../../../../../../public/sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/PLAN.md","../../../../../../public/sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/about.html","../../../../../../public/sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/contact.html","../../../../../../public/sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/index.html","../../../../../../public/sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/practice-areas.html","../../../../../../public/sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/pricing.html","../../../../../../public/sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/robots.txt","../../../../../../public/sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/scripts/main.js","../../../../../../public/sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/sitemap.xml","../../../../../../public/sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/styles.css","../../../../../../public/sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/styles/style.css","../../../../../../public/sites/8a671c27-1498-4164-9cdf-5429469f45f6/PLAN.md","../../../../../../public/sites/8a671c27-1498-4164-9cdf-5429469f45f6/about.html","../../../../../../public/sites/8a671c27-1498-4164-9cdf-5429469f45f6/contact.html","../../../../../../public/sites/8a671c27-1498-4164-9cdf-5429469f45f6/index.html","../../../../../../public/sites/8a671c27-1498-4164-9cdf-5429469f45f6/robots.txt","../../../../../../public/sites/8a671c27-1498-4164-9cdf-5429469f45f6/scripts/main.js","../../../../../../public/sites/8a671c27-1498-4164-9cdf-5429469f45f6/sitemap.xml","../../../../../../public/sites/8a671c27-1498-4164-9cdf-5429469f45f6/styles/style.css","../../../../../../public/sites/9e5a46cf-1efd-4377-9da5-1e2eb63b8ca4/benefits.html","../../../../../../public/sites/9e5a46cf-1efd-4377-9da5-1e2eb63b8ca4/equipment.html","../../../../../../public/sites/9e5a46cf-1efd-4377-9da5-1e2eb63b8ca4/getting-started.html","../../../../../../public/sites/9e5a46cf-1efd-4377-9da5-1e2eb63b8ca4/index.html","../../../../../../public/sites/9e5a46cf-1efd-4377-9da5-1e2eb63b8ca4/robots.txt","../../../../../../public/sites/9e5a46cf-1efd-4377-9da5-1e2eb63b8ca4/scripts/main.js","../../../../../../public/sites/9e5a46cf-1efd-4377-9da5-1e2eb63b8ca4/sitemap.xml","../../../../../../public/sites/9e5a46cf-1efd-4377-9da5-1e2eb63b8ca4/styles/style.css","../../../../../../public/sites/9e5a46cf-1efd-4377-9da5-1e2eb63b8ca4/training.html","../../../../../../public/sites/a57c81e5-0175-49b9-b333-d0a4d1094271/index.html","../../../../../../public/sites/a57c81e5-0175-49b9-b333-d0a4d1094271/plan.md","../../../../../../public/sites/a57c81e5-0175-49b9-b333-d0a4d1094271/robots.txt","../../../../../../public/sites/a57c81e5-0175-49b9-b333-d0a4d1094271/scripts/main.js","../../../../../../public/sites/a57c81e5-0175-49b9-b333-d0a4d1094271/sitemap.xml","../../../../../../public/sites/a57c81e5-0175-49b9-b333-d0a4d1094271/styles/style.css","../../../../../../public/sites/af3ba693-4c5a-4564-9c93-0c9b9f3d74f1/index.html","../../../../../../public/sites/af3ba693-4c5a-4564-9c93-0c9b9f3d74f1/plan.md","../../../../../../public/sites/af3ba693-4c5a-4564-9c93-0c9b9f3d74f1/robots.txt","../../../../../../public/sites/af3ba693-4c5a-4564-9c93-0c9b9f3d74f1/scripts/animations.js","../../../../../../public/sites/af3ba693-4c5a-4564-9c93-0c9b9f3d74f1/scripts/main.js","../../../../../../public/sites/af3ba693-4c5a-4564-9c93-0c9b9f3d74f1/sitemap.xml","../../../../../../public/sites/af3ba693-4c5a-4564-9c93-0c9b9f3d74f1/styles/style.css","../../../../../../public/sites/be28436b-5a58-4c1b-a1da-ec28036b41e3/index.html","../../../../../../public/sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/PLAN.md","../../../../../../public/sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/about.html","../../../../../../public/sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/contact.html","../../../../../../public/sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/index.html","../../../../../../public/sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/menu.html","../../../../../../public/sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/robots.txt","../../../../../../public/sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/scripts/main.js","../../../../../../public/sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/sitemap.xml","../../../../../../public/sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/styles.css","../../../../../../public/sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/styles/style.css","../../../../../../public/sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/index.html","../../../../../../public/sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/robots.txt","../../../../../../public/sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/scripts/main.js","../../../../../../public/sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/sitemap.xml","../../../../../../public/sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/styles/style.css","../../../../../../public/sites/ea724ee7-fc57-4bde-a505-e083d72d52b2/index.html","../../../../../../public/sites/ea724ee7-fc57-4bde-a505-e083d72d52b2/robots.txt","../../../../../../public/sites/ea724ee7-fc57-4bde-a505-e083d72d52b2/scripts/main.js","../../../../../../public/sites/ea724ee7-fc57-4bde-a505-e083d72d52b2/sitemap.xml","../../../../../../public/sites/ea724ee7-fc57-4bde-a505-e083d72d52b2/styles/style.css","../../../../../package.json","../../../../chunks/1692.js","../../../../chunks/4586.js","../../../../chunks/6643.js","../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/deployments/[id]/[...path]/route_client-reference-manifest.js b/.next/server/app/deployments/[id]/[...path]/route_client-reference-manifest.js new file mode 100644 index 0000000000000000000000000000000000000000..533e4d91e90127e68d330e9c7ec71931bf127569 --- /dev/null +++ b/.next/server/app/deployments/[id]/[...path]/route_client-reference-manifest.js @@ -0,0 +1 @@ +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/deployments/[id]/[...path]/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/deployments/[id]/[...path]/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/deployments/[id]/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/deployments/[id]/route.js b/.next/server/app/deployments/[id]/route.js new file mode 100644 index 0000000000000000000000000000000000000000..b5c2ee384067005402a621a170a79be58c0d7217 --- /dev/null +++ b/.next/server/app/deployments/[id]/route.js @@ -0,0 +1 @@ +"use strict";(()=>{var a={};a.id=5943,a.ids=[5943],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{a.exports=require("path")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},71545:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>F,patchFetch:()=>E,routeModule:()=>A,serverHooks:()=>D,workAsyncStorage:()=>B,workUnitAsyncStorage:()=>C});var d={};c.r(d),c.d(d,{GET:()=>z});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(29021),w=c(33873),x=c.n(w),y=c(94471);async function z(a,{params:b}){let c=200,{id:d}=await b;try{let b=x().join(process.cwd(),"public","sites",d,"index.html");try{await v.promises.access(b)}catch{return c=404,(0,y.ad)({deploymentId:d,path:"/index.html",statusCode:c,ip:a.headers.get("x-forwarded-for")||a.headers.get("x-real-ip")||"unknown",userAgent:a.headers.get("user-agent")||""}),new u.NextResponse("Deployment not found",{status:404})}let e=await v.promises.readFile(b,"utf-8");return(0,y.ad)({deploymentId:d,path:"/index.html",statusCode:c,ip:a.headers.get("x-forwarded-for")||a.headers.get("x-real-ip")||"unknown",userAgent:a.headers.get("user-agent")||""}),new u.NextResponse(e,{status:200,headers:{"Content-Type":"text/html","Cache-Control":"public, max-age=3600"}})}catch(b){return console.error("[Deployments Route] Error:",b),(0,y.ad)({deploymentId:d,path:"/index.html",statusCode:500,ip:a.headers.get("x-forwarded-for")||a.headers.get("x-real-ip")||"unknown",userAgent:a.headers.get("user-agent")||""}),new u.NextResponse("Internal server error",{status:500})}}let A=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/deployments/[id]/route",pathname:"/deployments/[id]",filename:"route",bundlePath:"app/deployments/[id]/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/deployments/[id]/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:B,workUnitAsyncStorage:C,serverHooks:D}=A;function E(){return(0,g.patchFetch)({workAsyncStorage:B,workUnitAsyncStorage:C})}async function F(a,b,c){var d;let e="/deployments/[id]/route";"/index"===e&&(e="/");let g=await A.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:y,routerServerContext:z,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(y.dynamicRoutes[E]||y.routes[D]);if(F&&!x){let a=!!y.routes[D],b=y.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||A.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===A.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:y,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>A.onRequestError(a,b,d,z)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>A.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await A.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},z),b}},l=await A.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await A.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692,6643],()=>b(b.s=71545));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/deployments/[id]/route.js.nft.json b/.next/server/app/deployments/[id]/route.js.nft.json new file mode 100644 index 0000000000000000000000000000000000000000..b75240d0b2d3e81c7e7ba50114915682d86105f6 --- /dev/null +++ b/.next/server/app/deployments/[id]/route.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../../data/osws.sqlite","../../../../../data/osws.sqlite-shm","../../../../../data/osws.sqlite-wal","../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite","../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-shm","../../../../../data/projects/a7e2194e-45bd-4a7c-ba34-19c062e4bad8/database.sqlite-wal","../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite","../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-shm","../../../../../data/projects/c63eef59-90c2-4387-b2b8-defcc369a9a4/database.sqlite-wal","../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/analytics.sqlite","../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite","../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-shm","../../../../../deployments/08425b89-59bf-49b1-965c-67b67c46e5c4/runtime.sqlite-wal","../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/analytics.sqlite","../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite","../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-shm","../../../../../deployments/308c7d9c-09fe-4581-a361-4291db148cf3/runtime.sqlite-wal","../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/analytics.sqlite","../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite","../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-shm","../../../../../deployments/7882e8c5-bdb9-4f0c-851c-cb9657291796/runtime.sqlite-wal","../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/analytics.sqlite","../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite","../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-shm","../../../../../deployments/8a671c27-1498-4164-9cdf-5429469f45f6/runtime.sqlite-wal","../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/analytics.sqlite","../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite","../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-shm","../../../../../deployments/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/runtime.sqlite-wal","../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/analytics.sqlite","../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite","../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-shm","../../../../../deployments/e7323e74-1e4d-4439-8dc7-cfc9166361b7/runtime.sqlite-wal","../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../node_modules/better-sqlite3/package.json","../../../../../node_modules/bindings/bindings.js","../../../../../node_modules/bindings/package.json","../../../../../node_modules/file-uri-to-path/index.js","../../../../../node_modules/file-uri-to-path/package.json","../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../node_modules/next/dist/lib/constants.js","../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../node_modules/next/dist/lib/is-error.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../node_modules/next/package.json","../../../../../package.json","../../../../../public/sites/039b8554-0a87-42f7-a969-570c3fa99cb5/index.html","../../../../../public/sites/08425b89-59bf-49b1-965c-67b67c46e5c4/index.html","../../../../../public/sites/18efcdfd-9309-45d1-bf13-82a968da7216/index.html","../../../../../public/sites/20af6c75-4c1b-4c53-94bc-fa2ff7e445fa/index.html","../../../../../public/sites/22950e26-4edf-45c9-8719-b212f697a8b1/index.html","../../../../../public/sites/308c7d9c-09fe-4581-a361-4291db148cf3/index.html","../../../../../public/sites/505b4e67-9ba5-4396-9a76-9368a6848874/index.html","../../../../../public/sites/6333fd6d-b2bf-4eb2-a48e-762b7a7be8b7/index.html","../../../../../public/sites/69d3cb0a-3cd3-4d41-981c-3d4ba5c978cc/index.html","../../../../../public/sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/index.html","../../../../../public/sites/8a671c27-1498-4164-9cdf-5429469f45f6/index.html","../../../../../public/sites/9e5a46cf-1efd-4377-9da5-1e2eb63b8ca4/index.html","../../../../../public/sites/a57c81e5-0175-49b9-b333-d0a4d1094271/index.html","../../../../../public/sites/af3ba693-4c5a-4564-9c93-0c9b9f3d74f1/index.html","../../../../../public/sites/be28436b-5a58-4c1b-a1da-ec28036b41e3/index.html","../../../../../public/sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/index.html","../../../../../public/sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/index.html","../../../../../public/sites/ea724ee7-fc57-4bde-a505-e083d72d52b2/index.html","../../../../package.json","../../../chunks/1692.js","../../../chunks/4586.js","../../../chunks/6643.js","../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/deployments/[id]/route_client-reference-manifest.js b/.next/server/app/deployments/[id]/route_client-reference-manifest.js new file mode 100644 index 0000000000000000000000000000000000000000..50f0b4c03010719f148f9df064b36215e780d2bb --- /dev/null +++ b/.next/server/app/deployments/[id]/route_client-reference-manifest.js @@ -0,0 +1 @@ +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/deployments/[id]/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/deployments/[id]/[...path]/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/deployments/[id]/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/index.html b/.next/server/app/index.html index fa458bedf210265e91a3574f2be054201616596f..956b0f8f6aa2cbcc128cda1462dba2b37deb4f57 100644 --- a/.next/server/app/index.html +++ b/.next/server/app/index.html @@ -1 +1 @@ -Open Source Web Studio | Agentic AI Development 🎨

Loading...

\ No newline at end of file +Open Source Web Studio | Agentic AI Development 🎨

Loading...

\ No newline at end of file diff --git a/.next/server/app/index.rsc b/.next/server/app/index.rsc index ee63ef39dff36d9ea12e5162a9b282fddb015df8..a1b7098a1e1d43699a6b6975d774dc060fed9dc4 100644 --- a/.next/server/app/index.rsc +++ b/.next/server/app/index.rsc @@ -5,7 +5,7 @@ 5:I[9766,[],""] 6:I[98924,[],""] 7:I[81959,[],"ClientPageRoot"] -8:I[86807,["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"default"] +8:I[86807,["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"default"] b:I[24431,[],"OutletBoundary"] d:I[15278,[],"AsyncMetadataOutlet"] f:I[24431,[],"ViewportBoundary"] @@ -15,8 +15,8 @@ f:I[24431,[],"ViewportBoundary"] :HL["/_next/static/media/58f662ed5ba12a72-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}] :HL["/_next/static/media/c3f6eb667c0186c5-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}] :HL["/_next/static/media/e4af272ccee01ff0-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}] -:HL["/_next/static/css/634e649c3cc2540f.css","style"] -0:{"P":null,"b":"Dj_mU3ym-gcopP6URA30w","p":"","c":["",""],"i":false,"f":[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/634e649c3cc2540f.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"__variable_f367f3 __variable_438d47 antialiased bg-background h-[100dvh] overflow-hidden","suppressHydrationWarning":true,"children":["$","$L2",null,{"children":[["$","$L3",null,{"richColors":true,"position":"bottom-center"}],["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]]}]}]}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L7",null,{"Component":"$8","searchParams":{},"params":{},"promises":["$@9","$@a"]}],null,["$","$Lb",null,{"children":["$Lc",["$","$Ld",null,{"promise":"$@e"}]]}]]}],{},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$Lf",null,{"children":"$L10"}],["$","meta",null,{"name":"next-size-adjust","content":""}]],["$","$L11",null,{"children":["$","div",null,{"hidden":true,"children":["$","$12",null,{"fallback":null,"children":"$L13"}]}]}]]}],false]],"m":"$undefined","G":["$14",[]],"s":false,"S":true} +:HL["/_next/static/css/7a4f097ac51b20a7.css","style"] +0:{"P":null,"b":"6U79IAVVts3v8bcNT6dWz","p":"","c":["",""],"i":false,"f":[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/7a4f097ac51b20a7.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"__variable_f367f3 __variable_438d47 antialiased bg-background h-[100dvh] overflow-hidden","suppressHydrationWarning":true,"children":["$","$L2",null,{"children":[["$","$L3",null,{"richColors":true,"position":"bottom-center"}],["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]]}]}]}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L7",null,{"Component":"$8","searchParams":{},"params":{},"promises":["$@9","$@a"]}],null,["$","$Lb",null,{"children":["$Lc",["$","$Ld",null,{"promise":"$@e"}]]}]]}],{},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$Lf",null,{"children":"$L10"}],["$","meta",null,{"name":"next-size-adjust","content":""}]],["$","$L11",null,{"children":["$","div",null,{"hidden":true,"children":["$","$12",null,{"fallback":null,"children":"$L13"}]}]}]]}],false]],"m":"$undefined","G":["$14",[]],"s":false,"S":true} 9:{} a:"$0:f:0:1:2:children:1:props:children:0:props:params" 10:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1, maximum-scale=1"}],["$","meta","2",{"name":"theme-color","content":"#000000"}]] diff --git a/.next/server/app/page.js b/.next/server/app/page.js index eba00231ae53eccb6ce0da7cf69378f8da5715ef..70b92531b8f679feb623bef065cdc122e799b0bd 100644 --- a/.next/server/app/page.js +++ b/.next/server/app/page.js @@ -1,2 +1,2 @@ -(()=>{var a={};a.id=8974,a.ids=[8974],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1708:a=>{"use strict";a.exports=require("node:process")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},17742:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>d});let d=(0,c(97954).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx","default")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},26713:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/is-bot")},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{"use strict";a.exports=require("path")},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},46539:(a,b,c)=>{Promise.resolve().then(c.bind(c,74034))},55511:a=>{"use strict";a.exports=require("crypto")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},73136:a=>{"use strict";a.exports=require("node:url")},74034:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>v});var d=c(21124),e=c(38301),f=c.n(e),g=c(42378),h=c(83374),i=c(95919),j=c(14258),k=c(11610),l=c(69188),m=c(45914);c(15193),c(47247),c(42830);var n=c(93554),o=c(33305),p=c(19217),q=c(62949),r=c(85351);function s({open:a,onDismiss:b}){return(0,d.jsx)(o.lG,{open:a,onOpenChange:a=>{a||b()},children:(0,d.jsxs)(o.Cf,{className:"sm:max-w-md",children:[(0,d.jsxs)(o.c7,{children:[(0,d.jsx)(o.L3,{children:"Anonymous Usage Analytics"}),(0,d.jsx)(o.rr,{children:"Open Source Web Studio collects anonymous usage analytics to help improve the app"})]}),(0,d.jsxs)("div",{className:"space-y-4 text-sm text-muted-foreground leading-relaxed",children:[(0,d.jsxs)("p",{className:"text-sm",children:["Built with"," ",(0,d.jsx)("a",{href:"https://github.com/o-stahl/osw-analytics",target:"_blank",rel:"noopener noreferrer",className:"bg-orange-500/20 text-orange-400 hover:text-orange-300 px-1 py-0.5 rounded no-underline",children:"osw-analytics"}),", an open-source approach to analytics."]}),(0,d.jsx)(q.Nt,{children:(0,d.jsxs)("div",{className:"rounded-lg bg-muted/50",children:[(0,d.jsxs)(q.R6,{className:"flex items-center gap-1.5 w-full p-3 text-xs text-foreground hover:text-foreground transition-colors group",children:[(0,d.jsx)(r.A,{className:"h-3.5 w-3.5 transition-transform duration-200 group-data-[state=open]:rotate-180"}),"Details"]}),(0,d.jsx)(q.Ke,{children:(0,d.jsxs)("div",{className:"px-4 pb-4 space-y-3 text-sm text-muted-foreground",children:[(0,d.jsxs)("div",{children:[(0,d.jsxs)("p",{className:"font-bold text-foreground mb-1.5",children:["What will ",(0,d.jsx)("span",{className:"text-orange-400 uppercase",children:"not"})," be collected:"]}),(0,d.jsxs)("ul",{className:"list-disc pl-5 space-y-0.5",children:[(0,d.jsx)("li",{children:"Your prompts or messages"}),(0,d.jsx)("li",{children:"Code, file names, or file contents"}),(0,d.jsx)("li",{children:"API keys or credentials"}),(0,d.jsx)("li",{children:"Inference completions"}),(0,d.jsx)("li",{children:"Error messages"}),(0,d.jsx)("li",{children:"Anything that could identify you"})]})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("p",{className:"font-bold text-foreground mb-1.5",children:"What will be collected:"}),(0,d.jsxs)("ul",{className:"list-disc pl-5 space-y-0.5",children:[(0,d.jsx)("li",{children:"Which views are visited (e.g. dashboard, workspace, settings)"}),(0,d.jsx)("li",{children:"Which AI providers and models are selected"}),(0,d.jsx)("li",{children:"Whether tasks succeed or fail (not what was asked)"}),(0,d.jsx)("li",{children:"Which tools the AI uses and whether they work"}),(0,d.jsx)("li",{children:"API error types (not error messages)"}),(0,d.jsx)("li",{children:"Session heartbeats (how long the app is open)"}),(0,d.jsx)("li",{children:"A randomly generated ID stored in your browser to count unique visitors"})]})]})]})})]})})]}),(0,d.jsxs)(o.Es,{className:"flex items-center justify-between sm:justify-between gap-2",children:[(0,d.jsx)("button",{type:"button",className:"text-xs text-muted-foreground underline hover:text-foreground",onClick:()=>{(0,n._e)(!1),b()},children:"Disable analytics"}),(0,d.jsx)(p.$,{onClick:()=>{(0,n.u4)("telemetry_accepted"),b()},children:"Got it"})]})]})})}function t(){let a=(0,g.useSearchParams)();a.get("doc");let[b,c]=(0,e.useState)(null),[f,n]=(0,e.useState)("dashboard"),[o,p]=(0,e.useState)(!1),[q,r]=(0,e.useState)(!1),{state:t,setActiveProjectId:u,start:v}=(0,i.C)();a.get("settings"),t.currentStep?.id,t.status;let w=(0,e.useCallback)(a=>{n(a)},[]),x=(0,e.useCallback)(()=>{c(null),n("projects"),v&&v()},[v]),y=(0,e.useCallback)(()=>{localStorage.setItem("osw-telemetry-disclosed","true"),r(!1)},[]),z=(0,e.useMemo)(()=>b?(0,d.jsx)(h.a,{project:b,onBack:()=>c(null)}):(0,d.jsx)(l.f,{view:f,onProjectSelect:c,onNavigate:w,onStartTour:x}),[b,f,w,x]);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(k.M,{currentView:f,onNavigate:a=>n(a),onProjectSelect:c,onStartTour:x,onOpenAbout:()=>p(!0),showSidebar:!b,children:z}),(0,d.jsx)(j.V,{location:"global"}),(0,d.jsx)(m.V,{open:o,onOpenChange:p}),(0,d.jsx)(s,{open:q,onDismiss:y})]})}function u(){return(0,d.jsx)(i.g,{children:(0,d.jsx)(f().Suspense,{fallback:(0,d.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-[#0a0a0a]",children:(0,d.jsx)("p",{className:"text-zinc-400",children:"Loading..."})}),children:(0,d.jsx)(t,{})})})}function v(){return(0,g.useRouter)(),(0,d.jsx)(u,{})}},76760:a=>{"use strict";a.exports=require("node:path")},77725:a=>{"use strict";a.exports=require("stream/promises")},79428:a=>{"use strict";a.exports=require("buffer")},79551:a=>{"use strict";a.exports=require("url")},79748:a=>{"use strict";a.exports=require("fs/promises")},80144:(a,b,c)=>{"use strict";c.r(b),c.d(b,{GlobalError:()=>D.a,__next_app__:()=>J,handler:()=>L,pages:()=>I,routeModule:()=>K,tree:()=>H});var d=c(49754),e=c(9117),f=c(46595),g=c(32324),h=c(39326),i=c(38928),j=c(20175),k=c(12),l=c(54290),m=c(12696),n=c(82802),o=c(77533),p=c(45229),q=c(32822),r=c(261),s=c(26453),t=c(52474),u=c(26713),v=c(51356),w=c(62685),x=c(36225),y=c(63446),z=c(2762),A=c(45742),B=c(86439),C=c(81170),D=c.n(C),E=c(62506),F=c(91203),G={};for(let a in E)0>["default","tree","pages","GlobalError","__next_app__","routeModule","handler"].indexOf(a)&&(G[a]=()=>E[a]);c.d(b,G);let H=["",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(c.bind(c,17742)),"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx"]}]},{layout:[()=>Promise.resolve().then(c.bind(c,16953)),"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout.tsx"],"global-error":[()=>Promise.resolve().then(c.t.bind(c,81170,23)),"next/dist/client/components/builtin/global-error.js"],"not-found":[()=>Promise.resolve().then(c.t.bind(c,87028,23)),"next/dist/client/components/builtin/not-found.js"],forbidden:[()=>Promise.resolve().then(c.t.bind(c,90461,23)),"next/dist/client/components/builtin/forbidden.js"],unauthorized:[()=>Promise.resolve().then(c.t.bind(c,32768,23)),"next/dist/client/components/builtin/unauthorized.js"]}],I=["/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx"],J={require:c,loadChunk:()=>Promise.resolve()},K=new d.AppPageRouteModule({definition:{kind:e.RouteKind.APP_PAGE,page:"/page",pathname:"/",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:H},distDir:".next",relativeProjectDir:""});async function L(a,b,d){var C;let G="/page";"/index"===G&&(G="/");let M=(0,h.getRequestMeta)(a,"postponed"),N=(0,h.getRequestMeta)(a,"minimalMode"),O=await K.prepare(a,b,{srcPage:G,multiZoneDraftMode:!1});if(!O)return b.statusCode=400,b.end("Bad Request"),null==d.waitUntil||d.waitUntil.call(d,Promise.resolve()),null;let{buildId:P,query:Q,params:R,parsedUrl:S,pageIsDynamic:T,buildManifest:U,nextFontManifest:V,reactLoadableManifest:W,serverActionsManifest:X,clientReferenceManifest:Y,subresourceIntegrityManifest:Z,prerenderManifest:$,isDraftMode:_,resolvedPathname:aa,revalidateOnlyGenerated:ab,routerServerContext:ac,nextConfig:ad,interceptionRoutePatterns:ae}=O,af=S.pathname||"/",ag=(0,r.normalizeAppPath)(G),{isOnDemandRevalidate:ah}=O,ai=K.match(af,$),aj=!!$.routes[aa],ak=!!(ai||aj||$.routes[ag]),al=a.headers["user-agent"]||"",am=(0,u.getBotType)(al),an=(0,p.isHtmlBotRequest)(a),ao=(0,h.getRequestMeta)(a,"isPrefetchRSCRequest")??"1"===a.headers[t.NEXT_ROUTER_PREFETCH_HEADER],ap=(0,h.getRequestMeta)(a,"isRSCRequest")??!!a.headers[t.RSC_HEADER],aq=(0,s.getIsPossibleServerAction)(a),ar=(0,m.checkIsAppPPREnabled)(ad.experimental.ppr)&&(null==(C=$.routes[ag]??$.dynamicRoutes[ag])?void 0:C.renderingMode)==="PARTIALLY_STATIC",as=!1,at=!1,au=ar?M:void 0,av=ar&&ap&&!ao,aw=(0,h.getRequestMeta)(a,"segmentPrefetchRSCRequest"),ax=!al||(0,p.shouldServeStreamingMetadata)(al,ad.htmlLimitedBots);an&&ar&&(ak=!1,ax=!1);let ay=!0===K.isDev||!ak||"string"==typeof M||av,az=an&&ar,aA=null;_||!ak||ay||aq||au||av||(aA=aa);let aB=aA;!aB&&K.isDev&&(aB=aa),K.isDev||_||!ak||!ap||av||(0,k.d)(a.headers);let aC={...E,tree:H,pages:I,GlobalError:D(),handler:L,routeModule:K,__next_app__:J};X&&Y&&(0,o.setReferenceManifestsSingleton)({page:G,clientReferenceManifest:Y,serverActionsManifest:X,serverModuleMap:(0,q.createServerModuleMap)({serverActionsManifest:X})});let aD=a.method||"GET",aE=(0,g.getTracer)(),aF=aE.getActiveScopeSpan();try{let f=K.getVaryHeader(aa,ae);b.setHeader("Vary",f);let k=async(c,d)=>{let e=new l.NodeNextRequest(a),f=new l.NodeNextResponse(b);return K.render(e,f,d).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=aE.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==i.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${aD} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${aD} ${a.url}`)})},m=async({span:e,postponed:f,fallbackRouteParams:g})=>{let i={query:Q,params:R,page:ag,sharedContext:{buildId:P},serverComponentsHmrCache:(0,h.getRequestMeta)(a,"serverComponentsHmrCache"),fallbackRouteParams:g,renderOpts:{App:()=>null,Document:()=>null,pageConfig:{},ComponentMod:aC,Component:(0,j.T)(aC),params:R,routeModule:K,page:G,postponed:f,shouldWaitOnAllReady:az,serveStreamingMetadata:ax,supportsDynamicResponse:"string"==typeof f||ay,buildManifest:U,nextFontManifest:V,reactLoadableManifest:W,subresourceIntegrityManifest:Z,serverActionsManifest:X,clientReferenceManifest:Y,setIsrStatus:null==ac?void 0:ac.setIsrStatus,dir:c(33873).join(process.cwd(),K.relativeProjectDir),isDraftMode:_,isRevalidate:ak&&!f&&!av,botType:am,isOnDemandRevalidate:ah,isPossibleServerAction:aq,assetPrefix:ad.assetPrefix,nextConfigOutput:ad.output,crossOrigin:ad.crossOrigin,trailingSlash:ad.trailingSlash,previewProps:$.preview,deploymentId:ad.deploymentId,enableTainting:ad.experimental.taint,htmlLimitedBots:ad.htmlLimitedBots,devtoolSegmentExplorer:ad.experimental.devtoolSegmentExplorer,reactMaxHeadersLength:ad.reactMaxHeadersLength,multiZoneDraftMode:!1,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:ad.experimental.cacheLife,basePath:ad.basePath,serverActions:ad.experimental.serverActions,...as?{nextExport:!0,supportsDynamicResponse:!1,isStaticGeneration:!0,isRevalidate:!0,isDebugDynamicAccesses:as}:{},experimental:{isRoutePPREnabled:ar,expireTime:ad.expireTime,staleTimes:ad.experimental.staleTimes,cacheComponents:!!ad.experimental.cacheComponents,clientSegmentCache:!!ad.experimental.clientSegmentCache,clientParamParsing:!!ad.experimental.clientParamParsing,dynamicOnHover:!!ad.experimental.dynamicOnHover,inlineCss:!!ad.experimental.inlineCss,authInterrupts:!!ad.experimental.authInterrupts,clientTraceMetadata:ad.experimental.clientTraceMetadata||[]},waitUntil:d.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:()=>{},onInstrumentationRequestError:(b,c,d)=>K.onRequestError(a,b,d,ac),err:(0,h.getRequestMeta)(a,"invokeError"),dev:K.isDev}},l=await k(e,i),{metadata:m}=l,{cacheControl:n,headers:o={},fetchTags:p}=m;if(p&&(o[y.NEXT_CACHE_TAGS_HEADER]=p),a.fetchMetrics=m.fetchMetrics,ak&&(null==n?void 0:n.revalidate)===0&&!K.isDev&&!ar){let a=m.staticBailoutInfo,b=Object.defineProperty(Error(`Page changed from static to dynamic at runtime ${aa}${(null==a?void 0:a.description)?`, reason: ${a.description}`:""} -see more here https://nextjs.org/docs/messages/app-static-to-dynamic-error`),"__NEXT_ERROR_CODE",{value:"E132",enumerable:!1,configurable:!0});if(null==a?void 0:a.stack){let c=a.stack;b.stack=b.message+c.substring(c.indexOf("\n"))}throw b}return{value:{kind:v.CachedRouteKind.APP_PAGE,html:l,headers:o,rscData:m.flightData,postponed:m.postponed,status:m.statusCode,segmentData:m.segmentData},cacheControl:n}},o=async({hasResolved:c,previousCacheEntry:f,isRevalidating:g,span:i})=>{let j,k=!1===K.isDev,l=c||b.writableEnded;if(ah&&ab&&!f&&!N)return(null==ac?void 0:ac.render404)?await ac.render404(a,b):(b.statusCode=404,b.end("This page could not be found")),null;if(ai&&(j=(0,w.parseFallbackField)(ai.fallback)),j===w.FallbackMode.PRERENDER&&(0,u.isBot)(al)&&(!ar||an)&&(j=w.FallbackMode.BLOCKING_STATIC_RENDER),(null==f?void 0:f.isStale)===-1&&(ah=!0),ah&&(j!==w.FallbackMode.NOT_FOUND||f)&&(j=w.FallbackMode.BLOCKING_STATIC_RENDER),!N&&j!==w.FallbackMode.BLOCKING_STATIC_RENDER&&aB&&!l&&!_&&T&&(k||!aj)){let b;if((k||ai)&&j===w.FallbackMode.NOT_FOUND)throw new B.NoFallbackError;if(ar&&!ap){let c="string"==typeof(null==ai?void 0:ai.fallback)?ai.fallback:k?ag:null;if(b=await K.handleResponse({cacheKey:c,req:a,nextConfig:ad,routeKind:e.RouteKind.APP_PAGE,isFallback:!0,prerenderManifest:$,isRoutePPREnabled:ar,responseGenerator:async()=>m({span:i,postponed:void 0,fallbackRouteParams:k||at?(0,n.u)(ag):null}),waitUntil:d.waitUntil}),null===b)return null;if(b)return delete b.cacheControl,b}}let o=ah||g||!au?void 0:au;if(as&&void 0!==o)return{cacheControl:{revalidate:1,expire:void 0},value:{kind:v.CachedRouteKind.PAGES,html:x.default.EMPTY,pageData:{},headers:void 0,status:void 0}};let p=T&&ar&&((0,h.getRequestMeta)(a,"renderFallbackShell")||at)?(0,n.u)(af):null;return m({span:i,postponed:o,fallbackRouteParams:p})},p=async c=>{var f,g,i,j,k;let l,n=await K.handleResponse({cacheKey:aA,responseGenerator:a=>o({span:c,...a}),routeKind:e.RouteKind.APP_PAGE,isOnDemandRevalidate:ah,isRoutePPREnabled:ar,req:a,nextConfig:ad,prerenderManifest:$,waitUntil:d.waitUntil});if(_&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate"),K.isDev&&b.setHeader("Cache-Control","no-store, must-revalidate"),!n){if(aA)throw Object.defineProperty(Error("invariant: cache entry required but not generated"),"__NEXT_ERROR_CODE",{value:"E62",enumerable:!1,configurable:!0});return null}if((null==(f=n.value)?void 0:f.kind)!==v.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant app-page handler received invalid cache entry ${null==(i=n.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E707",enumerable:!1,configurable:!0});let p="string"==typeof n.value.postponed;ak&&!av&&(!p||ao)&&(N||b.setHeader("x-nextjs-cache",ah?"REVALIDATED":n.isMiss?"MISS":n.isStale?"STALE":"HIT"),b.setHeader(t.NEXT_IS_PRERENDER_HEADER,"1"));let{value:q}=n;if(au)l={revalidate:0,expire:void 0};else if(N&&ap&&!ao&&ar)l={revalidate:0,expire:void 0};else if(!K.isDev)if(_)l={revalidate:0,expire:void 0};else if(ak){if(n.cacheControl)if("number"==typeof n.cacheControl.revalidate){if(n.cacheControl.revalidate<1)throw Object.defineProperty(Error(`Invalid revalidate configuration provided: ${n.cacheControl.revalidate} < 1`),"__NEXT_ERROR_CODE",{value:"E22",enumerable:!1,configurable:!0});l={revalidate:n.cacheControl.revalidate,expire:(null==(j=n.cacheControl)?void 0:j.expire)??ad.expireTime}}else l={revalidate:y.CACHE_ONE_YEAR,expire:void 0}}else b.getHeader("Cache-Control")||(l={revalidate:0,expire:void 0});if(n.cacheControl=l,"string"==typeof aw&&(null==q?void 0:q.kind)===v.CachedRouteKind.APP_PAGE&&q.segmentData){b.setHeader(t.NEXT_DID_POSTPONE_HEADER,"2");let c=null==(k=q.headers)?void 0:k[y.NEXT_CACHE_TAGS_HEADER];N&&ak&&c&&"string"==typeof c&&b.setHeader(y.NEXT_CACHE_TAGS_HEADER,c);let d=q.segmentData.get(aw);return void 0!==d?(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.fromStatic(d,t.RSC_CONTENT_TYPE_HEADER),cacheControl:n.cacheControl}):(b.statusCode=204,(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.EMPTY,cacheControl:n.cacheControl}))}let r=(0,h.getRequestMeta)(a,"onCacheEntry");if(r&&await r({...n,value:{...n.value,kind:"PAGE"}},{url:(0,h.getRequestMeta)(a,"initURL")}))return null;if(p&&au)throw Object.defineProperty(Error("Invariant: postponed state should not be present on a resume request"),"__NEXT_ERROR_CODE",{value:"E396",enumerable:!1,configurable:!0});if(q.headers){let a={...q.headers};for(let[c,d]of(N&&ak||delete a[y.NEXT_CACHE_TAGS_HEADER],Object.entries(a)))if(void 0!==d)if(Array.isArray(d))for(let a of d)b.appendHeader(c,a);else"number"==typeof d&&(d=d.toString()),b.appendHeader(c,d)}let s=null==(g=q.headers)?void 0:g[y.NEXT_CACHE_TAGS_HEADER];if(N&&ak&&s&&"string"==typeof s&&b.setHeader(y.NEXT_CACHE_TAGS_HEADER,s),!q.status||ap&&ar||(b.statusCode=q.status),!N&&q.status&&F.RedirectStatusCode[q.status]&&ap&&(b.statusCode=200),p&&b.setHeader(t.NEXT_DID_POSTPONE_HEADER,"1"),ap&&!_){if(void 0===q.rscData){if(q.postponed)throw Object.defineProperty(Error("Invariant: Expected postponed to be undefined"),"__NEXT_ERROR_CODE",{value:"E372",enumerable:!1,configurable:!0});return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:q.html,cacheControl:av?{revalidate:0,expire:void 0}:n.cacheControl})}return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.fromStatic(q.rscData,t.RSC_CONTENT_TYPE_HEADER),cacheControl:n.cacheControl})}let u=q.html;if(!p||N||ap)return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:n.cacheControl});if(as)return u.push(new ReadableStream({start(a){a.enqueue(z.ENCODED_TAGS.CLOSED.BODY_AND_HTML),a.close()}})),(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:{revalidate:0,expire:void 0}});let w=new TransformStream;return u.push(w.readable),m({span:c,postponed:q.postponed,fallbackRouteParams:null}).then(async a=>{var b,c;if(!a)throw Object.defineProperty(Error("Invariant: expected a result to be returned"),"__NEXT_ERROR_CODE",{value:"E463",enumerable:!1,configurable:!0});if((null==(b=a.value)?void 0:b.kind)!==v.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant: expected a page response, got ${null==(c=a.value)?void 0:c.kind}`),"__NEXT_ERROR_CODE",{value:"E305",enumerable:!1,configurable:!0});await a.value.html.pipeTo(w.writable)}).catch(a=>{w.writable.abort(a).catch(a=>{console.error("couldn't abort transformer",a)})}),(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:{revalidate:0,expire:void 0}})};if(!aF)return await aE.withPropagatedContext(a.headers,()=>aE.trace(i.BaseServerSpan.handleRequest,{spanName:`${aD} ${a.url}`,kind:g.SpanKind.SERVER,attributes:{"http.method":aD,"http.target":a.url}},p));await p(aF)}catch(b){throw b instanceof B.NoFallbackError||await K.onRequestError(a,b,{routerKind:"App Router",routePath:G,routeType:"render",revalidateReason:(0,f.c)({isRevalidate:ak,isOnDemandRevalidate:ah})},ac),b}}},86291:(a,b,c)=>{Promise.resolve().then(c.bind(c,17742))},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{"use strict";a.exports=require("better-sqlite3")},94735:a=>{"use strict";a.exports=require("events")}};var b=require("../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,495,4606,570,7894,8476],()=>b(b.s=80144));module.exports=c})(); \ No newline at end of file +(()=>{var a={};a.id=8974,a.ids=[8974],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1708:a=>{"use strict";a.exports=require("node:process")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},17742:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>d});let d=(0,c(97954).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx","default")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},26713:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/is-bot")},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{"use strict";a.exports=require("path")},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},46539:(a,b,c)=>{Promise.resolve().then(c.bind(c,74034))},55511:a=>{"use strict";a.exports=require("crypto")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},73136:a=>{"use strict";a.exports=require("node:url")},74034:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>v});var d=c(21124),e=c(38301),f=c.n(e),g=c(42378),h=c(44215),i=c(95919),j=c(14258),k=c(11610),l=c(83330),m=c(45914);c(15193),c(47247),c(42830);var n=c(93554),o=c(33305),p=c(19217),q=c(62949),r=c(85351);function s({open:a,onDismiss:b}){return(0,d.jsx)(o.lG,{open:a,onOpenChange:a=>{a||b()},children:(0,d.jsxs)(o.Cf,{className:"sm:max-w-md",children:[(0,d.jsxs)(o.c7,{children:[(0,d.jsx)(o.L3,{children:"Anonymous Usage Analytics"}),(0,d.jsx)(o.rr,{children:"Open Source Web Studio collects anonymous usage analytics to help improve the app"})]}),(0,d.jsxs)("div",{className:"space-y-4 text-sm text-muted-foreground leading-relaxed",children:[(0,d.jsxs)("p",{className:"text-sm",children:["Built with"," ",(0,d.jsx)("a",{href:"https://github.com/o-stahl/osw-analytics",target:"_blank",rel:"noopener noreferrer",className:"bg-orange-500/20 text-orange-400 hover:text-orange-300 px-1 py-0.5 rounded no-underline",children:"osw-analytics"}),", an open-source approach to analytics."]}),(0,d.jsx)(q.Nt,{children:(0,d.jsxs)("div",{className:"rounded-lg bg-muted/50",children:[(0,d.jsxs)(q.R6,{className:"flex items-center gap-1.5 w-full p-3 text-xs text-foreground hover:text-foreground transition-colors group",children:[(0,d.jsx)(r.A,{className:"h-3.5 w-3.5 transition-transform duration-200 group-data-[state=open]:rotate-180"}),"Details"]}),(0,d.jsx)(q.Ke,{children:(0,d.jsxs)("div",{className:"px-4 pb-4 space-y-3 text-sm text-muted-foreground",children:[(0,d.jsxs)("div",{children:[(0,d.jsxs)("p",{className:"font-bold text-foreground mb-1.5",children:["What will ",(0,d.jsx)("span",{className:"text-orange-400 uppercase",children:"not"})," be collected:"]}),(0,d.jsxs)("ul",{className:"list-disc pl-5 space-y-0.5",children:[(0,d.jsx)("li",{children:"Your prompts or messages"}),(0,d.jsx)("li",{children:"Code, file names, or file contents"}),(0,d.jsx)("li",{children:"API keys or credentials"}),(0,d.jsx)("li",{children:"Inference completions"}),(0,d.jsx)("li",{children:"Error messages"}),(0,d.jsx)("li",{children:"Anything that could identify you"})]})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("p",{className:"font-bold text-foreground mb-1.5",children:"What will be collected:"}),(0,d.jsxs)("ul",{className:"list-disc pl-5 space-y-0.5",children:[(0,d.jsx)("li",{children:"Which views are visited (e.g. dashboard, workspace, settings)"}),(0,d.jsx)("li",{children:"Which AI providers and models are selected"}),(0,d.jsx)("li",{children:"Whether tasks succeed or fail (not what was asked)"}),(0,d.jsx)("li",{children:"Which tools the AI uses and whether they work"}),(0,d.jsx)("li",{children:"API error types (not error messages)"}),(0,d.jsx)("li",{children:"Session heartbeats (how long the app is open)"}),(0,d.jsx)("li",{children:"A randomly generated ID stored in your browser to count unique visitors"})]})]})]})})]})})]}),(0,d.jsxs)(o.Es,{className:"flex items-center justify-between sm:justify-between gap-2",children:[(0,d.jsx)("button",{type:"button",className:"text-xs text-muted-foreground underline hover:text-foreground",onClick:()=>{(0,n._e)(!1),b()},children:"Disable analytics"}),(0,d.jsx)(p.$,{onClick:()=>{(0,n.u4)("telemetry_accepted"),b()},children:"Got it"})]})]})})}function t(){let a=(0,g.useSearchParams)();a.get("doc");let[b,c]=(0,e.useState)(null),[f,n]=(0,e.useState)("dashboard"),[o,p]=(0,e.useState)(!1),[q,r]=(0,e.useState)(!1),{state:t,setActiveProjectId:u,start:v}=(0,i.C)();a.get("settings"),t.currentStep?.id,t.status;let w=(0,e.useCallback)(a=>{n(a)},[]),x=(0,e.useCallback)(()=>{c(null),n("projects"),v&&v()},[v]),y=(0,e.useCallback)(()=>{localStorage.setItem("osw-telemetry-disclosed","true"),r(!1)},[]),z=(0,e.useMemo)(()=>b?(0,d.jsx)(h.a,{project:b,onBack:()=>c(null)}):(0,d.jsx)(l.f,{view:f,onProjectSelect:a=>{c(a)},onNavigate:w,onStartTour:x}),[b,f,w,x]);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(k.M,{currentView:f,onNavigate:a=>n(a),onProjectSelect:c,onStartTour:x,onOpenAbout:()=>p(!0),showSidebar:!b,children:z}),(0,d.jsx)(j.V,{location:"global"}),(0,d.jsx)(m.V,{open:o,onOpenChange:p}),(0,d.jsx)(s,{open:q,onDismiss:y})]})}function u(){return(0,d.jsx)(i.g,{children:(0,d.jsx)(f().Suspense,{fallback:(0,d.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-[#0a0a0a]",children:(0,d.jsx)("p",{className:"text-zinc-400",children:"Loading..."})}),children:(0,d.jsx)(t,{})})})}function v(){return(0,g.useRouter)(),(0,d.jsx)(u,{})}},76760:a=>{"use strict";a.exports=require("node:path")},77725:a=>{"use strict";a.exports=require("stream/promises")},79428:a=>{"use strict";a.exports=require("buffer")},79551:a=>{"use strict";a.exports=require("url")},79748:a=>{"use strict";a.exports=require("fs/promises")},80144:(a,b,c)=>{"use strict";c.r(b),c.d(b,{GlobalError:()=>D.a,__next_app__:()=>J,handler:()=>L,pages:()=>I,routeModule:()=>K,tree:()=>H});var d=c(49754),e=c(9117),f=c(46595),g=c(32324),h=c(39326),i=c(38928),j=c(20175),k=c(12),l=c(54290),m=c(12696),n=c(82802),o=c(77533),p=c(45229),q=c(32822),r=c(261),s=c(26453),t=c(52474),u=c(26713),v=c(51356),w=c(62685),x=c(36225),y=c(63446),z=c(2762),A=c(45742),B=c(86439),C=c(81170),D=c.n(C),E=c(62506),F=c(91203),G={};for(let a in E)0>["default","tree","pages","GlobalError","__next_app__","routeModule","handler"].indexOf(a)&&(G[a]=()=>E[a]);c.d(b,G);let H=["",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(c.bind(c,17742)),"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx"]}]},{layout:[()=>Promise.resolve().then(c.bind(c,16953)),"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout.tsx"],"global-error":[()=>Promise.resolve().then(c.t.bind(c,81170,23)),"next/dist/client/components/builtin/global-error.js"],"not-found":[()=>Promise.resolve().then(c.t.bind(c,87028,23)),"next/dist/client/components/builtin/not-found.js"],forbidden:[()=>Promise.resolve().then(c.t.bind(c,90461,23)),"next/dist/client/components/builtin/forbidden.js"],unauthorized:[()=>Promise.resolve().then(c.t.bind(c,32768,23)),"next/dist/client/components/builtin/unauthorized.js"]}],I=["/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx"],J={require:c,loadChunk:()=>Promise.resolve()},K=new d.AppPageRouteModule({definition:{kind:e.RouteKind.APP_PAGE,page:"/page",pathname:"/",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:H},distDir:".next",relativeProjectDir:""});async function L(a,b,d){var C;let G="/page";"/index"===G&&(G="/");let M=(0,h.getRequestMeta)(a,"postponed"),N=(0,h.getRequestMeta)(a,"minimalMode"),O=await K.prepare(a,b,{srcPage:G,multiZoneDraftMode:!1});if(!O)return b.statusCode=400,b.end("Bad Request"),null==d.waitUntil||d.waitUntil.call(d,Promise.resolve()),null;let{buildId:P,query:Q,params:R,parsedUrl:S,pageIsDynamic:T,buildManifest:U,nextFontManifest:V,reactLoadableManifest:W,serverActionsManifest:X,clientReferenceManifest:Y,subresourceIntegrityManifest:Z,prerenderManifest:$,isDraftMode:_,resolvedPathname:aa,revalidateOnlyGenerated:ab,routerServerContext:ac,nextConfig:ad,interceptionRoutePatterns:ae}=O,af=S.pathname||"/",ag=(0,r.normalizeAppPath)(G),{isOnDemandRevalidate:ah}=O,ai=K.match(af,$),aj=!!$.routes[aa],ak=!!(ai||aj||$.routes[ag]),al=a.headers["user-agent"]||"",am=(0,u.getBotType)(al),an=(0,p.isHtmlBotRequest)(a),ao=(0,h.getRequestMeta)(a,"isPrefetchRSCRequest")??"1"===a.headers[t.NEXT_ROUTER_PREFETCH_HEADER],ap=(0,h.getRequestMeta)(a,"isRSCRequest")??!!a.headers[t.RSC_HEADER],aq=(0,s.getIsPossibleServerAction)(a),ar=(0,m.checkIsAppPPREnabled)(ad.experimental.ppr)&&(null==(C=$.routes[ag]??$.dynamicRoutes[ag])?void 0:C.renderingMode)==="PARTIALLY_STATIC",as=!1,at=!1,au=ar?M:void 0,av=ar&&ap&&!ao,aw=(0,h.getRequestMeta)(a,"segmentPrefetchRSCRequest"),ax=!al||(0,p.shouldServeStreamingMetadata)(al,ad.htmlLimitedBots);an&&ar&&(ak=!1,ax=!1);let ay=!0===K.isDev||!ak||"string"==typeof M||av,az=an&&ar,aA=null;_||!ak||ay||aq||au||av||(aA=aa);let aB=aA;!aB&&K.isDev&&(aB=aa),K.isDev||_||!ak||!ap||av||(0,k.d)(a.headers);let aC={...E,tree:H,pages:I,GlobalError:D(),handler:L,routeModule:K,__next_app__:J};X&&Y&&(0,o.setReferenceManifestsSingleton)({page:G,clientReferenceManifest:Y,serverActionsManifest:X,serverModuleMap:(0,q.createServerModuleMap)({serverActionsManifest:X})});let aD=a.method||"GET",aE=(0,g.getTracer)(),aF=aE.getActiveScopeSpan();try{let f=K.getVaryHeader(aa,ae);b.setHeader("Vary",f);let k=async(c,d)=>{let e=new l.NodeNextRequest(a),f=new l.NodeNextResponse(b);return K.render(e,f,d).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=aE.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==i.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${aD} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${aD} ${a.url}`)})},m=async({span:e,postponed:f,fallbackRouteParams:g})=>{let i={query:Q,params:R,page:ag,sharedContext:{buildId:P},serverComponentsHmrCache:(0,h.getRequestMeta)(a,"serverComponentsHmrCache"),fallbackRouteParams:g,renderOpts:{App:()=>null,Document:()=>null,pageConfig:{},ComponentMod:aC,Component:(0,j.T)(aC),params:R,routeModule:K,page:G,postponed:f,shouldWaitOnAllReady:az,serveStreamingMetadata:ax,supportsDynamicResponse:"string"==typeof f||ay,buildManifest:U,nextFontManifest:V,reactLoadableManifest:W,subresourceIntegrityManifest:Z,serverActionsManifest:X,clientReferenceManifest:Y,setIsrStatus:null==ac?void 0:ac.setIsrStatus,dir:c(33873).join(process.cwd(),K.relativeProjectDir),isDraftMode:_,isRevalidate:ak&&!f&&!av,botType:am,isOnDemandRevalidate:ah,isPossibleServerAction:aq,assetPrefix:ad.assetPrefix,nextConfigOutput:ad.output,crossOrigin:ad.crossOrigin,trailingSlash:ad.trailingSlash,previewProps:$.preview,deploymentId:ad.deploymentId,enableTainting:ad.experimental.taint,htmlLimitedBots:ad.htmlLimitedBots,devtoolSegmentExplorer:ad.experimental.devtoolSegmentExplorer,reactMaxHeadersLength:ad.reactMaxHeadersLength,multiZoneDraftMode:!1,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:ad.experimental.cacheLife,basePath:ad.basePath,serverActions:ad.experimental.serverActions,...as?{nextExport:!0,supportsDynamicResponse:!1,isStaticGeneration:!0,isRevalidate:!0,isDebugDynamicAccesses:as}:{},experimental:{isRoutePPREnabled:ar,expireTime:ad.expireTime,staleTimes:ad.experimental.staleTimes,cacheComponents:!!ad.experimental.cacheComponents,clientSegmentCache:!!ad.experimental.clientSegmentCache,clientParamParsing:!!ad.experimental.clientParamParsing,dynamicOnHover:!!ad.experimental.dynamicOnHover,inlineCss:!!ad.experimental.inlineCss,authInterrupts:!!ad.experimental.authInterrupts,clientTraceMetadata:ad.experimental.clientTraceMetadata||[]},waitUntil:d.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:()=>{},onInstrumentationRequestError:(b,c,d)=>K.onRequestError(a,b,d,ac),err:(0,h.getRequestMeta)(a,"invokeError"),dev:K.isDev}},l=await k(e,i),{metadata:m}=l,{cacheControl:n,headers:o={},fetchTags:p}=m;if(p&&(o[y.NEXT_CACHE_TAGS_HEADER]=p),a.fetchMetrics=m.fetchMetrics,ak&&(null==n?void 0:n.revalidate)===0&&!K.isDev&&!ar){let a=m.staticBailoutInfo,b=Object.defineProperty(Error(`Page changed from static to dynamic at runtime ${aa}${(null==a?void 0:a.description)?`, reason: ${a.description}`:""} +see more here https://nextjs.org/docs/messages/app-static-to-dynamic-error`),"__NEXT_ERROR_CODE",{value:"E132",enumerable:!1,configurable:!0});if(null==a?void 0:a.stack){let c=a.stack;b.stack=b.message+c.substring(c.indexOf("\n"))}throw b}return{value:{kind:v.CachedRouteKind.APP_PAGE,html:l,headers:o,rscData:m.flightData,postponed:m.postponed,status:m.statusCode,segmentData:m.segmentData},cacheControl:n}},o=async({hasResolved:c,previousCacheEntry:f,isRevalidating:g,span:i})=>{let j,k=!1===K.isDev,l=c||b.writableEnded;if(ah&&ab&&!f&&!N)return(null==ac?void 0:ac.render404)?await ac.render404(a,b):(b.statusCode=404,b.end("This page could not be found")),null;if(ai&&(j=(0,w.parseFallbackField)(ai.fallback)),j===w.FallbackMode.PRERENDER&&(0,u.isBot)(al)&&(!ar||an)&&(j=w.FallbackMode.BLOCKING_STATIC_RENDER),(null==f?void 0:f.isStale)===-1&&(ah=!0),ah&&(j!==w.FallbackMode.NOT_FOUND||f)&&(j=w.FallbackMode.BLOCKING_STATIC_RENDER),!N&&j!==w.FallbackMode.BLOCKING_STATIC_RENDER&&aB&&!l&&!_&&T&&(k||!aj)){let b;if((k||ai)&&j===w.FallbackMode.NOT_FOUND)throw new B.NoFallbackError;if(ar&&!ap){let c="string"==typeof(null==ai?void 0:ai.fallback)?ai.fallback:k?ag:null;if(b=await K.handleResponse({cacheKey:c,req:a,nextConfig:ad,routeKind:e.RouteKind.APP_PAGE,isFallback:!0,prerenderManifest:$,isRoutePPREnabled:ar,responseGenerator:async()=>m({span:i,postponed:void 0,fallbackRouteParams:k||at?(0,n.u)(ag):null}),waitUntil:d.waitUntil}),null===b)return null;if(b)return delete b.cacheControl,b}}let o=ah||g||!au?void 0:au;if(as&&void 0!==o)return{cacheControl:{revalidate:1,expire:void 0},value:{kind:v.CachedRouteKind.PAGES,html:x.default.EMPTY,pageData:{},headers:void 0,status:void 0}};let p=T&&ar&&((0,h.getRequestMeta)(a,"renderFallbackShell")||at)?(0,n.u)(af):null;return m({span:i,postponed:o,fallbackRouteParams:p})},p=async c=>{var f,g,i,j,k;let l,n=await K.handleResponse({cacheKey:aA,responseGenerator:a=>o({span:c,...a}),routeKind:e.RouteKind.APP_PAGE,isOnDemandRevalidate:ah,isRoutePPREnabled:ar,req:a,nextConfig:ad,prerenderManifest:$,waitUntil:d.waitUntil});if(_&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate"),K.isDev&&b.setHeader("Cache-Control","no-store, must-revalidate"),!n){if(aA)throw Object.defineProperty(Error("invariant: cache entry required but not generated"),"__NEXT_ERROR_CODE",{value:"E62",enumerable:!1,configurable:!0});return null}if((null==(f=n.value)?void 0:f.kind)!==v.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant app-page handler received invalid cache entry ${null==(i=n.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E707",enumerable:!1,configurable:!0});let p="string"==typeof n.value.postponed;ak&&!av&&(!p||ao)&&(N||b.setHeader("x-nextjs-cache",ah?"REVALIDATED":n.isMiss?"MISS":n.isStale?"STALE":"HIT"),b.setHeader(t.NEXT_IS_PRERENDER_HEADER,"1"));let{value:q}=n;if(au)l={revalidate:0,expire:void 0};else if(N&&ap&&!ao&&ar)l={revalidate:0,expire:void 0};else if(!K.isDev)if(_)l={revalidate:0,expire:void 0};else if(ak){if(n.cacheControl)if("number"==typeof n.cacheControl.revalidate){if(n.cacheControl.revalidate<1)throw Object.defineProperty(Error(`Invalid revalidate configuration provided: ${n.cacheControl.revalidate} < 1`),"__NEXT_ERROR_CODE",{value:"E22",enumerable:!1,configurable:!0});l={revalidate:n.cacheControl.revalidate,expire:(null==(j=n.cacheControl)?void 0:j.expire)??ad.expireTime}}else l={revalidate:y.CACHE_ONE_YEAR,expire:void 0}}else b.getHeader("Cache-Control")||(l={revalidate:0,expire:void 0});if(n.cacheControl=l,"string"==typeof aw&&(null==q?void 0:q.kind)===v.CachedRouteKind.APP_PAGE&&q.segmentData){b.setHeader(t.NEXT_DID_POSTPONE_HEADER,"2");let c=null==(k=q.headers)?void 0:k[y.NEXT_CACHE_TAGS_HEADER];N&&ak&&c&&"string"==typeof c&&b.setHeader(y.NEXT_CACHE_TAGS_HEADER,c);let d=q.segmentData.get(aw);return void 0!==d?(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.fromStatic(d,t.RSC_CONTENT_TYPE_HEADER),cacheControl:n.cacheControl}):(b.statusCode=204,(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.EMPTY,cacheControl:n.cacheControl}))}let r=(0,h.getRequestMeta)(a,"onCacheEntry");if(r&&await r({...n,value:{...n.value,kind:"PAGE"}},{url:(0,h.getRequestMeta)(a,"initURL")}))return null;if(p&&au)throw Object.defineProperty(Error("Invariant: postponed state should not be present on a resume request"),"__NEXT_ERROR_CODE",{value:"E396",enumerable:!1,configurable:!0});if(q.headers){let a={...q.headers};for(let[c,d]of(N&&ak||delete a[y.NEXT_CACHE_TAGS_HEADER],Object.entries(a)))if(void 0!==d)if(Array.isArray(d))for(let a of d)b.appendHeader(c,a);else"number"==typeof d&&(d=d.toString()),b.appendHeader(c,d)}let s=null==(g=q.headers)?void 0:g[y.NEXT_CACHE_TAGS_HEADER];if(N&&ak&&s&&"string"==typeof s&&b.setHeader(y.NEXT_CACHE_TAGS_HEADER,s),!q.status||ap&&ar||(b.statusCode=q.status),!N&&q.status&&F.RedirectStatusCode[q.status]&&ap&&(b.statusCode=200),p&&b.setHeader(t.NEXT_DID_POSTPONE_HEADER,"1"),ap&&!_){if(void 0===q.rscData){if(q.postponed)throw Object.defineProperty(Error("Invariant: Expected postponed to be undefined"),"__NEXT_ERROR_CODE",{value:"E372",enumerable:!1,configurable:!0});return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:q.html,cacheControl:av?{revalidate:0,expire:void 0}:n.cacheControl})}return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.fromStatic(q.rscData,t.RSC_CONTENT_TYPE_HEADER),cacheControl:n.cacheControl})}let u=q.html;if(!p||N||ap)return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:n.cacheControl});if(as)return u.push(new ReadableStream({start(a){a.enqueue(z.ENCODED_TAGS.CLOSED.BODY_AND_HTML),a.close()}})),(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:{revalidate:0,expire:void 0}});let w=new TransformStream;return u.push(w.readable),m({span:c,postponed:q.postponed,fallbackRouteParams:null}).then(async a=>{var b,c;if(!a)throw Object.defineProperty(Error("Invariant: expected a result to be returned"),"__NEXT_ERROR_CODE",{value:"E463",enumerable:!1,configurable:!0});if((null==(b=a.value)?void 0:b.kind)!==v.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant: expected a page response, got ${null==(c=a.value)?void 0:c.kind}`),"__NEXT_ERROR_CODE",{value:"E305",enumerable:!1,configurable:!0});await a.value.html.pipeTo(w.writable)}).catch(a=>{w.writable.abort(a).catch(a=>{console.error("couldn't abort transformer",a)})}),(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:{revalidate:0,expire:void 0}})};if(!aF)return await aE.withPropagatedContext(a.headers,()=>aE.trace(i.BaseServerSpan.handleRequest,{spanName:`${aD} ${a.url}`,kind:g.SpanKind.SERVER,attributes:{"http.method":aD,"http.target":a.url}},p));await p(aF)}catch(b){throw b instanceof B.NoFallbackError||await K.onRequestError(a,b,{routerKind:"App Router",routePath:G,routeType:"render",revalidateReason:(0,f.c)({isRevalidate:ak,isOnDemandRevalidate:ah})},ac),b}}},86291:(a,b,c)=>{Promise.resolve().then(c.bind(c,17742))},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{"use strict";a.exports=require("better-sqlite3")},94735:a=>{"use strict";a.exports=require("events")}};var b=require("../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,495,4606,1732,7894,9815],()=>b(b.s=80144));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/page.js.nft.json b/.next/server/app/page.js.nft.json index 62c8d1cfb52d5c080be0e08a6a4d1175565e8685..869c3a2891cd69dc0f3e8c057843a85b4f2bf9be 100644 --- a/.next/server/app/page.js.nft.json +++ b/.next/server/app/page.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../node_modules/better-sqlite3/lib/database.js","../../../node_modules/better-sqlite3/lib/index.js","../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../node_modules/better-sqlite3/lib/methods/function.js","../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../node_modules/better-sqlite3/lib/methods/table.js","../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../node_modules/better-sqlite3/lib/util.js","../../../node_modules/better-sqlite3/package.json","../../../node_modules/bindings/bindings.js","../../../node_modules/bindings/package.json","../../../node_modules/file-uri-to-path/index.js","../../../node_modules/file-uri-to-path/package.json","../../../node_modules/next/dist/client/components/app-router-headers.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../node_modules/next/dist/lib/client-and-server-references.js","../../../node_modules/next/dist/lib/constants.js","../../../node_modules/next/dist/lib/interop-default.js","../../../node_modules/next/dist/lib/is-error.js","../../../node_modules/next/dist/lib/semver-noop.js","../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../node_modules/next/dist/server/lib/lru-cache.js","../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../node_modules/next/dist/server/lib/trace/constants.js","../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../node_modules/next/dist/server/load-manifest.external.js","../../../node_modules/next/dist/server/response-cache/types.js","../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../node_modules/next/dist/shared/lib/router/utils/html-bots.js","../../../node_modules/next/dist/shared/lib/router/utils/is-bot.js","../../../node_modules/next/dist/shared/lib/segment.js","../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../node_modules/next/package.json","../../../package.json","../../package.json","../chunks/2671.js","../chunks/4078.js","../chunks/4277.js","../chunks/4586.js","../chunks/4606.js","../chunks/4681.js","../chunks/495.js","../chunks/570.js","../chunks/6085.js","../chunks/740.js","../chunks/7894.js","../chunks/8476.js","../chunks/9206.js","../chunks/9975.js","../webpack-runtime.js","page_client-reference-manifest.js"]} \ No newline at end of file +{"version":1,"files":["../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../node_modules/better-sqlite3/lib/database.js","../../../node_modules/better-sqlite3/lib/index.js","../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../node_modules/better-sqlite3/lib/methods/function.js","../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../node_modules/better-sqlite3/lib/methods/table.js","../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../node_modules/better-sqlite3/lib/util.js","../../../node_modules/better-sqlite3/package.json","../../../node_modules/bindings/bindings.js","../../../node_modules/bindings/package.json","../../../node_modules/file-uri-to-path/index.js","../../../node_modules/file-uri-to-path/package.json","../../../node_modules/next/dist/client/components/app-router-headers.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../node_modules/next/dist/lib/client-and-server-references.js","../../../node_modules/next/dist/lib/constants.js","../../../node_modules/next/dist/lib/interop-default.js","../../../node_modules/next/dist/lib/is-error.js","../../../node_modules/next/dist/lib/semver-noop.js","../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../node_modules/next/dist/server/lib/lru-cache.js","../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../node_modules/next/dist/server/lib/trace/constants.js","../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../node_modules/next/dist/server/load-manifest.external.js","../../../node_modules/next/dist/server/response-cache/types.js","../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../node_modules/next/dist/shared/lib/router/utils/html-bots.js","../../../node_modules/next/dist/shared/lib/router/utils/is-bot.js","../../../node_modules/next/dist/shared/lib/segment.js","../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../node_modules/next/package.json","../../../package.json","../../package.json","../chunks/1732.js","../chunks/2671.js","../chunks/4078.js","../chunks/4141.js","../chunks/4277.js","../chunks/4586.js","../chunks/4606.js","../chunks/495.js","../chunks/6085.js","../chunks/740.js","../chunks/7894.js","../chunks/9050.js","../chunks/9206.js","../chunks/9815.js","../chunks/9975.js","../webpack-runtime.js","page_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/page_client-reference-manifest.js b/.next/server/app/page_client-reference-manifest.js index d4134897038fe2a01cb46d7acbd746835cfc886d..c25cf4ae9eb009709194f9f2766e9af2bcc867f2 100644 --- a/.next/server/app/page_client-reference-manifest.js +++ b/.next/server/app/page_client-reference-manifest.js @@ -1 +1 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/sites/[id]/[...path]/route.js b/.next/server/app/sites/[id]/[...path]/route.js deleted file mode 100644 index 74bb34bd335f57a38ee32ab3a585175f8ea9c3e5..0000000000000000000000000000000000000000 --- a/.next/server/app/sites/[id]/[...path]/route.js +++ /dev/null @@ -1,28 +0,0 @@ -(()=>{var a={};a.id=5585,a.ids=[5585],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{"use strict";a.exports=require("path")},44870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},52222:(a,b,c)=>{"use strict";c.r(b),c.d(b,{handler:()=>G,patchFetch:()=>F,routeModule:()=>B,serverHooks:()=>E,workAsyncStorage:()=>C,workUnitAsyncStorage:()=>D});var d={};c.r(d),c.d(d,{GET:()=>A});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(29021),w=c(33873),x=c.n(w),y=c(94471);let z={html:"text/html",htm:"text/html",css:"text/css",js:"application/javascript",json:"application/json",png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",svg:"image/svg+xml",ico:"image/x-icon",webp:"image/webp",woff:"font/woff",woff2:"font/woff2",ttf:"font/ttf",eot:"application/vnd.ms-fontobject",txt:"text/plain",pdf:"application/pdf",xml:"application/xml"};async function A(a,{params:b}){let{id:c,path:d=[]}=await b,e=d.length>0?d.join("/"):"index.html";try{let b=x().join(process.cwd(),"public","sites",c,e);try{await v.promises.access(b)}catch{return(0,y.ad)({siteId:c,path:"/"+e,statusCode:404,ip:a.headers.get("x-forwarded-for")||a.headers.get("x-real-ip")||"unknown",userAgent:a.headers.get("user-agent")||""}),new u.NextResponse("File not found",{status:404})}let d=await v.promises.readFile(b),f=z[e.split(".").pop()?.toLowerCase()||""]||"application/octet-stream";return(0,y.ad)({siteId:c,path:"/"+e,statusCode:200,ip:a.headers.get("x-forwarded-for")||a.headers.get("x-real-ip")||"unknown",userAgent:a.headers.get("user-agent")||""}),new u.NextResponse(new Uint8Array(d),{status:200,headers:{"Content-Type":f,"Cache-Control":"public, max-age=3600"}})}catch(b){return console.error("[Sites Route] Error:",b),(0,y.ad)({siteId:c,path:"/"+e,statusCode:500,ip:a.headers.get("x-forwarded-for")||a.headers.get("x-real-ip")||"unknown",userAgent:a.headers.get("user-agent")||""}),new u.NextResponse("Internal server error",{status:500})}}let B=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/sites/[id]/[...path]/route",pathname:"/sites/[id]/[...path]",filename:"route",bundlePath:"app/sites/[id]/[...path]/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/sites/[id]/[...path]/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:C,workUnitAsyncStorage:D,serverHooks:E}=B;function F(){return(0,g.patchFetch)({workAsyncStorage:C,workUnitAsyncStorage:D})}async function G(a,b,c){var d;let e="/sites/[id]/[...path]/route";"/index"===e&&(e="/");let g=await B.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:y,routerServerContext:z,isOnDemandRevalidate:A,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(y.dynamicRoutes[E]||y.routes[D]);if(F&&!x){let a=!!y.routes[D],b=y.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||B.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===B.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:y,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>B.onRequestError(a,b,d,z)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>B.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&A&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await B.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:A})},z),b}},l=await B.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:A,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",A?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await B.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:A})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},55511:a=>{"use strict";a.exports=require("crypto")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},74051:(a,b,c)=>{"use strict";c.r(b),c.d(b,{closeAllConnections:()=>v,closeCoreDatabase:()=>u,closeSiteDatabase:()=>t,deleteSiteDatabase:()=>s,getCoreDatabase:()=>p,getCoreDatabasePath:()=>y,getSiteDatabase:()=>q,getSiteDatabasePath:()=>x,listSiteIds:()=>w,siteExists:()=>r});var d=c(87550),e=c.n(d),f=c(33873),g=c.n(f),h=c(29021),i=c.n(h);let j=null,k=new Map;function l(){return process.env.DATA_DIR||g().join(process.cwd(),"data")}function m(){return g().join(process.cwd(),"sites")}function n(a){i().existsSync(a)||i().mkdirSync(a,{recursive:!0})}function o(a){a.pragma("journal_mode = WAL"),a.pragma("foreign_keys = ON"),a.pragma("synchronous = NORMAL"),a.pragma("cache_size = -64000"),a.pragma("temp_store = MEMORY")}function p(){if(j)return j;let a=l();n(a);let b=g().join(a,"osws.sqlite");return o(j=new(e())(b)),j}function q(a){let b=k.get(a);if(b)return b;let c=m(),d=g().join(c,a);n(d);let f=g().join(d,"site.sqlite"),h=new(e())(f);return o(h),k.set(a,h),h}function r(a){let b=m(),c=g().join(b,a,"site.sqlite");return i().existsSync(c)}function s(a){t(a);let b=m(),c=g().join(b,a);if(i().existsSync(c)){for(let a of i().readdirSync(c))i().unlinkSync(g().join(c,a));i().rmdirSync(c)}}function t(a){let b=k.get(a);if(b){try{b.close()}catch{}k.delete(a)}}function u(){if(j){try{j.close()}catch{}j=null}}function v(){for(let[a]of k)t(a);u()}function w(){let a=m();return i().existsSync(a)?i().readdirSync(a,{withFileTypes:!0}).filter(a=>a.isDirectory()).filter(b=>i().existsSync(g().join(a,b.name,"site.sqlite"))).map(a=>a.name):[]}function x(a){let b=m();return g().join(b,a,"site.sqlite")}function y(){let a=l();return g().join(a,"osws.sqlite")}},78335:()=>{},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{"use strict";a.exports=require("better-sqlite3")},94471:(a,b,c)=>{"use strict";c.d(b,{XO:()=>h,ad:()=>g,p1:()=>i});var d=c(55511);let e=null;function f(){if(!e){let{getCoreDatabase:a}=c(74051);e=a()}return e}function g(a){try{var b;let c=f();if(!c)return;let e=(b=a.ip)&&"unknown"!==b?(0,d.createHash)("sha256").update(b).digest("hex").substring(0,8):"unknown",g=a.userAgent?.substring(0,255)||"";c.prepare(` - INSERT INTO request_log (site_id, path, status_code, ip_hash, user_agent, timestamp) - VALUES (?, ?, ?, ?, ?, datetime('now')) - `).run(a.siteId,a.path,a.statusCode,e,g)}catch(a){console.error("[RequestLogger] Failed to log request:",a)}}function h(a=24){try{let a=f();if(!a)return{requestsLastHour:0,requestsLastDay:0,errorCount:0,topSites:[],recentErrors:[]};let b=a.prepare(` - SELECT COUNT(*) as count FROM request_log - WHERE timestamp > datetime('now', '-1 hour') - `).get(),c=a.prepare(` - SELECT COUNT(*) as count FROM request_log - WHERE timestamp > datetime('now', '-24 hours') - `).get(),d=a.prepare(` - SELECT COUNT(*) as count FROM request_log - WHERE timestamp > datetime('now', '-24 hours') - AND status_code >= 400 - `).get(),e=a.prepare(` - SELECT site_id as siteId, COUNT(*) as count FROM request_log - WHERE timestamp > datetime('now', '-24 hours') - GROUP BY site_id - ORDER BY count DESC - LIMIT 10 - `).all(),g=a.prepare(` - SELECT site_id as siteId, path, status_code as statusCode, timestamp FROM request_log - WHERE status_code >= 400 - ORDER BY timestamp DESC - LIMIT 10 - `).all();return{requestsLastHour:b.count,requestsLastDay:c.count,errorCount:d.count,topSites:e,recentErrors:g}}catch(a){return console.error("[RequestLogger] Failed to get stats:",a),{requestsLastHour:0,requestsLastDay:0,errorCount:0,topSites:[],recentErrors:[]}}}function i(a=7){try{let b=f();if(!b)return 0;return b.prepare(` - DELETE FROM request_log - WHERE timestamp < datetime('now', '-' || ? || ' days') - `).run(a).changes}catch(a){return console.error("[RequestLogger] Failed to cleanup logs:",a),0}}},96487:()=>{}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692],()=>b(b.s=52222));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/sites/[id]/[...path]/route.js.nft.json b/.next/server/app/sites/[id]/[...path]/route.js.nft.json deleted file mode 100644 index b9878d53a7d24da9bbf6d9189d6accdd08aeeebe..0000000000000000000000000000000000000000 --- a/.next/server/app/sites/[id]/[...path]/route.js.nft.json +++ /dev/null @@ -1 +0,0 @@ -{"version":1,"files":["../../../../../../data/osws.sqlite","../../../../../../data/osws.sqlite-shm","../../../../../../data/osws.sqlite-wal","../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../node_modules/better-sqlite3/package.json","../../../../../../node_modules/bindings/bindings.js","../../../../../../node_modules/bindings/package.json","../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../node_modules/next/package.json","../../../../../../package.json","../../../../../../public/sites/039b8554-0a87-42f7-a969-570c3fa99cb5/aukioloajat.html","../../../../../../public/sites/039b8554-0a87-42f7-a969-570c3fa99cb5/hinnat.html","../../../../../../public/sites/039b8554-0a87-42f7-a969-570c3fa99cb5/index.html","../../../../../../public/sites/039b8554-0a87-42f7-a969-570c3fa99cb5/palvelut.html","../../../../../../public/sites/039b8554-0a87-42f7-a969-570c3fa99cb5/robots.txt","../../../../../../public/sites/039b8554-0a87-42f7-a969-570c3fa99cb5/scripts/main.js","../../../../../../public/sites/039b8554-0a87-42f7-a969-570c3fa99cb5/sitemap.xml","../../../../../../public/sites/039b8554-0a87-42f7-a969-570c3fa99cb5/styles/style.css","../../../../../../public/sites/039b8554-0a87-42f7-a969-570c3fa99cb5/yhteystiedot.html","../../../../../../public/sites/08425b89-59bf-49b1-965c-67b67c46e5c4/blog/getting-started.html","../../../../../../public/sites/08425b89-59bf-49b1-965c-67b67c46e5c4/blog/hello-world.html","../../../../../../public/sites/08425b89-59bf-49b1-965c-67b67c46e5c4/index.html","../../../../../../public/sites/08425b89-59bf-49b1-965c-67b67c46e5c4/robots.txt","../../../../../../public/sites/08425b89-59bf-49b1-965c-67b67c46e5c4/scripts/main.js","../../../../../../public/sites/08425b89-59bf-49b1-965c-67b67c46e5c4/sitemap.xml","../../../../../../public/sites/08425b89-59bf-49b1-965c-67b67c46e5c4/styles/style.css","../../../../../../public/sites/18efcdfd-9309-45d1-bf13-82a968da7216/about.html","../../../../../../public/sites/18efcdfd-9309-45d1-bf13-82a968da7216/index.html","../../../../../../public/sites/18efcdfd-9309-45d1-bf13-82a968da7216/plan.md","../../../../../../public/sites/18efcdfd-9309-45d1-bf13-82a968da7216/players.html","../../../../../../public/sites/18efcdfd-9309-45d1-bf13-82a968da7216/robots.txt","../../../../../../public/sites/18efcdfd-9309-45d1-bf13-82a968da7216/schedule.html","../../../../../../public/sites/18efcdfd-9309-45d1-bf13-82a968da7216/scripts/main.js","../../../../../../public/sites/18efcdfd-9309-45d1-bf13-82a968da7216/sitemap.xml","../../../../../../public/sites/18efcdfd-9309-45d1-bf13-82a968da7216/styles/style.css","../../../../../../public/sites/18efcdfd-9309-45d1-bf13-82a968da7216/testing.txt","../../../../../../public/sites/20af6c75-4c1b-4c53-94bc-fa2ff7e445fa/benefits.html","../../../../../../public/sites/20af6c75-4c1b-4c53-94bc-fa2ff7e445fa/equipment.html","../../../../../../public/sites/20af6c75-4c1b-4c53-94bc-fa2ff7e445fa/getting-started.html","../../../../../../public/sites/20af6c75-4c1b-4c53-94bc-fa2ff7e445fa/index.html","../../../../../../public/sites/20af6c75-4c1b-4c53-94bc-fa2ff7e445fa/scripts/main.js","../../../../../../public/sites/20af6c75-4c1b-4c53-94bc-fa2ff7e445fa/styles/style.css","../../../../../../public/sites/20af6c75-4c1b-4c53-94bc-fa2ff7e445fa/training.html","../../../../../../public/sites/22950e26-4edf-45c9-8719-b212f697a8b1/index.html","../../../../../../public/sites/22950e26-4edf-45c9-8719-b212f697a8b1/robots.txt","../../../../../../public/sites/22950e26-4edf-45c9-8719-b212f697a8b1/scripts/main.js","../../../../../../public/sites/22950e26-4edf-45c9-8719-b212f697a8b1/sitemap.xml","../../../../../../public/sites/22950e26-4edf-45c9-8719-b212f697a8b1/styles/style.css","../../../../../../public/sites/308c7d9c-09fe-4581-a361-4291db148cf3/index.html","../../../../../../public/sites/308c7d9c-09fe-4581-a361-4291db148cf3/robots.txt","../../../../../../public/sites/308c7d9c-09fe-4581-a361-4291db148cf3/scripts/main.js","../../../../../../public/sites/308c7d9c-09fe-4581-a361-4291db148cf3/sitemap.xml","../../../../../../public/sites/308c7d9c-09fe-4581-a361-4291db148cf3/styles/style.css","../../../../../../public/sites/505b4e67-9ba5-4396-9a76-9368a6848874/contact.html","../../../../../../public/sites/505b4e67-9ba5-4396-9a76-9368a6848874/index.html","../../../../../../public/sites/505b4e67-9ba5-4396-9a76-9368a6848874/scripts/main.js","../../../../../../public/sites/505b4e67-9ba5-4396-9a76-9368a6848874/services.html","../../../../../../public/sites/505b4e67-9ba5-4396-9a76-9368a6848874/styles/style.css","../../../../../../public/sites/6333fd6d-b2bf-4eb2-a48e-762b7a7be8b7/about.html","../../../../../../public/sites/6333fd6d-b2bf-4eb2-a48e-762b7a7be8b7/index.html","../../../../../../public/sites/6333fd6d-b2bf-4eb2-a48e-762b7a7be8b7/plan.md","../../../../../../public/sites/6333fd6d-b2bf-4eb2-a48e-762b7a7be8b7/players.html","../../../../../../public/sites/6333fd6d-b2bf-4eb2-a48e-762b7a7be8b7/robots.txt","../../../../../../public/sites/6333fd6d-b2bf-4eb2-a48e-762b7a7be8b7/schedule.html","../../../../../../public/sites/6333fd6d-b2bf-4eb2-a48e-762b7a7be8b7/scripts/main.js","../../../../../../public/sites/6333fd6d-b2bf-4eb2-a48e-762b7a7be8b7/sitemap.xml","../../../../../../public/sites/6333fd6d-b2bf-4eb2-a48e-762b7a7be8b7/styles/style.css","../../../../../../public/sites/6333fd6d-b2bf-4eb2-a48e-762b7a7be8b7/testing.txt","../../../../../../public/sites/69d3cb0a-3cd3-4d41-981c-3d4ba5c978cc/contact.html","../../../../../../public/sites/69d3cb0a-3cd3-4d41-981c-3d4ba5c978cc/data/services.json","../../../../../../public/sites/69d3cb0a-3cd3-4d41-981c-3d4ba5c978cc/data/testimonials.json","../../../../../../public/sites/69d3cb0a-3cd3-4d41-981c-3d4ba5c978cc/index.html","../../../../../../public/sites/69d3cb0a-3cd3-4d41-981c-3d4ba5c978cc/public/css/styles.css","../../../../../../public/sites/69d3cb0a-3cd3-4d41-981c-3d4ba5c978cc/public/js/main.js","../../../../../../public/sites/69d3cb0a-3cd3-4d41-981c-3d4ba5c978cc/robots.txt","../../../../../../public/sites/69d3cb0a-3cd3-4d41-981c-3d4ba5c978cc/services.html","../../../../../../public/sites/69d3cb0a-3cd3-4d41-981c-3d4ba5c978cc/sitemap.xml","../../../../../../public/sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/PLAN.md","../../../../../../public/sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/about.html","../../../../../../public/sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/contact.html","../../../../../../public/sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/index.html","../../../../../../public/sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/practice-areas.html","../../../../../../public/sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/pricing.html","../../../../../../public/sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/robots.txt","../../../../../../public/sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/scripts/main.js","../../../../../../public/sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/sitemap.xml","../../../../../../public/sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/styles.css","../../../../../../public/sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/styles/style.css","../../../../../../public/sites/8a671c27-1498-4164-9cdf-5429469f45f6/PLAN.md","../../../../../../public/sites/8a671c27-1498-4164-9cdf-5429469f45f6/about.html","../../../../../../public/sites/8a671c27-1498-4164-9cdf-5429469f45f6/contact.html","../../../../../../public/sites/8a671c27-1498-4164-9cdf-5429469f45f6/index.html","../../../../../../public/sites/8a671c27-1498-4164-9cdf-5429469f45f6/robots.txt","../../../../../../public/sites/8a671c27-1498-4164-9cdf-5429469f45f6/scripts/main.js","../../../../../../public/sites/8a671c27-1498-4164-9cdf-5429469f45f6/sitemap.xml","../../../../../../public/sites/8a671c27-1498-4164-9cdf-5429469f45f6/styles/style.css","../../../../../../public/sites/9e5a46cf-1efd-4377-9da5-1e2eb63b8ca4/benefits.html","../../../../../../public/sites/9e5a46cf-1efd-4377-9da5-1e2eb63b8ca4/equipment.html","../../../../../../public/sites/9e5a46cf-1efd-4377-9da5-1e2eb63b8ca4/getting-started.html","../../../../../../public/sites/9e5a46cf-1efd-4377-9da5-1e2eb63b8ca4/index.html","../../../../../../public/sites/9e5a46cf-1efd-4377-9da5-1e2eb63b8ca4/robots.txt","../../../../../../public/sites/9e5a46cf-1efd-4377-9da5-1e2eb63b8ca4/scripts/main.js","../../../../../../public/sites/9e5a46cf-1efd-4377-9da5-1e2eb63b8ca4/sitemap.xml","../../../../../../public/sites/9e5a46cf-1efd-4377-9da5-1e2eb63b8ca4/styles/style.css","../../../../../../public/sites/9e5a46cf-1efd-4377-9da5-1e2eb63b8ca4/training.html","../../../../../../public/sites/a57c81e5-0175-49b9-b333-d0a4d1094271/index.html","../../../../../../public/sites/a57c81e5-0175-49b9-b333-d0a4d1094271/plan.md","../../../../../../public/sites/a57c81e5-0175-49b9-b333-d0a4d1094271/robots.txt","../../../../../../public/sites/a57c81e5-0175-49b9-b333-d0a4d1094271/scripts/main.js","../../../../../../public/sites/a57c81e5-0175-49b9-b333-d0a4d1094271/sitemap.xml","../../../../../../public/sites/a57c81e5-0175-49b9-b333-d0a4d1094271/styles/style.css","../../../../../../public/sites/af3ba693-4c5a-4564-9c93-0c9b9f3d74f1/index.html","../../../../../../public/sites/af3ba693-4c5a-4564-9c93-0c9b9f3d74f1/plan.md","../../../../../../public/sites/af3ba693-4c5a-4564-9c93-0c9b9f3d74f1/robots.txt","../../../../../../public/sites/af3ba693-4c5a-4564-9c93-0c9b9f3d74f1/scripts/animations.js","../../../../../../public/sites/af3ba693-4c5a-4564-9c93-0c9b9f3d74f1/scripts/main.js","../../../../../../public/sites/af3ba693-4c5a-4564-9c93-0c9b9f3d74f1/sitemap.xml","../../../../../../public/sites/af3ba693-4c5a-4564-9c93-0c9b9f3d74f1/styles/style.css","../../../../../../public/sites/be28436b-5a58-4c1b-a1da-ec28036b41e3/index.html","../../../../../../public/sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/PLAN.md","../../../../../../public/sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/about.html","../../../../../../public/sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/contact.html","../../../../../../public/sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/index.html","../../../../../../public/sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/menu.html","../../../../../../public/sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/robots.txt","../../../../../../public/sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/scripts/main.js","../../../../../../public/sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/sitemap.xml","../../../../../../public/sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/styles.css","../../../../../../public/sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/styles/style.css","../../../../../../public/sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/index.html","../../../../../../public/sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/robots.txt","../../../../../../public/sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/scripts/main.js","../../../../../../public/sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/sitemap.xml","../../../../../../public/sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/styles/style.css","../../../../../../public/sites/ea724ee7-fc57-4bde-a505-e083d72d52b2/index.html","../../../../../../public/sites/ea724ee7-fc57-4bde-a505-e083d72d52b2/robots.txt","../../../../../../public/sites/ea724ee7-fc57-4bde-a505-e083d72d52b2/scripts/main.js","../../../../../../public/sites/ea724ee7-fc57-4bde-a505-e083d72d52b2/sitemap.xml","../../../../../../public/sites/ea724ee7-fc57-4bde-a505-e083d72d52b2/styles/style.css","../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite","../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-shm","../../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-wal","../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite","../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-shm","../../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-wal","../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite","../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-shm","../../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-wal","../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite","../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-shm","../../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-wal","../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite","../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-shm","../../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-wal","../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite","../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-shm","../../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-wal","../../../../../package.json","../../../../chunks/1692.js","../../../../chunks/4586.js","../../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/sites/[id]/route.js b/.next/server/app/sites/[id]/route.js deleted file mode 100644 index 4eaa07c9c6b9e9618511a489c131abe7d95f5d26..0000000000000000000000000000000000000000 --- a/.next/server/app/sites/[id]/route.js +++ /dev/null @@ -1,28 +0,0 @@ -(()=>{var a={};a.id=6871,a.ids=[6871],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{"use strict";a.exports=require("path")},44870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{"use strict";a.exports=require("crypto")},57986:(a,b,c)=>{"use strict";c.r(b),c.d(b,{handler:()=>F,patchFetch:()=>E,routeModule:()=>A,serverHooks:()=>D,workAsyncStorage:()=>B,workUnitAsyncStorage:()=>C});var d={};c.r(d),c.d(d,{GET:()=>z});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(29021),w=c(33873),x=c.n(w),y=c(94471);async function z(a,{params:b}){let c=200,{id:d}=await b;try{let b=x().join(process.cwd(),"public","sites",d,"index.html");try{await v.promises.access(b)}catch{return c=404,(0,y.ad)({siteId:d,path:"/index.html",statusCode:c,ip:a.headers.get("x-forwarded-for")||a.headers.get("x-real-ip")||"unknown",userAgent:a.headers.get("user-agent")||""}),new u.NextResponse("Site not found",{status:404})}let e=await v.promises.readFile(b,"utf-8");return(0,y.ad)({siteId:d,path:"/index.html",statusCode:c,ip:a.headers.get("x-forwarded-for")||a.headers.get("x-real-ip")||"unknown",userAgent:a.headers.get("user-agent")||""}),new u.NextResponse(e,{status:200,headers:{"Content-Type":"text/html","Cache-Control":"public, max-age=3600"}})}catch(b){return console.error("[Sites Route] Error:",b),(0,y.ad)({siteId:d,path:"/index.html",statusCode:500,ip:a.headers.get("x-forwarded-for")||a.headers.get("x-real-ip")||"unknown",userAgent:a.headers.get("user-agent")||""}),new u.NextResponse("Internal server error",{status:500})}}let A=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/sites/[id]/route",pathname:"/sites/[id]",filename:"route",bundlePath:"app/sites/[id]/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/otto/Desktop/deepstudio/osw-studio-git/app/sites/[id]/route.ts",nextConfigOutput:"standalone",userland:d}),{workAsyncStorage:B,workUnitAsyncStorage:C,serverHooks:D}=A;function E(){return(0,g.patchFetch)({workAsyncStorage:B,workUnitAsyncStorage:C})}async function F(a,b,c){var d;let e="/sites/[id]/route";"/index"===e&&(e="/");let g=await A.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:y,routerServerContext:z,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(y.dynamicRoutes[E]||y.routes[D]);if(F&&!x){let a=!!y.routes[D],b=y.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||A.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===A.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:y,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>A.onRequestError(a,b,d,z)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>A.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await A.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},z),b}},l=await A.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await A.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},74051:(a,b,c)=>{"use strict";c.r(b),c.d(b,{closeAllConnections:()=>v,closeCoreDatabase:()=>u,closeSiteDatabase:()=>t,deleteSiteDatabase:()=>s,getCoreDatabase:()=>p,getCoreDatabasePath:()=>y,getSiteDatabase:()=>q,getSiteDatabasePath:()=>x,listSiteIds:()=>w,siteExists:()=>r});var d=c(87550),e=c.n(d),f=c(33873),g=c.n(f),h=c(29021),i=c.n(h);let j=null,k=new Map;function l(){return process.env.DATA_DIR||g().join(process.cwd(),"data")}function m(){return g().join(process.cwd(),"sites")}function n(a){i().existsSync(a)||i().mkdirSync(a,{recursive:!0})}function o(a){a.pragma("journal_mode = WAL"),a.pragma("foreign_keys = ON"),a.pragma("synchronous = NORMAL"),a.pragma("cache_size = -64000"),a.pragma("temp_store = MEMORY")}function p(){if(j)return j;let a=l();n(a);let b=g().join(a,"osws.sqlite");return o(j=new(e())(b)),j}function q(a){let b=k.get(a);if(b)return b;let c=m(),d=g().join(c,a);n(d);let f=g().join(d,"site.sqlite"),h=new(e())(f);return o(h),k.set(a,h),h}function r(a){let b=m(),c=g().join(b,a,"site.sqlite");return i().existsSync(c)}function s(a){t(a);let b=m(),c=g().join(b,a);if(i().existsSync(c)){for(let a of i().readdirSync(c))i().unlinkSync(g().join(c,a));i().rmdirSync(c)}}function t(a){let b=k.get(a);if(b){try{b.close()}catch{}k.delete(a)}}function u(){if(j){try{j.close()}catch{}j=null}}function v(){for(let[a]of k)t(a);u()}function w(){let a=m();return i().existsSync(a)?i().readdirSync(a,{withFileTypes:!0}).filter(a=>a.isDirectory()).filter(b=>i().existsSync(g().join(a,b.name,"site.sqlite"))).map(a=>a.name):[]}function x(a){let b=m();return g().join(b,a,"site.sqlite")}function y(){let a=l();return g().join(a,"osws.sqlite")}},78335:()=>{},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{"use strict";a.exports=require("better-sqlite3")},94471:(a,b,c)=>{"use strict";c.d(b,{XO:()=>h,ad:()=>g,p1:()=>i});var d=c(55511);let e=null;function f(){if(!e){let{getCoreDatabase:a}=c(74051);e=a()}return e}function g(a){try{var b;let c=f();if(!c)return;let e=(b=a.ip)&&"unknown"!==b?(0,d.createHash)("sha256").update(b).digest("hex").substring(0,8):"unknown",g=a.userAgent?.substring(0,255)||"";c.prepare(` - INSERT INTO request_log (site_id, path, status_code, ip_hash, user_agent, timestamp) - VALUES (?, ?, ?, ?, ?, datetime('now')) - `).run(a.siteId,a.path,a.statusCode,e,g)}catch(a){console.error("[RequestLogger] Failed to log request:",a)}}function h(a=24){try{let a=f();if(!a)return{requestsLastHour:0,requestsLastDay:0,errorCount:0,topSites:[],recentErrors:[]};let b=a.prepare(` - SELECT COUNT(*) as count FROM request_log - WHERE timestamp > datetime('now', '-1 hour') - `).get(),c=a.prepare(` - SELECT COUNT(*) as count FROM request_log - WHERE timestamp > datetime('now', '-24 hours') - `).get(),d=a.prepare(` - SELECT COUNT(*) as count FROM request_log - WHERE timestamp > datetime('now', '-24 hours') - AND status_code >= 400 - `).get(),e=a.prepare(` - SELECT site_id as siteId, COUNT(*) as count FROM request_log - WHERE timestamp > datetime('now', '-24 hours') - GROUP BY site_id - ORDER BY count DESC - LIMIT 10 - `).all(),g=a.prepare(` - SELECT site_id as siteId, path, status_code as statusCode, timestamp FROM request_log - WHERE status_code >= 400 - ORDER BY timestamp DESC - LIMIT 10 - `).all();return{requestsLastHour:b.count,requestsLastDay:c.count,errorCount:d.count,topSites:e,recentErrors:g}}catch(a){return console.error("[RequestLogger] Failed to get stats:",a),{requestsLastHour:0,requestsLastDay:0,errorCount:0,topSites:[],recentErrors:[]}}}function i(a=7){try{let b=f();if(!b)return 0;return b.prepare(` - DELETE FROM request_log - WHERE timestamp < datetime('now', '-' || ? || ' days') - `).run(a).changes}catch(a){return console.error("[RequestLogger] Failed to cleanup logs:",a),0}}},96487:()=>{}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4586,1692],()=>b(b.s=57986));module.exports=c})(); \ No newline at end of file diff --git a/.next/server/app/sites/[id]/route.js.nft.json b/.next/server/app/sites/[id]/route.js.nft.json deleted file mode 100644 index 18c8b86f882e6b83a072ff5a9e2f23d76a738ac8..0000000000000000000000000000000000000000 --- a/.next/server/app/sites/[id]/route.js.nft.json +++ /dev/null @@ -1 +0,0 @@ -{"version":1,"files":["../../../../../data/osws.sqlite","../../../../../data/osws.sqlite-shm","../../../../../data/osws.sqlite-wal","../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../node_modules/better-sqlite3/package.json","../../../../../node_modules/bindings/bindings.js","../../../../../node_modules/bindings/package.json","../../../../../node_modules/file-uri-to-path/index.js","../../../../../node_modules/file-uri-to-path/package.json","../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../node_modules/next/dist/lib/constants.js","../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../node_modules/next/dist/lib/is-error.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../node_modules/next/package.json","../../../../../package.json","../../../../../public/sites/039b8554-0a87-42f7-a969-570c3fa99cb5/index.html","../../../../../public/sites/08425b89-59bf-49b1-965c-67b67c46e5c4/index.html","../../../../../public/sites/18efcdfd-9309-45d1-bf13-82a968da7216/index.html","../../../../../public/sites/20af6c75-4c1b-4c53-94bc-fa2ff7e445fa/index.html","../../../../../public/sites/22950e26-4edf-45c9-8719-b212f697a8b1/index.html","../../../../../public/sites/308c7d9c-09fe-4581-a361-4291db148cf3/index.html","../../../../../public/sites/505b4e67-9ba5-4396-9a76-9368a6848874/index.html","../../../../../public/sites/6333fd6d-b2bf-4eb2-a48e-762b7a7be8b7/index.html","../../../../../public/sites/69d3cb0a-3cd3-4d41-981c-3d4ba5c978cc/index.html","../../../../../public/sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/index.html","../../../../../public/sites/8a671c27-1498-4164-9cdf-5429469f45f6/index.html","../../../../../public/sites/9e5a46cf-1efd-4377-9da5-1e2eb63b8ca4/index.html","../../../../../public/sites/a57c81e5-0175-49b9-b333-d0a4d1094271/index.html","../../../../../public/sites/af3ba693-4c5a-4564-9c93-0c9b9f3d74f1/index.html","../../../../../public/sites/be28436b-5a58-4c1b-a1da-ec28036b41e3/index.html","../../../../../public/sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/index.html","../../../../../public/sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/index.html","../../../../../public/sites/ea724ee7-fc57-4bde-a505-e083d72d52b2/index.html","../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite","../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-shm","../../../../../sites/08425b89-59bf-49b1-965c-67b67c46e5c4/site.sqlite-wal","../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite","../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-shm","../../../../../sites/308c7d9c-09fe-4581-a361-4291db148cf3/site.sqlite-wal","../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite","../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-shm","../../../../../sites/7882e8c5-bdb9-4f0c-851c-cb9657291796/site.sqlite-wal","../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite","../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-shm","../../../../../sites/8a671c27-1498-4164-9cdf-5429469f45f6/site.sqlite-wal","../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite","../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-shm","../../../../../sites/e1e81c2d-c2a0-4a7b-aeee-8a2c898743be/site.sqlite-wal","../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite","../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-shm","../../../../../sites/e7323e74-1e4d-4439-8dc7-cfc9166361b7/site.sqlite-wal","../../../../package.json","../../../chunks/1692.js","../../../chunks/4586.js","../../../webpack-runtime.js","route_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/sites/[id]/route_client-reference-manifest.js b/.next/server/app/sites/[id]/route_client-reference-manifest.js deleted file mode 100644 index 8cd69c84cad455f5d0b29270b32c1eedad964fa0..0000000000000000000000000000000000000000 --- a/.next/server/app/sites/[id]/route_client-reference-manifest.js +++ /dev/null @@ -1 +0,0 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/sites/[id]/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/sites/[id]/route":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/sites/[id]/[...path]/route":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/app/test-generation.html b/.next/server/app/test-generation.html index 90710b53aed8ed10001b2c8216bc73905730633c..1ab58b9fd2febea36774d7462db72a2be5f7b3d8 100644 --- a/.next/server/app/test-generation.html +++ b/.next/server/app/test-generation.html @@ -1,4 +1,4 @@ -Open Source Web Studio | Agentic AI Development 🎨

Model Tester

How to Interpret Test Results

These tests validate basic code generation capabilities across different task types. A passing test means files were created/modified successfully. A failing test indicates the model couldn't complete the task or didn't produce expected outputs.

Tip: Select your preferred provider and model below to test specific configurations. The generation output will show you what the AI is thinking during execution.
💡

Cost Warning

Running these tests can be very expensive and likely isn't necessary. It's cheaper and easier to just use good models and research community feedback about agentic capabilities.

This tester is largely for evaluating how models perform with OSW Studio's implementation and using those results to improve the agentic system.

Total Tests
0
Passed
0
Failed
0
Success Rate
0.0%
Add hamburger menu to navbar(ui)
Add a mobile hamburger menu to the navbar. The hamburger should appear on screens smaller than 768px...
Create modal dialog(ui)
Create a modal dialog that can be opened with a button click. The modal should have a close button a...
Add contact form with validation(ui)
Add a contact form with fields for name, email, and message. Include client-side validation for requ...
Create dropdown menu(ui)
Create a dropdown menu for the navigation. When hovering over "Services" link, show a dropdown with ...
Create image carousel(ui)
Create an image carousel/slider with next and previous buttons. It should display one image at a tim...
Change background to gradient(style)
Change the body background to a linear gradient from #ff8c42 to #e65100...
Add dark mode toggle(style)
Add a dark mode toggle button that switches the entire page between light and dark themes. Store the...
Create responsive grid layout(style)
Create a responsive grid layout with 3 columns on desktop, 2 on tablet, and 1 on mobile. Add 6 card ...
Add API fetch functionality(javascript)
Add a button that fetches data from https://jsonplaceholder.typicode.com/users and displays the user...
Create countdown timer(javascript)
Create a countdown timer that counts down from 60 seconds and displays the remaining time. Include s...
Build a todo list application(complex)
Build a todo list application with the ability to add tasks, mark them as complete, delete tasks, an...
\ No newline at end of file +

Model Tester

How to Interpret Test Results

These tests validate basic code generation capabilities across different task types. A passing test means files were created/modified successfully. A failing test indicates the model couldn't complete the task or didn't produce expected outputs.

Tip: Select your preferred provider and model below to test specific configurations. The generation output will show you what the AI is thinking during execution.
💡

Cost Warning

Running these tests can be very expensive and likely isn't necessary. It's cheaper and easier to just use good models and research community feedback about agentic capabilities.

This tester is largely for evaluating how models perform with OSW Studio's implementation and using those results to improve the agentic system.

Total Tests
0
Passed
0
Failed
0
Success Rate
0.0%
Add hamburger menu to navbar(ui)
Add a mobile hamburger menu to the navbar. The hamburger should appear on screens smaller than 768px...
Create modal dialog(ui)
Create a modal dialog that can be opened with a button click. The modal should have a close button a...
Add contact form with validation(ui)
Add a contact form with fields for name, email, and message. Include client-side validation for requ...
Create dropdown menu(ui)
Create a dropdown menu for the navigation. When hovering over "Services" link, show a dropdown with ...
Create image carousel(ui)
Create an image carousel/slider with next and previous buttons. It should display one image at a tim...
Change background to gradient(style)
Change the body background to a linear gradient from #ff8c42 to #e65100...
Add dark mode toggle(style)
Add a dark mode toggle button that switches the entire page between light and dark themes. Store the...
Create responsive grid layout(style)
Create a responsive grid layout with 3 columns on desktop, 2 on tablet, and 1 on mobile. Add 6 card ...
Add API fetch functionality(javascript)
Add a button that fetches data from https://jsonplaceholder.typicode.com/users and displays the user...
Create countdown timer(javascript)
Create a countdown timer that counts down from 60 seconds and displays the remaining time. Include s...
Build a todo list application(complex)
Build a todo list application with the ability to add tasks, mark them as complete, delete tasks, an...
\ No newline at end of file diff --git a/.next/server/app/test-generation.rsc b/.next/server/app/test-generation.rsc index f9f93ead08401403e478af89fe14a11aa7a31ca7..f1a8cfd48330ab4d0146711bc1e3e509de6ec7e6 100644 --- a/.next/server/app/test-generation.rsc +++ b/.next/server/app/test-generation.rsc @@ -5,7 +5,7 @@ 5:I[9766,[],""] 6:I[98924,[],""] 7:I[81959,[],"ClientPageRoot"] -8:I[84674,["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","9519","static/chunks/9519-d81bd1404a321000.js","6932","static/chunks/app/test-generation/page-1c466d2b12c4a866.js"],"default"] +8:I[84674,["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","9519","static/chunks/9519-f829657823927036.js","6932","static/chunks/app/test-generation/page-1c466d2b12c4a866.js"],"default"] b:I[24431,[],"OutletBoundary"] d:I[15278,[],"AsyncMetadataOutlet"] f:I[24431,[],"ViewportBoundary"] @@ -15,8 +15,8 @@ f:I[24431,[],"ViewportBoundary"] :HL["/_next/static/media/58f662ed5ba12a72-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}] :HL["/_next/static/media/c3f6eb667c0186c5-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}] :HL["/_next/static/media/e4af272ccee01ff0-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}] -:HL["/_next/static/css/634e649c3cc2540f.css","style"] -0:{"P":null,"b":"Dj_mU3ym-gcopP6URA30w","p":"","c":["","test-generation"],"i":false,"f":[[["",{"children":["test-generation",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/634e649c3cc2540f.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"__variable_f367f3 __variable_438d47 antialiased bg-background h-[100dvh] overflow-hidden","suppressHydrationWarning":true,"children":["$","$L2",null,{"children":[["$","$L3",null,{"richColors":true,"position":"bottom-center"}],["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]]}]}]}]]}],{"children":["test-generation",["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L7",null,{"Component":"$8","searchParams":{},"params":{},"promises":["$@9","$@a"]}],null,["$","$Lb",null,{"children":["$Lc",["$","$Ld",null,{"promise":"$@e"}]]}]]}],{},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$Lf",null,{"children":"$L10"}],["$","meta",null,{"name":"next-size-adjust","content":""}]],["$","$L11",null,{"children":["$","div",null,{"hidden":true,"children":["$","$12",null,{"fallback":null,"children":"$L13"}]}]}]]}],false]],"m":"$undefined","G":["$14",[]],"s":false,"S":true} +:HL["/_next/static/css/7a4f097ac51b20a7.css","style"] +0:{"P":null,"b":"6U79IAVVts3v8bcNT6dWz","p":"","c":["","test-generation"],"i":false,"f":[[["",{"children":["test-generation",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/7a4f097ac51b20a7.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"__variable_f367f3 __variable_438d47 antialiased bg-background h-[100dvh] overflow-hidden","suppressHydrationWarning":true,"children":["$","$L2",null,{"children":[["$","$L3",null,{"richColors":true,"position":"bottom-center"}],["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]]}]}]}]]}],{"children":["test-generation",["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L7",null,{"Component":"$8","searchParams":{},"params":{},"promises":["$@9","$@a"]}],null,["$","$Lb",null,{"children":["$Lc",["$","$Ld",null,{"promise":"$@e"}]]}]]}],{},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$Lf",null,{"children":"$L10"}],["$","meta",null,{"name":"next-size-adjust","content":""}]],["$","$L11",null,{"children":["$","div",null,{"hidden":true,"children":["$","$12",null,{"fallback":null,"children":"$L13"}]}]}]]}],false]],"m":"$undefined","G":["$14",[]],"s":false,"S":true} 9:{} a:"$0:f:0:1:2:children:2:children:1:props:children:0:props:params" 10:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1, maximum-scale=1"}],["$","meta","2",{"name":"theme-color","content":"#000000"}]] diff --git a/.next/server/app/test-generation/page.js.nft.json b/.next/server/app/test-generation/page.js.nft.json index 40a3a2a93e995a60d22ade3b065e72ce8b4e6894..ecdd92a2c86f07e8bb53a561bcac8398669241a9 100644 --- a/.next/server/app/test-generation/page.js.nft.json +++ b/.next/server/app/test-generation/page.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../node_modules/better-sqlite3/lib/database.js","../../../../node_modules/better-sqlite3/lib/index.js","../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../node_modules/better-sqlite3/lib/util.js","../../../../node_modules/better-sqlite3/package.json","../../../../node_modules/bindings/bindings.js","../../../../node_modules/bindings/package.json","../../../../node_modules/file-uri-to-path/index.js","../../../../node_modules/file-uri-to-path/package.json","../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../node_modules/next/dist/lib/constants.js","../../../../node_modules/next/dist/lib/interop-default.js","../../../../node_modules/next/dist/lib/is-error.js","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../node_modules/next/dist/server/response-cache/types.js","../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../node_modules/next/dist/shared/lib/router/utils/html-bots.js","../../../../node_modules/next/dist/shared/lib/router/utils/is-bot.js","../../../../node_modules/next/dist/shared/lib/segment.js","../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../node_modules/next/package.json","../../../../package.json","../../../package.json","../../chunks/2671.js","../../chunks/4078.js","../../chunks/4277.js","../../chunks/4586.js","../../chunks/4606.js","../../chunks/4681.js","../../chunks/495.js","../../chunks/6085.js","../../chunks/740.js","../../chunks/7894.js","../../chunks/9206.js","../../chunks/9975.js","../../webpack-runtime.js","page_client-reference-manifest.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../node_modules/better-sqlite3/lib/database.js","../../../../node_modules/better-sqlite3/lib/index.js","../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../node_modules/better-sqlite3/lib/util.js","../../../../node_modules/better-sqlite3/package.json","../../../../node_modules/bindings/bindings.js","../../../../node_modules/bindings/package.json","../../../../node_modules/file-uri-to-path/index.js","../../../../node_modules/file-uri-to-path/package.json","../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../node_modules/next/dist/lib/constants.js","../../../../node_modules/next/dist/lib/interop-default.js","../../../../node_modules/next/dist/lib/is-error.js","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../node_modules/next/dist/server/response-cache/types.js","../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../node_modules/next/dist/shared/lib/router/utils/html-bots.js","../../../../node_modules/next/dist/shared/lib/router/utils/is-bot.js","../../../../node_modules/next/dist/shared/lib/segment.js","../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../node_modules/next/package.json","../../../../package.json","../../../package.json","../../chunks/2671.js","../../chunks/4078.js","../../chunks/4141.js","../../chunks/4277.js","../../chunks/4586.js","../../chunks/4606.js","../../chunks/495.js","../../chunks/6085.js","../../chunks/740.js","../../chunks/7894.js","../../chunks/9050.js","../../chunks/9206.js","../../chunks/9975.js","../../webpack-runtime.js","page_client-reference-manifest.js"]} \ No newline at end of file diff --git a/.next/server/app/test-generation/page_client-reference-manifest.js b/.next/server/app/test-generation/page_client-reference-manifest.js index 4ab18048b0f1110cf02eb70d5ee71323d1b69be5..ce872e881a03b54d62872553220ed6271d7b5c26 100644 --- a/.next/server/app/test-generation/page_client-reference-manifest.js +++ b/.next/server/app/test-generation/page_client-reference-manifest.js @@ -1 +1 @@ -globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/test-generation/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5160","static/chunks/5160-7fad12b18cc710d2.js","9519","static/chunks/9519-d81bd1404a321000.js","5705","static/chunks/5705-4413c7555ebad1a5.js","8974","static/chunks/app/page-a9a0ed5816ebc83c.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","9519","static/chunks/9519-d81bd1404a321000.js","6932","static/chunks/app/test-generation/page-1c466d2b12c4a866.js"],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/634e649c3cc2540f.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file +globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/test-generation/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"82016","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"31152","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"83133","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"54160","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"92130","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"38502","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"11987","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"74034","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"67600","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":57150,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/tanstack-query-provider.tsx":{"id":46131,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/providers/theme-provider.tsx":{"id":98124,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/ui/sonner.tsx":{"id":70240,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":85568,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/node_modules/next/font/google/target.css?{\"path\":\"app/layout.tsx\",\"import\":\"PT_Sans\",\"arguments\":[{\"variable\":\"--font-ptSans-mono\",\"subsets\":[\"latin\"],\"weight\":[\"400\",\"700\"]}],\"variableName\":\"ptSans\"}":{"id":80231,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/assets/globals.css":{"id":27408,"name":"*","chunks":["8720","static/chunks/8720-c9ee040177c11cae.js","4841","static/chunks/4841-9c023033845750e4.js","7177","static/chunks/app/layout-f8fe6cebce585a15.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/components/page-wrapper/index.tsx":{"id":43688,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/login/page.tsx":{"id":62112,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/admin/page.tsx":{"id":25782,"name":"*","chunks":[],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page.tsx":{"id":86807,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","4316","static/chunks/ad2866b8-e13a3cf75ccf0eb8.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","5088","static/chunks/5088-f1f2539e3759b7ac.js","9519","static/chunks/9519-f829657823927036.js","9177","static/chunks/9177-1cbd5678f2905715.js","8974","static/chunks/app/page-da122e29b692f6bc.js"],"async":false},"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page.tsx":{"id":84674,"name":"*","chunks":["5948","static/chunks/06bf0ff1-101744fe776a5109.js","7003","static/chunks/14258b02-ed7689e3556981a7.js","8720","static/chunks/8720-c9ee040177c11cae.js","9401","static/chunks/9401-d7ee14e1932b9afd.js","9519","static/chunks/9519-f829657823927036.js","6932","static/chunks/app/test-generation/page-1c466d2b12c4a866.js"],"async":false}},"entryCSSFiles":{"/Users/otto/Desktop/deepstudio/osw-studio-git/":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":[{"inlined":false,"path":"static/css/7a4f097ac51b20a7.css"}],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/page":[],"/Users/otto/Desktop/deepstudio/osw-studio-git/app/test-generation/page":[]},"rscModuleMapping":{"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"25782":{"*":{"id":"37734","name":"*","chunks":[],"async":false}},"27408":{"*":{"id":"94348","name":"*","chunks":[],"async":false}},"43688":{"*":{"id":"2054","name":"*","chunks":[],"async":false}},"46131":{"*":{"id":"69507","name":"*","chunks":[],"async":false}},"57150":{"*":{"id":"81170","name":"*","chunks":[],"async":false}},"62112":{"*":{"id":"7760","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70240":{"*":{"id":"20656","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"84674":{"*":{"id":"60940","name":"*","chunks":[],"async":false}},"86807":{"*":{"id":"17742","name":"*","chunks":[],"async":false}},"98124":{"*":{"id":"26262","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}} \ No newline at end of file diff --git a/.next/server/chunks/1732.js b/.next/server/chunks/1732.js new file mode 100644 index 0000000000000000000000000000000000000000..b1a653355fe69a0682b95defff23687da0ea71f5 --- /dev/null +++ b/.next/server/chunks/1732.js @@ -0,0 +1,5 @@ +exports.id=1732,exports.ids=[1732],exports.modules={282:(a,b,c)=>{"use strict";function d(a,b,c,d){let e,f=a.length,g=0;if(b=b<0?-b>f?0:f+b:b>f?f:b,c=c>0?c:0,d.length<1e4)(e=Array.from(d)).unshift(b,c),a.splice(...e);else for(c&&a.splice(b,c);g0?(d(a,a.length,0,b),a):b}c.d(b,{V:()=>e,m:()=>d})},769:(a,b,c)=>{"use strict";c.r(b),c.d(b,{_:()=>e});var d=0;function e(a){return"__private_"+d+++"_"+a}},1776:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("cloud-off",[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M5.782 5.782A7 7 0 0 0 9 19h8.5a4.5 4.5 0 0 0 1.307-.193",key:"yfwify"}],["path",{d:"M21.532 16.5A4.5 4.5 0 0 0 17.5 10h-1.79A7.008 7.008 0 0 0 10 5.07",key:"jlfiyv"}]])},1949:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]])},2510:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("layout-template",[["rect",{width:"18",height:"7",x:"3",y:"3",rx:"1",key:"f1a2em"}],["rect",{width:"9",height:"7",x:"3",y:"14",rx:"1",key:"jqznyg"}],["rect",{width:"5",height:"7",x:"16",y:"14",rx:"1",key:"q5h2i8"}]])},2891:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"refreshReducer",{enumerable:!0,get:function(){return o}});let d=c(60535),e=c(11830),f=c(76143),g=c(81711),h=c(3219),i=c(73486),j=c(35939),k=c(97163),l=c(50586),m=c(76061),n=c(72869);function o(a,b){let{origin:c}=b,o={},p=a.canonicalUrl,q=a.tree;o.preserveCustomHistoryState=!1;let r=(0,k.createEmptyCacheNode)(),s=(0,m.hasInterceptionRouteInCurrentTree)(a.tree);r.lazyData=(0,d.fetchServerResponse)(new URL(p,c),{flightRouterState:[q[0],q[1],q[2],"refetch"],nextUrl:s?a.nextUrl:null});let t=Date.now();return r.lazyData.then(async c=>{let{flightData:d,canonicalUrl:k}=c;if("string"==typeof d)return(0,h.handleExternalUrl)(a,o,d,a.pushRef.pendingPush);for(let c of(r.lazyData=null,d)){let{tree:d,seedData:i,head:m,isRootRender:u}=c;if(!u)return console.log("REFRESH FAILED"),a;let v=(0,f.applyRouterStatePatchToTree)([""],q,d,a.canonicalUrl);if(null===v)return(0,l.handleSegmentMismatch)(a,b,d);if((0,g.isNavigatingToNewRootLayout)(q,v))return(0,h.handleExternalUrl)(a,o,p,a.pushRef.pendingPush);let w=k?(0,e.createHrefFromUrl)(k):void 0;if(k&&(o.canonicalUrl=w),null!==i){let a=i[1],b=i[3];r.rsc=a,r.prefetchRsc=null,r.loading=b,(0,j.fillLazyItemsTillLeafWithHead)(t,r,void 0,d,i,m,void 0),o.prefetchCache=new Map}await (0,n.refreshInactiveParallelSegments)({navigatedAt:t,state:a,updatedTree:v,updatedCache:r,includeNextUrl:s,canonicalUrl:o.canonicalUrl||a.canonicalUrl}),o.cache=r,o.patchedTree=v,q=v}return(0,i.handleMutable)(a,o)},()=>a)}c(40668),("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},3219:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{generateSegmentsFromPatch:function(){return u},handleExternalUrl:function(){return t},navigateReducer:function(){return function a(b,c){let{url:v,isExternalUrl:w,navigateType:x,shouldScroll:y,allowAliasing:z}=c,A={},{hash:B}=v,C=(0,e.createHrefFromUrl)(v),D="push"===x;if((0,q.prunePrefetchCache)(b.prefetchCache),A.preserveCustomHistoryState=!1,A.pendingPush=D,w)return t(b,A,v.toString(),D);if(document.getElementById("__next-page-redirect"))return t(b,A,C,D);let E=(0,q.getOrCreatePrefetchCacheEntry)({url:v,nextUrl:b.nextUrl,tree:b.tree,prefetchCache:b.prefetchCache,allowAliasing:z}),{treeAtTimeOfPrefetch:F,data:G}=E;return m.prefetchQueue.bump(G),G.then(m=>{let{flightData:q,canonicalUrl:w,postponed:x}=m,z=Date.now(),G=!1;if(E.lastUsedTime||(E.lastUsedTime=z,G=!0),E.aliased){let d=new URL(v.href);w&&(d.pathname=w.pathname);let e=(0,s.handleAliasedPrefetchEntry)(z,b,q,d,A);return!1===e?a(b,{...c,allowAliasing:!1}):e}if("string"==typeof q)return t(b,A,q,D);let H=w?(0,e.createHrefFromUrl)(w):C;if(B&&b.canonicalUrl.split("#",1)[0]===H.split("#",1)[0])return A.onlyHashChange=!0,A.canonicalUrl=H,A.shouldScroll=y,A.hashFragment=B,A.scrollableSegments=[],(0,k.handleMutable)(b,A);let I=b.tree,J=b.cache,K=[];for(let a of q){let{pathToSegment:c,seedData:e,head:k,isHeadPartial:m,isRootRender:q}=a,s=a.tree,w=["",...c],y=(0,g.applyRouterStatePatchToTree)(w,I,s,C);if(null===y&&(y=(0,g.applyRouterStatePatchToTree)(w,F,s,C)),null!==y){if(e&&q&&x){let a=(0,p.startPPRNavigation)(z,J,I,s,e,k,m,!1,K);if(null!==a){if(null===a.route)return t(b,A,C,D);y=a.route;let c=a.node;null!==c&&(A.cache=c);let e=a.dynamicRequestTree;if(null!==e){let c=(0,d.fetchServerResponse)(new URL(H,v.origin),{flightRouterState:e,nextUrl:b.nextUrl});(0,p.listenForDynamicRequest)(a,c)}}else y=s}else{if((0,i.isNavigatingToNewRootLayout)(I,y))return t(b,A,C,D);let d=(0,n.createEmptyCacheNode)(),e=!1;for(let b of(E.status!==j.PrefetchCacheEntryStatus.stale||G?e=(0,l.applyFlightData)(z,J,d,a,E):(e=function(a,b,c,d){let e=!1;for(let f of(a.rsc=b.rsc,a.prefetchRsc=b.prefetchRsc,a.loading=b.loading,a.parallelRoutes=new Map(b.parallelRoutes),u(d).map(a=>[...c,...a])))(0,r.clearCacheNodeDataForSegmentPath)(a,b,f),e=!0;return e}(d,J,c,s),E.lastUsedTime=z),(0,h.shouldHardNavigate)(w,I)?(d.rsc=J.rsc,d.prefetchRsc=J.prefetchRsc,(0,f.invalidateCacheBelowFlightSegmentPath)(d,J,c),A.cache=d):e&&(A.cache=d,J=d),u(s))){let a=[...c,...b];a[a.length-1]!==o.DEFAULT_SEGMENT_KEY&&K.push(a)}}I=y}}return A.patchedTree=I,A.canonicalUrl=H,A.scrollableSegments=K,A.hashFragment=B,A.shouldScroll=y,(0,k.handleMutable)(b,A)},()=>b)}}});let d=c(60535),e=c(11830),f=c(90783),g=c(76143),h=c(62226),i=c(81711),j=c(12591),k=c(73486),l=c(70395),m=c(77743),n=c(97163),o=c(72454),p=c(19427),q=c(70491),r=c(5041),s=c(97150);function t(a,b,c,d){return b.mpaNavigation=!0,b.canonicalUrl=c,b.pendingPush=d,b.scrollableSegments=void 0,(0,k.handleMutable)(a,b)}function u(a){let b=[],[c,d]=a;if(0===Object.keys(d).length)return[[c]];for(let[a,e]of Object.entries(d))for(let d of u(e))""===c?b.push([a,...d]):b.push([c,a,...d]);return b}c(40668),("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},3663:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("file-text",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},3991:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{default:function(){return q},useLinkStatus:function(){return s}});let d=c(55823),e=c(21124),f=d._(c(38301)),g=c(47332),h=c(12889),i=c(49427),j=c(61962),k=c(92464);c(21507);let l=c(30551),m=c(17545),n=c(41439);c(84589);let o=c(40668);function p(a){return"string"==typeof a?a:(0,g.formatUrl)(a)}function q(a){var b;let c,d,g,[q,s]=(0,f.useOptimistic)(l.IDLE_LINK_STATUS),t=(0,f.useRef)(null),{href:u,as:v,children:w,prefetch:x=null,passHref:y,replace:z,shallow:A,scroll:B,onClick:C,onMouseEnter:D,onTouchStart:E,legacyBehavior:F=!1,onNavigate:G,ref:H,unstable_dynamicOnHover:I,...J}=a;c=w,F&&("string"==typeof c||"number"==typeof c)&&(c=(0,e.jsx)("a",{children:c}));let K=f.default.useContext(h.AppRouterContext),L=!1!==x,M=!1!==x?null===(b=x)||"auto"===b?o.FetchStrategy.PPR:o.FetchStrategy.Full:o.FetchStrategy.PPR,{href:N,as:O}=f.default.useMemo(()=>{let a=p(u);return{href:a,as:v?p(v):a}},[u,v]);F&&(d=f.default.Children.only(c));let P=F?d&&"object"==typeof d&&d.ref:H,Q=f.default.useCallback(a=>(null!==K&&(t.current=(0,l.mountLinkInstance)(a,N,K,M,L,s)),()=>{t.current&&((0,l.unmountLinkForCurrentNavigation)(t.current),t.current=null),(0,l.unmountPrefetchableInstance)(a)}),[L,N,K,M,s]),R={ref:(0,i.useMergedRef)(Q,P),onClick(a){F||"function"!=typeof C||C(a),F&&d.props&&"function"==typeof d.props.onClick&&d.props.onClick(a),K&&(a.defaultPrevented||function(a,b,c,d,e,g,h){let{nodeName:i}=a.currentTarget;if(!("A"===i.toUpperCase()&&function(a){let b=a.currentTarget.getAttribute("target");return b&&"_self"!==b||a.metaKey||a.ctrlKey||a.shiftKey||a.altKey||a.nativeEvent&&2===a.nativeEvent.which}(a)||a.currentTarget.hasAttribute("download"))){if(!(0,m.isLocalURL)(b)){e&&(a.preventDefault(),location.replace(b));return}if(a.preventDefault(),h){let a=!1;if(h({preventDefault:()=>{a=!0}}),a)return}f.default.startTransition(()=>{(0,n.dispatchNavigateAction)(c||b,e?"replace":"push",null==g||g,d.current)})}}(a,N,O,t,z,B,G))},onMouseEnter(a){F||"function"!=typeof D||D(a),F&&d.props&&"function"==typeof d.props.onMouseEnter&&d.props.onMouseEnter(a),K&&L&&(0,l.onNavigationIntent)(a.currentTarget,!0===I)},onTouchStart:function(a){F||"function"!=typeof E||E(a),F&&d.props&&"function"==typeof d.props.onTouchStart&&d.props.onTouchStart(a),K&&L&&(0,l.onNavigationIntent)(a.currentTarget,!0===I)}};return(0,j.isAbsoluteUrl)(O)?R.href=O:F&&!y&&("a"!==d.type||"href"in d.props)||(R.href=(0,k.addBasePath)(O)),g=F?f.default.cloneElement(d,R):(0,e.jsx)("a",{...J,...R,children:c}),(0,e.jsx)(r.Provider,{value:q,children:g})}let r=(0,f.createContext)(l.IDLE_LINK_STATUS),s=()=>(0,f.useContext)(r);("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},5041:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"clearCacheNodeDataForSegmentPath",{enumerable:!0,get:function(){return function a(b,c,f){let g=f.length<=2,[h,i]=f,j=(0,e.createRouterCacheKey)(i),k=c.parallelRoutes.get(h),l=b.parallelRoutes.get(h);l&&l!==k||(l=new Map(k),b.parallelRoutes.set(h,l));let m=null==k?void 0:k.get(j),n=l.get(j);if(g){n&&n.lazyData&&n!==m||l.set(j,{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:null,navigatedAt:-1});return}if(!n||!m){n||l.set(j,{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:null,navigatedAt:-1});return}return n===m&&(n={lazyData:n.lazyData,rsc:n.rsc,prefetchRsc:n.prefetchRsc,head:n.head,prefetchHead:n.prefetchHead,parallelRoutes:new Map(n.parallelRoutes),loading:n.loading},l.set(j,n)),a(n,m,(0,d.getNextFlightSegmentPath)(f))}}});let d=c(21600),e=c(95812);("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},5360:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("power",[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]])},5776:(a,b,c)=>{"use strict";function d(){}function e(){}c.d(b,{HB:()=>e,ok:()=>d})},8294:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]])},8849:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},9212:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]])},9286:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"assignLocation",{enumerable:!0,get:function(){return e}});let d=c(92464);function e(a,b){if(a.startsWith(".")){let c=b.origin+b.pathname;return new URL((c.endsWith("/")?c:c+"/")+a)}return new URL((0,d.addBasePath)(a),b.href)}("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},10596:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("grip-vertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]])},10708:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},11107:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return f}});let d=c(92800),e=c(58430),f=a=>{if(!a.startsWith("/"))return a;let{pathname:b,query:c,hash:f}=(0,e.parsePath)(a);return""+(0,d.removeTrailingSlash)(b)+c+f};("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},11861:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("history",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]])},15044:(a,b,c)=>{"use strict";c.d(b,{G5:()=>Y,H_:()=>R,JU:()=>P,Pb:()=>W,UC:()=>N,VF:()=>U,YJ:()=>O,ZL:()=>M,ZP:()=>X,bL:()=>K,hN:()=>T,l9:()=>L,q7:()=>Q,wv:()=>V,z6:()=>S});var d=c(38301),e=c(87868),f=c(2332),g=c(6406),h=c(87762),i=c(71700),j=c(11720),k=c(21124),l="ContextMenu",[m,n]=(0,f.A)(l,[h.UE]),o=(0,h.UE)(),[p,q]=m(l),r=a=>{let{__scopeContextMenu:b,children:c,onOpenChange:e,dir:f,modal:g=!0}=a,[j,l]=d.useState(!1),m=o(b),n=(0,i.c)(e),q=d.useCallback(a=>{l(a),n(a)},[n]);return(0,k.jsx)(p,{scope:b,open:j,onOpenChange:q,modal:g,children:(0,k.jsx)(h.bL,{...m,dir:f,open:j,onOpenChange:q,modal:g,children:c})})};r.displayName=l;var s="ContextMenuTrigger",t=d.forwardRef((a,b)=>{let{__scopeContextMenu:c,disabled:f=!1,...i}=a,j=q(s,c),l=o(c),m=d.useRef({x:0,y:0}),n=d.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...m.current})}),p=d.useRef(0),r=d.useCallback(()=>window.clearTimeout(p.current),[]),t=a=>{m.current={x:a.clientX,y:a.clientY},j.onOpenChange(!0)};return d.useEffect(()=>r,[r]),d.useEffect(()=>void(f&&r()),[f,r]),(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(h.Mz,{...l,virtualRef:n}),(0,k.jsx)(g.sG.span,{"data-state":j.open?"open":"closed","data-disabled":f?"":void 0,...i,ref:b,style:{WebkitTouchCallout:"none",...a.style},onContextMenu:f?a.onContextMenu:(0,e.mK)(a.onContextMenu,a=>{r(),t(a),a.preventDefault()}),onPointerDown:f?a.onPointerDown:(0,e.mK)(a.onPointerDown,J(a=>{r(),p.current=window.setTimeout(()=>t(a),700)})),onPointerMove:f?a.onPointerMove:(0,e.mK)(a.onPointerMove,J(r)),onPointerCancel:f?a.onPointerCancel:(0,e.mK)(a.onPointerCancel,J(r)),onPointerUp:f?a.onPointerUp:(0,e.mK)(a.onPointerUp,J(r))})]})});t.displayName=s;var u=a=>{let{__scopeContextMenu:b,...c}=a,d=o(b);return(0,k.jsx)(h.ZL,{...d,...c})};u.displayName="ContextMenuPortal";var v="ContextMenuContent",w=d.forwardRef((a,b)=>{let{__scopeContextMenu:c,...e}=a,f=q(v,c),g=o(c),i=d.useRef(!1);return(0,k.jsx)(h.UC,{...g,...e,ref:b,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:b=>{a.onCloseAutoFocus?.(b),!b.defaultPrevented&&i.current&&b.preventDefault(),i.current=!1},onInteractOutside:b=>{a.onInteractOutside?.(b),b.defaultPrevented||f.modal||(i.current=!0)},style:{...a.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});w.displayName=v;var x=d.forwardRef((a,b)=>{let{__scopeContextMenu:c,...d}=a,e=o(c);return(0,k.jsx)(h.YJ,{...e,...d,ref:b})});x.displayName="ContextMenuGroup";var y=d.forwardRef((a,b)=>{let{__scopeContextMenu:c,...d}=a,e=o(c);return(0,k.jsx)(h.JU,{...e,...d,ref:b})});y.displayName="ContextMenuLabel";var z=d.forwardRef((a,b)=>{let{__scopeContextMenu:c,...d}=a,e=o(c);return(0,k.jsx)(h.q7,{...e,...d,ref:b})});z.displayName="ContextMenuItem";var A=d.forwardRef((a,b)=>{let{__scopeContextMenu:c,...d}=a,e=o(c);return(0,k.jsx)(h.H_,{...e,...d,ref:b})});A.displayName="ContextMenuCheckboxItem";var B=d.forwardRef((a,b)=>{let{__scopeContextMenu:c,...d}=a,e=o(c);return(0,k.jsx)(h.z6,{...e,...d,ref:b})});B.displayName="ContextMenuRadioGroup";var C=d.forwardRef((a,b)=>{let{__scopeContextMenu:c,...d}=a,e=o(c);return(0,k.jsx)(h.hN,{...e,...d,ref:b})});C.displayName="ContextMenuRadioItem";var D=d.forwardRef((a,b)=>{let{__scopeContextMenu:c,...d}=a,e=o(c);return(0,k.jsx)(h.VF,{...e,...d,ref:b})});D.displayName="ContextMenuItemIndicator";var E=d.forwardRef((a,b)=>{let{__scopeContextMenu:c,...d}=a,e=o(c);return(0,k.jsx)(h.wv,{...e,...d,ref:b})});E.displayName="ContextMenuSeparator",d.forwardRef((a,b)=>{let{__scopeContextMenu:c,...d}=a,e=o(c);return(0,k.jsx)(h.i3,{...e,...d,ref:b})}).displayName="ContextMenuArrow";var F="ContextMenuSub",G=a=>{let{__scopeContextMenu:b,children:c,onOpenChange:d,open:e,defaultOpen:f}=a,g=o(b),[i,l]=(0,j.i)({prop:e,defaultProp:f??!1,onChange:d,caller:F});return(0,k.jsx)(h.Pb,{...g,open:i,onOpenChange:l,children:c})};G.displayName=F;var H=d.forwardRef((a,b)=>{let{__scopeContextMenu:c,...d}=a,e=o(c);return(0,k.jsx)(h.ZP,{...e,...d,ref:b})});H.displayName="ContextMenuSubTrigger";var I=d.forwardRef((a,b)=>{let{__scopeContextMenu:c,...d}=a,e=o(c);return(0,k.jsx)(h.G5,{...e,...d,ref:b,style:{...a.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});function J(a){return b=>"mouse"!==b.pointerType?a(b):void 0}I.displayName="ContextMenuSubContent";var K=r,L=t,M=u,N=w,O=x,P=y,Q=z,R=A,S=B,T=C,U=D,V=E,W=G,X=H,Y=I},15215:(a,b,c)=>{"use strict";c.d(b,{A:()=>fC});var d,e,f,g,h,i=function(a,b){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])})(a,b)};function j(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Class extends value "+String(b)+" is not a constructor or null");function c(){this.constructor=a}i(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}var k=function(){return(k=Object.assign||function(a){for(var b,c=1,d=arguments.length;c0&&e[e.length-1])&&(6===i[0]||2===i[0])){g=0;continue}if(3===i[0]&&(!e||i[1]>e[0]&&i[1]=55296&&e<=56319&&c>10)+55296,g%1024+56320)),(e+1===c||d.length>16384)&&(f+=String.fromCharCode.apply(String,d),d.length=0)}return f},t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u="undefined"==typeof Uint8Array?[]:new Uint8Array(256),v=0;v>4,k[i++]=(15&d)<<4|e>>2,k[i++]=(3&e)<<6|63&f;return j},A=function(a){for(var b=a.length,c=[],d=0;d=0){if(a<55296||a>56319&&a<=65535)return b=((b=this.index[a>>5])<<2)+(31&a),this.data[b];if(a<=65535)return b=((b=this.index[2048+(a-55296>>5)])<<2)+(31&a),this.data[b];if(a>11),b=this.index[b]+(a>>5&63),b=((b=this.index[b])<<2)+(31&a),this.data[b];if(a<=1114111)return this.data[this.highValueIndex]}return this.errorValue},a}(),F="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",G="undefined"==typeof Uint8Array?[]:new Uint8Array(256),H=0;H50?(e.push(!0),g-=50):e.push(!1),-1!==["normal","auto","loose"].indexOf(b)&&-1!==[8208,8211,12316,12448].indexOf(a))return d.push(f),c.push(16);if(4===g||11===g){if(0===f)return d.push(f),c.push(30);var h=c[f-1];return -1===O.indexOf(h)?(d.push(d[f-1]),c.push(h)):(d.push(f),c.push(30))}if(d.push(f),31===g)return c.push("strict"===b?21:37);if(42===g||29===g)return c.push(30);if(43===g)if(a>=131072&&a<=196605||a>=196608&&a<=262141)return c.push(37);else return c.push(30);c.push(g)}),[d,c,e]},S=function(a,b,c,d){var e=d[c];if(Array.isArray(a)?-1!==a.indexOf(e):a===e)for(var f=c;f<=d.length;){var g=d[++f];if(g===b)return!0;if(10!==g)break}if(10===e)for(var f=c;f>0;){var h=d[--f];if(Array.isArray(a)?-1!==a.indexOf(h):a===h)for(var i=c;i<=d.length;){var g=d[++i];if(g===b)return!0;if(10!==g)break}if(10!==h)break}return!1},T=function(a,b){for(var c=a;c>=0;){var d=b[c];if(10!==d)return d;c--}return 0},U=function(a,b,c,d,e){if(0===c[d])return"\xd7";var f=d-1;if(Array.isArray(e)&&!0===e[f])return"\xd7";var g=f-1,h=f+1,i=b[f],j=g>=0?b[g]:0,k=b[h];if(2===i&&3===k)return"\xd7";if(-1!==L.indexOf(i))return"!";if(-1!==L.indexOf(k)||-1!==M.indexOf(k))return"\xd7";if(8===T(f,b))return"\xf7";if(11===J.get(a[f])||(32===i||33===i)&&11===J.get(a[h])||7===i||7===k||9===i||-1===[10,13,15].indexOf(i)&&9===k||-1!==[17,18,19,24,28].indexOf(k)||22===T(f,b)||S(23,22,f,b)||S([17,18],21,f,b)||S(12,12,f,b))return"\xd7";if(10===i)return"\xf7";if(23===i||23===k)return"\xd7";if(16===k||16===i)return"\xf7";if(-1!==[13,15,21].indexOf(k)||14===i||36===j&&-1!==Q.indexOf(i)||28===i&&36===k||20===k||-1!==K.indexOf(k)&&25===i||-1!==K.indexOf(i)&&25===k||27===i&&-1!==[37,32,33].indexOf(k)||-1!==[37,32,33].indexOf(i)&&26===k||-1!==K.indexOf(i)&&-1!==N.indexOf(k)||-1!==N.indexOf(i)&&-1!==K.indexOf(k)||-1!==[27,26].indexOf(i)&&(25===k||-1!==[22,15].indexOf(k)&&25===b[h+1])||-1!==[22,15].indexOf(i)&&25===k||25===i&&-1!==[25,28,24].indexOf(k))return"\xd7";if(-1!==[25,28,24,17,18].indexOf(k))for(var l=f;l>=0;){var m=b[l];if(25===m)return"\xd7";if(-1!==[28,24].indexOf(m))l--;else break}if(-1!==[27,26].indexOf(k))for(var l=-1!==[17,18].indexOf(i)?g:f;l>=0;){var m=b[l];if(25===m)return"\xd7";if(-1!==[28,24].indexOf(m))l--;else break}if(38===i&&-1!==[38,39,34,35].indexOf(k)||-1!==[39,34].indexOf(i)&&-1!==[39,40].indexOf(k)||-1!==[40,35].indexOf(i)&&40===k||-1!==P.indexOf(i)&&-1!==[20,26].indexOf(k)||-1!==P.indexOf(k)&&27===i||-1!==K.indexOf(i)&&-1!==K.indexOf(k)||24===i&&-1!==K.indexOf(k)||-1!==K.concat(25).indexOf(i)&&22===k&&-1===I.indexOf(a[h])||-1!==K.concat(25).indexOf(k)&&18===i)return"\xd7";if(41===i&&41===k){for(var n=c[f],o=1;n>0;)if(41===b[--n])o++;else break;if(o%2!=0)return"\xd7"}return 32===i&&33===k?"\xd7":"\xf7"},V=function(a,b){b||(b={lineBreak:"normal",wordBreak:"normal"});var c=R(a,b.lineBreak),d=c[0],e=c[1],f=c[2];return("break-all"===b.wordBreak||"break-word"===b.wordBreak)&&(e=e.map(function(a){return -1!==[25,30,42].indexOf(a)?37:a})),[d,e,"keep-all"===b.wordBreak?f.map(function(b,c){return b&&a[c]>=19968&&a[c]<=40959}):void 0]},W=function(){function a(a,b,c,d){this.codePoints=a,this.required="!"===b,this.start=c,this.end=d}return a.prototype.slice=function(){return s.apply(void 0,this.codePoints.slice(this.start,this.end))},a}(),X=function(a,b){var c=r(a),d=V(c,b),e=d[0],f=d[1],g=d[2],h=c.length,i=0,j=0;return{next:function(){if(j>=h)return{done:!0,value:null};for(var a="\xd7";j=48&&a<=57},Z=function(a){return Y(a)||a>=65&&a<=70||a>=97&&a<=102},$=function(a){return a>=97&&a<=122||a>=65&&a<=90},_=function(a){return 10===a||9===a||32===a},aa=function(a){return $(a)||a>=128||95===a},ab=function(a){return aa(a)||Y(a)||45===a},ac=function(a,b){return 92===a&&10!==b},ad=function(a,b,c){return 45===a?aa(b)||ac(b,c):!!(aa(a)||92===a&&ac(a,b))||!1},ae=function(a,b,c){return 43===a||45===a?!!Y(b)||46===b&&Y(c):46===a?Y(b):Y(a)},af=function(a){var b=0,c=1;(43===a[0]||45===a[b])&&(45===a[b]&&(c=-1),b++);for(var d=[];Y(a[b]);)d.push(a[b++]);var e=d.length?parseInt(s.apply(void 0,d),10):0;46===a[b]&&b++;for(var f=[];Y(a[b]);)f.push(a[b++]);var g=f.length,h=g?parseInt(s.apply(void 0,f),10):0;(69===a[b]||101===a[b])&&b++;var i=1;(43===a[b]||45===a[b])&&(45===a[b]&&(i=-1),b++);for(var j=[];Y(a[b]);)j.push(a[b++]);return c*(e+h*Math.pow(10,-g))*Math.pow(10,i*(j.length?parseInt(s.apply(void 0,j),10):0))},ag={type:2},ah={type:3},ai={type:4},aj={type:13},ak={type:8},al={type:21},am={type:9},an={type:10},ao={type:11},ap={type:12},aq={type:14},ar={type:23},as={type:1},at={type:25},au={type:24},av={type:26},aw={type:27},ax={type:28},ay={type:29},az={type:31},aA={type:32},aB=function(){function a(){this._value=[]}return a.prototype.write=function(a){this._value=this._value.concat(r(a))},a.prototype.read=function(){for(var a=[],b=this.consumeToken();b!==aA;)a.push(b),b=this.consumeToken();return a},a.prototype.consumeToken=function(){var a=this.consumeCodePoint();switch(a){case 34:return this.consumeStringToken(34);case 35:var b=this.peekCodePoint(0),c=this.peekCodePoint(1),d=this.peekCodePoint(2);if(ab(b)||ac(c,d)){var e=ad(b,c,d)?2:1,f=this.consumeName();return{type:5,value:f,flags:e}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),aj;break;case 39:return this.consumeStringToken(39);case 40:return ag;case 41:return ah;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),aq;break;case 43:case 46:if(ae(a,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(a),this.consumeNumericToken();break;case 44:return ai;case 45:var g=this.peekCodePoint(0),h=this.peekCodePoint(1);if(ae(a,g,h))return this.reconsumeCodePoint(a),this.consumeNumericToken();if(ad(a,g,h))return this.reconsumeCodePoint(a),this.consumeIdentLikeToken();if(45===g&&62===h)return this.consumeCodePoint(),this.consumeCodePoint(),au;break;case 47:if(42===this.peekCodePoint(0))for(this.consumeCodePoint();;){var i=this.consumeCodePoint();if(42===i&&47===(i=this.consumeCodePoint())||-1===i)return this.consumeToken()}break;case 58:return av;case 59:return aw;case 60:if(33===this.peekCodePoint(0)&&45===this.peekCodePoint(1)&&45===this.peekCodePoint(2))return this.consumeCodePoint(),this.consumeCodePoint(),at;break;case 64:if(ad(this.peekCodePoint(0),this.peekCodePoint(1),this.peekCodePoint(2))){var f=this.consumeName();return{type:7,value:f}}break;case 91:return ax;case 92:if(ac(a,this.peekCodePoint(0)))return this.reconsumeCodePoint(a),this.consumeIdentLikeToken();break;case 93:return ay;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),ak;break;case 123:return ao;case 125:return ap;case 117:case 85:var j=this.peekCodePoint(0),k=this.peekCodePoint(1);return 43===j&&(Z(k)||63===k)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(a),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),am;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),al;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),an;break;case -1:return aA}return _(a)?(this.consumeWhiteSpace(),az):Y(a)?(this.reconsumeCodePoint(a),this.consumeNumericToken()):aa(a)?(this.reconsumeCodePoint(a),this.consumeIdentLikeToken()):{type:6,value:s(a)}},a.prototype.consumeCodePoint=function(){var a=this._value.shift();return void 0===a?-1:a},a.prototype.reconsumeCodePoint=function(a){this._value.unshift(a)},a.prototype.peekCodePoint=function(a){return a>=this._value.length?-1:this._value[a]},a.prototype.consumeUnicodeRangeToken=function(){for(var a=[],b=this.consumeCodePoint();Z(b)&&a.length<6;)a.push(b),b=this.consumeCodePoint();for(var c=!1;63===b&&a.length<6;)a.push(b),b=this.consumeCodePoint(),c=!0;if(c){var d=parseInt(s.apply(void 0,a.map(function(a){return 63===a?48:a})),16),e=parseInt(s.apply(void 0,a.map(function(a){return 63===a?70:a})),16);return{type:30,start:d,end:e}}var f=parseInt(s.apply(void 0,a),16);if(!(45===this.peekCodePoint(0)&&Z(this.peekCodePoint(1))))return{type:30,start:f,end:f};this.consumeCodePoint(),b=this.consumeCodePoint();for(var g=[];Z(b)&&g.length<6;)g.push(b),b=this.consumeCodePoint();var e=parseInt(s.apply(void 0,g),16);return{type:30,start:f,end:e}},a.prototype.consumeIdentLikeToken=function(){var a=this.consumeName();return"url"===a.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:19,value:a}):{type:20,value:a}},a.prototype.consumeUrlToken=function(){var a=[];if(this.consumeWhiteSpace(),-1===this.peekCodePoint(0))return{type:22,value:""};var b=this.peekCodePoint(0);if(39===b||34===b){var c=this.consumeStringToken(this.consumeCodePoint());return 0===c.type&&(this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:22,value:c.value}):(this.consumeBadUrlRemnants(),ar)}for(;;){var d,e=this.consumeCodePoint();if(-1===e||41===e)return{type:22,value:s.apply(void 0,a)};if(_(e)){if(this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0))return this.consumeCodePoint(),{type:22,value:s.apply(void 0,a)};return this.consumeBadUrlRemnants(),ar}if(34===e||39===e||40===e||(d=e)>=0&&d<=8||11===d||d>=14&&d<=31||127===d)return this.consumeBadUrlRemnants(),ar;if(92===e)if(!ac(e,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),ar;else a.push(this.consumeEscapedCodePoint());else a.push(e)}},a.prototype.consumeWhiteSpace=function(){for(;_(this.peekCodePoint(0));)this.consumeCodePoint()},a.prototype.consumeBadUrlRemnants=function(){for(;;){var a=this.consumeCodePoint();if(41===a||-1===a)return;ac(a,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},a.prototype.consumeStringSlice=function(a){for(var b="";a>0;){var c=Math.min(5e4,a);b+=s.apply(void 0,this._value.splice(0,c)),a-=c}return this._value.shift(),b},a.prototype.consumeStringToken=function(a){for(var b="",c=0;;){var d=this._value[c];if(-1===d||void 0===d||d===a)return{type:0,value:b+=this.consumeStringSlice(c)};if(10===d)return this._value.splice(0,c),as;if(92===d){var e=this._value[c+1];-1!==e&&void 0!==e&&(10===e?(b+=this.consumeStringSlice(c),c=-1,this._value.shift()):ac(d,e)&&(b+=this.consumeStringSlice(c),b+=s(this.consumeEscapedCodePoint()),c=-1))}c++}},a.prototype.consumeNumber=function(){var a=[],b=4,c=this.peekCodePoint(0);for((43===c||45===c)&&a.push(this.consumeCodePoint());Y(this.peekCodePoint(0));)a.push(this.consumeCodePoint());c=this.peekCodePoint(0);var d=this.peekCodePoint(1);if(46===c&&Y(d))for(a.push(this.consumeCodePoint(),this.consumeCodePoint()),b=8;Y(this.peekCodePoint(0));)a.push(this.consumeCodePoint());c=this.peekCodePoint(0),d=this.peekCodePoint(1);var e=this.peekCodePoint(2);if((69===c||101===c)&&((43===d||45===d)&&Y(e)||Y(d)))for(a.push(this.consumeCodePoint(),this.consumeCodePoint()),b=8;Y(this.peekCodePoint(0));)a.push(this.consumeCodePoint());return[af(a),b]},a.prototype.consumeNumericToken=function(){var a=this.consumeNumber(),b=a[0],c=a[1],d=this.peekCodePoint(0);return ad(d,this.peekCodePoint(1),this.peekCodePoint(2))?{type:15,number:b,flags:c,unit:this.consumeName()}:37===d?(this.consumeCodePoint(),{type:16,number:b,flags:c}):{type:17,number:b,flags:c}},a.prototype.consumeEscapedCodePoint=function(){var a=this.consumeCodePoint();if(Z(a)){for(var b=s(a);Z(this.peekCodePoint(0))&&b.length<6;)b+=s(this.consumeCodePoint());_(this.peekCodePoint(0))&&this.consumeCodePoint();var c=parseInt(b,16);return 0===c||c>=55296&&c<=57343||c>1114111?65533:c}return -1===a?65533:a},a.prototype.consumeName=function(){for(var a="";;){var b=this.consumeCodePoint();if(ab(b))a+=s(b);else{if(!ac(b,this.peekCodePoint(0)))return this.reconsumeCodePoint(b),a;a+=s(this.consumeEscapedCodePoint())}}},a}(),aC=function(){function a(a){this._tokens=a}return a.create=function(b){var c=new aB;return c.write(b),new a(c.read())},a.parseValue=function(b){return a.create(b).parseComponentValue()},a.parseValues=function(b){return a.create(b).parseComponentValues()},a.prototype.parseComponentValue=function(){for(var a=this.consumeToken();31===a.type;)a=this.consumeToken();if(32===a.type)throw SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(a);var b=this.consumeComponentValue();do a=this.consumeToken();while(31===a.type);if(32===a.type)return b;throw SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},a.prototype.parseComponentValues=function(){for(var a=[];;){var b=this.consumeComponentValue();if(32===b.type)return a;a.push(b),a.push()}},a.prototype.consumeComponentValue=function(){var a=this.consumeToken();switch(a.type){case 11:case 28:case 2:return this.consumeSimpleBlock(a.type);case 19:return this.consumeFunction(a)}return a},a.prototype.consumeSimpleBlock=function(a){for(var b={type:a,values:[]},c=this.consumeToken();;){if(32===c.type||aL(c,a))return b;this.reconsumeToken(c),b.values.push(this.consumeComponentValue()),c=this.consumeToken()}},a.prototype.consumeFunction=function(a){for(var b={name:a.value,values:[],type:18};;){var c=this.consumeToken();if(32===c.type||3===c.type)return b;this.reconsumeToken(c),b.values.push(this.consumeComponentValue())}},a.prototype.consumeToken=function(){var a=this._tokens.shift();return void 0===a?aA:a},a.prototype.reconsumeToken=function(a){this._tokens.unshift(a)},a}(),aD=function(a){return 15===a.type},aE=function(a){return 17===a.type},aF=function(a){return 20===a.type},aG=function(a){return 0===a.type},aH=function(a,b){return aF(a)&&a.value===b},aI=function(a){return 31!==a.type},aJ=function(a){return 31!==a.type&&4!==a.type},aK=function(a){var b=[],c=[];return a.forEach(function(a){if(4===a.type){if(0===c.length)throw Error("Error parsing function args, zero tokens for arg");b.push(c),c=[];return}31!==a.type&&c.push(a)}),c.length&&b.push(c),b},aL=function(a,b){return 11===b&&12===a.type||28===b&&29===a.type||2===b&&3===a.type},aM=function(a){return 17===a.type||15===a.type},aN=function(a){return 16===a.type||aM(a)},aO=function(a){return a.length>1?[a[0],a[1]]:[a[0]]},aP={type:17,number:0,flags:4},aQ={type:16,number:50,flags:4},aR={type:16,number:100,flags:4},aS=function(a,b,c){var d=a[0],e=a[1];return[aT(d,b),aT(void 0!==e?e:d,c)]},aT=function(a,b){if(16===a.type)return a.number/100*b;if(aD(a))switch(a.unit){case"rem":case"em":return 16*a.number}return a.number},aU="grad",aV="turn",aW={parse:function(a,b){if(15===b.type)switch(b.unit){case"deg":return Math.PI*b.number/180;case aU:return Math.PI/200*b.number;case"rad":return b.number;case aV:return 2*Math.PI*b.number}throw Error("Unsupported angle type")}},aX=function(a){return 15===a.type&&("deg"===a.unit||a.unit===aU||"rad"===a.unit||a.unit===aV)},aY=function(a){switch(a.filter(aF).map(function(a){return a.value}).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[aP,aP];case"to top":case"bottom":return aZ(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[aP,aR];case"to right":case"left":return aZ(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[aR,aR];case"to bottom":case"top":return aZ(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[aR,aP];case"to left":case"right":return aZ(270)}return 0},aZ=function(a){return Math.PI*a/180},a$={parse:function(a,b){if(18===b.type){var c=a6[b.name];if(void 0===c)throw Error('Attempting to parse an unsupported color function "'+b.name+'"');return c(a,b.values)}if(5===b.type){if(3===b.value.length){var d=b.value.substring(0,1),e=b.value.substring(1,2),f=b.value.substring(2,3);return a1(parseInt(d+d,16),parseInt(e+e,16),parseInt(f+f,16),1)}if(4===b.value.length){var d=b.value.substring(0,1),e=b.value.substring(1,2),f=b.value.substring(2,3),g=b.value.substring(3,4);return a1(parseInt(d+d,16),parseInt(e+e,16),parseInt(f+f,16),parseInt(g+g,16)/255)}if(6===b.value.length){var d=b.value.substring(0,2),e=b.value.substring(2,4),f=b.value.substring(4,6);return a1(parseInt(d,16),parseInt(e,16),parseInt(f,16),1)}if(8===b.value.length){var d=b.value.substring(0,2),e=b.value.substring(2,4),f=b.value.substring(4,6),g=b.value.substring(6,8);return a1(parseInt(d,16),parseInt(e,16),parseInt(f,16),parseInt(g,16)/255)}}if(20===b.type){var h=a8[b.value.toUpperCase()];if(void 0!==h)return h}return a8.TRANSPARENT}},a_=function(a){return(255&a)==0},a0=function(a){var b=255&a,c=255&a>>8,d=255&a>>16,e=255&a>>24;return b<255?"rgba("+e+","+d+","+c+","+b/255+")":"rgb("+e+","+d+","+c+")"},a1=function(a,b,c,d){return(a<<24|b<<16|c<<8|(0|Math.round(255*d)))>>>0},a2=function(a,b){if(17===a.type)return a.number;if(16===a.type){var c=3===b?1:255;return 3===b?a.number/100*c:Math.round(a.number/100*c)}return 0},a3=function(a,b){var c=b.filter(aJ);if(3===c.length){var d=c.map(a2),e=d[0],f=d[1],g=d[2];return a1(e,f,g,1)}if(4===c.length){var h=c.map(a2),e=h[0],f=h[1],g=h[2];return a1(e,f,g,h[3])}return 0};function a4(a,b,c){return(c<0&&(c+=1),c>=1&&(c-=1),c<1/6)?(b-a)*c*6+a:c<.5?b:c<2/3?(b-a)*6*(2/3-c)+a:a}var a5=function(a,b){var c=b.filter(aJ),d=c[0],e=c[1],f=c[2],g=c[3],h=(17===d.type?aZ(d.number):aW.parse(a,d))/(2*Math.PI),i=aN(e)?e.number/100:0,j=aN(f)?f.number/100:0,k=void 0!==g&&aN(g)?aT(g,1):1;if(0===i)return a1(255*j,255*j,255*j,1);var l=j<=.5?j*(i+1):j+i-j*i,m=2*j-l;return a1(255*a4(m,l,h+1/3),255*a4(m,l,h),255*a4(m,l,h-1/3),k)},a6={hsl:a5,hsla:a5,rgb:a3,rgba:a3},a7=function(a,b){return a$.parse(a,aC.create(b).parseComponentValue())},a8={ALICEBLUE:0xf0f8ffff,ANTIQUEWHITE:0xfaebd7ff,AQUA:0xffffff,AQUAMARINE:0x7fffd4ff,AZURE:0xf0ffffff,BEIGE:0xf5f5dcff,BISQUE:0xffe4c4ff,BLACK:255,BLANCHEDALMOND:0xffebcdff,BLUE:65535,BLUEVIOLET:0x8a2be2ff,BROWN:0xa52a2aff,BURLYWOOD:0xdeb887ff,CADETBLUE:0x5f9ea0ff,CHARTREUSE:0x7fff00ff,CHOCOLATE:0xd2691eff,CORAL:0xff7f50ff,CORNFLOWERBLUE:0x6495edff,CORNSILK:0xfff8dcff,CRIMSON:0xdc143cff,CYAN:0xffffff,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:0xb886bbff,DARKGRAY:0xa9a9a9ff,DARKGREEN:6553855,DARKGREY:0xa9a9a9ff,DARKKHAKI:0xbdb76bff,DARKMAGENTA:0x8b008bff,DARKOLIVEGREEN:0x556b2fff,DARKORANGE:0xff8c00ff,DARKORCHID:0x9932ccff,DARKRED:0x8b0000ff,DARKSALMON:0xe9967aff,DARKSEAGREEN:0x8fbc8fff,DARKSLATEBLUE:0x483d8bff,DARKSLATEGRAY:0x2f4f4fff,DARKSLATEGREY:0x2f4f4fff,DARKTURQUOISE:0xced1ff,DARKVIOLET:0x9400d3ff,DEEPPINK:0xff1493ff,DEEPSKYBLUE:0xbfffff,DIMGRAY:0x696969ff,DIMGREY:0x696969ff,DODGERBLUE:0x1e90ffff,FIREBRICK:0xb22222ff,FLORALWHITE:0xfffaf0ff,FORESTGREEN:0x228b22ff,FUCHSIA:0xff00ffff,GAINSBORO:0xdcdcdcff,GHOSTWHITE:0xf8f8ffff,GOLD:0xffd700ff,GOLDENROD:0xdaa520ff,GRAY:0x808080ff,GREEN:8388863,GREENYELLOW:0xadff2fff,GREY:0x808080ff,HONEYDEW:0xf0fff0ff,HOTPINK:0xff69b4ff,INDIANRED:0xcd5c5cff,INDIGO:0x4b0082ff,IVORY:0xfffff0ff,KHAKI:0xf0e68cff,LAVENDER:0xe6e6faff,LAVENDERBLUSH:0xfff0f5ff,LAWNGREEN:0x7cfc00ff,LEMONCHIFFON:0xfffacdff,LIGHTBLUE:0xadd8e6ff,LIGHTCORAL:0xf08080ff,LIGHTCYAN:0xe0ffffff,LIGHTGOLDENRODYELLOW:0xfafad2ff,LIGHTGRAY:0xd3d3d3ff,LIGHTGREEN:0x90ee90ff,LIGHTGREY:0xd3d3d3ff,LIGHTPINK:0xffb6c1ff,LIGHTSALMON:0xffa07aff,LIGHTSEAGREEN:0x20b2aaff,LIGHTSKYBLUE:0x87cefaff,LIGHTSLATEGRAY:0x778899ff,LIGHTSLATEGREY:0x778899ff,LIGHTSTEELBLUE:0xb0c4deff,LIGHTYELLOW:0xffffe0ff,LIME:0xff00ff,LIMEGREEN:0x32cd32ff,LINEN:0xfaf0e6ff,MAGENTA:0xff00ffff,MAROON:0x800000ff,MEDIUMAQUAMARINE:0x66cdaaff,MEDIUMBLUE:52735,MEDIUMORCHID:0xba55d3ff,MEDIUMPURPLE:0x9370dbff,MEDIUMSEAGREEN:0x3cb371ff,MEDIUMSLATEBLUE:0x7b68eeff,MEDIUMSPRINGGREEN:0xfa9aff,MEDIUMTURQUOISE:0x48d1ccff,MEDIUMVIOLETRED:0xc71585ff,MIDNIGHTBLUE:0x191970ff,MINTCREAM:0xf5fffaff,MISTYROSE:0xffe4e1ff,MOCCASIN:0xffe4b5ff,NAVAJOWHITE:0xffdeadff,NAVY:33023,OLDLACE:0xfdf5e6ff,OLIVE:0x808000ff,OLIVEDRAB:0x6b8e23ff,ORANGE:0xffa500ff,ORANGERED:0xff4500ff,ORCHID:0xda70d6ff,PALEGOLDENROD:0xeee8aaff,PALEGREEN:0x98fb98ff,PALETURQUOISE:0xafeeeeff,PALEVIOLETRED:0xdb7093ff,PAPAYAWHIP:0xffefd5ff,PEACHPUFF:0xffdab9ff,PERU:0xcd853fff,PINK:0xffc0cbff,PLUM:0xdda0ddff,POWDERBLUE:0xb0e0e6ff,PURPLE:0x800080ff,REBECCAPURPLE:0x663399ff,RED:0xff0000ff,ROSYBROWN:0xbc8f8fff,ROYALBLUE:0x4169e1ff,SADDLEBROWN:0x8b4513ff,SALMON:0xfa8072ff,SANDYBROWN:0xf4a460ff,SEAGREEN:0x2e8b57ff,SEASHELL:0xfff5eeff,SIENNA:0xa0522dff,SILVER:0xc0c0c0ff,SKYBLUE:0x87ceebff,SLATEBLUE:0x6a5acdff,SLATEGRAY:0x708090ff,SLATEGREY:0x708090ff,SNOW:0xfffafaff,SPRINGGREEN:0xff7fff,STEELBLUE:0x4682b4ff,TAN:0xd2b48cff,TEAL:8421631,THISTLE:0xd8bfd8ff,TOMATO:0xff6347ff,TRANSPARENT:0,TURQUOISE:0x40e0d0ff,VIOLET:0xee82eeff,WHEAT:0xf5deb3ff,WHITE:0xffffffff,WHITESMOKE:0xf5f5f5ff,YELLOW:0xffff00ff,YELLOWGREEN:0x9acd32ff},a9={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(a,b){return b.map(function(a){if(aF(a))switch(a.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},ba={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},bb=function(a,b){var c=a$.parse(a,b[0]),d=b[1];return d&&aN(d)?{color:c,stop:d}:{color:c,stop:null}},bc=function(a,b){var c=a[0],d=a[a.length-1];null===c.stop&&(c.stop=aP),null===d.stop&&(d.stop=aR);for(var e=[],f=0,g=0;gf?e.push(i):e.push(f),f=i}else e.push(null)}for(var j=null,g=0;ga.optimumDistance)?{optimumCorner:b,optimumDistance:f}:a},{optimumDistance:e?1/0:-1/0,optimumCorner:null}).optimumCorner},bh=function(a,b,c,d,e){var f=0,g=0;switch(a.size){case 0:0===a.shape?f=g=Math.min(Math.abs(b),Math.abs(b-d),Math.abs(c),Math.abs(c-e)):1===a.shape&&(f=Math.min(Math.abs(b),Math.abs(b-d)),g=Math.min(Math.abs(c),Math.abs(c-e)));break;case 2:if(0===a.shape)f=g=Math.min(bf(b,c),bf(b,c-e),bf(b-d,c),bf(b-d,c-e));else if(1===a.shape){var h=Math.min(Math.abs(c),Math.abs(c-e))/Math.min(Math.abs(b),Math.abs(b-d)),i=bg(d,e,b,c,!0),j=i[0],k=i[1];f=bf(j-b,(k-c)/h),g=h*f}break;case 1:0===a.shape?f=g=Math.max(Math.abs(b),Math.abs(b-d),Math.abs(c),Math.abs(c-e)):1===a.shape&&(f=Math.max(Math.abs(b),Math.abs(b-d)),g=Math.max(Math.abs(c),Math.abs(c-e)));break;case 3:if(0===a.shape)f=g=Math.max(bf(b,c),bf(b,c-e),bf(b-d,c),bf(b-d,c-e));else if(1===a.shape){var h=Math.max(Math.abs(c),Math.abs(c-e))/Math.max(Math.abs(b),Math.abs(b-d)),l=bg(d,e,b,c,!1),j=l[0],k=l[1];f=bf(j-b,(k-c)/h),g=h*f}}return Array.isArray(a.size)&&(f=aT(a.size[0],d),g=2===a.size.length?aT(a.size[1],e):f),[f,g]},bi=function(a,b){var c=aZ(180),d=[];return aK(b).forEach(function(b,e){if(0===e){var f=b[0];if(20===f.type&&-1!==["top","left","right","bottom"].indexOf(f.value)){c=aY(b);return}if(aX(f)){c=(aW.parse(a,f)+aZ(270))%aZ(360);return}}var g=bb(a,b);d.push(g)}),{angle:c,stops:d,type:1}},bj="closest-side",bk="farthest-side",bl="closest-corner",bm="farthest-corner",bn="circle",bo="ellipse",bp="cover",bq="contain",br=function(a,b){var c=0,d=3,e=[],f=[];return aK(b).forEach(function(b,g){var h=!0;if(0===g?h=b.reduce(function(a,b){if(aF(b))switch(b.value){case"center":return f.push(aQ),!1;case"top":case"left":return f.push(aP),!1;case"right":case"bottom":return f.push(aR),!1}else if(aN(b)||aM(b))return f.push(b),!1;return a},h):1===g&&(h=b.reduce(function(a,b){if(aF(b))switch(b.value){case bn:return c=0,!1;case bo:return c=1,!1;case bq:case bj:return d=0,!1;case bk:return d=1,!1;case bl:return d=2,!1;case bp:case bm:return d=3,!1}else if(aM(b)||aN(b))return Array.isArray(d)||(d=[]),d.push(b),!1;return a},h)),h){var i=bb(a,b);e.push(i)}}),{size:d,shape:c,stops:e,position:f,type:2}},bs={parse:function(a,b){if(22===b.type){var c={url:b.value,type:0};return a.cache.addImage(b.value),c}if(18===b.type){var d=bt[b.name];if(void 0===d)throw Error('Attempting to parse an unsupported image function "'+b.name+'"');return d(a,b.values)}throw Error("Unsupported image type "+b.type)}},bt={"linear-gradient":function(a,b){var c=aZ(180),d=[];return aK(b).forEach(function(b,e){if(0===e){var f=b[0];if(20===f.type&&"to"===f.value){c=aY(b);return}if(aX(f)){c=aW.parse(a,f);return}}var g=bb(a,b);d.push(g)}),{angle:c,stops:d,type:1}},"-moz-linear-gradient":bi,"-ms-linear-gradient":bi,"-o-linear-gradient":bi,"-webkit-linear-gradient":bi,"radial-gradient":function(a,b){var c=0,d=3,e=[],f=[];return aK(b).forEach(function(b,g){var h=!0;if(0===g){var i=!1;h=b.reduce(function(a,b){if(i)if(aF(b))switch(b.value){case"center":f.push(aQ);break;case"top":case"left":f.push(aP);break;case"right":case"bottom":f.push(aR)}else(aN(b)||aM(b))&&f.push(b);else if(aF(b))switch(b.value){case bn:return c=0,!1;case bo:return c=1,!1;case"at":return i=!0,!1;case bj:return d=0,!1;case bp:case bk:return d=1,!1;case bq:case bl:return d=2,!1;case bm:return d=3,!1}else if(aM(b)||aN(b))return Array.isArray(d)||(d=[]),d.push(b),!1;return a},h)}if(h){var j=bb(a,b);e.push(j)}}),{size:d,shape:c,stops:e,position:f,type:2}},"-moz-radial-gradient":br,"-ms-radial-gradient":br,"-o-radial-gradient":br,"-webkit-radial-gradient":br,"-webkit-gradient":function(a,b){var c=aZ(180),d=[],e=1;return aK(b).forEach(function(b,c){var f=b[0];if(0===c){if(aF(f)&&"linear"===f.value){e=1;return}else if(aF(f)&&"radial"===f.value){e=2;return}}if(18===f.type){if("from"===f.name){var g=a$.parse(a,f.values[0]);d.push({stop:aP,color:g})}else if("to"===f.name){var g=a$.parse(a,f.values[0]);d.push({stop:aR,color:g})}else if("color-stop"===f.name){var h=f.values.filter(aJ);if(2===h.length){var g=a$.parse(a,h[1]),i=h[0];aE(i)&&d.push({stop:{type:16,number:100*i.number,flags:i.flags},color:g})}}}}),1===e?{angle:(c+aZ(180))%aZ(360),stops:d,type:e}:{size:3,shape:0,stops:d,position:[],type:e}}},bu={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(a,b){if(0===b.length)return[];var c=b[0];return 20===c.type&&"none"===c.value?[]:b.filter(function(a){var b;return aJ(a)&&(20!==(b=a).type||"none"!==b.value)&&(18!==b.type||!!bt[b.name])}).map(function(b){return bs.parse(a,b)})}},bv={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(a,b){return b.map(function(a){if(aF(a))switch(a.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},bw={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(a,b){return aK(b).map(function(a){return a.filter(aN)}).map(aO)}},bx={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(a,b){return aK(b).map(function(a){return a.filter(aF).map(function(a){return a.value}).join(" ")}).map(by)}},by=function(a){switch(a){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}};!function(a){a.AUTO="auto",a.CONTAIN="contain",a.COVER="cover"}(d||(d={}));var bz={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(a,b){return aK(b).map(function(a){return a.filter(bA)})}},bA=function(a){return aF(a)||aN(a)},bB=function(a){return{name:"border-"+a+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},bC=bB("top"),bD=bB("right"),bE=bB("bottom"),bF=bB("left"),bG=function(a){return{name:"border-radius-"+a,initialValue:"0 0",prefix:!1,type:1,parse:function(a,b){return aO(b.filter(aN))}}},bH=bG("top-left"),bI=bG("top-right"),bJ=bG("bottom-right"),bK=bG("bottom-left"),bL=function(a){return{name:"border-"+a+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(a,b){switch(b){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},bM=bL("top"),bN=bL("right"),bO=bL("bottom"),bP=bL("left"),bQ=function(a){return{name:"border-"+a+"-width",initialValue:"0",type:0,prefix:!1,parse:function(a,b){return aD(b)?b.number:0}}},bR=bQ("top"),bS=bQ("right"),bT=bQ("bottom"),bU=bQ("left"),bV={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},bW={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(a,b){return+("rtl"===b)}},bX={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(a,b){return b.filter(aF).reduce(function(a,b){return a|bY(b.value)},0)}},bY=function(a){switch(a){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 0x1000000;case"inline-block":return 0x2000000;case"inline-list-item":return 0x4000000;case"inline-table":return 0x8000000;case"inline-flex":return 0x10000000;case"inline-grid":return 0x20000000}return 0},bZ={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(a,b){switch(b){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},b$={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(a,b){return 20===b.type&&"normal"===b.value?0:17===b.type||15===b.type?b.number:0}};!function(a){a.NORMAL="normal",a.STRICT="strict"}(e||(e={}));var b_={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(a,b){return"strict"===b?e.STRICT:e.NORMAL}},b0={name:"line-height",initialValue:"normal",prefix:!1,type:4},b1=function(a,b){return aF(a)&&"normal"===a.value?1.2*b:17===a.type?b*a.number:aN(a)?aT(a,b):b},b2={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(a,b){return 20===b.type&&"none"===b.value?null:bs.parse(a,b)}},b3={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(a,b){return+("inside"!==b)}},b4={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(a,b){switch(b){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return -1}}},b5=function(a){return{name:"margin-"+a,initialValue:"0",prefix:!1,type:4}},b6=b5("top"),b7=b5("right"),b8=b5("bottom"),b9=b5("left"),ca={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(a,b){return b.filter(aF).map(function(a){switch(a.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})}},cb={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(a,b){return"break-word"===b?"break-word":"normal"}},cc=function(a){return{name:"padding-"+a,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},cd=cc("top"),ce=cc("right"),cf=cc("bottom"),cg=cc("left"),ch={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(a,b){switch(b){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},ci={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(a,b){switch(b){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},cj={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(a,b){return 1===b.length&&aH(b[0],"none")?[]:aK(b).map(function(b){for(var c={color:a8.TRANSPARENT,offsetX:aP,offsetY:aP,blur:aP},d=0,e=0;e1)],this.overflowWrap=cQ(a,cb,b.overflowWrap),this.paddingTop=cQ(a,cd,b.paddingTop),this.paddingRight=cQ(a,ce,b.paddingRight),this.paddingBottom=cQ(a,cf,b.paddingBottom),this.paddingLeft=cQ(a,cg,b.paddingLeft),this.paintOrder=cQ(a,cK,b.paintOrder),this.position=cQ(a,ci,b.position),this.textAlign=cQ(a,ch,b.textAlign),this.textDecorationColor=cQ(a,cv,null!=(c=b.textDecorationColor)?c:b.color),this.textDecorationLine=cQ(a,cw,null!=(d=b.textDecorationLine)?d:b.textDecoration),this.textShadow=cQ(a,cj,b.textShadow),this.textTransform=cQ(a,ck,b.textTransform),this.transform=cQ(a,cl,b.transform),this.transformOrigin=cQ(a,cp,b.transformOrigin),this.visibility=cQ(a,cq,b.visibility),this.webkitTextStrokeColor=cQ(a,cL,b.webkitTextStrokeColor),this.webkitTextStrokeWidth=cQ(a,cM,b.webkitTextStrokeWidth),this.wordBreak=cQ(a,cr,b.wordBreak),this.zIndex=cQ(a,cs,b.zIndex)}return a.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},a.prototype.isTransparent=function(){return a_(this.backgroundColor)},a.prototype.isTransformed=function(){return null!==this.transform},a.prototype.isPositioned=function(){return 0!==this.position},a.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},a.prototype.isFloating=function(){return 0!==this.float},a.prototype.isInlineLevel=function(){return cC(this.display,4)||cC(this.display,0x2000000)||cC(this.display,0x10000000)||cC(this.display,0x20000000)||cC(this.display,0x4000000)||cC(this.display,0x8000000)},a}(),cO=function(a,b){this.content=cQ(a,cD,b.content),this.quotes=cQ(a,cH,b.quotes)},cP=function(a,b){this.counterIncrement=cQ(a,cE,b.counterIncrement),this.counterReset=cQ(a,cF,b.counterReset)},cQ=function(a,b,c){var d=new aB,e=null!=c?c.toString():b.initialValue;d.write(e);var f=new aC(d.read());switch(b.type){case 2:var g=f.parseComponentValue();return b.parse(a,aF(g)?g.value:b.initialValue);case 0:return b.parse(a,f.parseComponentValue());case 1:return b.parse(a,f.parseComponentValues());case 4:return f.parseComponentValue();case 3:switch(b.format){case"angle":return aW.parse(a,f.parseComponentValue());case"color":return a$.parse(a,f.parseComponentValue());case"image":return bs.parse(a,f.parseComponentValue());case"length":var h=f.parseComponentValue();return aM(h)?h:aP;case"length-percentage":var i=f.parseComponentValue();return aN(i)?i:aP;case"time":return ct.parse(a,f.parseComponentValue())}}},cR=function(a){switch(a.getAttribute("data-html2canvas-debug")){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},cS=function(a,b){var c=cR(a);return 1===c||b===c},cT=function(a,b){this.context=a,this.textNodes=[],this.elements=[],this.flags=0,cS(b,3),this.styles=new cN(a,window.getComputedStyle(b,null)),d_(b)&&(this.styles.animationDuration.some(function(a){return a>0})&&(b.style.animationDuration="0s"),null!==this.styles.transform&&(b.style.transform="none")),this.bounds=p(this.context,b),cS(b,4)&&(this.flags|=16)},cU="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",cV="undefined"==typeof Uint8Array?[]:new Uint8Array(256),cW=0;cW>4,k[i++]=(15&d)<<4|e>>2,k[i++]=(3&e)<<6|63&f;return j},cY=function(a){for(var b=a.length,c=[],d=0;d=0){if(a<55296||a>56319&&a<=65535)return b=((b=this.index[a>>5])<<2)+(31&a),this.data[b];if(a<=65535)return b=((b=this.index[2048+(a-55296>>5)])<<2)+(31&a),this.data[b];if(a>11),b=this.index[b]+(a>>5&63),b=((b=this.index[b])<<2)+(31&a),this.data[b];if(a<=1114111)return this.data[this.highValueIndex]}return this.errorValue},a}(),c1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c2="undefined"==typeof Uint8Array?[]:new Uint8Array(256),c3=0;c3=55296&&e<=56319&&c>10)+55296,g%1024+56320)),(e+1===c||d.length>16384)&&(f+=String.fromCharCode.apply(String,d),d.length=0)}return f},c6=function(a,b){var c,d,e=cX(a),f=Array.isArray(e)?cZ(e):new Uint32Array(e),g=Array.isArray(e)?cY(e):new Uint16Array(e),h=c_(g,12,f[4]/2),i=2===f[5]?c_(g,(24+f[4])/2):(c=Math.ceil((24+f[4])/4),f.slice?f.slice(c,void 0):new Uint32Array(Array.prototype.slice.call(f,c,d)));return new c0(f[0],f[1],f[2],f[3],h,i)}("AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA="),c7=function(a){return c6.get(a)},c8=function(a,b,c){var d=c-2,e=b[d],f=b[c-1],g=b[c];if(2===f&&3===g)return"\xd7";if(2===f||3===f||4===f||2===g||3===g||4===g)return"\xf7";if(8===f&&-1!==[8,9,11,12].indexOf(g)||(11===f||9===f)&&(9===g||10===g)||(12===f||10===f)&&10===g||13===g||5===g||7===g||1===f)return"\xd7";if(13===f&&14===g){for(;5===e;)e=b[--d];if(14===e)return"\xd7"}if(15===f&&15===g){for(var h=0;15===e;)h++,e=b[--d];if(h%2==0)return"\xd7"}return"\xf7"},c9=function(a){var b=c4(a),c=b.length,d=0,e=0,f=b.map(c7);return{next:function(){if(d>=c)return{done:!0,value:null};for(var a="\xd7";dg.x||e.y>g.y;return g=e,0===b||h});return a.body.removeChild(b),h},dd=function(a){var b=new Image,c=a.createElement("canvas"),d=c.getContext("2d");if(!d)return!1;b.src="data:image/svg+xml,";try{d.drawImage(b,0,0),c.toDataURL()}catch(a){return!1}return!0},de=function(a){return 0===a[0]&&255===a[1]&&0===a[2]&&255===a[3]},df=function(a){var b=a.createElement("canvas");b.width=100,b.height=100;var c=b.getContext("2d");if(!c)return Promise.reject(!1);c.fillStyle="rgb(0, 255, 0)",c.fillRect(0,0,100,100);var d=new Image,e=b.toDataURL();d.src=e;var f=dg(100,100,0,0,d);return c.fillStyle="red",c.fillRect(0,0,100,100),dh(f).then(function(b){c.drawImage(b,0,0);var d=c.getImageData(0,0,100,100).data;c.fillStyle="red",c.fillRect(0,0,100,100);var f=a.createElement("div");return f.style.backgroundImage="url("+e+")",f.style.height="100px",de(d)?dh(dg(100,100,0,0,f)):Promise.reject(!1)}).then(function(a){return c.drawImage(a,0,0),de(c.getImageData(0,0,100,100).data)}).catch(function(){return!1})},dg=function(a,b,c,d,e){var f="http://www.w3.org/2000/svg",g=document.createElementNS(f,"svg"),h=document.createElementNS(f,"foreignObject");return g.setAttributeNS(null,"width",a.toString()),g.setAttributeNS(null,"height",b.toString()),h.setAttributeNS(null,"width","100%"),h.setAttributeNS(null,"height","100%"),h.setAttributeNS(null,"x",c.toString()),h.setAttributeNS(null,"y",d.toString()),h.setAttributeNS(null,"externalResourcesRequired","true"),g.appendChild(h),h.appendChild(e),g},dh=function(a){return new Promise(function(b,c){var d=new Image;d.onload=function(){return b(d)},d.onerror=c,d.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(a))})},di={get SUPPORT_RANGE_BOUNDS(){var dj=db(document);return Object.defineProperty(di,"SUPPORT_RANGE_BOUNDS",{value:dj}),dj},get SUPPORT_WORD_BREAKING(){var dk=di.SUPPORT_RANGE_BOUNDS&&dc(document);return Object.defineProperty(di,"SUPPORT_WORD_BREAKING",{value:dk}),dk},get SUPPORT_SVG_DRAWING(){var dl=dd(document);return Object.defineProperty(di,"SUPPORT_SVG_DRAWING",{value:dl}),dl},get SUPPORT_FOREIGNOBJECT_DRAWING(){var dm="function"==typeof Array.from&&"function"==typeof window.fetch?df(document):Promise.resolve(!1);return Object.defineProperty(di,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:dm}),dm},get SUPPORT_CORS_IMAGES(){var dn=void 0!==new Image().crossOrigin;return Object.defineProperty(di,"SUPPORT_CORS_IMAGES",{value:dn}),dn},get SUPPORT_RESPONSE_TYPE(){var dp="string"==typeof new XMLHttpRequest().responseType;return Object.defineProperty(di,"SUPPORT_RESPONSE_TYPE",{value:dp}),dp},get SUPPORT_CORS_XHR(){var dq="withCredentials"in new XMLHttpRequest;return Object.defineProperty(di,"SUPPORT_CORS_XHR",{value:dq}),dq},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var dr=!!("undefined"!=typeof Intl&&Intl.Segmenter);return Object.defineProperty(di,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:dr}),dr}},ds=function(a,b){this.text=a,this.bounds=b},dt=function(a,b,c,d){var e=dx(b,c),f=[],g=0;return e.forEach(function(b){if(c.textDecorationLine.length||b.trim().length>0)if(di.SUPPORT_RANGE_BOUNDS){var e=dv(d,g,b.length).getClientRects();if(e.length>1){var h=dw(b),i=0;h.forEach(function(b){f.push(new ds(b,o.fromDOMRectList(a,dv(d,i+g,b.length).getClientRects()))),i+=b.length})}else f.push(new ds(b,o.fromDOMRectList(a,e)))}else{var j=d.splitText(b.length);f.push(new ds(b,du(a,d))),d=j}else di.SUPPORT_RANGE_BOUNDS||(d=d.splitText(b.length));g+=b.length}),f},du=function(a,b){var c=b.ownerDocument;if(c){var d=c.createElement("html2canvaswrapper");d.appendChild(b.cloneNode(!0));var e=b.parentNode;if(e){e.replaceChild(d,b);var f=p(a,d);return d.firstChild&&e.replaceChild(d.firstChild,d),f}}return o.EMPTY},dv=function(a,b,c){var d=a.ownerDocument;if(!d)throw Error("Node has no owner document");var e=d.createRange();return e.setStart(a,b),e.setEnd(a,b+c),e},dw=function(a){return di.SUPPORT_NATIVE_TEXT_SEGMENTATION?Array.from(new Intl.Segmenter(void 0,{granularity:"grapheme"}).segment(a)).map(function(a){return a.segment}):da(a)},dx=function(a,b){return 0!==b.letterSpacing?dw(a):di.SUPPORT_NATIVE_TEXT_SEGMENTATION?Array.from(new Intl.Segmenter(void 0,{granularity:"word"}).segment(a)).map(function(a){return a.segment}):dz(a,b)},dy=[32,160,4961,65792,65793,4153,4241],dz=function(a,b){for(var c,d=X(a,{lineBreak:b.lineBreak,wordBreak:"break-word"===b.overflowWrap?"break-word":b.wordBreak}),e=[];!(c=d.next()).done;)!function(){if(c.value){var a=r(c.value.slice()),b="";a.forEach(function(a){-1===dy.indexOf(a)?b+=s(a):(b.length&&e.push(b),e.push(s(a)),b="")}),b.length&&e.push(b)}}();return e},dA=function(a,b,c){this.text=dB(b.data,c.textTransform),this.textBounds=dt(a,this.text,c,b)},dB=function(a,b){switch(b){case 1:return a.toLowerCase();case 3:return a.replace(dC,dD);case 2:return a.toUpperCase();default:return a}},dC=/(^|\s|:|-|\(|\))([a-z])/g,dD=function(a,b,c){return a.length>0?b+c.toUpperCase():a},dE=function(a){function b(b,c){var d=a.call(this,b,c)||this;return d.src=c.currentSrc||c.src,d.intrinsicWidth=c.naturalWidth,d.intrinsicHeight=c.naturalHeight,d.context.cache.addImage(d.src),d}return j(b,a),b}(cT),dF=function(a){function b(b,c){var d=a.call(this,b,c)||this;return d.canvas=c,d.intrinsicWidth=c.width,d.intrinsicHeight=c.height,d}return j(b,a),b}(cT),dG=function(a){function b(b,c){var d=a.call(this,b,c)||this,e=new XMLSerializer,f=p(b,c);return c.setAttribute("width",f.width+"px"),c.setAttribute("height",f.height+"px"),d.svg="data:image/svg+xml,"+encodeURIComponent(e.serializeToString(c)),d.intrinsicWidth=c.width.baseVal.value,d.intrinsicHeight=c.height.baseVal.value,d.context.cache.addImage(d.svg),d}return j(b,a),b}(cT),dH=function(a){function b(b,c){var d=a.call(this,b,c)||this;return d.value=c.value,d}return j(b,a),b}(cT),dI=function(a){function b(b,c){var d=a.call(this,b,c)||this;return d.start=c.start,d.reversed="boolean"==typeof c.reversed&&!0===c.reversed,d}return j(b,a),b}(cT),dJ=[{type:15,flags:0,unit:"px",number:3}],dK=[{type:16,flags:0,number:50}],dL=function(a){var b=a.type===dO?Array(a.value.length+1).join("•"):a.value;return 0===b.length?a.placeholder||"":b},dM="checkbox",dN="radio",dO="password",dP=function(a){function b(b,c){var d,e=a.call(this,b,c)||this;switch(e.type=c.type.toLowerCase(),e.checked=c.checked,e.value=dL(c),(e.type===dM||e.type===dN)&&(e.styles.backgroundColor=0xdededeff,e.styles.borderTopColor=e.styles.borderRightColor=e.styles.borderBottomColor=e.styles.borderLeftColor=0xa5a5a5ff,e.styles.borderTopWidth=e.styles.borderRightWidth=e.styles.borderBottomWidth=e.styles.borderLeftWidth=1,e.styles.borderTopStyle=e.styles.borderRightStyle=e.styles.borderBottomStyle=e.styles.borderLeftStyle=1,e.styles.backgroundClip=[0],e.styles.backgroundOrigin=[0],e.bounds=(d=e.bounds).width>d.height?new o(d.left+(d.width-d.height)/2,d.top,d.height,d.height):d.width0)c.textNodes.push(new dA(a,e,c.styles));else if(d$(e))if(ed(e)&&e.assignedNodes)e.assignedNodes().forEach(function(b){return dU(a,b,c,d)});else{var g=dV(a,e);g.styles.isVisible()&&(dX(e,g,d)?g.flags|=4:dY(g.styles)&&(g.flags|=2),-1!==dT.indexOf(e.tagName)&&(g.flags|=8),c.elements.push(g),e.slot,e.shadowRoot?dU(a,e.shadowRoot,g,d):eb(e)||d4(e)||ec(e)||dU(a,e,g,d))}},dV=function(a,b){return d8(b)?new dE(a,b):d6(b)?new dF(a,b):d4(b)?new dG(a,b):d1(b)?new dH(a,b):d2(b)?new dI(a,b):d3(b)?new dP(a,b):ec(b)?new dQ(a,b):eb(b)?new dR(a,b):d9(b)?new dS(a,b):new cT(a,b)},dW=function(a,b){var c=dV(a,b);return c.flags|=4,dU(a,b,c,c),c},dX=function(a,b,c){return b.styles.isPositionedWithZIndex()||b.styles.opacity<1||b.styles.isTransformed()||d5(a)&&c.styles.isTransparent()},dY=function(a){return a.isPositioned()||a.isFloating()},dZ=function(a){return a.nodeType===Node.TEXT_NODE},d$=function(a){return a.nodeType===Node.ELEMENT_NODE},d_=function(a){return d$(a)&&void 0!==a.style&&!d0(a)},d0=function(a){return"object"==typeof a.className},d1=function(a){return"LI"===a.tagName},d2=function(a){return"OL"===a.tagName},d3=function(a){return"INPUT"===a.tagName},d4=function(a){return"svg"===a.tagName},d5=function(a){return"BODY"===a.tagName},d6=function(a){return"CANVAS"===a.tagName},d7=function(a){return"VIDEO"===a.tagName},d8=function(a){return"IMG"===a.tagName},d9=function(a){return"IFRAME"===a.tagName},ea=function(a){return"STYLE"===a.tagName},eb=function(a){return"TEXTAREA"===a.tagName},ec=function(a){return"SELECT"===a.tagName},ed=function(a){return"SLOT"===a.tagName},ee=function(a){return a.tagName.indexOf("-")>0},ef=function(){function a(){this.counters={}}return a.prototype.getCounterValue=function(a){var b=this.counters[a];return b&&b.length?b[b.length-1]:1},a.prototype.getCounterValues=function(a){return this.counters[a]||[]},a.prototype.pop=function(a){var b=this;a.forEach(function(a){return b.counters[a].pop()})},a.prototype.parse=function(a){var b=this,c=a.counterIncrement,d=a.counterReset,e=!0;null!==c&&c.forEach(function(a){var c=b.counters[a.counter];c&&0!==a.increment&&(e=!1,c.length||c.push(1),c[Math.max(0,c.length-1)]+=a.increment)});var f=[];return e&&d.forEach(function(a){var c=b.counters[a.counter];f.push(a.counter),c||(c=b.counters[a.counter]=[]),c.push(a.reset)}),f},a}(),eg={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},eh={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},ei={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},ej={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},ek=function(a,b,c,d,e,f){return ac?et(a,e,f.length>0):d.integers.reduce(function(b,c,e){for(;a>=c;)a-=c,b+=d.values[e];return b},"")+f},el=function(a,b,c,d){var e="";do!c&&a--,e=d(a)+e,a/=b;while(a*b>=b);return e},em=function(a,b,c,d,e){var f=c-b+1;return(a<0?"-":"")+(el(Math.abs(a),f,d,function(a){return s(Math.floor(a%f)+b)})+e)},en=function(a,b,c){void 0===c&&(c=". ");var d=b.length;return el(Math.abs(a),d,!1,function(a){return b[Math.floor(a%d)]})+c},eo=function(a,b,c,d,e,f){if(a<-9999||a>9999)return et(a,4,e.length>0);var g=Math.abs(a),h=e;if(0===g)return b[0]+h;for(var i=0;g>0&&i<=4;i++){var j=g%10;0===j&&cC(f,1)&&""!==h?h=b[j]+h:j>1||1===j&&0===i||1===j&&1===i&&cC(f,2)||1===j&&1===i&&cC(f,4)&&a>100||1===j&&i>1&&cC(f,8)?h=b[j]+(i>0?c[i-1]:"")+h:1===j&&i>0&&(h=c[i-1]+h),g=Math.floor(g/10)}return(a<0?d:"")+h},ep="十百千萬",eq="拾佰仟萬",er="マイナス",es="마이너스",et=function(a,b,c){var d=c?". ":"",e=c?"、":"",f=c?", ":"",g=c?" ":"";switch(b){case 0:return"•"+g;case 1:return"◦"+g;case 2:return"◾"+g;case 5:var h=em(a,48,57,!0,d);return h.length<4?"0"+h:h;case 4:return en(a,"〇一二三四五六七八九",e);case 6:return ek(a,1,3999,eg,3,d).toLowerCase();case 7:return ek(a,1,3999,eg,3,d);case 8:return em(a,945,969,!1,d);case 9:return em(a,97,122,!1,d);case 10:return em(a,65,90,!1,d);case 11:return em(a,1632,1641,!0,d);case 12:case 49:return ek(a,1,9999,eh,3,d);case 35:return ek(a,1,9999,eh,3,d).toLowerCase();case 13:return em(a,2534,2543,!0,d);case 14:case 30:return em(a,6112,6121,!0,d);case 15:return en(a,"子丑寅卯辰巳午未申酉戌亥",e);case 16:return en(a,"甲乙丙丁戊己庚辛壬癸",e);case 17:case 48:return eo(a,"零一二三四五六七八九",ep,"負",e,14);case 47:return eo(a,"零壹貳參肆伍陸柒捌玖",eq,"負",e,15);case 42:return eo(a,"零一二三四五六七八九",ep,"负",e,14);case 41:return eo(a,"零壹贰叁肆伍陆柒捌玖",eq,"负",e,15);case 26:return eo(a,"〇一二三四五六七八九","十百千万",er,e,0);case 25:return eo(a,"零壱弐参四伍六七八九","拾百千万",er,e,7);case 31:return eo(a,"영일이삼사오육칠팔구","십백천만",es,f,7);case 33:return eo(a,"零一二三四五六七八九","十百千萬",es,f,0);case 32:return eo(a,"零壹貳參四五六七八九","拾百千",es,f,7);case 18:return em(a,2406,2415,!0,d);case 20:return ek(a,1,19999,ej,3,d);case 21:return em(a,2790,2799,!0,d);case 22:return em(a,2662,2671,!0,d);case 22:return ek(a,1,10999,ei,3,d);case 23:return en(a,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return en(a,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return em(a,3302,3311,!0,d);case 28:return en(a,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",e);case 29:return en(a,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",e);case 34:return em(a,3792,3801,!0,d);case 37:return em(a,6160,6169,!0,d);case 38:return em(a,4160,4169,!0,d);case 39:return em(a,2918,2927,!0,d);case 40:return em(a,1776,1785,!0,d);case 43:return em(a,3046,3055,!0,d);case 44:return em(a,3174,3183,!0,d);case 45:return em(a,3664,3673,!0,d);case 46:return em(a,3872,3881,!0,d);default:return em(a,48,57,!0,d)}},eu="data-html2canvas-ignore",ev=function(){function a(a,b,c){if(this.context=a,this.options=c,this.scrolledElements=[],this.referenceElement=b,this.counters=new ef,this.quoteDepth=0,!b.ownerDocument)throw Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(b.ownerDocument.documentElement,!1)}return a.prototype.toIFrame=function(a,b){var c=this,d=ew(a,b);if(!d.contentWindow)return Promise.reject("Unable to find iframe window");var e=a.defaultView.pageXOffset,f=a.defaultView.pageYOffset,g=d.contentWindow,h=g.document,i=ez(d).then(function(){return l(c,void 0,void 0,function(){var a,c;return m(this,function(e){switch(e.label){case 0:if(this.scrolledElements.forEach(eE),g&&(g.scrollTo(b.left,b.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(g.scrollY!==b.top||g.scrollX!==b.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(g.scrollX-b.left,g.scrollY-b.top,0,0))),a=this.options.onclone,void 0===(c=this.clonedReferenceElement))return[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")];if(!(h.fonts&&h.fonts.ready))return[3,2];return[4,h.fonts.ready];case 1:e.sent(),e.label=2;case 2:if(!/(AppleWebKit)/g.test(navigator.userAgent))return[3,4];return[4,ey(h)];case 3:e.sent(),e.label=4;case 4:if("function"==typeof a)return[2,Promise.resolve().then(function(){return a(h,c)}).then(function(){return d})];return[2,d]}})})});return h.open(),h.write(eC(document.doctype)+""),eD(this.referenceElement.ownerDocument,e,f),h.replaceChild(h.adoptNode(this.documentElement),h.documentElement),h.close(),i},a.prototype.createElementClone=function(a){if(cS(a,2),d6(a))return this.createCanvasClone(a);if(d7(a))return this.createVideoClone(a);if(ea(a))return this.createStyleClone(a);var b=a.cloneNode(!1);return(d8(b)&&(d8(a)&&a.currentSrc&&a.currentSrc!==a.src&&(b.src=a.currentSrc,b.srcset=""),"lazy"===b.loading&&(b.loading="eager")),ee(b))?this.createCustomElementClone(b):b},a.prototype.createCustomElementClone=function(a){var b=document.createElement("html2canvascustomelement");return eB(a.style,b),b},a.prototype.createStyleClone=function(a){try{var b=a.sheet;if(b&&b.cssRules){var c=[].slice.call(b.cssRules,0).reduce(function(a,b){return b&&"string"==typeof b.cssText?a+b.cssText:a},""),d=a.cloneNode(!1);return d.textContent=c,d}}catch(a){if(this.context.logger.error("Unable to access cssRules property",a),"SecurityError"!==a.name)throw a}return a.cloneNode(!1)},a.prototype.createCanvasClone=function(a){if(this.options.inlineImages&&a.ownerDocument){var b,c=a.ownerDocument.createElement("img");try{return c.src=a.toDataURL(),c}catch(b){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",a)}}var d=a.cloneNode(!1);try{d.width=a.width,d.height=a.height;var e=a.getContext("2d"),f=d.getContext("2d");if(f)if(!this.options.allowTaint&&e)f.putImageData(e.getImageData(0,0,a.width,a.height),0,0);else{var g=null!=(b=a.getContext("webgl2"))?b:a.getContext("webgl");if(g){var h=g.getContextAttributes();(null==h?void 0:h.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",a)}f.drawImage(a,0,0)}}catch(b){this.context.logger.info("Unable to clone canvas as it is tainted",a)}return d},a.prototype.createVideoClone=function(a){var b=a.ownerDocument.createElement("canvas");b.width=a.offsetWidth,b.height=a.offsetHeight;var c=b.getContext("2d");try{return c&&(c.drawImage(a,0,0,b.width,b.height),this.options.allowTaint||c.getImageData(0,0,b.width,b.height)),b}catch(b){this.context.logger.info("Unable to clone video as it is tainted",a)}var d=a.ownerDocument.createElement("canvas");return d.width=a.offsetWidth,d.height=a.offsetHeight,d},a.prototype.appendChildNode=function(a,b,c){d$(b)&&("SCRIPT"===b.tagName||b.hasAttribute(eu)||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(b))||this.options.copyStyles&&d$(b)&&ea(b)||a.appendChild(this.cloneNode(b,c))},a.prototype.cloneChildNodes=function(a,b,c){for(var d=this,e=a.shadowRoot?a.shadowRoot.firstChild:a.firstChild;e;e=e.nextSibling)if(d$(e)&&ed(e)&&"function"==typeof e.assignedNodes){var f=e.assignedNodes();f.length&&f.forEach(function(a){return d.appendChildNode(b,a,c)})}else this.appendChildNode(b,e,c)},a.prototype.cloneNode=function(a,b){if(dZ(a))return document.createTextNode(a.data);if(!a.ownerDocument)return a.cloneNode(!1);var c=a.ownerDocument.defaultView;if(c&&d$(a)&&(d_(a)||d0(a))){var d=this.createElementClone(a);d.style.transitionProperty="none";var e=c.getComputedStyle(a),f=c.getComputedStyle(a,":before"),h=c.getComputedStyle(a,":after");this.referenceElement===a&&d_(d)&&(this.clonedReferenceElement=d),d5(d)&&eI(d);var i=this.counters.parse(new cP(this.context,e)),j=this.resolvePseudoContent(a,d,f,g.BEFORE);ee(a)&&(b=!0),d7(a)||this.cloneChildNodes(a,d,b),j&&d.insertBefore(j,d.firstChild);var k=this.resolvePseudoContent(a,d,h,g.AFTER);return k&&d.appendChild(k),this.counters.pop(i),(e&&(this.options.copyStyles||d0(a))&&!d9(a)||b)&&eB(e,d),(0!==a.scrollTop||0!==a.scrollLeft)&&this.scrolledElements.push([d,a.scrollLeft,a.scrollTop]),(eb(a)||ec(a))&&(eb(d)||ec(d))&&(d.value=a.value),d}return a.cloneNode(!1)},a.prototype.resolvePseudoContent=function(a,b,c,d){var e=this;if(c){var f=c.content,h=b.ownerDocument;if(h&&f&&"none"!==f&&"-moz-alt-content"!==f&&"none"!==c.display){this.counters.parse(new cP(this.context,c));var i=new cO(this.context,c),j=h.createElement("html2canvaspseudoelement");eB(c,j),i.content.forEach(function(b){if(0===b.type)j.appendChild(h.createTextNode(b.value));else if(22===b.type){var c=h.createElement("img");c.src=b.value,c.style.opacity="1",j.appendChild(c)}else if(18===b.type){if("attr"===b.name){var d=b.values.filter(aF);d.length&&j.appendChild(h.createTextNode(a.getAttribute(d[0].value)||""))}else if("counter"===b.name){var f=b.values.filter(aJ),g=f[0],k=f[1];if(g&&aF(g)){var l=e.counters.getCounterValue(g.value),m=k&&aF(k)?b4.parse(e.context,k.value):3;j.appendChild(h.createTextNode(et(l,m,!1)))}}else if("counters"===b.name){var n=b.values.filter(aJ),g=n[0],o=n[1],k=n[2];if(g&&aF(g)){var p=e.counters.getCounterValues(g.value),q=k&&aF(k)?b4.parse(e.context,k.value):3,r=o&&0===o.type?o.value:"",s=p.map(function(a){return et(a,q,!1)}).join(r);j.appendChild(h.createTextNode(s))}}}else if(20===b.type)switch(b.value){case"open-quote":j.appendChild(h.createTextNode(cI(i.quotes,e.quoteDepth++,!0)));break;case"close-quote":j.appendChild(h.createTextNode(cI(i.quotes,--e.quoteDepth,!1)));break;default:j.appendChild(h.createTextNode(b.value))}}),j.className=eF+" "+eG;var k=d===g.BEFORE?" "+eF:" "+eG;return d0(b)?b.className.baseValue+=k:b.className+=k,j}}},a.destroy=function(a){return!!a.parentNode&&(a.parentNode.removeChild(a),!0)},a}();!function(a){a[a.BEFORE=0]="BEFORE",a[a.AFTER=1]="AFTER"}(g||(g={}));var ew=function(a,b){var c=a.createElement("iframe");return c.className="html2canvas-container",c.style.visibility="hidden",c.style.position="fixed",c.style.left="-10000px",c.style.top="0px",c.style.border="0",c.width=b.width.toString(),c.height=b.height.toString(),c.scrolling="no",c.setAttribute(eu,"true"),a.body.appendChild(c),c},ex=function(a){return new Promise(function(b){if(a.complete||!a.src)return void b();a.onload=b,a.onerror=b})},ey=function(a){return Promise.all([].slice.call(a.images,0).map(ex))},ez=function(a){return new Promise(function(b,c){var d=a.contentWindow;if(!d)return c("No window assigned for iframe");var e=d.document;d.onload=a.onload=function(){d.onload=a.onload=null;var c=setInterval(function(){e.body.childNodes.length>0&&"complete"===e.readyState&&(clearInterval(c),b(a))},50)}})},eA=["all","d","content"],eB=function(a,b){for(var c=a.length-1;c>=0;c--){var d=a.item(c);-1===eA.indexOf(d)&&b.style.setProperty(d,a.getPropertyValue(d))}return b},eC=function(a){var b="";return a&&(b+=""),b},eD=function(a,b,c){a&&a.defaultView&&(b!==a.defaultView.pageXOffset||c!==a.defaultView.pageYOffset)&&a.defaultView.scrollTo(b,c)},eE=function(a){var b=a[0],c=a[1],d=a[2];b.scrollLeft=c,b.scrollTop=d},eF="___html2canvas___pseudoelement_before",eG="___html2canvas___pseudoelement_after",eH='{\n content: "" !important;\n display: none !important;\n}',eI=function(a){eJ(a,"."+eF+":before"+eH+"\n ."+eG+":after"+eH)},eJ=function(a,b){var c=a.ownerDocument;if(c){var d=c.createElement("style");d.textContent=b,a.appendChild(d)}},eK=function(){function a(){}return a.getOrigin=function(b){var c=a._link;return c?(c.href=b,c.href=c.href,c.protocol+c.hostname+c.port):"about:blank"},a.isSameOrigin=function(b){return a.getOrigin(b)===a._origin},a.setContext=function(b){a._link=b.document.createElement("a"),a._origin=a.getOrigin(b.location.href)},a._origin="about:blank",a}(),eL=function(){function a(a,b){this.context=a,this._options=b,this._cache={}}return a.prototype.addImage=function(a){var b=Promise.resolve();return this.has(a)||(eS(a)||eP(a))&&(this._cache[a]=this.loadImage(a)).catch(function(){}),b},a.prototype.match=function(a){return this._cache[a]},a.prototype.loadImage=function(a){return l(this,void 0,void 0,function(){var b,c,d,e,f=this;return m(this,function(g){switch(g.label){case 0:if(b=eK.isSameOrigin(a),c=!eQ(a)&&!0===this._options.useCORS&&di.SUPPORT_CORS_IMAGES&&!b,d=!eQ(a)&&!b&&!eS(a)&&"string"==typeof this._options.proxy&&di.SUPPORT_CORS_XHR&&!c,!b&&!1===this._options.allowTaint&&!eQ(a)&&!eS(a)&&!d&&!c)return[2];if(e=a,!d)return[3,2];return[4,this.proxy(e)];case 1:e=g.sent(),g.label=2;case 2:return this.context.logger.debug("Added image "+a.substring(0,256)),[4,new Promise(function(a,b){var d=new Image;d.onload=function(){return a(d)},d.onerror=b,(eR(e)||c)&&(d.crossOrigin="anonymous"),d.src=e,!0===d.complete&&setTimeout(function(){return a(d)},500),f._options.imageTimeout>0&&setTimeout(function(){return b("Timed out ("+f._options.imageTimeout+"ms) loading image")},f._options.imageTimeout)})];case 3:return[2,g.sent()]}})})},a.prototype.has=function(a){return void 0!==this._cache[a]},a.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},a.prototype.proxy=function(a){var b=this,c=this._options.proxy;if(!c)throw Error("No proxy defined");var d=a.substring(0,256);return new Promise(function(e,f){var g=di.SUPPORT_RESPONSE_TYPE?"blob":"text",h=new XMLHttpRequest;h.onload=function(){if(200===h.status)if("text"===g)e(h.response);else{var a=new FileReader;a.addEventListener("load",function(){return e(a.result)},!1),a.addEventListener("error",function(a){return f(a)},!1),a.readAsDataURL(h.response)}else f("Failed to proxy resource "+d+" with status code "+h.status)},h.onerror=f;var i=c.indexOf("?")>-1?"&":"?";if(h.open("GET",""+c+i+"url="+encodeURIComponent(a)+"&responseType="+g),"text"!==g&&h instanceof XMLHttpRequest&&(h.responseType=g),b._options.imageTimeout){var j=b._options.imageTimeout;h.timeout=j,h.ontimeout=function(){return f("Timed out ("+j+"ms) proxying "+d)}}h.send()})},a}(),eM=/^data:image\/svg\+xml/i,eN=/^data:image\/.*;base64,/i,eO=/^data:image\/.*/i,eP=function(a){return di.SUPPORT_SVG_DRAWING||!eT(a)},eQ=function(a){return eO.test(a)},eR=function(a){return eN.test(a)},eS=function(a){return"blob"===a.substr(0,4)},eT=function(a){return"svg"===a.substr(-3).toLowerCase()||eM.test(a)},eU=function(){function a(a,b){this.type=0,this.x=a,this.y=b}return a.prototype.add=function(b,c){return new a(this.x+b,this.y+c)},a}(),eV=function(a,b,c){return new eU(a.x+(b.x-a.x)*c,a.y+(b.y-a.y)*c)},eW=function(){function a(a,b,c,d){this.type=1,this.start=a,this.startControl=b,this.endControl=c,this.end=d}return a.prototype.subdivide=function(b,c){var d=eV(this.start,this.startControl,b),e=eV(this.startControl,this.endControl,b),f=eV(this.endControl,this.end,b),g=eV(d,e,b),h=eV(e,f,b),i=eV(g,h,b);return c?new a(this.start,d,g,i):new a(i,h,f,this.end)},a.prototype.add=function(b,c){return new a(this.start.add(b,c),this.startControl.add(b,c),this.endControl.add(b,c),this.end.add(b,c))},a.prototype.reverse=function(){return new a(this.end,this.endControl,this.startControl,this.start)},a}(),eX=function(a){return 1===a.type},eY=function(a){var b=a.styles,c=a.bounds,d=aS(b.borderTopLeftRadius,c.width,c.height),e=d[0],f=d[1],g=aS(b.borderTopRightRadius,c.width,c.height),i=g[0],j=g[1],k=aS(b.borderBottomRightRadius,c.width,c.height),l=k[0],m=k[1],n=aS(b.borderBottomLeftRadius,c.width,c.height),o=n[0],p=n[1],q=[];q.push((e+i)/c.width),q.push((o+l)/c.width),q.push((f+p)/c.height),q.push((j+m)/c.height);var r=Math.max.apply(Math,q);r>1&&(e/=r,f/=r,i/=r,j/=r,l/=r,m/=r,o/=r,p/=r);var s=c.width-i,t=c.height-m,u=c.width-l,v=c.height-p,w=b.borderTopWidth,x=b.borderRightWidth,y=b.borderBottomWidth,z=b.borderLeftWidth,A=aT(b.paddingTop,a.bounds.width),B=aT(b.paddingRight,a.bounds.width),C=aT(b.paddingBottom,a.bounds.width),D=aT(b.paddingLeft,a.bounds.width);this.topLeftBorderDoubleOuterBox=e>0||f>0?eZ(c.left+z/3,c.top+w/3,e-z/3,f-w/3,h.TOP_LEFT):new eU(c.left+z/3,c.top+w/3),this.topRightBorderDoubleOuterBox=e>0||f>0?eZ(c.left+s,c.top+w/3,i-x/3,j-w/3,h.TOP_RIGHT):new eU(c.left+c.width-x/3,c.top+w/3),this.bottomRightBorderDoubleOuterBox=l>0||m>0?eZ(c.left+u,c.top+t,l-x/3,m-y/3,h.BOTTOM_RIGHT):new eU(c.left+c.width-x/3,c.top+c.height-y/3),this.bottomLeftBorderDoubleOuterBox=o>0||p>0?eZ(c.left+z/3,c.top+v,o-z/3,p-y/3,h.BOTTOM_LEFT):new eU(c.left+z/3,c.top+c.height-y/3),this.topLeftBorderDoubleInnerBox=e>0||f>0?eZ(c.left+2*z/3,c.top+2*w/3,e-2*z/3,f-2*w/3,h.TOP_LEFT):new eU(c.left+2*z/3,c.top+2*w/3),this.topRightBorderDoubleInnerBox=e>0||f>0?eZ(c.left+s,c.top+2*w/3,i-2*x/3,j-2*w/3,h.TOP_RIGHT):new eU(c.left+c.width-2*x/3,c.top+2*w/3),this.bottomRightBorderDoubleInnerBox=l>0||m>0?eZ(c.left+u,c.top+t,l-2*x/3,m-2*y/3,h.BOTTOM_RIGHT):new eU(c.left+c.width-2*x/3,c.top+c.height-2*y/3),this.bottomLeftBorderDoubleInnerBox=o>0||p>0?eZ(c.left+2*z/3,c.top+v,o-2*z/3,p-2*y/3,h.BOTTOM_LEFT):new eU(c.left+2*z/3,c.top+c.height-2*y/3),this.topLeftBorderStroke=e>0||f>0?eZ(c.left+z/2,c.top+w/2,e-z/2,f-w/2,h.TOP_LEFT):new eU(c.left+z/2,c.top+w/2),this.topRightBorderStroke=e>0||f>0?eZ(c.left+s,c.top+w/2,i-x/2,j-w/2,h.TOP_RIGHT):new eU(c.left+c.width-x/2,c.top+w/2),this.bottomRightBorderStroke=l>0||m>0?eZ(c.left+u,c.top+t,l-x/2,m-y/2,h.BOTTOM_RIGHT):new eU(c.left+c.width-x/2,c.top+c.height-y/2),this.bottomLeftBorderStroke=o>0||p>0?eZ(c.left+z/2,c.top+v,o-z/2,p-y/2,h.BOTTOM_LEFT):new eU(c.left+z/2,c.top+c.height-y/2),this.topLeftBorderBox=e>0||f>0?eZ(c.left,c.top,e,f,h.TOP_LEFT):new eU(c.left,c.top),this.topRightBorderBox=i>0||j>0?eZ(c.left+s,c.top,i,j,h.TOP_RIGHT):new eU(c.left+c.width,c.top),this.bottomRightBorderBox=l>0||m>0?eZ(c.left+u,c.top+t,l,m,h.BOTTOM_RIGHT):new eU(c.left+c.width,c.top+c.height),this.bottomLeftBorderBox=o>0||p>0?eZ(c.left,c.top+v,o,p,h.BOTTOM_LEFT):new eU(c.left,c.top+c.height),this.topLeftPaddingBox=e>0||f>0?eZ(c.left+z,c.top+w,Math.max(0,e-z),Math.max(0,f-w),h.TOP_LEFT):new eU(c.left+z,c.top+w),this.topRightPaddingBox=i>0||j>0?eZ(c.left+Math.min(s,c.width-x),c.top+w,s>c.width+x?0:Math.max(0,i-x),Math.max(0,j-w),h.TOP_RIGHT):new eU(c.left+c.width-x,c.top+w),this.bottomRightPaddingBox=l>0||m>0?eZ(c.left+Math.min(u,c.width-z),c.top+Math.min(t,c.height-y),Math.max(0,l-x),Math.max(0,m-y),h.BOTTOM_RIGHT):new eU(c.left+c.width-x,c.top+c.height-y),this.bottomLeftPaddingBox=o>0||p>0?eZ(c.left+z,c.top+Math.min(v,c.height-y),Math.max(0,o-z),Math.max(0,p-y),h.BOTTOM_LEFT):new eU(c.left+z,c.top+c.height-y),this.topLeftContentBox=e>0||f>0?eZ(c.left+z+D,c.top+w+A,Math.max(0,e-(z+D)),Math.max(0,f-(w+A)),h.TOP_LEFT):new eU(c.left+z+D,c.top+w+A),this.topRightContentBox=i>0||j>0?eZ(c.left+Math.min(s,c.width+z+D),c.top+w+A,s>c.width+z+D?0:i-z+D,j-(w+A),h.TOP_RIGHT):new eU(c.left+c.width-(x+B),c.top+w+A),this.bottomRightContentBox=l>0||m>0?eZ(c.left+Math.min(u,c.width-(z+D)),c.top+Math.min(t,c.height+w+A),Math.max(0,l-(x+B)),m-(y+C),h.BOTTOM_RIGHT):new eU(c.left+c.width-(x+B),c.top+c.height-(y+C)),this.bottomLeftContentBox=o>0||p>0?eZ(c.left+z+D,c.top+v,Math.max(0,o-(z+D)),p-(y+C),h.BOTTOM_LEFT):new eU(c.left+z+D,c.top+c.height-(y+C))};!function(a){a[a.TOP_LEFT=0]="TOP_LEFT",a[a.TOP_RIGHT=1]="TOP_RIGHT",a[a.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",a[a.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(h||(h={}));var eZ=function(a,b,c,d,e){var f=(Math.sqrt(2)-1)/3*4,g=c*f,i=d*f,j=a+c,k=b+d;switch(e){case h.TOP_LEFT:return new eW(new eU(a,k),new eU(a,k-i),new eU(j-g,b),new eU(j,b));case h.TOP_RIGHT:return new eW(new eU(a,b),new eU(a+g,b),new eU(j,k-i),new eU(j,k));case h.BOTTOM_RIGHT:return new eW(new eU(j,b),new eU(j,b+i),new eU(a+g,k),new eU(a,k));case h.BOTTOM_LEFT:default:return new eW(new eU(j,k),new eU(j-g,k),new eU(a,b+i),new eU(a,b))}},e$=function(a){return[a.topLeftBorderBox,a.topRightBorderBox,a.bottomRightBorderBox,a.bottomLeftBorderBox]},e_=function(a){return[a.topLeftPaddingBox,a.topRightPaddingBox,a.bottomRightPaddingBox,a.bottomLeftPaddingBox]},e0=function(a,b,c){this.offsetX=a,this.offsetY=b,this.matrix=c,this.type=0,this.target=6},e1=function(a,b){this.path=a,this.target=b,this.type=1},e2=function(a){this.opacity=a,this.type=2,this.target=6},e3=function(a){return 1===a.type},e4=function(a,b){return a.length===b.length&&a.some(function(a,c){return a===b[c]})},e5=function(a){this.element=a,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]},e6=function(){function a(a,b){if(this.container=a,this.parent=b,this.effects=[],this.curves=new eY(this.container),this.container.styles.opacity<1&&this.effects.push(new e2(this.container.styles.opacity)),null!==this.container.styles.transform){var c=this.container.bounds.left+this.container.styles.transformOrigin[0].number,d=this.container.bounds.top+this.container.styles.transformOrigin[1].number,e=this.container.styles.transform;this.effects.push(new e0(c,d,e))}if(0!==this.container.styles.overflowX){var f=e$(this.curves),g=e_(this.curves);e4(f,g)?this.effects.push(new e1(f,6)):(this.effects.push(new e1(f,2)),this.effects.push(new e1(g,4)))}}return a.prototype.getEffects=function(a){for(var b=-1===[2,3].indexOf(this.container.styles.position),c=this.parent,d=this.effects.slice(0);c;){var e=c.effects.filter(function(a){return!e3(a)});if(b||0!==c.container.styles.position||!c.parent){if(d.unshift.apply(d,e),b=-1===[2,3].indexOf(c.container.styles.position),0!==c.container.styles.overflowX){var f=e$(c.curves),g=e_(c.curves);e4(f,g)||d.unshift(new e1(g,6))}}else d.unshift.apply(d,e);c=c.parent}return d.filter(function(b){return cC(b.target,a)})},a}(),e7=function(a,b,c,d){a.container.elements.forEach(function(e){var f=cC(e.flags,4),g=cC(e.flags,2),h=new e6(e,a);cC(e.styles.display,2048)&&d.push(h);var i=cC(e.flags,8)?[]:d;if(f||g){var j=f||e.styles.isPositioned()?c:b,k=new e5(h);if(e.styles.isPositioned()||e.styles.opacity<1||e.styles.isTransformed()){var l=e.styles.zIndex.order;if(l<0){var m=0;j.negativeZIndex.some(function(a,b){if(l>a.element.container.styles.zIndex.order)m=b;else if(m>0)return!0;return!1}),j.negativeZIndex.splice(m,0,k)}else if(l>0){var n=0;j.positiveZIndex.some(function(a,b){if(l>=a.element.container.styles.zIndex.order)n=b+1;else if(n>0)return!0;return!1}),j.positiveZIndex.splice(n,0,k)}else j.zeroOrAutoZIndexOrTransformedOrOpacity.push(k)}else e.styles.isFloating()?j.nonPositionedFloats.push(k):j.nonPositionedInlineLevel.push(k);e7(h,k,f?k:c,i)}else e.styles.isInlineLevel()?b.inlineLevel.push(h):b.nonInlineLevel.push(h),e7(h,b,c,i);cC(e.flags,8)&&e8(e,i)})},e8=function(a,b){for(var c=a instanceof dI?a.start:1,d=a instanceof dI&&a.reversed,e=0;e0&&a.intrinsicHeight>0){var d=fh(a),e=e_(b);this.path(e),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(c,0,0,a.intrinsicWidth,a.intrinsicHeight,d.left,d.top,d.width,d.height),this.ctx.restore()}},b.prototype.renderNodeContent=function(a){return l(this,void 0,void 0,function(){var c,d,e,f,g,h,i,j,k,l,n,p,q,r,s,t,u,v;return m(this,function(m){switch(m.label){case 0:this.applyEffects(a.getEffects(4)),c=a.container,d=a.curves,e=c.styles,f=0,g=c.textNodes,m.label=1;case 1:if(!(f0&&l>0&&(n=d.ctx.createPattern(v,"repeat"),d.renderRepeat(h,n,i,j))):2===c.type&&(h=(y=fi(a,b,[null,null,null]))[0],z=y[1],A=y[2],k=y[3],l=y[4],i=aT((B=0===c.position.length?[aQ]:c.position)[0],k),j=aT(B[B.length-1],l),D=(C=bh(c,i,j,k,l))[0],E=C[1],D>0&&E>0&&(F=d.ctx.createRadialGradient(z+i,A+j,0,z+i,A+j,D),bc(c.stops,2*D).forEach(function(a){return F.addColorStop(a.stop,a0(a.color))}),d.path(h),d.ctx.fillStyle=F,D!==E?(G=a.bounds.left+.5*a.bounds.width,H=a.bounds.top+.5*a.bounds.height,J=1/(I=E/D),d.ctx.save(),d.ctx.translate(G,H),d.ctx.transform(1,0,0,I,0,0),d.ctx.translate(-G,-H),d.ctx.fillRect(z,J*(A-H)+H,k,l*J),d.ctx.restore()):d.ctx.fill())),m.label=6;case 6:return b--,[2]}})},d=this,e=0,f=a.styles.backgroundImage.slice(0).reverse(),h.label=1;case 1:if(!(e0))return[3,11];if(2!==i.style)return[3,5];return[4,this.renderDashedDottedBorder(i.color,i.width,f,a.curves,2)];case 4:case 6:case 8:return k.sent(),[3,11];case 5:if(3!==i.style)return[3,7];return[4,this.renderDashedDottedBorder(i.color,i.width,f,a.curves,3)];case 7:if(4!==i.style)return[3,9];return[4,this.renderDoubleBorder(i.color,i.width,f,a.curves)];case 9:return[4,this.renderSolidBorder(i.color,f,a.curves)];case 10:k.sent(),k.label=11;case 11:f++,k.label=12;case 12:return g++,[3,3];case 13:return[2]}})})},b.prototype.renderDashedDottedBorder=function(a,b,c,d,e){return l(this,void 0,void 0,function(){var f,g,h,i,j,k,l,n,o,p,q,r,s,t,u,v;return m(this,function(m){return this.ctx.save(),f=fd(d,c),g=fa(d,c),2===e&&(this.path(g),this.ctx.clip()),eX(g[0])?(h=g[0].start.x,i=g[0].start.y):(h=g[0].x,i=g[0].y),eX(g[1])?(j=g[1].end.x,k=g[1].end.y):(j=g[1].x,k=g[1].y),l=0===c||2===c?Math.abs(h-j):Math.abs(i-k),this.ctx.beginPath(),3===e?this.formatPath(f):this.formatPath(g.slice(0,2)),n=b<3?3*b:2*b,o=b<3?2*b:b,3===e&&(n=b,o=b),p=!0,l<=2*n?p=!1:l<=2*n+o?(q=l/(2*n+o),n*=q,o*=q):(r=Math.floor((l+o)/(n+o)),s=(l-r*n)/(r-1),o=(t=(l-(r+1)*n)/r)<=0||Math.abs(o-s){"use strict";function c(a){let b={};for(let[c,d]of a.entries()){let a=b[c];void 0===a?b[c]=d:Array.isArray(a)?a.push(d):b[c]=[a,d]}return b}function d(a){return"string"==typeof a?a:("number"!=typeof a||isNaN(a))&&"boolean"!=typeof a?"":String(a)}function e(a){let b=new URLSearchParams;for(let[c,e]of Object.entries(a))if(Array.isArray(e))for(let a of e)b.append(c,d(a));else b.set(c,d(e));return b}function f(a){for(var b=arguments.length,c=Array(b>1?b-1:0),d=1;d{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("folder-open",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]])},15917:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]])},15952:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("chart-column",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]])},16992:(a,b,c)=>{"use strict";c.d(b,{Kq:()=>S,UC:()=>W,ZL:()=>V,bL:()=>T,i3:()=>X,l9:()=>U});var d=c(38301),e=c(87868),f=c(92808),g=c(2332),h=c(7412),i=c(75656),j=c(25122),k=c(61611),l=c(29988),m=c(6406),n=c(96425),o=c(11720),p=c(85009),q=c(21124),[r,s]=(0,g.A)("Tooltip",[j.Bk]),t=(0,j.Bk)(),u="TooltipProvider",v="tooltip.open",[w,x]=r(u),y=a=>{let{__scopeTooltip:b,delayDuration:c=700,skipDelayDuration:e=300,disableHoverableContent:f=!1,children:g}=a,h=d.useRef(!0),i=d.useRef(!1),j=d.useRef(0);return d.useEffect(()=>{let a=j.current;return()=>window.clearTimeout(a)},[]),(0,q.jsx)(w,{scope:b,isOpenDelayedRef:h,delayDuration:c,onOpen:d.useCallback(()=>{window.clearTimeout(j.current),h.current=!1},[]),onClose:d.useCallback(()=>{window.clearTimeout(j.current),j.current=window.setTimeout(()=>h.current=!0,e)},[e]),isPointerInTransitRef:i,onPointerInTransitChange:d.useCallback(a=>{i.current=a},[]),disableHoverableContent:f,children:g})};y.displayName=u;var z="Tooltip",[A,B]=r(z),C=a=>{let{__scopeTooltip:b,children:c,open:e,defaultOpen:f,onOpenChange:g,disableHoverableContent:h,delayDuration:k}=a,l=x(z,a.__scopeTooltip),m=t(b),[n,p]=d.useState(null),r=(0,i.B)(),s=d.useRef(0),u=h??l.disableHoverableContent,w=k??l.delayDuration,y=d.useRef(!1),[B,C]=(0,o.i)({prop:e,defaultProp:f??!1,onChange:a=>{a?(l.onOpen(),document.dispatchEvent(new CustomEvent(v))):l.onClose(),g?.(a)},caller:z}),D=d.useMemo(()=>B?y.current?"delayed-open":"instant-open":"closed",[B]),E=d.useCallback(()=>{window.clearTimeout(s.current),s.current=0,y.current=!1,C(!0)},[C]),F=d.useCallback(()=>{window.clearTimeout(s.current),s.current=0,C(!1)},[C]),G=d.useCallback(()=>{window.clearTimeout(s.current),s.current=window.setTimeout(()=>{y.current=!0,C(!0),s.current=0},w)},[w,C]);return d.useEffect(()=>()=>{s.current&&(window.clearTimeout(s.current),s.current=0)},[]),(0,q.jsx)(j.bL,{...m,children:(0,q.jsx)(A,{scope:b,contentId:r,open:B,stateAttribute:D,trigger:n,onTriggerChange:p,onTriggerEnter:d.useCallback(()=>{l.isOpenDelayedRef.current?G():E()},[l.isOpenDelayedRef,G,E]),onTriggerLeave:d.useCallback(()=>{u?F():(window.clearTimeout(s.current),s.current=0)},[F,u]),onOpen:E,onClose:F,disableHoverableContent:u,children:c})})};C.displayName=z;var D="TooltipTrigger",E=d.forwardRef((a,b)=>{let{__scopeTooltip:c,...g}=a,h=B(D,c),i=x(D,c),k=t(c),l=d.useRef(null),n=(0,f.s)(b,l,h.onTriggerChange),o=d.useRef(!1),p=d.useRef(!1),r=d.useCallback(()=>o.current=!1,[]);return d.useEffect(()=>()=>document.removeEventListener("pointerup",r),[r]),(0,q.jsx)(j.Mz,{asChild:!0,...k,children:(0,q.jsx)(m.sG.button,{"aria-describedby":h.open?h.contentId:void 0,"data-state":h.stateAttribute,...g,ref:n,onPointerMove:(0,e.mK)(a.onPointerMove,a=>{"touch"!==a.pointerType&&(p.current||i.isPointerInTransitRef.current||(h.onTriggerEnter(),p.current=!0))}),onPointerLeave:(0,e.mK)(a.onPointerLeave,()=>{h.onTriggerLeave(),p.current=!1}),onPointerDown:(0,e.mK)(a.onPointerDown,()=>{h.open&&h.onClose(),o.current=!0,document.addEventListener("pointerup",r,{once:!0})}),onFocus:(0,e.mK)(a.onFocus,()=>{o.current||h.onOpen()}),onBlur:(0,e.mK)(a.onBlur,h.onClose),onClick:(0,e.mK)(a.onClick,h.onClose)})})});E.displayName=D;var F="TooltipPortal",[G,H]=r(F,{forceMount:void 0}),I=a=>{let{__scopeTooltip:b,forceMount:c,children:d,container:e}=a,f=B(F,b);return(0,q.jsx)(G,{scope:b,forceMount:c,children:(0,q.jsx)(l.C,{present:c||f.open,children:(0,q.jsx)(k.Z,{asChild:!0,container:e,children:d})})})};I.displayName=F;var J="TooltipContent",K=d.forwardRef((a,b)=>{let c=H(J,a.__scopeTooltip),{forceMount:d=c.forceMount,side:e="top",...f}=a,g=B(J,a.__scopeTooltip);return(0,q.jsx)(l.C,{present:d||g.open,children:g.disableHoverableContent?(0,q.jsx)(P,{side:e,...f,ref:b}):(0,q.jsx)(L,{side:e,...f,ref:b})})}),L=d.forwardRef((a,b)=>{let c=B(J,a.__scopeTooltip),e=x(J,a.__scopeTooltip),g=d.useRef(null),h=(0,f.s)(b,g),[i,j]=d.useState(null),{trigger:k,onClose:l}=c,m=g.current,{onPointerInTransitChange:n}=e,o=d.useCallback(()=>{j(null),n(!1)},[n]),p=d.useCallback((a,b)=>{let c=a.currentTarget,d={x:a.clientX,y:a.clientY},e=function(a,b){let c=Math.abs(b.top-a.y),d=Math.abs(b.bottom-a.y),e=Math.abs(b.right-a.x),f=Math.abs(b.left-a.x);switch(Math.min(c,d,e,f)){case f:return"left";case e:return"right";case c:return"top";case d:return"bottom";default:throw Error("unreachable")}}(d,c.getBoundingClientRect());j(function(a){let b=a.slice();return b.sort((a,b)=>a.xb.x?1:a.yb.y)),function(a){if(a.length<=1)return a.slice();let b=[];for(let c=0;c=2;){let a=b[b.length-1],c=b[b.length-2];if((a.x-c.x)*(d.y-c.y)>=(a.y-c.y)*(d.x-c.x))b.pop();else break}b.push(d)}b.pop();let c=[];for(let b=a.length-1;b>=0;b--){let d=a[b];for(;c.length>=2;){let a=c[c.length-1],b=c[c.length-2];if((a.x-b.x)*(d.y-b.y)>=(a.y-b.y)*(d.x-b.x))c.pop();else break}c.push(d)}return(c.pop(),1===b.length&&1===c.length&&b[0].x===c[0].x&&b[0].y===c[0].y)?b:b.concat(c)}(b)}([...function(a,b,c=5){let d=[];switch(b){case"top":d.push({x:a.x-c,y:a.y+c},{x:a.x+c,y:a.y+c});break;case"bottom":d.push({x:a.x-c,y:a.y-c},{x:a.x+c,y:a.y-c});break;case"left":d.push({x:a.x+c,y:a.y-c},{x:a.x+c,y:a.y+c});break;case"right":d.push({x:a.x-c,y:a.y-c},{x:a.x-c,y:a.y+c})}return d}(d,e),...function(a){let{top:b,right:c,bottom:d,left:e}=a;return[{x:e,y:b},{x:c,y:b},{x:c,y:d},{x:e,y:d}]}(b.getBoundingClientRect())])),n(!0)},[n]);return d.useEffect(()=>()=>o(),[o]),d.useEffect(()=>{if(k&&m){let a=a=>p(a,m),b=a=>p(a,k);return k.addEventListener("pointerleave",a),m.addEventListener("pointerleave",b),()=>{k.removeEventListener("pointerleave",a),m.removeEventListener("pointerleave",b)}}},[k,m,p,o]),d.useEffect(()=>{if(i){let a=a=>{let b=a.target,c={x:a.clientX,y:a.clientY},d=k?.contains(b)||m?.contains(b),e=!function(a,b){let{x:c,y:d}=a,e=!1;for(let a=0,f=b.length-1;ad!=l>d&&c<(k-i)*(d-j)/(l-j)+i&&(e=!e)}return e}(c,i);d?o():e&&(o(),l())};return document.addEventListener("pointermove",a),()=>document.removeEventListener("pointermove",a)}},[k,m,i,l,o]),(0,q.jsx)(P,{...a,ref:h})}),[M,N]=r(z,{isInside:!1}),O=(0,n.Dc)("TooltipContent"),P=d.forwardRef((a,b)=>{let{__scopeTooltip:c,children:e,"aria-label":f,onEscapeKeyDown:g,onPointerDownOutside:i,...k}=a,l=B(J,c),m=t(c),{onClose:n}=l;return d.useEffect(()=>(document.addEventListener(v,n),()=>document.removeEventListener(v,n)),[n]),d.useEffect(()=>{if(l.trigger){let a=a=>{let b=a.target;b?.contains(l.trigger)&&n()};return window.addEventListener("scroll",a,{capture:!0}),()=>window.removeEventListener("scroll",a,{capture:!0})}},[l.trigger,n]),(0,q.jsx)(h.qW,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:g,onPointerDownOutside:i,onFocusOutside:a=>a.preventDefault(),onDismiss:n,children:(0,q.jsxs)(j.UC,{"data-state":l.stateAttribute,...m,...k,ref:b,style:{...k.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,q.jsx)(O,{children:e}),(0,q.jsx)(M,{scope:c,isInside:!0,children:(0,q.jsx)(p.bL,{id:l.contentId,role:"tooltip",children:f||e})})]})})});K.displayName=J;var Q="TooltipArrow",R=d.forwardRef((a,b)=>{let{__scopeTooltip:c,...d}=a,e=t(c);return N(Q,c).isInside?null:(0,q.jsx)(j.i3,{...e,...d,ref:b})});R.displayName=Q;var S=y,T=C,U=E,V=I,W=K,X=R},17545:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"isLocalURL",{enumerable:!0,get:function(){return f}});let d=c(61962),e=c(33043);function f(a){if(!(0,d.isAbsoluteUrl)(a))return!0;try{let b=(0,d.getLocationOrigin)(),c=new URL(a,b);return c.origin===b&&(0,e.hasBasePath)(c.pathname)}catch(a){return!1}}},18004:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]])},18151:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{computeChangedPath:function(){return j},extractPathFromFlightRouterState:function(){return i},getSelectedParams:function(){return function a(b,c){for(let d of(void 0===c&&(c={}),Object.values(b[1]))){let b=d[0],f=Array.isArray(b),g=f?b[1]:b;!g||g.startsWith(e.PAGE_SEGMENT_KEY)||(f&&("c"===b[2]||"oc"===b[2])?c[b[0]]=b[1].split("/"):f&&(c[b[0]]=b[1]),c=a(d,c))}return c}}});let d=c(21054),e=c(72454),f=c(93754),g=a=>"string"==typeof a?"children"===a?"":a:a[1];function h(a){return a.reduce((a,b)=>{let c;return""===(b="/"===(c=b)[0]?c.slice(1):c)||(0,e.isGroupSegment)(b)?a:a+"/"+b},"")||"/"}function i(a){var b;let c=Array.isArray(a[0])?a[0][1]:a[0];if(c===e.DEFAULT_SEGMENT_KEY||d.INTERCEPTION_ROUTE_MARKERS.some(a=>c.startsWith(a)))return;if(c.startsWith(e.PAGE_SEGMENT_KEY))return"";let f=[g(c)],j=null!=(b=a[1])?b:{},k=j.children?i(j.children):void 0;if(void 0!==k)f.push(k);else for(let[a,b]of Object.entries(j)){if("children"===a)continue;let c=i(b);void 0!==c&&f.push(c)}return h(f)}function j(a,b){let c=function a(b,c){let[e,h]=b,[j,k]=c,l=g(e),m=g(j);if(d.INTERCEPTION_ROUTE_MARKERS.some(a=>l.startsWith(a)||m.startsWith(a)))return"";if(!(0,f.matchSegment)(e,j)){var n;return null!=(n=i(c))?n:""}for(let b in h)if(k[b]){let c=a(h[b],k[b]);if(null!==c)return g(j)+"/"+c}return null}(a,b);return null==c||"/"===c?c:h(c.split("/"))}("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},19427:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{abortTask:function(){return o},listenForDynamicRequest:function(){return n},startPPRNavigation:function(){return j},updateCacheNodeOnPopstateRestoration:function(){return function a(b,c){let d=c[1],e=b.parallelRoutes,g=new Map(e);for(let b in d){let c=d[b],h=c[0],i=(0,f.createRouterCacheKey)(h),j=e.get(b);if(void 0!==j){let d=j.get(i);if(void 0!==d){let e=a(d,c),f=new Map(j);f.set(i,e),g.set(b,f)}}}let h=b.rsc,i=r(h)&&"pending"===h.status;return{lazyData:null,rsc:h,head:b.head,prefetchHead:i?b.prefetchHead:[null,null],prefetchRsc:i?b.prefetchRsc:null,loading:b.loading,parallelRoutes:g,navigatedAt:b.navigatedAt}}}});let d=c(72454),e=c(93754),f=c(95812),g=c(81711),h=c(70491),i={route:null,node:null,dynamicRequestTree:null,children:null};function j(a,b,c,g,h,j,m,n,o){return function a(b,c,g,h,j,m,n,o,p,q,r){let s=g[1],t=h[1],u=null!==m?m[2]:null;j||!0===h[4]&&(j=!0);let v=c.parallelRoutes,w=new Map(v),x={},y=null,z=!1,A={};for(let c in t){let g,h=t[c],l=s[c],m=v.get(c),B=null!==u?u[c]:null,C=h[0],D=q.concat([c,C]),E=(0,f.createRouterCacheKey)(C),F=void 0!==l?l[0]:void 0,G=void 0!==m?m.get(E):void 0;if(null!==(g=C===d.DEFAULT_SEGMENT_KEY?void 0!==l?{route:l,node:null,dynamicRequestTree:null,children:null}:k(b,l,h,G,j,void 0!==B?B:null,n,o,D,r):p&&0===Object.keys(h[1]).length?k(b,l,h,G,j,void 0!==B?B:null,n,o,D,r):void 0!==l&&void 0!==F&&(0,e.matchSegment)(C,F)&&void 0!==G&&void 0!==l?a(b,G,l,h,j,B,n,o,p,D,r):k(b,l,h,G,j,void 0!==B?B:null,n,o,D,r))){if(null===g.route)return i;null===y&&(y=new Map),y.set(c,g);let a=g.node;if(null!==a){let b=new Map(m);b.set(E,a),w.set(c,b)}let b=g.route;x[c]=b;let d=g.dynamicRequestTree;null!==d?(z=!0,A[c]=d):A[c]=b}else x[c]=h,A[c]=h}if(null===y)return null;let B={lazyData:null,rsc:c.rsc,prefetchRsc:c.prefetchRsc,head:c.head,prefetchHead:c.prefetchHead,loading:c.loading,parallelRoutes:w,navigatedAt:b};return{route:l(h,x),node:B,dynamicRequestTree:z?l(h,A):null,children:y}}(a,b,c,g,!1,h,j,m,n,[],o)}function k(a,b,c,d,e,j,k,n,o,p){return!e&&(void 0===b||(0,g.isNavigatingToNewRootLayout)(b,c))?i:function a(b,c,d,e,g,i,j,k){let n,o,p,q,r=c[1],s=0===Object.keys(r).length;if(void 0!==d&&d.navigatedAt+h.DYNAMIC_STALETIME_MS>b)n=d.rsc,o=d.loading,p=d.head,q=d.navigatedAt;else if(null===e)return m(b,c,null,g,i,j,k);else if(n=e[1],o=e[3],p=s?g:null,q=b,e[4]||i&&s)return m(b,c,e,g,i,j,k);let t=null!==e?e[2]:null,u=new Map,v=void 0!==d?d.parallelRoutes:null,w=new Map(v),x={},y=!1;if(s)k.push(j);else for(let c in r){let d=r[c],e=null!==t?t[c]:null,h=null!==v?v.get(c):void 0,l=d[0],m=j.concat([c,l]),n=(0,f.createRouterCacheKey)(l),o=a(b,d,void 0!==h?h.get(n):void 0,e,g,i,m,k);u.set(c,o);let p=o.dynamicRequestTree;null!==p?(y=!0,x[c]=p):x[c]=d;let q=o.node;if(null!==q){let a=new Map;a.set(n,q),w.set(c,a)}}return{route:c,node:{lazyData:null,rsc:n,prefetchRsc:null,head:p,prefetchHead:null,loading:o,parallelRoutes:w,navigatedAt:q},dynamicRequestTree:y?l(c,x):null,children:u}}(a,c,d,j,k,n,o,p)}function l(a,b){let c=[a[0],b];return 2 in a&&(c[2]=a[2]),3 in a&&(c[3]=a[3]),4 in a&&(c[4]=a[4]),c}function m(a,b,c,d,e,g,h){let i=l(b,b[1]);return i[3]="refetch",{route:b,node:function a(b,c,d,e,g,h,i){let j=c[1],k=null!==d?d[2]:null,l=new Map;for(let c in j){let d=j[c],m=null!==k?k[c]:null,n=d[0],o=h.concat([c,n]),p=(0,f.createRouterCacheKey)(n),q=a(b,d,void 0===m?null:m,e,g,o,i),r=new Map;r.set(p,q),l.set(c,r)}let m=0===l.size;m&&i.push(h);let n=null!==d?d[1]:null,o=null!==d?d[3]:null;return{lazyData:null,parallelRoutes:l,prefetchRsc:void 0!==n?n:null,prefetchHead:m?e:[null,null],loading:void 0!==o?o:null,rsc:s(),head:m?s():null,navigatedAt:b}}(a,b,c,d,e,g,h),dynamicRequestTree:i,children:null}}function n(a,b){b.then(b=>{let{flightData:c}=b;if("string"!=typeof c){for(let b of c){let{segmentPath:c,tree:d,seedData:g,head:h}=b;g&&function(a,b,c,d,g){let h=a;for(let a=0;a{o(a,b)})}function o(a,b){let c=a.node;if(null===c)return;let d=a.children;if(null===d)p(a.route,c,b);else for(let a of d.values())o(a,b);a.dynamicRequestTree=null}function p(a,b,c){let d=a[1],e=b.parallelRoutes;for(let a in d){let b=d[a],g=e.get(a);if(void 0===g)continue;let h=b[0],i=(0,f.createRouterCacheKey)(h),j=g.get(i);void 0!==j&&p(b,j,c)}let g=b.rsc;r(g)&&(null===c?g.resolve(null):g.reject(c));let h=b.head;r(h)&&h.resolve(null)}let q=Symbol();function r(a){return a&&a.tag===q}function s(){let a,b,c=new Promise((c,d)=>{a=c,b=d});return c.status="pending",c.resolve=b=>{"pending"===c.status&&(c.status="fulfilled",c.value=b,a(b))},c.reject=a=>{"pending"===c.status&&(c.status="rejected",c.reason=a,b(a))},c.tag=q,c}("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},21296:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("panels-top-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]])},21564:(a,b,c)=>{"use strict";c.d(b,{Ay:()=>O});function d(a,b){(null==b||b>a.length)&&(b=a.length);for(var c=0,d=Array(b);c=a.length?a.apply(this,e):function(){for(var a=arguments.length,d=Array(a),f=0;f=a.length?a.apply(this,e):function(){for(var a=arguments.length,d=Array(a),f=0;f1&&void 0!==arguments[1]?arguments[1]:{};k.initial(a),k.handler(b);var c={current:a},d=g(n)(c,b),e=g(m)(c),f=g(k.changes)(a),h=g(l)(c);return[function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(a){return a};return k.selector(a),a(c.current)},function(a){(function(){for(var a=arguments.length,b=Array(a),c=0;c{d.current=!1}:a,b)};function J(){}function K(a,b,c,d){var e,f,g,h,i,j;return e=a,f=d,e.editor.getModel(L(e,f))||(g=a,h=b,i=c,j=d,g.editor.createModel(h,i,j?L(g,j):void 0))}function L(a,b){return a.Uri.parse(b)}(0,C.memo)(function({original:a,modified:b,language:c,originalLanguage:d,modifiedLanguage:e,originalModelPath:f,modifiedModelPath:g,keepCurrentOriginalModel:h=!1,keepCurrentModifiedModel:i=!1,theme:j="light",loading:k="Loading...",options:l={},height:m="100%",width:n="100%",className:o,wrapperProps:p={},beforeMount:q=J,onMount:r=J}){let[s,t]=(0,C.useState)(!1),[u,v]=(0,C.useState)(!0),w=(0,C.useRef)(null),x=(0,C.useRef)(null),y=(0,C.useRef)(null),z=(0,C.useRef)(r),A=(0,C.useRef)(q),D=(0,C.useRef)(!1);H(()=>{let a=B.init();return a.then(a=>(x.current=a)&&v(!1)).catch(a=>a?.type!=="cancelation"&&console.error("Monaco initialization: error:",a)),()=>{let b;return w.current?(b=w.current?.getModel(),void(h||b?.original?.dispose(),i||b?.modified?.dispose(),w.current?.dispose())):a.cancel()}}),I(()=>{if(w.current&&x.current){let b=w.current.getOriginalEditor(),e=K(x.current,a||"",d||c||"text",f||"");e!==b.getModel()&&b.setModel(e)}},[f],s),I(()=>{if(w.current&&x.current){let a=w.current.getModifiedEditor(),d=K(x.current,b||"",e||c||"text",g||"");d!==a.getModel()&&a.setModel(d)}},[g],s),I(()=>{let a=w.current.getModifiedEditor();a.getOption(x.current.editor.EditorOption.readOnly)?a.setValue(b||""):b!==a.getValue()&&(a.executeEdits("",[{range:a.getModel().getFullModelRange(),text:b||"",forceMoveMarkers:!0}]),a.pushUndoStop())},[b],s),I(()=>{w.current?.getModel()?.original.setValue(a||"")},[a],s),I(()=>{let{original:a,modified:b}=w.current.getModel();x.current.editor.setModelLanguage(a,d||c||"text"),x.current.editor.setModelLanguage(b,e||c||"text")},[c,d,e],s),I(()=>{x.current?.editor.setTheme(j)},[j],s),I(()=>{w.current?.updateOptions(l)},[l],s);let E=(0,C.useCallback)(()=>{if(!x.current)return;A.current(x.current);let h=K(x.current,a||"",d||c||"text",f||""),i=K(x.current,b||"",e||c||"text",g||"");w.current?.setModel({original:h,modified:i})},[c,b,e,a,d,f,g]),F=(0,C.useCallback)(()=>{!D.current&&y.current&&(w.current=x.current.editor.createDiffEditor(y.current,{automaticLayout:!0,...l}),E(),x.current?.editor.setTheme(j),t(!0),D.current=!0)},[l,j,E]);return(0,C.useEffect)(()=>{s&&z.current(w.current,x.current)},[s]),(0,C.useEffect)(()=>{u||s||F()},[u,s,F]),C.createElement(G,{width:n,height:m,isEditorReady:s,loading:k,_ref:y,className:o,wrapperProps:p})});var M=function(a){let b=(0,C.useRef)();return(0,C.useEffect)(()=>{b.current=a},[a]),b.current},N=new Map,O=(0,C.memo)(function({defaultValue:a,defaultLanguage:b,defaultPath:c,value:d,language:e,path:f,theme:g="light",line:h,loading:i="Loading...",options:j={},overrideServices:k={},saveViewState:l=!0,keepCurrentModel:m=!1,width:n="100%",height:o="100%",className:p,wrapperProps:q={},beforeMount:r=J,onMount:s=J,onChange:t,onValidate:u=J}){let[v,w]=(0,C.useState)(!1),[x,y]=(0,C.useState)(!0),z=(0,C.useRef)(null),A=(0,C.useRef)(null),D=(0,C.useRef)(null),E=(0,C.useRef)(s),F=(0,C.useRef)(r),L=(0,C.useRef)(),O=(0,C.useRef)(d),P=M(f),Q=(0,C.useRef)(!1),R=(0,C.useRef)(!1);H(()=>{let a=B.init();return a.then(a=>(z.current=a)&&y(!1)).catch(a=>a?.type!=="cancelation"&&console.error("Monaco initialization: error:",a)),()=>A.current?void(L.current?.dispose(),m?l&&N.set(f,A.current.saveViewState()):A.current.getModel()?.dispose(),A.current.dispose()):a.cancel()}),I(()=>{let g=K(z.current,a||d||"",b||e||"",f||c||"");g!==A.current?.getModel()&&(l&&N.set(P,A.current?.saveViewState()),A.current?.setModel(g),l&&A.current?.restoreViewState(N.get(f)))},[f],v),I(()=>{A.current?.updateOptions(j)},[j],v),I(()=>{A.current&&void 0!==d&&(A.current.getOption(z.current.editor.EditorOption.readOnly)?A.current.setValue(d):d!==A.current.getValue()&&(R.current=!0,A.current.executeEdits("",[{range:A.current.getModel().getFullModelRange(),text:d,forceMoveMarkers:!0}]),A.current.pushUndoStop(),R.current=!1))},[d],v),I(()=>{let a=A.current?.getModel();a&&e&&z.current?.editor.setModelLanguage(a,e)},[e],v),I(()=>{void 0!==h&&A.current?.revealLine(h)},[h],v),I(()=>{z.current?.editor.setTheme(g)},[g],v);let S=(0,C.useCallback)(()=>{if(!(!D.current||!z.current)&&!Q.current){F.current(z.current);let i=f||c,m=K(z.current,d||a||"",b||e||"",i||"");A.current=z.current?.editor.create(D.current,{model:m,automaticLayout:!0,...j},k),l&&A.current.restoreViewState(N.get(i)),z.current.editor.setTheme(g),void 0!==h&&A.current.revealLine(h),w(!0),Q.current=!0}},[a,b,c,d,e,f,j,k,l,g,h]);return(0,C.useEffect)(()=>{v&&E.current(A.current,z.current)},[v]),(0,C.useEffect)(()=>{x||v||S()},[x,v,S]),O.current=d,(0,C.useEffect)(()=>{v&&t&&(L.current?.dispose(),L.current=A.current?.onDidChangeModelContent(a=>{R.current||t(A.current.getValue(),a)}))},[v,t]),(0,C.useEffect)(()=>{if(v){let a=z.current.editor.onDidChangeMarkers(a=>{let b=A.current.getModel()?.uri;if(b&&a.find(a=>a.path===b.path)){let a=z.current.editor.getModelMarkers({resource:b});u?.(a)}});return()=>{a?.dispose()}}return()=>{}},[v,u]),C.createElement(G,{width:n,height:o,isEditorReady:v,loading:i,_ref:D,className:p,wrapperProps:q})})},22398:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"findHeadInCache",{enumerable:!0,get:function(){return f}});let d=c(72454),e=c(95812);function f(a,b){return function a(b,c,f,g){if(0===Object.keys(c).length)return[b,f,g];let h=Object.keys(c).filter(a=>"children"!==a);for(let g of("children"in c&&h.unshift("children"),h)){let[h,i]=c[g];if(h===d.DEFAULT_SEGMENT_KEY)continue;let j=b.parallelRoutes.get(g);if(!j)continue;let k=(0,e.createRouterCacheKey)(h),l=(0,e.createRouterCacheKey)(h,!0),m=j.get(k);if(!m)continue;let n=a(m,i,f+"/"+k,f+"/"+l);if(n)return n}return null}(a,b,"","")}("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},22774:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("scroll-text",[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]])},22842:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},23415:(a,b,c)=>{"use strict";function d(a,b){let c=String(a);if("string"!=typeof b)throw TypeError("Expected character");let d=0,e=c.indexOf(b);for(;-1!==e;)d++,e=c.indexOf(b,e+b.length);return d}c.d(b,{A:()=>aH});var e=c(5776),f=c(76713),g=c(78971),h=c(77410);let i="phrasing",j=["autolink","link","image","label"];function k(a){this.enter({type:"link",title:null,url:"",children:[]},a)}function l(a){this.config.enter.autolinkProtocol.call(this,a)}function m(a){this.config.exit.autolinkProtocol.call(this,a)}function n(a){this.config.exit.data.call(this,a);let b=this.stack[this.stack.length-1];(0,e.ok)("link"===b.type),b.url="http://"+this.sliceSerialize(a)}function o(a){this.config.exit.autolinkEmail.call(this,a)}function p(a){this.exit(a)}function q(a){!function(a,b,c){let d=(0,h.C)((c||{}).ignore||[]),e=function(a){let b=[];if(!Array.isArray(a))throw TypeError("Expected find and replace tuple or list of tuples");let c=!a[0]||Array.isArray(a[0])?a:[a],d=-1;for(;++d0?{type:"text",value:f}:void 0),!1===f?d.lastIndex=c+1:(h!==c&&k.push({type:"text",value:a.value.slice(h,c)}),Array.isArray(f)?k.push(...f):f&&k.push(f),h=c+l[0].length,j=!0),!d.global)break;l=d.exec(a.value)}return j?(h?\]}]+$/.exec(a);if(!b)return[a,void 0];a=a.slice(0,b.index);let c=b[0],e=c.indexOf(")"),f=d(a,"("),g=d(a,")");for(;-1!==e&&f>g;)a+=c.slice(0,e+1),e=(c=c.slice(e+1)).indexOf(")"),g++;return[a,c]}(c+e);if(!h[0])return!1;let i={type:"link",title:null,url:g+b+h[0],children:[{type:"text",value:b+h[0]}]};return h[1]?[i,{type:"text",value:h[1]}]:i}function s(a,b,c,d){return!(!t(d,!0)||/[-\d_]$/.test(c))&&{type:"link",title:null,url:"mailto:"+b+"@"+c,children:[{type:"text",value:b+"@"+c}]}}function t(a,b){let c=a.input.charCodeAt(a.index-1);return(0===a.index||(0,f.Ny)(c)||(0,f.es)(c))&&(!b||47!==c)}var u=c(75179);function v(){this.buffer()}function w(a){this.enter({type:"footnoteReference",identifier:"",label:""},a)}function x(){this.buffer()}function y(a){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},a)}function z(a){let b=this.resume(),c=this.stack[this.stack.length-1];(0,e.ok)("footnoteReference"===c.type),c.identifier=(0,u.B)(this.sliceSerialize(a)).toLowerCase(),c.label=b}function A(a){this.exit(a)}function B(a){let b=this.resume(),c=this.stack[this.stack.length-1];(0,e.ok)("footnoteDefinition"===c.type),c.identifier=(0,u.B)(this.sliceSerialize(a)).toLowerCase(),c.label=b}function C(a){this.exit(a)}function D(a,b,c,d){let e=c.createTracker(d),f=e.move("[^"),g=c.enter("footnoteReference"),h=c.enter("reference");return f+=e.move(c.safe(c.associationId(a),{after:"]",before:f})),h(),g(),f+=e.move("]")}function E(a,b,c){return 0===b?a:F(a,b,c)}function F(a,b,c){return(c?"":" ")+a}D.peek=function(){return"["};let G=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function H(a){this.enter({type:"delete",children:[]},a)}function I(a){this.exit(a)}function J(a,b,c,d){let e=c.createTracker(d),f=c.enter("strikethrough"),g=e.move("~~");return g+=c.containerPhrasing(a,{...e.current(),before:g,after:"~"}),g+=e.move("~~"),f(),g}function K(a){return a.length}function L(a){let b="string"==typeof a?a.codePointAt(0):0;return 67===b||99===b?99:76===b||108===b?108:114*(82===b||114===b)}J.peek=function(){return"~"};var M=c(71646);c(60921);c(96429);function N(a,b,c){let d=a.value||"",e="`",f=-1;for(;RegExp("(^|[^`])"+e+"([^`]|$)").test(d);)e+="`";for(/[^ \r\n]/.test(d)&&(/^[ \r\n]/.test(d)&&/[ \r\n]$/.test(d)||/^`|`$/.test(d))&&(d=" "+d+" ");++f-1?b.start:1)+(!1===c.options.incrementListMarker?0:b.children.indexOf(a))+f);let g=f.length+1;("tab"===e||"mixed"===e&&(b&&"list"===b.type&&b.spread||a.spread))&&(g=4*Math.ceil(g/4));let h=c.createTracker(d);h.move(f+" ".repeat(g-f.length)),h.shift(g);let i=c.enter("listItem"),j=c.indentLines(c.containerFlow(a,h.current()),function(a,b,c){return b?(c?"":" ".repeat(g))+a:(c?f:f+" ".repeat(g-f.length))+a});return i(),j}};function P(a){let b=a._align;(0,e.ok)(b,"expected `_align` on table"),this.enter({type:"table",align:b.map(function(a){return"none"===a?null:a}),children:[]},a),this.data.inTable=!0}function Q(a){this.exit(a),this.data.inTable=void 0}function R(a){this.enter({type:"tableRow",children:[]},a)}function S(a){this.exit(a)}function T(a){this.enter({type:"tableCell",children:[]},a)}function U(a){let b=this.resume();this.data.inTable&&(b=b.replace(/\\([\\|])/g,V));let c=this.stack[this.stack.length-1];(0,e.ok)("inlineCode"===c.type),c.value=b,this.exit(a)}function V(a,b){return"|"===b?b:a}function W(a){let b=this.stack[this.stack.length-2];(0,e.ok)("listItem"===b.type),b.checked="taskListCheckValueChecked"===a.type}function X(a){let b=this.stack[this.stack.length-2];if(b&&"listItem"===b.type&&"boolean"==typeof b.checked){let a=this.stack[this.stack.length-1];(0,e.ok)("paragraph"===a.type);let c=a.children[0];if(c&&"text"===c.type){let d,e=b.children,f=-1;for(;++f0&&!c&&(a[a.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),c}ag[43]=af,ag[45]=af,ag[46]=af,ag[95]=af,ag[72]=[af,ae],ag[104]=[af,ae],ag[87]=[af,ad],ag[119]=[af,ad];var an=c(43560),ao=c(83224);let ap={tokenize:function(a,b,c){let d=this;return(0,ao.N)(a,function(a){let e=d.events[d.events.length-1];return e&&"gfmFootnoteDefinitionIndent"===e[1].type&&4===e[2].sliceSerialize(e[1],!0).length?b(a):c(a)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function aq(a,b,c){let d,e=this,f=e.events.length,g=e.parser.gfmFootnotes||(e.parser.gfmFootnotes=[]);for(;f--;){let a=e.events[f][1];if("labelImage"===a.type){d=a;break}if("gfmFootnoteCall"===a.type||"labelLink"===a.type||"label"===a.type||"image"===a.type||"link"===a.type)break}return function(f){if(!d||!d._balanced)return c(f);let h=(0,u.B)(e.sliceSerialize({start:d.end,end:e.now()}));return 94===h.codePointAt(0)&&g.includes(h.slice(1))?(a.enter("gfmFootnoteCallLabelMarker"),a.consume(f),a.exit("gfmFootnoteCallLabelMarker"),b(f)):c(f)}}function ar(a,b){let c=a.length;for(;c--;)if("labelImage"===a[c][1].type&&"enter"===a[c][0]){a[c][1];break}a[c+1][1].type="data",a[c+3][1].type="gfmFootnoteCallLabelMarker";let d={type:"gfmFootnoteCall",start:Object.assign({},a[c+3][1].start),end:Object.assign({},a[a.length-1][1].end)},e={type:"gfmFootnoteCallMarker",start:Object.assign({},a[c+3][1].end),end:Object.assign({},a[c+3][1].end)};e.end.column++,e.end.offset++,e.end._bufferIndex++;let f={type:"gfmFootnoteCallString",start:Object.assign({},e.end),end:Object.assign({},a[a.length-1][1].start)},g={type:"chunkString",contentType:"string",start:Object.assign({},f.start),end:Object.assign({},f.end)},h=[a[c+1],a[c+2],["enter",d,b],a[c+3],a[c+4],["enter",e,b],["exit",e,b],["enter",f,b],["enter",g,b],["exit",g,b],["exit",f,b],a[a.length-2],a[a.length-1],["exit",d,b]];return a.splice(c,a.length-c+1,...h),a}function as(a,b,c){let d,e=this,g=e.parser.gfmFootnotes||(e.parser.gfmFootnotes=[]),h=0;return function(b){return a.enter("gfmFootnoteCall"),a.enter("gfmFootnoteCallLabelMarker"),a.consume(b),a.exit("gfmFootnoteCallLabelMarker"),i};function i(b){return 94!==b?c(b):(a.enter("gfmFootnoteCallMarker"),a.consume(b),a.exit("gfmFootnoteCallMarker"),a.enter("gfmFootnoteCallString"),a.enter("chunkString").contentType="string",j)}function j(i){if(h>999||93===i&&!d||null===i||91===i||(0,f.Ee)(i))return c(i);if(93===i){a.exit("chunkString");let d=a.exit("gfmFootnoteCallString");return g.includes((0,u.B)(e.sliceSerialize(d)))?(a.enter("gfmFootnoteCallLabelMarker"),a.consume(i),a.exit("gfmFootnoteCallLabelMarker"),a.exit("gfmFootnoteCall"),b):c(i)}return(0,f.Ee)(i)||(d=!0),h++,a.consume(i),92===i?k:j}function k(b){return 91===b||92===b||93===b?(a.consume(b),h++,j):j(b)}}function at(a,b,c){let d,e,g=this,h=g.parser.gfmFootnotes||(g.parser.gfmFootnotes=[]),i=0;return function(b){return a.enter("gfmFootnoteDefinition")._container=!0,a.enter("gfmFootnoteDefinitionLabel"),a.enter("gfmFootnoteDefinitionLabelMarker"),a.consume(b),a.exit("gfmFootnoteDefinitionLabelMarker"),j};function j(b){return 94===b?(a.enter("gfmFootnoteDefinitionMarker"),a.consume(b),a.exit("gfmFootnoteDefinitionMarker"),a.enter("gfmFootnoteDefinitionLabelString"),a.enter("chunkString").contentType="string",k):c(b)}function k(b){if(i>999||93===b&&!e||null===b||91===b||(0,f.Ee)(b))return c(b);if(93===b){a.exit("chunkString");let c=a.exit("gfmFootnoteDefinitionLabelString");return d=(0,u.B)(g.sliceSerialize(c)),a.enter("gfmFootnoteDefinitionLabelMarker"),a.consume(b),a.exit("gfmFootnoteDefinitionLabelMarker"),a.exit("gfmFootnoteDefinitionLabel"),m}return(0,f.Ee)(b)||(e=!0),i++,a.consume(b),92===b?l:k}function l(b){return 91===b||92===b||93===b?(a.consume(b),i++,k):k(b)}function m(b){return 58===b?(a.enter("definitionMarker"),a.consume(b),a.exit("definitionMarker"),h.includes(d)||h.push(d),(0,ao.N)(a,n,"gfmFootnoteDefinitionWhitespace")):c(b)}function n(a){return b(a)}}function au(a,b,c){return a.check(an.B,b,a.attempt(ap,b,c))}function av(a){a.exit("gfmFootnoteDefinition")}var aw=c(282),ax=c(65352);class ay{constructor(){this.map=[]}add(a,b,c){!function(a,b,c,d){let e=0;if(0!==c||0!==d.length){for(;e0;)b-=1,c.push(a.slice(this.map[b][0]+this.map[b][1]),this.map[b][2]),a.length=this.map[b][0];c.push(a.slice()),a.length=0;let d=c.pop();for(;d;){for(let b of d)a.push(b);d=c.pop()}this.map.length=0}}function az(a,b,c){let d,e=this,g=0,h=0;return function(a){let b=e.events.length-1;for(;b>-1;){let a=e.events[b][1].type;if("lineEnding"===a||"linePrefix"===a)b--;else break}let d=b>-1?e.events[b][1].type:null,f="tableHead"===d||"tableRow"===d?t:i;return f===t&&e.parser.lazy[e.now().line]?c(a):f(a)};function i(b){var c;return a.enter("tableHead"),a.enter("tableRow"),124===(c=b)||(d=!0,h+=1),j(c)}function j(b){return null===b?c(b):(0,f.HP)(b)?h>1?(h=0,e.interrupt=!0,a.exit("tableRow"),a.enter("lineEnding"),a.consume(b),a.exit("lineEnding"),m):c(b):(0,f.On)(b)?(0,ao.N)(a,j,"whitespace")(b):(h+=1,d&&(d=!1,g+=1),124===b)?(a.enter("tableCellDivider"),a.consume(b),a.exit("tableCellDivider"),d=!0,j):(a.enter("data"),k(b))}function k(b){return null===b||124===b||(0,f.Ee)(b)?(a.exit("data"),j(b)):(a.consume(b),92===b?l:k)}function l(b){return 92===b||124===b?(a.consume(b),k):k(b)}function m(b){return(e.interrupt=!1,e.parser.lazy[e.now().line])?c(b):(a.enter("tableDelimiterRow"),d=!1,(0,f.On)(b))?(0,ao.N)(a,n,"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(b):n(b)}function n(b){return 45===b||58===b?p(b):124===b?(d=!0,a.enter("tableCellDivider"),a.consume(b),a.exit("tableCellDivider"),o):c(b)}function o(b){return(0,f.On)(b)?(0,ao.N)(a,p,"whitespace")(b):p(b)}function p(b){return 58===b?(h+=1,d=!0,a.enter("tableDelimiterMarker"),a.consume(b),a.exit("tableDelimiterMarker"),q):45===b?(h+=1,q(b)):null===b||(0,f.HP)(b)?s(b):c(b)}function q(b){return 45===b?(a.enter("tableDelimiterFiller"),function b(c){return 45===c?(a.consume(c),b):58===c?(d=!0,a.exit("tableDelimiterFiller"),a.enter("tableDelimiterMarker"),a.consume(c),a.exit("tableDelimiterMarker"),r):(a.exit("tableDelimiterFiller"),r(c))}(b)):c(b)}function r(b){return(0,f.On)(b)?(0,ao.N)(a,s,"whitespace")(b):s(b)}function s(e){if(124===e)return n(e);if(null===e||(0,f.HP)(e))return d&&g===h?(a.exit("tableDelimiterRow"),a.exit("tableHead"),b(e)):c(e);return c(e)}function t(b){return a.enter("tableRow"),u(b)}function u(c){return 124===c?(a.enter("tableCellDivider"),a.consume(c),a.exit("tableCellDivider"),u):null===c||(0,f.HP)(c)?(a.exit("tableRow"),b(c)):(0,f.On)(c)?(0,ao.N)(a,u,"whitespace")(c):(a.enter("data"),v(c))}function v(b){return null===b||124===b||(0,f.Ee)(b)?(a.exit("data"),u(b)):(a.consume(b),92===b?w:v)}function w(b){return 92===b||124===b?(a.consume(b),v):v(b)}}function aA(a,b){let c,d,e,f=-1,g=!0,h=0,i=[0,0,0,0],j=[0,0,0,0],k=!1,l=0,m=new ay;for(;++fc[2]+1){let b=c[2]+1,d=c[3]-c[2]-1;a.add(b,d,[])}}a.add(c[3]+1,0,[["exit",g,b]])}return void 0!==e&&(f.end=Object.assign({},aD(b.events,e)),a.add(e,0,[["exit",f,b]]),f=void 0),f}function aC(a,b,c,d,e){let f=[],g=aD(b.events,c);e&&(e.end=Object.assign({},g),f.push(["exit",e,b])),d.end=Object.assign({},g),f.push(["exit",d,b]),a.add(c+1,0,f)}function aD(a,b){let c=a[b],d="enter"===c[0]?"start":"end";return c[1][d]}let aE={name:"tasklistCheck",tokenize:function(a,b,c){let d=this;return function(b){return null===d.previous&&d._gfmTasklistFirstContentOfListItem?(a.enter("taskListCheck"),a.enter("taskListCheckMarker"),a.consume(b),a.exit("taskListCheckMarker"),e):c(b)};function e(b){return(0,f.Ee)(b)?(a.enter("taskListCheckValueUnchecked"),a.consume(b),a.exit("taskListCheckValueUnchecked"),g):88===b||120===b?(a.enter("taskListCheckValueChecked"),a.consume(b),a.exit("taskListCheckValueChecked"),g):c(b)}function g(b){return 93===b?(a.enter("taskListCheckMarker"),a.consume(b),a.exit("taskListCheckMarker"),a.exit("taskListCheck"),h):c(b)}function h(d){return(0,f.HP)(d)?b(d):(0,f.On)(d)?a.check({tokenize:aF},b,c)(d):c(d)}}};function aF(a,b,c){return(0,ao.N)(a,function(a){return null===a?c(a):b(a)},"whitespace")}let aG={};function aH(a){let b,c=a||aG,d=this.data(),e=d.micromarkExtensions||(d.micromarkExtensions=[]),f=d.fromMarkdownExtensions||(d.fromMarkdownExtensions=[]),g=d.toMarkdownExtensions||(d.toMarkdownExtensions=[]);e.push((0,Z.y)([{text:ag},{document:{91:{name:"gfmFootnoteDefinition",tokenize:at,continuation:{tokenize:au},exit:av}},text:{91:{name:"gfmFootnoteCall",tokenize:as},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:aq,resolveTo:ar}}},function(a){let b=(a||{}).singleTilde,c={name:"strikethrough",tokenize:function(a,c,d){let e=this.previous,f=this.events,g=0;return function(h){return 126===e&&"characterEscape"!==f[f.length-1][1].type?d(h):(a.enter("strikethroughSequenceTemporary"),function f(h){let i=(0,M.S)(e);if(126===h)return g>1?d(h):(a.consume(h),g++,f);if(g<2&&!b)return d(h);let j=a.exit("strikethroughSequenceTemporary"),k=(0,M.S)(h);return j._open=!k||2===k&&!!i,j._close=!i||2===i&&!!k,c(h)}(h))}},resolveAll:function(a,b){let c=-1;for(;++c0&&(f.shift(4),g+=f.move((b?"\n":" ")+d.indentLines(d.containerFlow(a,f.current()),b?F:E))),h(),g},footnoteReference:D},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:G}],handlers:{delete:J}},function(a){let b=a||{},c=b.tableCellPadding,d=b.tablePipeAlign,e=b.stringLength,f=c?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(a,b,c){let d=O.inlineCode(a,b,c);return c.stack.includes("tableCell")&&(d=d.replace(/\|/g,"\\$&")),d},table:function(a,b,c,d){return h(function(a,b,c){let d=a.children,e=-1,f=[],g=b.enter("table");for(;++ej&&(j=a[k].length);++fi[f])&&(i[f]=a)}b.push(g)}g[k]=b,h[k]=d}let m=-1;if("object"==typeof d&&"length"in d)for(;++mi[m]&&(i[m]=e),o[m]=e),n[m]=g}g.splice(1,0,n),h.splice(1,0,o),k=-1;let p=[];for(;++k{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("power-off",[["path",{d:"M18.36 6.64A9 9 0 0 1 20.77 15",key:"dxknvb"}],["path",{d:"M6.16 6.16a9 9 0 1 0 12.68 12.68",key:"1x7qb5"}],["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]])},24417:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("arrow-down",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]])},24692:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"serverActionReducer",{enumerable:!0,get:function(){return E}});let d=c(76779),e=c(6927),f=c(14172),g=c(40689),h=c(63188),i=c(12591),j=c(9286),k=c(11830),l=c(3219),m=c(76143),n=c(81711),o=c(73486),p=c(35939),q=c(97163),r=c(76061),s=c(50586),t=c(72869),u=c(21600),v=c(69296),w=c(47847),x=c(70491),y=c(35103),z=c(33043),A=c(77377);c(40668);let B=h.createFromFetch;async function C(a,b,c){let i,k,l,m,{actionId:n,actionArgs:o}=c,p=(0,h.createTemporaryReferenceSet)(),q=(0,A.extractInfoFromServerReferenceId)(n),r="use-cache"===q.type?(0,A.omitUnusedArgs)(o,q):o,s=await (0,h.encodeReply)(r,{temporaryReferences:p}),t=await fetch(a.canonicalUrl,{method:"POST",headers:{Accept:f.RSC_CONTENT_TYPE_HEADER,[f.ACTION_HEADER]:n,[f.NEXT_ROUTER_STATE_TREE_HEADER]:(0,u.prepareFlightRouterStateForRequest)(a.tree),...{},...b?{[f.NEXT_URL]:b}:{}},body:s});if("1"===t.headers.get(f.NEXT_ACTION_NOT_FOUND_HEADER))throw Object.defineProperty(new g.UnrecognizedActionError('Server Action "'+n+'" was not found on the server. \nRead more: https://nextjs.org/docs/messages/failed-to-find-server-action'),"__NEXT_ERROR_CODE",{value:"E715",enumerable:!1,configurable:!0});let v=t.headers.get("x-action-redirect"),[x,y]=(null==v?void 0:v.split(";"))||[];switch(y){case"push":i=w.RedirectType.push;break;case"replace":i=w.RedirectType.replace;break;default:i=void 0}let z=!!t.headers.get(f.NEXT_IS_PRERENDER_HEADER);try{let a=JSON.parse(t.headers.get("x-action-revalidated")||"[[],0,0]");k={paths:a[0]||[],tag:!!a[1],cookie:a[2]}}catch(a){k=D}let C=x?(0,j.assignLocation)(x,new URL(a.canonicalUrl,window.location.href)):void 0,E=t.headers.get("content-type"),F=!!(E&&E.startsWith(f.RSC_CONTENT_TYPE_HEADER));if(!F&&!C)throw Object.defineProperty(Error(t.status>=400&&"text/plain"===E?await t.text():"An unexpected response was received from the server."),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});if(F){let a=await B(Promise.resolve(t),{callServer:d.callServer,findSourceMapURL:e.findSourceMapURL,temporaryReferences:p});l=C?void 0:a.a,m=(0,u.normalizeFlightData)(a.f)}else l=void 0,m=void 0;return{actionResult:l,actionFlightData:m,redirectLocation:C,redirectType:i,revalidatedParts:k,isPrerender:z}}let D={paths:[],tag:!1,cookie:!1};function E(a,b){let{resolve:c,reject:d}=b,e={},f=a.tree;e.preserveCustomHistoryState=!1;let g=a.nextUrl&&(0,r.hasInterceptionRouteInCurrentTree)(a.tree)?a.nextUrl:null,h=Date.now();return C(a,g,b).then(async j=>{let r,{actionResult:u,actionFlightData:A,redirectLocation:B,redirectType:C,isPrerender:D,revalidatedParts:E}=j;if(B&&(C===w.RedirectType.replace?(a.pushRef.pendingPush=!1,e.pendingPush=!1):(a.pushRef.pendingPush=!0,e.pendingPush=!0),e.canonicalUrl=r=(0,k.createHrefFromUrl)(B,!1)),!A)return(c(u),B)?(0,l.handleExternalUrl)(a,e,B.href,a.pushRef.pendingPush):a;if("string"==typeof A)return c(u),(0,l.handleExternalUrl)(a,e,A,a.pushRef.pendingPush);let F=E.paths.length>0||E.tag||E.cookie;for(let d of A){let{tree:i,seedData:j,head:k,isRootRender:o}=d;if(!o)return console.log("SERVER ACTION APPLY FAILED"),c(u),a;let v=(0,m.applyRouterStatePatchToTree)([""],f,i,r||a.canonicalUrl);if(null===v)return c(u),(0,s.handleSegmentMismatch)(a,b,i);if((0,n.isNavigatingToNewRootLayout)(f,v))return c(u),(0,l.handleExternalUrl)(a,e,r||a.canonicalUrl,a.pushRef.pendingPush);if(null!==j){let b=j[1],c=(0,q.createEmptyCacheNode)();c.rsc=b,c.prefetchRsc=null,c.loading=j[3],(0,p.fillLazyItemsTillLeafWithHead)(h,c,void 0,i,j,k,void 0),e.cache=c,e.prefetchCache=new Map,F&&await (0,t.refreshInactiveParallelSegments)({navigatedAt:h,state:a,updatedTree:v,updatedCache:c,includeNextUrl:!!g,canonicalUrl:e.canonicalUrl||a.canonicalUrl})}e.patchedTree=v,f=v}return B&&r?(F||((0,x.createSeededPrefetchCacheEntry)({url:B,data:{flightData:A,canonicalUrl:void 0,couldBeIntercepted:!1,prerendered:!1,postponed:!1,staleTime:-1},tree:a.tree,prefetchCache:a.prefetchCache,nextUrl:a.nextUrl,kind:D?i.PrefetchKind.FULL:i.PrefetchKind.AUTO}),e.prefetchCache=a.prefetchCache),d((0,v.getRedirectError)((0,z.hasBasePath)(r)?(0,y.removeBasePath)(r):r,C||w.RedirectType.push))):c(u),(0,o.handleMutable)(a,e)},b=>(d(b),a))}("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},24709:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.camelCase=void 0;var c=/^--[a-zA-Z0-9_-]+$/,d=/-([a-z])/g,e=/^[^-]+$/,f=/^-(webkit|moz|ms|o|khtml)-/,g=/^-(ms)-/,h=function(a,b){return b.toUpperCase()},i=function(a,b){return"".concat(b,"-")};b.camelCase=function(a,b){var j;return(void 0===b&&(b={}),!(j=a)||e.test(j)||c.test(j))?a:(a=a.toLowerCase(),(a=b.reactCompat?a.replace(g,i):a.replace(f,i)).replace(d,h))}},27067:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("cookie",[["path",{d:"M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5",key:"laymnq"}],["path",{d:"M8.5 8.5v.01",key:"ue8clq"}],["path",{d:"M16 15.5v.01",key:"14dtrp"}],["path",{d:"M12 12v.01",key:"u5ubse"}],["path",{d:"M11 17v.01",key:"1hyl5a"}],["path",{d:"M7 14v.01",key:"uct60s"}]])},27928:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("image-up",[["path",{d:"M10.3 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10l-3.1-3.1a2 2 0 0 0-2.814.014L6 21",key:"9csbqa"}],["path",{d:"m14 19.5 3-3 3 3",key:"9vmjn0"}],["path",{d:"M17 22v-5.5",key:"1aa6fl"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]])},28074:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("palette",[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]])},28763:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{fillCacheWithNewSubTreeData:function(){return i},fillCacheWithNewSubTreeDataButOnlyLoading:function(){return j}});let d=c(91349),e=c(35939),f=c(95812),g=c(72454);function h(a,b,c,h,i,j){let{segmentPath:k,seedData:l,tree:m,head:n}=h,o=b,p=c;for(let b=0;b{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{IDLE_LINK_STATUS:function(){return i},PENDING_LINK_STATUS:function(){return h},mountFormInstance:function(){return r},mountLinkInstance:function(){return q},onLinkVisibilityChanged:function(){return t},onNavigationIntent:function(){return u},pingVisibleLinks:function(){return w},setLinkForCurrentNavigation:function(){return j},unmountLinkForCurrentNavigation:function(){return k},unmountPrefetchableInstance:function(){return s}}),c(41439);let d=c(97163),e=c(40668),f=c(38301);c(12591),c(93860);let g=null,h={pending:!0},i={pending:!1};function j(a){(0,f.startTransition)(()=>{null==g||g.setOptimisticLinkStatus(i),null==a||a.setOptimisticLinkStatus(h),g=a})}function k(a){g===a&&(g=null)}let l="function"==typeof WeakMap?new WeakMap:new Map,m=new Set,n="function"==typeof IntersectionObserver?new IntersectionObserver(function(a){for(let b of a){let a=b.intersectionRatio>0;t(b.target,a)}},{rootMargin:"200px"}):null;function o(a,b){void 0!==l.get(a)&&s(a),l.set(a,b),null!==n&&n.observe(a)}function p(a){try{return(0,d.createPrefetchURL)(a)}catch(b){return("function"==typeof reportError?reportError:console.error)("Cannot prefetch '"+a+"' because it cannot be converted to a URL."),null}}function q(a,b,c,d,e,f){if(e){let e=p(b);if(null!==e){let b={router:c,fetchStrategy:d,isVisible:!1,prefetchTask:null,prefetchHref:e.href,setOptimisticLinkStatus:f};return o(a,b),b}}return{router:c,fetchStrategy:d,isVisible:!1,prefetchTask:null,prefetchHref:null,setOptimisticLinkStatus:f}}function r(a,b,c,d){let e=p(b);null!==e&&o(a,{router:c,fetchStrategy:d,isVisible:!1,prefetchTask:null,prefetchHref:e.href,setOptimisticLinkStatus:null})}function s(a){let b=l.get(a);if(void 0!==b){l.delete(a),m.delete(b);let c=b.prefetchTask;null!==c&&(0,e.cancelPrefetchTask)(c)}null!==n&&n.unobserve(a)}function t(a,b){let c=l.get(a);void 0!==c&&(c.isVisible=b,b?m.add(c):m.delete(c),v(c,e.PrefetchPriority.Default))}function u(a,b){let c=l.get(a);void 0!==c&&void 0!==c&&v(c,e.PrefetchPriority.Intent)}function v(a,b){let c=a.prefetchTask;if(!a.isVisible){null!==c&&(0,e.cancelPrefetchTask)(c);return}}function w(a,b){for(let c of m){let d=c.prefetchTask;if(null!==d&&!(0,e.isPrefetchTaskDirty)(d,a,b))continue;null!==d&&(0,e.cancelPrefetchTask)(d);let f=(0,e.createCacheKey)(c.prefetchHref,a);c.prefetchTask=(0,e.schedulePrefetchTask)(f,b,c.fetchStrategy,e.PrefetchPriority.Default,null)}}("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},32717:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("dollar-sign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]])},33043:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"hasBasePath",{enumerable:!0,get:function(){return e}});let d=c(60894);function e(a){return(0,d.pathHasPrefix)(a,"")}("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},33204:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("code",[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]])},33464:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("code-xml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]])},34487:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]])},34941:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("ellipsis-vertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]])},35103:(a,b,c)=>{"use strict";function d(a){return a}Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"removeBasePath",{enumerable:!0,get:function(){return d}}),c(33043),("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},35507:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"reducer",{enumerable:!0,get:function(){return d}}),c(12591),c(3219),c(79976),c(69022),c(2891),c(77743),c(45461),c(24692);let d=function(a,b){return a};("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},35939:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"fillLazyItemsTillLeafWithHead",{enumerable:!0,get:function(){return function a(b,c,f,g,h,i,j){if(0===Object.keys(g[1]).length){c.head=i;return}for(let k in g[1]){let l,m=g[1][k],n=m[0],o=(0,d.createRouterCacheKey)(n),p=null!==h&&void 0!==h[2][k]?h[2][k]:null;if(f){let d=f.parallelRoutes.get(k);if(d){let f,g=(null==j?void 0:j.kind)==="auto"&&j.status===e.PrefetchCacheEntryStatus.reusable,h=new Map(d),l=h.get(o);f=null!==p?{lazyData:null,rsc:p[1],prefetchRsc:null,head:null,prefetchHead:null,loading:p[3],parallelRoutes:new Map(null==l?void 0:l.parallelRoutes),navigatedAt:b}:g&&l?{lazyData:l.lazyData,rsc:l.rsc,prefetchRsc:l.prefetchRsc,head:l.head,prefetchHead:l.prefetchHead,parallelRoutes:new Map(l.parallelRoutes),loading:l.loading}:{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map(null==l?void 0:l.parallelRoutes),loading:null,navigatedAt:b},h.set(o,f),a(b,f,l,m,p||null,i,j),c.parallelRoutes.set(k,h);continue}}if(null!==p){let a=p[1],c=p[3];l={lazyData:null,rsc:a,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:c,navigatedAt:b}}else l={lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:null,navigatedAt:b};let q=c.parallelRoutes.get(k);q?q.set(o,l):c.parallelRoutes.set(k,new Map([[o,l]])),a(b,l,void 0,m,p,i,j)}}}});let d=c(95812),e=c(12591);("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},36734:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("camera",[["path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z",key:"1tc9qg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]])},38065:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"AppRouterAnnouncer",{enumerable:!0,get:function(){return g}});let d=c(38301),e=c(23312),f="next-route-announcer";function g(a){let{tree:b}=a,[c,g]=(0,d.useState)(null);(0,d.useEffect)(()=>(g(function(){var a;let b=document.getElementsByName(f)[0];if(null==b||null==(a=b.shadowRoot)?void 0:a.childNodes[0])return b.shadowRoot.childNodes[0];{let a=document.createElement(f);a.style.cssText="position:absolute";let b=document.createElement("div");return b.ariaLive="assertive",b.id="__next-route-announcer__",b.role="alert",b.style.cssText="position:absolute;border:0;height:1px;margin:-1px;padding:0;width:1px;clip:rect(0 0 0 0);overflow:hidden;white-space:nowrap;word-wrap:normal",a.attachShadow({mode:"open"}).appendChild(b),document.body.appendChild(a),b}}()),()=>{let a=document.getElementsByTagName(f)[0];(null==a?void 0:a.isConnected)&&document.body.removeChild(a)}),[]);let[h,i]=(0,d.useState)(""),j=(0,d.useRef)(void 0);return(0,d.useEffect)(()=>{let a="";if(document.title)a=document.title;else{let b=document.querySelector("h1");b&&(a=b.innerText||b.textContent||"")}void 0!==j.current&&j.current!==a&&i(a),j.current=a},[b]),c?(0,e.createPortal)(h,c):null}("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},38442:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("link-2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]])},38547:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("bug",[["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M9 7.13v-1a3.003 3.003 0 1 1 6 0v1",key:"d7y7pr"}],["path",{d:"M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6",key:"xs1cw7"}],["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M6.53 9C4.6 8.8 3 7.1 3 5",key:"32zzws"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"M3 21c0-2.1 1.7-3.9 3.8-4",key:"4p0ekp"}],["path",{d:"M20.97 5c0 2.1-1.6 3.8-3.5 4",key:"18gb23"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M17.2 17c2.1.1 3.8 1.9 3.8 4",key:"k3fwyw"}]])},39641:(a,b,c)=>{"use strict";c.d(b,{UC:()=>aa,VY:()=>ac,ZL:()=>$,bL:()=>Z,bm:()=>ad,hE:()=>ab,hJ:()=>_});var d=c(38301),e=c(87868),f=c(92808),g=c(2332),h=c(75656),i=c(11720),j=c(7412),k=c(69998),l=c(61611),m=c(29988),n=c(6406),o=c(70904),p=c(36409),q=c(61225),r=c(96425),s=c(21124),t="Dialog",[u,v]=(0,g.A)(t),[w,x]=u(t),y=a=>{let{__scopeDialog:b,children:c,open:e,defaultOpen:f,onOpenChange:g,modal:j=!0}=a,k=d.useRef(null),l=d.useRef(null),[m,n]=(0,i.i)({prop:e,defaultProp:f??!1,onChange:g,caller:t});return(0,s.jsx)(w,{scope:b,triggerRef:k,contentRef:l,contentId:(0,h.B)(),titleId:(0,h.B)(),descriptionId:(0,h.B)(),open:m,onOpenChange:n,onOpenToggle:d.useCallback(()=>n(a=>!a),[n]),modal:j,children:c})};y.displayName=t;var z="DialogTrigger";d.forwardRef((a,b)=>{let{__scopeDialog:c,...d}=a,g=x(z,c),h=(0,f.s)(b,g.triggerRef);return(0,s.jsx)(n.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":g.open,"aria-controls":g.contentId,"data-state":T(g.open),...d,ref:h,onClick:(0,e.mK)(a.onClick,g.onOpenToggle)})}).displayName=z;var A="DialogPortal",[B,C]=u(A,{forceMount:void 0}),D=a=>{let{__scopeDialog:b,forceMount:c,children:e,container:f}=a,g=x(A,b);return(0,s.jsx)(B,{scope:b,forceMount:c,children:d.Children.map(e,a=>(0,s.jsx)(m.C,{present:c||g.open,children:(0,s.jsx)(l.Z,{asChild:!0,container:f,children:a})}))})};D.displayName=A;var E="DialogOverlay",F=d.forwardRef((a,b)=>{let c=C(E,a.__scopeDialog),{forceMount:d=c.forceMount,...e}=a,f=x(E,a.__scopeDialog);return f.modal?(0,s.jsx)(m.C,{present:d||f.open,children:(0,s.jsx)(H,{...e,ref:b})}):null});F.displayName=E;var G=(0,r.TL)("DialogOverlay.RemoveScroll"),H=d.forwardRef((a,b)=>{let{__scopeDialog:c,...d}=a,e=x(E,c);return(0,s.jsx)(p.A,{as:G,allowPinchZoom:!0,shards:[e.contentRef],children:(0,s.jsx)(n.sG.div,{"data-state":T(e.open),...d,ref:b,style:{pointerEvents:"auto",...d.style}})})}),I="DialogContent",J=d.forwardRef((a,b)=>{let c=C(I,a.__scopeDialog),{forceMount:d=c.forceMount,...e}=a,f=x(I,a.__scopeDialog);return(0,s.jsx)(m.C,{present:d||f.open,children:f.modal?(0,s.jsx)(K,{...e,ref:b}):(0,s.jsx)(L,{...e,ref:b})})});J.displayName=I;var K=d.forwardRef((a,b)=>{let c=x(I,a.__scopeDialog),g=d.useRef(null),h=(0,f.s)(b,c.contentRef,g);return d.useEffect(()=>{let a=g.current;if(a)return(0,q.Eq)(a)},[]),(0,s.jsx)(M,{...a,ref:h,trapFocus:c.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,e.mK)(a.onCloseAutoFocus,a=>{a.preventDefault(),c.triggerRef.current?.focus()}),onPointerDownOutside:(0,e.mK)(a.onPointerDownOutside,a=>{let b=a.detail.originalEvent,c=0===b.button&&!0===b.ctrlKey;(2===b.button||c)&&a.preventDefault()}),onFocusOutside:(0,e.mK)(a.onFocusOutside,a=>a.preventDefault())})}),L=d.forwardRef((a,b)=>{let c=x(I,a.__scopeDialog),e=d.useRef(!1),f=d.useRef(!1);return(0,s.jsx)(M,{...a,ref:b,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:b=>{a.onCloseAutoFocus?.(b),b.defaultPrevented||(e.current||c.triggerRef.current?.focus(),b.preventDefault()),e.current=!1,f.current=!1},onInteractOutside:b=>{a.onInteractOutside?.(b),b.defaultPrevented||(e.current=!0,"pointerdown"===b.detail.originalEvent.type&&(f.current=!0));let d=b.target;c.triggerRef.current?.contains(d)&&b.preventDefault(),"focusin"===b.detail.originalEvent.type&&f.current&&b.preventDefault()}})}),M=d.forwardRef((a,b)=>{let{__scopeDialog:c,trapFocus:e,onOpenAutoFocus:g,onCloseAutoFocus:h,...i}=a,l=x(I,c),m=d.useRef(null),n=(0,f.s)(b,m);return(0,o.Oh)(),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(k.n,{asChild:!0,loop:!0,trapped:e,onMountAutoFocus:g,onUnmountAutoFocus:h,children:(0,s.jsx)(j.qW,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":T(l.open),...i,ref:n,onDismiss:()=>l.onOpenChange(!1)})}),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(X,{titleId:l.titleId}),(0,s.jsx)(Y,{contentRef:m,descriptionId:l.descriptionId})]})]})}),N="DialogTitle",O=d.forwardRef((a,b)=>{let{__scopeDialog:c,...d}=a,e=x(N,c);return(0,s.jsx)(n.sG.h2,{id:e.titleId,...d,ref:b})});O.displayName=N;var P="DialogDescription",Q=d.forwardRef((a,b)=>{let{__scopeDialog:c,...d}=a,e=x(P,c);return(0,s.jsx)(n.sG.p,{id:e.descriptionId,...d,ref:b})});Q.displayName=P;var R="DialogClose",S=d.forwardRef((a,b)=>{let{__scopeDialog:c,...d}=a,f=x(R,c);return(0,s.jsx)(n.sG.button,{type:"button",...d,ref:b,onClick:(0,e.mK)(a.onClick,()=>f.onOpenChange(!1))})});function T(a){return a?"open":"closed"}S.displayName=R;var U="DialogTitleWarning",[V,W]=(0,g.q)(U,{contentName:I,titleName:N,docsSlug:"dialog"}),X=({titleId:a})=>{let b=W(U),c=`\`${b.contentName}\` requires a \`${b.titleName}\` for the component to be accessible for screen reader users. + +If you want to hide the \`${b.titleName}\`, you can wrap it with our VisuallyHidden component. + +For more information, see https://radix-ui.com/primitives/docs/components/${b.docsSlug}`;return d.useEffect(()=>{a&&(document.getElementById(a)||console.error(c))},[c,a]),null},Y=({contentRef:a,descriptionId:b})=>{let c=W("DialogDescriptionWarning"),e=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${c.contentName}}.`;return d.useEffect(()=>{let c=a.current?.getAttribute("aria-describedby");b&&c&&(document.getElementById(b)||console.warn(e))},[e,a,b]),null},Z=y,$=D,_=F,aa=J,ab=O,ac=Q,ad=S},40284:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("trash-2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},40668:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{FetchStrategy:function(){return o},NavigationResultTag:function(){return m},PrefetchPriority:function(){return n},cancelPrefetchTask:function(){return i},createCacheKey:function(){return l},getCurrentCacheVersion:function(){return g},isPrefetchTaskDirty:function(){return k},navigate:function(){return e},prefetch:function(){return d},reschedulePrefetchTask:function(){return j},revalidateEntireCache:function(){return f},schedulePrefetchTask:function(){return h}});let c=()=>{throw Object.defineProperty(Error("Segment Cache experiment is not enabled. This is a bug in Next.js."),"__NEXT_ERROR_CODE",{value:"E654",enumerable:!1,configurable:!0})},d=c,e=c,f=c,g=c,h=c,i=c,j=c,k=c,l=c;var m=function(a){return a[a.MPA=0]="MPA",a[a.Success=1]="Success",a[a.NoOp=2]="NoOp",a[a.Async=3]="Async",a}({}),n=function(a){return a[a.Intent=2]="Intent",a[a.Default=1]="Default",a[a.Background=0]="Background",a}({}),o=function(a){return a[a.LoadingBoundary=0]="LoadingBoundary",a[a.PPR=1]="PPR",a[a.PPRRuntime=2]="PPRRuntime",a[a.Full=3]="Full",a}({});("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},41439:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{createMutableActionQueue:function(){return o},dispatchNavigateAction:function(){return q},dispatchTraverseAction:function(){return r},getCurrentAppRouterState:function(){return p},publicAppRouterInstance:function(){return s}});let d=c(12591),e=c(35507),f=c(38301),g=c(39039);c(40668);let h=c(22158),i=c(92464),j=c(97163),k=c(77743),l=c(30551);function m(a,b){null!==a.pending&&(a.pending=a.pending.next,null!==a.pending?n({actionQueue:a,action:a.pending,setState:b}):a.needsRefresh&&(a.needsRefresh=!1,a.dispatch({type:d.ACTION_REFRESH,origin:window.location.origin},b)))}async function n(a){let{actionQueue:b,action:c,setState:d}=a,e=b.state;b.pending=c;let f=c.payload,h=b.action(e,f);function i(a){c.discarded||(b.state=a,m(b,d),c.resolve(a))}(0,g.isThenable)(h)?h.then(i,a=>{m(b,d),c.reject(a)}):i(h)}function o(a,b){let c={state:a,dispatch:(a,b)=>(function(a,b,c){let e={resolve:c,reject:()=>{}};if(b.type!==d.ACTION_RESTORE){let a=new Promise((a,b)=>{e={resolve:a,reject:b}});(0,f.startTransition)(()=>{c(a)})}let g={payload:b,next:null,resolve:e.resolve,reject:e.reject};null===a.pending?(a.last=g,n({actionQueue:a,action:g,setState:c})):b.type===d.ACTION_NAVIGATE||b.type===d.ACTION_RESTORE?(a.pending.discarded=!0,g.next=a.pending.next,a.pending.payload.type===d.ACTION_SERVER_ACTION&&(a.needsRefresh=!0),n({actionQueue:a,action:g,setState:c})):(null!==a.last&&(a.last.next=g),a.last=g)})(c,a,b),action:async(a,b)=>(0,e.reducer)(a,b),pending:null,last:null,onRouterTransitionStart:null!==b&&"function"==typeof b.onRouterTransitionStart?b.onRouterTransitionStart:null};return c}function p(){return null}function q(a,b,c,e){let f=new URL((0,i.addBasePath)(a),location.href);(0,l.setLinkForCurrentNavigation)(e);(0,h.dispatchAppRouterAction)({type:d.ACTION_NAVIGATE,url:f,isExternalUrl:(0,j.isExternalURL)(f),locationSearch:location.search,shouldScroll:c,navigateType:b,allowAliasing:!0})}function r(a,b){(0,h.dispatchAppRouterAction)({type:d.ACTION_RESTORE,url:new URL(a),tree:b})}let s={back:()=>window.history.back(),forward:()=>window.history.forward(),prefetch:(a,b)=>{let c=function(){throw Object.defineProperty(Error("Internal Next.js error: Router action dispatched before initialization."),"__NEXT_ERROR_CODE",{value:"E668",enumerable:!1,configurable:!0})}(),e=(0,j.createPrefetchURL)(a);if(null!==e){var f;(0,k.prefetchReducer)(c.state,{type:d.ACTION_PREFETCH,url:e,kind:null!=(f=null==b?void 0:b.kind)?f:d.PrefetchKind.FULL})}},replace:(a,b)=>{(0,f.startTransition)(()=>{var c;q(a,"replace",null==(c=null==b?void 0:b.scroll)||c,null)})},push:(a,b)=>{(0,f.startTransition)(()=>{var c;q(a,"push",null==(c=null==b?void 0:b.scroll)||c,null)})},refresh:()=>{(0,f.startTransition)(()=>{(0,h.dispatchAppRouterAction)({type:d.ACTION_REFRESH,origin:window.location.origin})})},hmrRefresh:()=>{throw Object.defineProperty(Error("hmrRefresh can only be used in development mode. Please use refresh instead."),"__NEXT_ERROR_CODE",{value:"E485",enumerable:!1,configurable:!0})}};("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},42511:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"addPathPrefix",{enumerable:!0,get:function(){return e}});let d=c(58430);function e(a,b){if(!a.startsWith("/")||!b)return a;let{pathname:c,query:e,hash:f}=(0,d.parsePath)(a);return""+b+c+e+f}},42674:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("folder-tree",[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]])},43476:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("construction",[["rect",{x:"2",y:"6",width:"20",height:"8",rx:"1",key:"1estib"}],["path",{d:"M17 14v7",key:"7m2elx"}],["path",{d:"M7 14v7",key:"1cm7wv"}],["path",{d:"M17 3v3",key:"1v4jwn"}],["path",{d:"M7 3v3",key:"7o6guu"}],["path",{d:"M10 14 2.3 6.3",key:"1023jk"}],["path",{d:"m14 6 7.7 7.7",key:"1s8pl2"}],["path",{d:"m8 6 8 8",key:"hl96qh"}]])},43560:(a,b,c)=>{"use strict";c.d(b,{B:()=>f});var d=c(83224),e=c(76713);let f={partial:!0,tokenize:function(a,b,c){return function(b){return(0,e.On)(b)?(0,d.N)(a,f,"linePrefix")(b):f(b)};function f(a){return null===a||(0,e.HP)(a)?b(a):c(a)}}}},43700:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("upload",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]])},43718:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]])},44688:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("message-square",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]])},45076:a=>{var b=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,c=/\n/g,d=/^\s*/,e=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,f=/^:\s*/,g=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,h=/^[;\s]*/,i=/^\s+|\s+$/g;function j(a){return a?a.replace(i,""):""}a.exports=function(a,i){if("string"!=typeof a)throw TypeError("First argument must be a string");if(!a)return[];i=i||{};var k=1,l=1;function m(a){var b=a.match(c);b&&(k+=b.length);var d=a.lastIndexOf("\n");l=~d?a.length-d:l+a.length}function n(){var a={line:k,column:l};return function(b){return b.position=new o(a),r(d),b}}function o(a){this.start=a,this.end={line:k,column:l},this.source=i.source}o.prototype.content=a;var p=[];function q(b){var c=Error(i.source+":"+k+":"+l+": "+b);if(c.reason=b,c.filename=i.source,c.line=k,c.column=l,c.source=a,i.silent)p.push(c);else throw c}function r(b){var c=b.exec(a);if(c){var d=c[0];return m(d),a=a.slice(d.length),c}}function s(a){var b;for(a=a||[];b=t();)!1!==b&&a.push(b);return a}function t(){var b=n();if("/"==a.charAt(0)&&"*"==a.charAt(1)){for(var c=2;""!=a.charAt(c)&&("*"!=a.charAt(c)||"/"!=a.charAt(c+1));)++c;if(c+=2,""===a.charAt(c-1))return q("End of comment missing");var d=a.slice(2,c-2);return l+=2,m(d),a=a.slice(c),l+=2,b({type:"comment",comment:d})}}r(d);var u,v=[];for(s(v);u=function(){var a=n(),c=r(e);if(c){if(t(),!r(f))return q("property missing ':'");var d=r(g),i=a({type:"declaration",property:j(c[0].replace(b,"")),value:d?j(d[0].replace(b,"")):""});return r(h),i}}();)!1!==u&&(v.push(u),s(v));return v}},45461:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"hmrRefreshReducer",{enumerable:!0,get:function(){return d}}),c(60535),c(11830),c(76143),c(81711),c(3219),c(73486),c(70395),c(97163),c(50586),c(76061);let d=function(a,b){return a};("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},45798:(a,b,c)=>{"use strict";c.d(b,{oz:()=>cl});var d={};c.r(d),c.d(d,{boolean:()=>r,booleanish:()=>s,commaOrSpaceSeparated:()=>x,commaSeparated:()=>w,number:()=>u,overloadedBoolean:()=>t,spaceSeparated:()=>v});var e={};c.r(e),c.d(e,{attentionMarkers:()=>bo,contentInitial:()=>bi,disable:()=>bp,document:()=>bh,flow:()=>bk,flowInitial:()=>bj,insideSpan:()=>bn,string:()=>bl,text:()=>bm});var f=c(5776);let g=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,h=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,i={};function j(a,b){return((b||i).jsx?h:g).test(a)}let k=/[ \t\n\f\r]/g;function l(a){return""===a.replace(k,"")}class m{constructor(a,b,c){this.normal=b,this.property=a,c&&(this.space=c)}}function n(a,b){let c={},d={};for(let b of a)Object.assign(c,b.property),Object.assign(d,b.normal);return new m(c,d,b)}function o(a){return a.toLowerCase()}m.prototype.normal={},m.prototype.property={},m.prototype.space=void 0;class p{constructor(a,b){this.attribute=b,this.property=a}}p.prototype.attribute="",p.prototype.booleanish=!1,p.prototype.boolean=!1,p.prototype.commaOrSpaceSeparated=!1,p.prototype.commaSeparated=!1,p.prototype.defined=!1,p.prototype.mustUseProperty=!1,p.prototype.number=!1,p.prototype.overloadedBoolean=!1,p.prototype.property="",p.prototype.spaceSeparated=!1,p.prototype.space=void 0;let q=0,r=y(),s=y(),t=y(),u=y(),v=y(),w=y(),x=y();function y(){return 2**++q}let z=Object.keys(d);class A extends p{constructor(a,b,c,e){let f=-1;if(super(a,b),function(a,b,c){c&&(a[b]=c)}(this,"space",e),"number"==typeof c)for(;++f"role"===b?b:"aria-"+b.slice(4).toLowerCase()});function D(a,b){return b in a?a[b]:b}function E(a,b){return D(a,b.toLowerCase())}let F=B({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:w,acceptCharset:v,accessKey:v,action:null,allow:null,allowFullScreen:r,allowPaymentRequest:r,allowUserMedia:r,alt:null,as:null,async:r,autoCapitalize:null,autoComplete:v,autoFocus:r,autoPlay:r,blocking:v,capture:null,charSet:null,checked:r,cite:null,className:v,cols:u,colSpan:null,content:null,contentEditable:s,controls:r,controlsList:v,coords:u|w,crossOrigin:null,data:null,dateTime:null,decoding:null,default:r,defer:r,dir:null,dirName:null,disabled:r,download:t,draggable:s,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:r,formTarget:null,headers:v,height:u,hidden:t,high:u,href:null,hrefLang:null,htmlFor:v,httpEquiv:v,id:null,imageSizes:null,imageSrcSet:null,inert:r,inputMode:null,integrity:null,is:null,isMap:r,itemId:null,itemProp:v,itemRef:v,itemScope:r,itemType:v,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:r,low:u,manifest:null,max:null,maxLength:u,media:null,method:null,min:null,minLength:u,multiple:r,muted:r,name:null,nonce:null,noModule:r,noValidate:r,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:r,optimum:u,pattern:null,ping:v,placeholder:null,playsInline:r,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:r,referrerPolicy:null,rel:v,required:r,reversed:r,rows:u,rowSpan:u,sandbox:v,scope:null,scoped:r,seamless:r,selected:r,shadowRootClonable:r,shadowRootDelegatesFocus:r,shadowRootMode:null,shape:null,size:u,sizes:null,slot:null,span:u,spellCheck:s,src:null,srcDoc:null,srcLang:null,srcSet:null,start:u,step:null,style:null,tabIndex:u,target:null,title:null,translate:null,type:null,typeMustMatch:r,useMap:null,value:s,width:u,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:v,axis:null,background:null,bgColor:null,border:u,borderColor:null,bottomMargin:u,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:r,declare:r,event:null,face:null,frame:null,frameBorder:null,hSpace:u,leftMargin:u,link:null,longDesc:null,lowSrc:null,marginHeight:u,marginWidth:u,noResize:r,noHref:r,noShade:r,noWrap:r,object:null,profile:null,prompt:null,rev:null,rightMargin:u,rules:null,scheme:null,scrolling:s,standby:null,summary:null,text:null,topMargin:u,valueType:null,version:null,vAlign:null,vLink:null,vSpace:u,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:r,disableRemotePlayback:r,prefix:null,property:null,results:u,security:null,unselectable:null},space:"html",transform:E}),G=B({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:x,accentHeight:u,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:u,amplitude:u,arabicForm:null,ascent:u,attributeName:null,attributeType:null,azimuth:u,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:u,by:null,calcMode:null,capHeight:u,className:v,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:u,diffuseConstant:u,direction:null,display:null,dur:null,divisor:u,dominantBaseline:null,download:r,dx:null,dy:null,edgeMode:null,editable:null,elevation:u,enableBackground:null,end:null,event:null,exponent:u,externalResourcesRequired:null,fill:null,fillOpacity:u,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:w,g2:w,glyphName:w,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:u,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:u,horizOriginX:u,horizOriginY:u,id:null,ideographic:u,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:u,k:u,k1:u,k2:u,k3:u,k4:u,kernelMatrix:x,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:u,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:u,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:u,overlineThickness:u,paintOrder:null,panose1:null,path:null,pathLength:u,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:v,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:u,pointsAtY:u,pointsAtZ:u,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:x,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:x,rev:x,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:x,requiredFeatures:x,requiredFonts:x,requiredFormats:x,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:u,specularExponent:u,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:u,strikethroughThickness:u,string:null,stroke:null,strokeDashArray:x,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:u,strokeOpacity:u,strokeWidth:null,style:null,surfaceScale:u,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:x,tabIndex:u,tableValues:null,target:null,targetX:u,targetY:u,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:x,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:u,underlineThickness:u,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:u,values:null,vAlphabetic:u,vMathematical:u,vectorEffect:null,vHanging:u,vIdeographic:u,version:null,vertAdvY:u,vertOriginX:u,vertOriginY:u,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:u,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:D}),H=B({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(a,b)=>"xlink:"+b.slice(5).toLowerCase()}),I=B({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:E}),J=B({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(a,b)=>"xml:"+b.slice(3).toLowerCase()}),K=n([C,F,H,I,J],"html"),L=n([C,G,H,I,J],"svg"),M=/[A-Z]/g,N=/-[a-z]/g,O=/^data[-\w.:]+$/i;function P(a){return"-"+a.toLowerCase()}function Q(a){return a.charAt(1).toUpperCase()}let R={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var S=c(30189);let T=V("end"),U=V("start");function V(a){return function(b){let c=b&&b.position&&b.position[a]||{};if("number"==typeof c.line&&c.line>0&&"number"==typeof c.column&&c.column>0)return{line:c.line,column:c.column,offset:"number"==typeof c.offset&&c.offset>-1?c.offset:void 0}}}function W(a){return a&&"object"==typeof a?"position"in a||"type"in a?Y(a.position):"start"in a||"end"in a?Y(a):"line"in a||"column"in a?X(a):"":""}function X(a){return Z(a&&a.line)+":"+Z(a&&a.column)}function Y(a){return X(a&&a.start)+"-"+X(a&&a.end)}function Z(a){return a&&"number"==typeof a?a:1}class $ extends Error{constructor(a,b,c){super(),"string"==typeof b&&(c=b,b=void 0);let d="",e={},f=!1;if(b&&(e="line"in b&&"column"in b||"start"in b&&"end"in b?{place:b}:"type"in b?{ancestors:[b],place:b.position}:{...b}),"string"==typeof a?d=a:!e.cause&&a&&(f=!0,d=a.message,e.cause=a),!e.ruleId&&!e.source&&"string"==typeof c){let a=c.indexOf(":");-1===a?e.ruleId=c:(e.source=c.slice(0,a),e.ruleId=c.slice(a+1))}if(!e.place&&e.ancestors&&e.ancestors){let a=e.ancestors[e.ancestors.length-1];a&&(e.place=a.position)}let g=e.place&&"start"in e.place?e.place.start:e.place;this.ancestors=e.ancestors||void 0,this.cause=e.cause||void 0,this.column=g?g.column:void 0,this.fatal=void 0,this.file="",this.message=d,this.line=g?g.line:void 0,this.name=W(e.place)||"1:1",this.place=e.place||void 0,this.reason=this.message,this.ruleId=e.ruleId||void 0,this.source=e.source||void 0,this.stack=f&&e.cause&&"string"==typeof e.cause.stack?e.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}$.prototype.file="",$.prototype.name="",$.prototype.reason="",$.prototype.message="",$.prototype.stack="",$.prototype.column=void 0,$.prototype.line=void 0,$.prototype.ancestors=void 0,$.prototype.cause=void 0,$.prototype.fatal=void 0,$.prototype.place=void 0,$.prototype.ruleId=void 0,$.prototype.source=void 0;let _={}.hasOwnProperty,aa=new Map,ab=/[A-Z]/g,ac=new Set(["table","tbody","thead","tfoot","tr"]),ad=new Set(["td","th"]),ae="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function af(a,b,c){return"element"===b.type?function(a,b,c){let d=a.schema;"svg"===b.tagName.toLowerCase()&&"html"===d.space&&(a.schema=L),a.ancestors.push(b);let e=aj(a,b.tagName,!1),f=function(a,b){let c,d,e={};for(d in b.properties)if("children"!==d&&_.call(b.properties,d)){let f=function(a,b,c){let d=function(a,b){let c=o(b),d=b,e=p;if(c in a.normal)return a.property[a.normal[c]];if(c.length>4&&"data"===c.slice(0,4)&&O.test(b)){if("-"===b.charAt(4)){let a=b.slice(5).replace(N,Q);d="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{let a=b.slice(4);if(!N.test(a)){let c=a.replace(M,P);"-"!==c.charAt(0)&&(c="-"+c),b="data"+c}}e=A}return new e(d,b)}(a.schema,b);if(!(null==c||"number"==typeof c&&Number.isNaN(c))){if(Array.isArray(c)&&(c=d.commaSeparated?function(a,b){let c={};return(""===a[a.length-1]?[...a,""]:a).join((c.padRight?" ":"")+","+(!1===c.padLeft?"":" ")).trim()}(c):c.join(" ").trim()),"style"===d.property){let b="object"==typeof c?c:function(a,b){try{return S(b,{reactCompat:!0})}catch(c){if(a.ignoreInvalidStyle)return{};let b=new $("Cannot parse `style` attribute",{ancestors:a.ancestors,cause:c,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw b.file=a.filePath||void 0,b.url=ae+"#cannot-parse-style-attribute",b}}(a,String(c));return"css"===a.stylePropertyNameCase&&(b=function(a){let b,c={};for(b in a)_.call(a,b)&&(c[function(a){let b=a.replace(ab,al);return"ms-"===b.slice(0,3)&&(b="-"+b),b}(b)]=a[b]);return c}(b)),["style",b]}return["react"===a.elementAttributeNameCase&&d.space?R[d.property]||d.property:d.attribute,c]}}(a,d,b.properties[d]);if(f){let[d,g]=f;a.tableCellAlignToStyle&&"align"===d&&"string"==typeof g&&ad.has(b.tagName)?c=g:e[d]=g}}return c&&((e.style||(e.style={}))["css"===a.stylePropertyNameCase?"text-align":"textAlign"]=c),e}(a,b),g=ai(a,b);return ac.has(b.tagName)&&(g=g.filter(function(a){return"string"!=typeof a||!("object"==typeof a?"text"===a.type&&l(a.value):l(a))})),ag(a,f,e,b),ah(f,g),a.ancestors.pop(),a.schema=d,a.create(b,e,f,c)}(a,b,c):"mdxFlowExpression"===b.type||"mdxTextExpression"===b.type?function(a,b){if(b.data&&b.data.estree&&a.evaluater){let c=b.data.estree.body[0];return(0,f.ok)("ExpressionStatement"===c.type),a.evaluater.evaluateExpression(c.expression)}ak(a,b.position)}(a,b):"mdxJsxFlowElement"===b.type||"mdxJsxTextElement"===b.type?function(a,b,c){let d=a.schema;"svg"===b.name&&"html"===d.space&&(a.schema=L),a.ancestors.push(b);let e=null===b.name?a.Fragment:aj(a,b.name,!0),g=function(a,b){let c={};for(let d of b.attributes)if("mdxJsxExpressionAttribute"===d.type)if(d.data&&d.data.estree&&a.evaluater){let b=d.data.estree.body[0];(0,f.ok)("ExpressionStatement"===b.type);let e=b.expression;(0,f.ok)("ObjectExpression"===e.type);let g=e.properties[0];(0,f.ok)("SpreadElement"===g.type),Object.assign(c,a.evaluater.evaluateExpression(g.argument))}else ak(a,b.position);else{let e,g=d.name;if(d.value&&"object"==typeof d.value)if(d.value.data&&d.value.data.estree&&a.evaluater){let b=d.value.data.estree.body[0];(0,f.ok)("ExpressionStatement"===b.type),e=a.evaluater.evaluateExpression(b.expression)}else ak(a,b.position);else e=null===d.value||d.value;c[g]=e}return c}(a,b),h=ai(a,b);return ag(a,g,e,b),ah(g,h),a.ancestors.pop(),a.schema=d,a.create(b,e,g,c)}(a,b,c):"mdxjsEsm"===b.type?function(a,b){if(b.data&&b.data.estree&&a.evaluater)return a.evaluater.evaluateProgram(b.data.estree);ak(a,b.position)}(a,b):"root"===b.type?function(a,b,c){let d={};return ah(d,ai(a,b)),a.create(b,a.Fragment,d,c)}(a,b,c):"text"===b.type?b.value:void 0}function ag(a,b,c,d){"string"!=typeof c&&c!==a.Fragment&&a.passNode&&(b.node=d)}function ah(a,b){if(b.length>0){let c=b.length>1?b:b[0];c&&(a.children=c)}}function ai(a,b){let c=[],d=-1,e=a.passKeys?new Map:aa;for(;++d=this.left.length+this.right.length)throw RangeError("Cannot access index `"+a+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return athis.left.length?this.right.slice(this.right.length-c+this.left.length,this.right.length-a+this.left.length).reverse():this.left.slice(a).concat(this.right.slice(this.right.length-c+this.left.length).reverse())}splice(a,b,c){this.setCursor(Math.trunc(a));let d=this.right.splice(this.right.length-(b||0),1/0);return c&&ar(this.left,c),d.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(a){this.setCursor(1/0),this.left.push(a)}pushMany(a){this.setCursor(1/0),ar(this.left,a)}unshift(a){this.setCursor(0),this.right.push(a)}unshiftMany(a){this.setCursor(0),ar(this.right,a.reverse())}setCursor(a){if(a!==this.left.length&&(!(a>this.left.length)||0!==this.right.length)&&(!(a<0)||0!==this.left.length))if(ad))return;let h=e.events.length,i=h;for(;i--;)if("exit"===e.events[i][0]&&"chunkFlow"===e.events[i][1].type){if(a){c=e.events[i][1].end;break}a=!0}for(q(g),f=h;fb;){let b=f[c];e.containerState=b[1],b[0].exit.call(e,a)}f.length=b}function r(){b.write([null]),c=void 0,b=void 0,e.containerState._closeFlow=void 0}}},ay={tokenize:function(a,b,c){return(0,au.N)(a,a.attempt(this.parser.constructs.document,b,c),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};var az=c(43560);let aA={resolve:function(a){return as(a),a},tokenize:function(a,b){let c;return function(b){return a.enter("content"),c=a.enter("chunkContent",{contentType:"content"}),d(b)};function d(b){return null===b?e(b):(0,av.HP)(b)?a.check(aB,f,e)(b):(a.consume(b),d)}function e(c){return a.exit("chunkContent"),a.exit("content"),b(c)}function f(b){return a.consume(b),a.exit("chunkContent"),c.next=a.enter("chunkContent",{contentType:"content",previous:c}),c=c.next,d}}},aB={partial:!0,tokenize:function(a,b,c){let d=this;return function(b){return a.exit("chunkContent"),a.enter("lineEnding"),a.consume(b),a.exit("lineEnding"),(0,au.N)(a,e,"linePrefix")};function e(e){if(null===e||(0,av.HP)(e))return c(e);let f=d.events[d.events.length-1];return!d.parser.constructs.disable.null.includes("codeIndented")&&f&&"linePrefix"===f[1].type&&f[2].sliceSerialize(f[1],!0).length>=4?b(e):a.interrupt(d.parser.constructs.flow,c,b)(e)}}},aC={tokenize:function(a){let b=this,c=a.attempt(az.B,function(d){return null===d?void a.consume(d):(a.enter("lineEndingBlank"),a.consume(d),a.exit("lineEndingBlank"),b.currentConstruct=void 0,c)},a.attempt(this.parser.constructs.flowInitial,d,(0,au.N)(a,a.attempt(this.parser.constructs.flow,d,a.attempt(aA,d)),"linePrefix")));return c;function d(d){return null===d?void a.consume(d):(a.enter("lineEnding"),a.consume(d),a.exit("lineEnding"),b.currentConstruct=void 0,c)}}},aD={resolveAll:aH()},aE=aG("string"),aF=aG("text");function aG(a){return{resolveAll:aH("text"===a?aI:void 0),tokenize:function(b){let c=this,d=this.parser.constructs[a],e=b.attempt(d,f,g);return f;function f(a){return i(a)?e(a):g(a)}function g(a){return null===a?void b.consume(a):(b.enter("data"),b.consume(a),h)}function h(a){return i(a)?(b.exit("data"),e(a)):(b.consume(a),h)}function i(a){if(null===a)return!0;let b=d[a],e=-1;if(b)for(;++e=3&&(null===g||(0,av.HP)(g))?(a.exit("thematicBreak"),b(g)):c(g)}(g)}}},aK={continuation:{tokenize:function(a,b,c){let d=this;return d.containerState._closeFlow=void 0,a.check(az.B,function(c){return d.containerState.furtherBlankLines=d.containerState.furtherBlankLines||d.containerState.initialBlankLine,(0,au.N)(a,b,"listItemIndent",d.containerState.size+1)(c)},function(c){return d.containerState.furtherBlankLines||!(0,av.On)(c)?(d.containerState.furtherBlankLines=void 0,d.containerState.initialBlankLine=void 0,e(c)):(d.containerState.furtherBlankLines=void 0,d.containerState.initialBlankLine=void 0,a.attempt(aM,b,e)(c))});function e(e){return d.containerState._closeFlow=!0,d.interrupt=void 0,(0,au.N)(a,a.attempt(aK,b,c),"linePrefix",d.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(e)}}},exit:function(a){a.exit(this.containerState.type)},name:"list",tokenize:function(a,b,c){let d=this,e=d.events[d.events.length-1],f=e&&"linePrefix"===e[1].type?e[2].sliceSerialize(e[1],!0).length:0,g=0;return function(b){let e=d.containerState.type||(42===b||43===b||45===b?"listUnordered":"listOrdered");if("listUnordered"===e?!d.containerState.marker||b===d.containerState.marker:(0,av.BM)(b)){if(d.containerState.type||(d.containerState.type=e,a.enter(e,{_container:!0})),"listUnordered"===e)return a.enter("listItemPrefix"),42===b||45===b?a.check(aJ,c,h)(b):h(b);if(!d.interrupt||49===b)return a.enter("listItemPrefix"),a.enter("listItemValue"),function b(e){return(0,av.BM)(e)&&++g<10?(a.consume(e),b):(!d.interrupt||g<2)&&(d.containerState.marker?e===d.containerState.marker:41===e||46===e)?(a.exit("listItemValue"),h(e)):c(e)}(b)}return c(b)};function h(b){return a.enter("listItemMarker"),a.consume(b),a.exit("listItemMarker"),d.containerState.marker=d.containerState.marker||b,a.check(az.B,d.interrupt?c:i,a.attempt(aL,k,j))}function i(a){return d.containerState.initialBlankLine=!0,f++,k(a)}function j(b){return(0,av.On)(b)?(a.enter("listItemPrefixWhitespace"),a.consume(b),a.exit("listItemPrefixWhitespace"),k):c(b)}function k(c){return d.containerState.size=f+d.sliceSerialize(a.exit("listItemPrefix"),!0).length,b(c)}}},aL={partial:!0,tokenize:function(a,b,c){let d=this;return(0,au.N)(a,function(a){let e=d.events[d.events.length-1];return!(0,av.On)(a)&&e&&"listItemPrefixWhitespace"===e[1].type?b(a):c(a)},"listItemPrefixWhitespace",d.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},aM={partial:!0,tokenize:function(a,b,c){let d=this;return(0,au.N)(a,function(a){let e=d.events[d.events.length-1];return e&&"listItemIndent"===e[1].type&&e[2].sliceSerialize(e[1],!0).length===d.containerState.size?b(a):c(a)},"listItemIndent",d.containerState.size+1)}},aN={continuation:{tokenize:function(a,b,c){let d=this;return function(b){return(0,av.On)(b)?(0,au.N)(a,e,"linePrefix",d.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(b):e(b)};function e(d){return a.attempt(aN,b,c)(d)}}},exit:function(a){a.exit("blockQuote")},name:"blockQuote",tokenize:function(a,b,c){let d=this;return function(b){if(62===b){let c=d.containerState;return c.open||(a.enter("blockQuote",{_container:!0}),c.open=!0),a.enter("blockQuotePrefix"),a.enter("blockQuoteMarker"),a.consume(b),a.exit("blockQuoteMarker"),e}return c(b)};function e(c){return(0,av.On)(c)?(a.enter("blockQuotePrefixWhitespace"),a.consume(c),a.exit("blockQuotePrefixWhitespace"),a.exit("blockQuotePrefix"),b):(a.exit("blockQuotePrefix"),b(c))}}};function aO(a,b,c,d,e,f,g,h,i){let j=i||1/0,k=0;return function(b){return 60===b?(a.enter(d),a.enter(e),a.enter(f),a.consume(b),a.exit(f),l):null===b||32===b||41===b||(0,av.JQ)(b)?c(b):(a.enter(d),a.enter(g),a.enter(h),a.enter("chunkString",{contentType:"string"}),o(b))};function l(c){return 62===c?(a.enter(f),a.consume(c),a.exit(f),a.exit(e),a.exit(d),b):(a.enter(h),a.enter("chunkString",{contentType:"string"}),m(c))}function m(b){return 62===b?(a.exit("chunkString"),a.exit(h),l(b)):null===b||60===b||(0,av.HP)(b)?c(b):(a.consume(b),92===b?n:m)}function n(b){return 60===b||62===b||92===b?(a.consume(b),m):m(b)}function o(e){return!k&&(null===e||41===e||(0,av.Ee)(e))?(a.exit("chunkString"),a.exit(h),a.exit(g),a.exit(d),b(e)):k999||null===l||91===l||93===l&&!g||94===l&&!i&&"_hiddenFootnoteSupport"in h.parser.constructs?c(l):93===l?(a.exit(f),a.enter(e),a.consume(l),a.exit(e),a.exit(d),b):(0,av.HP)(l)?(a.enter("lineEnding"),a.consume(l),a.exit("lineEnding"),j):(a.enter("chunkString",{contentType:"string"}),k(l))}function k(b){return null===b||91===b||93===b||(0,av.HP)(b)||i++>999?(a.exit("chunkString"),j(b)):(a.consume(b),g||(g=!(0,av.On)(b)),92===b?l:k)}function l(b){return 91===b||92===b||93===b?(a.consume(b),i++,k):k(b)}}function aQ(a,b,c,d,e,f){let g;return function(b){return 34===b||39===b||40===b?(a.enter(d),a.enter(e),a.consume(b),a.exit(e),g=40===b?41:b,h):c(b)};function h(c){return c===g?(a.enter(e),a.consume(c),a.exit(e),a.exit(d),b):(a.enter(f),i(c))}function i(b){return b===g?(a.exit(f),h(g)):null===b?c(b):(0,av.HP)(b)?(a.enter("lineEnding"),a.consume(b),a.exit("lineEnding"),(0,au.N)(a,i,"linePrefix")):(a.enter("chunkString",{contentType:"string"}),j(b))}function j(b){return b===g||null===b||(0,av.HP)(b)?(a.exit("chunkString"),i(b)):(a.consume(b),92===b?k:j)}function k(b){return b===g||92===b?(a.consume(b),j):j(b)}}function aR(a,b){let c;return function d(e){return(0,av.HP)(e)?(a.enter("lineEnding"),a.consume(e),a.exit("lineEnding"),c=!0,d):(0,av.On)(e)?(0,au.N)(a,d,c?"linePrefix":"lineSuffix")(e):b(e)}}var aS=c(75179);let aT={partial:!0,tokenize:function(a,b,c){return function(b){return(0,av.Ee)(b)?aR(a,d)(b):c(b)};function d(b){return aQ(a,e,c,"definitionTitle","definitionTitleMarker","definitionTitleString")(b)}function e(b){return(0,av.On)(b)?(0,au.N)(a,f,"whitespace")(b):f(b)}function f(a){return null===a||(0,av.HP)(a)?b(a):c(a)}}},aU={name:"codeIndented",tokenize:function(a,b,c){let d=this;return function(b){return a.enter("codeIndented"),(0,au.N)(a,e,"linePrefix",5)(b)};function e(b){let e=d.events[d.events.length-1];return e&&"linePrefix"===e[1].type&&e[2].sliceSerialize(e[1],!0).length>=4?function b(c){return null===c?f(c):(0,av.HP)(c)?a.attempt(aV,b,f)(c):(a.enter("codeFlowValue"),function c(d){return null===d||(0,av.HP)(d)?(a.exit("codeFlowValue"),b(d)):(a.consume(d),c)}(c))}(b):c(b)}function f(c){return a.exit("codeIndented"),b(c)}}},aV={partial:!0,tokenize:function(a,b,c){let d=this;return e;function e(b){return d.parser.lazy[d.now().line]?c(b):(0,av.HP)(b)?(a.enter("lineEnding"),a.consume(b),a.exit("lineEnding"),e):(0,au.N)(a,f,"linePrefix",5)(b)}function f(a){let f=d.events[d.events.length-1];return f&&"linePrefix"===f[1].type&&f[2].sliceSerialize(f[1],!0).length>=4?b(a):(0,av.HP)(a)?e(a):c(a)}}},aW={name:"setextUnderline",resolveTo:function(a,b){let c,d,e,f=a.length;for(;f--;)if("enter"===a[f][0]){if("content"===a[f][1].type){c=f;break}"paragraph"===a[f][1].type&&(d=f)}else"content"===a[f][1].type&&a.splice(f,1),e||"definition"!==a[f][1].type||(e=f);let g={type:"setextHeading",start:{...a[c][1].start},end:{...a[a.length-1][1].end}};return a[d][1].type="setextHeadingText",e?(a.splice(d,0,["enter",g,b]),a.splice(e+1,0,["exit",a[c][1],b]),a[c][1].end={...a[e][1].end}):a[c][1]=g,a.push(["exit",g,b]),a},tokenize:function(a,b,c){let d,e=this;return function(b){var g;let h,i=e.events.length;for(;i--;)if("lineEnding"!==e.events[i][1].type&&"linePrefix"!==e.events[i][1].type&&"content"!==e.events[i][1].type){h="paragraph"===e.events[i][1].type;break}return!e.parser.lazy[e.now().line]&&(e.interrupt||h)?(a.enter("setextHeadingLine"),d=b,g=b,a.enter("setextHeadingLineSequence"),function b(c){return c===d?(a.consume(c),b):(a.exit("setextHeadingLineSequence"),(0,av.On)(c)?(0,au.N)(a,f,"lineSuffix")(c):f(c))}(g)):c(b)};function f(d){return null===d||(0,av.HP)(d)?(a.exit("setextHeadingLine"),b(d)):c(d)}}},aX=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],aY=["pre","script","style","textarea"],aZ={partial:!0,tokenize:function(a,b,c){return function(d){return a.enter("lineEnding"),a.consume(d),a.exit("lineEnding"),a.attempt(az.B,b,c)}}},a$={partial:!0,tokenize:function(a,b,c){let d=this;return function(b){return(0,av.HP)(b)?(a.enter("lineEnding"),a.consume(b),a.exit("lineEnding"),e):c(b)};function e(a){return d.parser.lazy[d.now().line]?c(a):b(a)}}},a_={partial:!0,tokenize:function(a,b,c){let d=this;return function(b){return null===b?c(b):(a.enter("lineEnding"),a.consume(b),a.exit("lineEnding"),e)};function e(a){return d.parser.lazy[d.now().line]?c(a):b(a)}}},a0={concrete:!0,name:"codeFenced",tokenize:function(a,b,c){let d,e=this,f={partial:!0,tokenize:function(a,b,c){let f=0;return function(b){return a.enter("lineEnding"),a.consume(b),a.exit("lineEnding"),g};function g(b){return a.enter("codeFencedFence"),(0,av.On)(b)?(0,au.N)(a,i,"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(b):i(b)}function i(b){return b===d?(a.enter("codeFencedFenceSequence"),function b(e){return e===d?(f++,a.consume(e),b):f>=h?(a.exit("codeFencedFenceSequence"),(0,av.On)(e)?(0,au.N)(a,j,"whitespace")(e):j(e)):c(e)}(b)):c(b)}function j(d){return null===d||(0,av.HP)(d)?(a.exit("codeFencedFence"),b(d)):c(d)}}},g=0,h=0;return function(b){var f=b;let j=e.events[e.events.length-1];return g=j&&"linePrefix"===j[1].type?j[2].sliceSerialize(j[1],!0).length:0,d=f,a.enter("codeFenced"),a.enter("codeFencedFence"),a.enter("codeFencedFenceSequence"),function b(e){return e===d?(h++,a.consume(e),b):h<3?c(e):(a.exit("codeFencedFenceSequence"),(0,av.On)(e)?(0,au.N)(a,i,"whitespace")(e):i(e))}(f)};function i(f){return null===f||(0,av.HP)(f)?(a.exit("codeFencedFence"),e.interrupt?b(f):a.check(a_,k,o)(f)):(a.enter("codeFencedFenceInfo"),a.enter("chunkString",{contentType:"string"}),function b(e){return null===e||(0,av.HP)(e)?(a.exit("chunkString"),a.exit("codeFencedFenceInfo"),i(e)):(0,av.On)(e)?(a.exit("chunkString"),a.exit("codeFencedFenceInfo"),(0,au.N)(a,j,"whitespace")(e)):96===e&&e===d?c(e):(a.consume(e),b)}(f))}function j(b){return null===b||(0,av.HP)(b)?i(b):(a.enter("codeFencedFenceMeta"),a.enter("chunkString",{contentType:"string"}),function b(e){return null===e||(0,av.HP)(e)?(a.exit("chunkString"),a.exit("codeFencedFenceMeta"),i(e)):96===e&&e===d?c(e):(a.consume(e),b)}(b))}function k(b){return a.attempt(f,o,l)(b)}function l(b){return a.enter("lineEnding"),a.consume(b),a.exit("lineEnding"),m}function m(b){return g>0&&(0,av.On)(b)?(0,au.N)(a,n,"linePrefix",g+1)(b):n(b)}function n(b){return null===b||(0,av.HP)(b)?a.check(a_,k,o)(b):(a.enter("codeFlowValue"),function b(c){return null===c||(0,av.HP)(c)?(a.exit("codeFlowValue"),n(c)):(a.consume(c),b)}(b))}function o(c){return a.exit("codeFenced"),b(c)}}},a1={AElig:"\xc6",AMP:"&",Aacute:"\xc1",Abreve:"Ă",Acirc:"\xc2",Acy:"А",Afr:"\uD835\uDD04",Agrave:"\xc0",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"\uD835\uDD38",ApplyFunction:"⁡",Aring:"\xc5",Ascr:"\uD835\uDC9C",Assign:"≔",Atilde:"\xc3",Auml:"\xc4",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"\uD835\uDD05",Bopf:"\uD835\uDD39",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COPY:"\xa9",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedil:"\xc7",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"\xb8",CenterDot:"\xb7",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"\uD835\uDC9E",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"\uD835\uDD07",DiacriticalAcute:"\xb4",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"\uD835\uDD3B",Dot:"\xa8",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"\xa8",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"\uD835\uDC9F",Dstrok:"Đ",ENG:"Ŋ",ETH:"\xd0",Eacute:"\xc9",Ecaron:"Ě",Ecirc:"\xca",Ecy:"Э",Edot:"Ė",Efr:"\uD835\uDD08",Egrave:"\xc8",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"\uD835\uDD3C",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Euml:"\xcb",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"\uD835\uDD09",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"\uD835\uDD3D",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"\uD835\uDD0A",Gg:"⋙",Gopf:"\uD835\uDD3E",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"\uD835\uDCA2",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"\xcd",Icirc:"\xce",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrave:"\xcc",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"⁣",InvisibleTimes:"⁢",Iogon:"Į",Iopf:"\uD835\uDD40",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"\xcf",Jcirc:"Ĵ",Jcy:"Й",Jfr:"\uD835\uDD0D",Jopf:"\uD835\uDD41",Jscr:"\uD835\uDCA5",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"\uD835\uDD0E",Kopf:"\uD835\uDD42",Kscr:"\uD835\uDCA6",LJcy:"Љ",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"\uD835\uDD0F",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"\uD835\uDD43",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"\uD835\uDD10",MinusPlus:"∓",Mopf:"\uD835\uDD44",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",Nfr:"\uD835\uDD11",NoBreak:"⁠",NonBreakingSpace:"\xa0",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"\uD835\uDCA9",Ntilde:"\xd1",Nu:"Ν",OElig:"Œ",Oacute:"\xd3",Ocirc:"\xd4",Ocy:"О",Odblac:"Ő",Ofr:"\uD835\uDD12",Ograve:"\xd2",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"\uD835\uDD46",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"\uD835\uDCAA",Oslash:"\xd8",Otilde:"\xd5",Otimes:"⨷",Ouml:"\xd6",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"\uD835\uDD13",Phi:"Φ",Pi:"Π",PlusMinus:"\xb1",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"\uD835\uDCAB",Psi:"Ψ",QUOT:'"',Qfr:"\uD835\uDD14",Qopf:"ℚ",Qscr:"\uD835\uDCAC",RBarr:"⤐",REG:"\xae",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"\uD835\uDD16",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"\uD835\uDD4A",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"\uD835\uDCAE",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THORN:"\xde",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:" ",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"\uD835\uDD17",Therefore:"∴",Theta:"Θ",ThickSpace:"  ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"\uD835\uDD4B",TripleDot:"⃛",Tscr:"\uD835\uDCAF",Tstrok:"Ŧ",Uacute:"\xda",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"\xdb",Ucy:"У",Udblac:"Ű",Ufr:"\uD835\uDD18",Ugrave:"\xd9",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"\uD835\uDD4C",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"\uD835\uDCB0",Utilde:"Ũ",Uuml:"\xdc",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"\uD835\uDD19",Vopf:"\uD835\uDD4D",Vscr:"\uD835\uDCB1",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"\uD835\uDD1A",Wopf:"\uD835\uDD4E",Wscr:"\uD835\uDCB2",Xfr:"\uD835\uDD1B",Xi:"Ξ",Xopf:"\uD835\uDD4F",Xscr:"\uD835\uDCB3",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"\xdd",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"\uD835\uDD1C",Yopf:"\uD835\uDD50",Yscr:"\uD835\uDCB4",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"​",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"\uD835\uDCB5",aacute:"\xe1",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acirc:"\xe2",acute:"\xb4",acy:"а",aelig:"\xe6",af:"⁡",afr:"\uD835\uDD1E",agrave:"\xe0",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"\xc5",angzarr:"⍼",aogon:"ą",aopf:"\uD835\uDD52",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",aring:"\xe5",ascr:"\uD835\uDCB6",ast:"*",asymp:"≈",asympeq:"≍",atilde:"\xe3",auml:"\xe4",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"\uD835\uDD1F",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"\uD835\uDD53",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvbar:"\xa6",bscr:"\uD835\uDCB7",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedil:"\xe7",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedil:"\xb8",cemptyv:"⦲",cent:"\xa2",centerdot:"\xb7",cfr:"\uD835\uDD20",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"\xae",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"\uD835\uDD54",coprod:"∐",copy:"\xa9",copysr:"℗",crarr:"↵",cross:"✗",cscr:"\uD835\uDCB8",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"\xa4",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",deg:"\xb0",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"\uD835\uDD21",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"\xa8",digamma:"ϝ",disin:"⋲",div:"\xf7",divide:"\xf7",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"\uD835\uDD55",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"\uD835\uDCB9",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacute:"\xe9",easter:"⩮",ecaron:"ě",ecir:"≖",ecirc:"\xea",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"\uD835\uDD22",eg:"⪚",egrave:"\xe8",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"\uD835\uDD56",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",eth:"\xf0",euml:"\xeb",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"\uD835\uDD23",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"\uD835\uDD57",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"\xbd",frac13:"⅓",frac14:"\xbc",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"\xbe",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"\uD835\uDCBB",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"\uD835\uDD24",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"\uD835\uDD58",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"\xbd",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"\uD835\uDD25",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"\uD835\uDD59",horbar:"―",hscr:"\uD835\uDCBD",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacute:"\xed",ic:"⁣",icirc:"\xee",icy:"и",iecy:"е",iexcl:"\xa1",iff:"⇔",ifr:"\uD835\uDD26",igrave:"\xec",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"\uD835\uDD5A",iota:"ι",iprod:"⨼",iquest:"\xbf",iscr:"\uD835\uDCBE",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",iukcy:"і",iuml:"\xef",jcirc:"ĵ",jcy:"й",jfr:"\uD835\uDD27",jmath:"ȷ",jopf:"\uD835\uDD5B",jscr:"\uD835\uDCBF",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"\uD835\uDD28",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"\uD835\uDD5C",kscr:"\uD835\uDCC0",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laquo:"\xab",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"\uD835\uDD29",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"\uD835\uDD5D",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"\uD835\uDCC1",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"\xaf",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"\uD835\uDD2A",mho:"℧",micro:"\xb5",mid:"∣",midast:"*",midcir:"⫰",middot:"\xb7",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"\uD835\uDD5E",mp:"∓",mscr:"\uD835\uDCC2",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:"\xa0",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"\uD835\uDD2B",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"\uD835\uDD5F",not:"\xac",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"\uD835\uDCC3",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"\xf1",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacute:"\xf3",oast:"⊛",ocir:"⊚",ocirc:"\xf4",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"\uD835\uDD2C",ogon:"˛",ograve:"\xf2",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"\uD835\uDD60",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"\xaa",ordm:"\xba",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslash:"\xf8",osol:"⊘",otilde:"\xf5",otimes:"⊗",otimesas:"⨶",ouml:"\xf6",ovbar:"⌽",par:"∥",para:"\xb6",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"\uD835\uDD2D",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusmn:"\xb1",plussim:"⨦",plustwo:"⨧",pm:"\xb1",pointint:"⨕",popf:"\uD835\uDD61",pound:"\xa3",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"\uD835\uDCC5",psi:"ψ",puncsp:" ",qfr:"\uD835\uDD2E",qint:"⨌",qopf:"\uD835\uDD62",qprime:"⁗",qscr:"\uD835\uDCC6",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"\xbb",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"\xae",rfisht:"⥽",rfloor:"⌋",rfr:"\uD835\uDD2F",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"\uD835\uDD63",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"\uD835\uDCC7",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sect:"\xa7",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"\uD835\uDD30",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",shy:"\xad",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"\uD835\uDD64",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"\uD835\uDCC8",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"\xaf",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",sup:"⊃",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"\xdf",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"\uD835\uDD31",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thorn:"\xfe",tilde:"˜",times:"\xd7",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"\uD835\uDD65",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"\uD835\uDCC9",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacute:"\xfa",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucirc:"\xfb",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"\uD835\uDD32",ugrave:"\xf9",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uml:"\xa8",uogon:"ų",uopf:"\uD835\uDD66",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"\uD835\uDCCA",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"\xfc",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"\uD835\uDD33",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"\uD835\uDD67",vprop:"∝",vrtri:"⊳",vscr:"\uD835\uDCCB",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"\uD835\uDD34",wopf:"\uD835\uDD68",wp:"℘",wr:"≀",wreath:"≀",wscr:"\uD835\uDCCC",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"\uD835\uDD35",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"\uD835\uDD69",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"\uD835\uDCCD",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"\xfd",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"\xa5",yfr:"\uD835\uDD36",yicy:"ї",yopf:"\uD835\uDD6A",yscr:"\uD835\uDCCE",yucy:"ю",yuml:"\xff",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"\uD835\uDD37",zhcy:"ж",zigrarr:"⇝",zopf:"\uD835\uDD6B",zscr:"\uD835\uDCCF",zwj:"‍",zwnj:"‌"},a2={}.hasOwnProperty;function a3(a){return!!a2.call(a1,a)&&a1[a]}let a4={name:"characterReference",tokenize:function(a,b,c){let d,e,f=this,g=0;return function(b){return a.enter("characterReference"),a.enter("characterReferenceMarker"),a.consume(b),a.exit("characterReferenceMarker"),h};function h(b){return 35===b?(a.enter("characterReferenceMarkerNumeric"),a.consume(b),a.exit("characterReferenceMarkerNumeric"),i):(a.enter("characterReferenceValue"),d=31,e=av.lV,j(b))}function i(b){return 88===b||120===b?(a.enter("characterReferenceMarkerHexadecimal"),a.consume(b),a.exit("characterReferenceMarkerHexadecimal"),a.enter("characterReferenceValue"),d=6,e=av.ok,j):(a.enter("characterReferenceValue"),d=7,e=av.BM,j(b))}function j(h){if(59===h&&g){let d=a.exit("characterReferenceValue");return e!==av.lV||a3(f.sliceSerialize(d))?(a.enter("characterReferenceMarker"),a.consume(h),a.exit("characterReferenceMarker"),a.exit("characterReference"),b):c(h)}return e(h)&&g++1&&a[k][1].end.offset-a[k][1].start.offset>1?2:1;let l={...a[c][1].end},m={...a[k][1].start};bf(l,-h),bf(m,h),f={type:h>1?"strongSequence":"emphasisSequence",start:l,end:{...a[c][1].end}},g={type:h>1?"strongSequence":"emphasisSequence",start:{...a[k][1].start},end:m},e={type:h>1?"strongText":"emphasisText",start:{...a[c][1].end},end:{...a[k][1].start}},d={type:h>1?"strong":"emphasis",start:{...f.start},end:{...g.end}},a[c][1].end={...f.start},a[k][1].start={...g.end},i=[],a[c][1].end.offset-a[c][1].start.offset&&(i=(0,ap.V)(i,[["enter",a[c][1],b],["exit",a[c][1],b]])),i=(0,ap.V)(i,[["enter",d,b],["enter",f,b],["exit",f,b],["enter",e,b]]),i=(0,ap.V)(i,(0,a7.W)(b.parser.constructs.insideSpan.null,a.slice(c+1,k),b)),i=(0,ap.V)(i,[["exit",e,b],["enter",g,b],["exit",g,b],["exit",d,b]]),a[k][1].end.offset-a[k][1].start.offset?(j=2,i=(0,ap.V)(i,[["enter",a[k][1],b],["exit",a[k][1],b]])):j=0,(0,ap.m)(a,c-1,k-c+3,i),k=c+i.length-j-2;break}}for(k=-1;++kf&&"whitespace"===a[e][1].type&&(e-=2),"atxHeadingSequence"===a[e][1].type&&(f===e-1||e-4>f&&"whitespace"===a[e-2][1].type)&&(e-=f+1===e?2:4),e>f&&(c={type:"atxHeadingText",start:a[f][1].start,end:a[e][1].end},d={type:"chunkText",start:a[f][1].start,end:a[e][1].end,contentType:"text"},(0,ap.m)(a,f,e-f+1,[["enter",c,b],["enter",d,b],["exit",d,b],["exit",c,b]])),a},tokenize:function(a,b,c){let d=0;return function(e){var f;return a.enter("atxHeading"),f=e,a.enter("atxHeadingSequence"),function e(f){return 35===f&&d++<6?(a.consume(f),e):null===f||(0,av.Ee)(f)?(a.exit("atxHeadingSequence"),function c(d){return 35===d?(a.enter("atxHeadingSequence"),function b(d){return 35===d?(a.consume(d),b):(a.exit("atxHeadingSequence"),c(d))}(d)):null===d||(0,av.HP)(d)?(a.exit("atxHeading"),b(d)):(0,av.On)(d)?(0,au.N)(a,c,"whitespace")(d):(a.enter("atxHeadingText"),function b(d){return null===d||35===d||(0,av.Ee)(d)?(a.exit("atxHeadingText"),c(d)):(a.consume(d),b)}(d))}(f)):c(f)}(f)}}},42:aJ,45:[aW,aJ],60:{concrete:!0,name:"htmlFlow",resolveTo:function(a){let b=a.length;for(;b--&&("enter"!==a[b][0]||"htmlFlow"!==a[b][1].type););return b>1&&"linePrefix"===a[b-2][1].type&&(a[b][1].start=a[b-2][1].start,a[b+1][1].start=a[b-2][1].start,a.splice(b-2,2)),a},tokenize:function(a,b,c){let d,e,f,g,h,i=this;return function(b){var c;return c=b,a.enter("htmlFlow"),a.enter("htmlFlowData"),a.consume(c),j};function j(g){return 33===g?(a.consume(g),k):47===g?(a.consume(g),e=!0,n):63===g?(a.consume(g),d=3,i.interrupt?b:G):(0,av.CW)(g)?(a.consume(g),f=String.fromCharCode(g),o):c(g)}function k(e){return 45===e?(a.consume(e),d=2,l):91===e?(a.consume(e),d=5,g=0,m):(0,av.CW)(e)?(a.consume(e),d=4,i.interrupt?b:G):c(e)}function l(d){return 45===d?(a.consume(d),i.interrupt?b:G):c(d)}function m(d){let e="CDATA[";return d===e.charCodeAt(g++)?(a.consume(d),g===e.length)?i.interrupt?b:y:m:c(d)}function n(b){return(0,av.CW)(b)?(a.consume(b),f=String.fromCharCode(b),o):c(b)}function o(g){if(null===g||47===g||62===g||(0,av.Ee)(g)){let h=47===g,j=f.toLowerCase();return!h&&!e&&aY.includes(j)?(d=1,i.interrupt?b(g):y(g)):aX.includes(f.toLowerCase())?(d=6,h)?(a.consume(g),p):i.interrupt?b(g):y(g):(d=7,i.interrupt&&!i.parser.lazy[i.now().line]?c(g):e?function b(c){return(0,av.On)(c)?(a.consume(c),b):w(c)}(g):q(g))}return 45===g||(0,av.lV)(g)?(a.consume(g),f+=String.fromCharCode(g),o):c(g)}function p(d){return 62===d?(a.consume(d),i.interrupt?b:y):c(d)}function q(b){return 47===b?(a.consume(b),w):58===b||95===b||(0,av.CW)(b)?(a.consume(b),r):(0,av.On)(b)?(a.consume(b),q):w(b)}function r(b){return 45===b||46===b||58===b||95===b||(0,av.lV)(b)?(a.consume(b),r):s(b)}function s(b){return 61===b?(a.consume(b),t):(0,av.On)(b)?(a.consume(b),s):q(b)}function t(b){return null===b||60===b||61===b||62===b||96===b?c(b):34===b||39===b?(a.consume(b),h=b,u):(0,av.On)(b)?(a.consume(b),t):function b(c){return null===c||34===c||39===c||47===c||60===c||61===c||62===c||96===c||(0,av.Ee)(c)?s(c):(a.consume(c),b)}(b)}function u(b){return b===h?(a.consume(b),h=null,v):null===b||(0,av.HP)(b)?c(b):(a.consume(b),u)}function v(a){return 47===a||62===a||(0,av.On)(a)?q(a):c(a)}function w(b){return 62===b?(a.consume(b),x):c(b)}function x(b){return null===b||(0,av.HP)(b)?y(b):(0,av.On)(b)?(a.consume(b),x):c(b)}function y(b){return 45===b&&2===d?(a.consume(b),C):60===b&&1===d?(a.consume(b),D):62===b&&4===d?(a.consume(b),H):63===b&&3===d?(a.consume(b),G):93===b&&5===d?(a.consume(b),F):(0,av.HP)(b)&&(6===d||7===d)?(a.exit("htmlFlowData"),a.check(aZ,I,z)(b)):null===b||(0,av.HP)(b)?(a.exit("htmlFlowData"),z(b)):(a.consume(b),y)}function z(b){return a.check(a$,A,I)(b)}function A(b){return a.enter("lineEnding"),a.consume(b),a.exit("lineEnding"),B}function B(b){return null===b||(0,av.HP)(b)?z(b):(a.enter("htmlFlowData"),y(b))}function C(b){return 45===b?(a.consume(b),G):y(b)}function D(b){return 47===b?(a.consume(b),f="",E):y(b)}function E(b){if(62===b){let c=f.toLowerCase();return aY.includes(c)?(a.consume(b),H):y(b)}return(0,av.CW)(b)&&f.length<8?(a.consume(b),f+=String.fromCharCode(b),E):y(b)}function F(b){return 93===b?(a.consume(b),G):y(b)}function G(b){return 62===b?(a.consume(b),H):45===b&&2===d?(a.consume(b),G):y(b)}function H(b){return null===b||(0,av.HP)(b)?(a.exit("htmlFlowData"),I(b)):(a.consume(b),H)}function I(c){return a.exit("htmlFlow"),b(c)}}},61:aW,95:aJ,96:a0,126:a0},bl={38:a4,92:a5},bm={[-5]:a6,[-4]:a6,[-3]:a6,33:bc,38:a4,42:be,60:[{name:"autolink",tokenize:function(a,b,c){let d=0;return function(b){return a.enter("autolink"),a.enter("autolinkMarker"),a.consume(b),a.exit("autolinkMarker"),a.enter("autolinkProtocol"),e};function e(b){return(0,av.CW)(b)?(a.consume(b),f):64===b?c(b):h(b)}function f(b){return 43===b||45===b||46===b||(0,av.lV)(b)?(d=1,function b(c){return 58===c?(a.consume(c),d=0,g):(43===c||45===c||46===c||(0,av.lV)(c))&&d++<32?(a.consume(c),b):(d=0,h(c))}(b)):h(b)}function g(d){return 62===d?(a.exit("autolinkProtocol"),a.enter("autolinkMarker"),a.consume(d),a.exit("autolinkMarker"),a.exit("autolink"),b):null===d||32===d||60===d||(0,av.JQ)(d)?c(d):(a.consume(d),g)}function h(b){return 64===b?(a.consume(b),i):(0,av.cx)(b)?(a.consume(b),h):c(b)}function i(e){return(0,av.lV)(e)?function e(f){return 46===f?(a.consume(f),d=0,i):62===f?(a.exit("autolinkProtocol").type="autolinkEmail",a.enter("autolinkMarker"),a.consume(f),a.exit("autolinkMarker"),a.exit("autolink"),b):function b(f){if((45===f||(0,av.lV)(f))&&d++<63){let c=45===f?b:e;return a.consume(f),c}return c(f)}(f)}(e):c(e)}}},{name:"htmlText",tokenize:function(a,b,c){let d,e,f,g=this;return function(b){return a.enter("htmlText"),a.enter("htmlTextData"),a.consume(b),h};function h(b){return 33===b?(a.consume(b),i):47===b?(a.consume(b),u):63===b?(a.consume(b),s):(0,av.CW)(b)?(a.consume(b),w):c(b)}function i(b){return 45===b?(a.consume(b),j):91===b?(a.consume(b),e=0,n):(0,av.CW)(b)?(a.consume(b),r):c(b)}function j(b){return 45===b?(a.consume(b),m):c(b)}function k(b){return null===b?c(b):45===b?(a.consume(b),l):(0,av.HP)(b)?(f=k,E(b)):(a.consume(b),k)}function l(b){return 45===b?(a.consume(b),m):k(b)}function m(a){return 62===a?D(a):45===a?l(a):k(a)}function n(b){let d="CDATA[";return b===d.charCodeAt(e++)?(a.consume(b),e===d.length?o:n):c(b)}function o(b){return null===b?c(b):93===b?(a.consume(b),p):(0,av.HP)(b)?(f=o,E(b)):(a.consume(b),o)}function p(b){return 93===b?(a.consume(b),q):o(b)}function q(b){return 62===b?D(b):93===b?(a.consume(b),q):o(b)}function r(b){return null===b||62===b?D(b):(0,av.HP)(b)?(f=r,E(b)):(a.consume(b),r)}function s(b){return null===b?c(b):63===b?(a.consume(b),t):(0,av.HP)(b)?(f=s,E(b)):(a.consume(b),s)}function t(a){return 62===a?D(a):s(a)}function u(b){return(0,av.CW)(b)?(a.consume(b),v):c(b)}function v(b){return 45===b||(0,av.lV)(b)?(a.consume(b),v):function b(c){return(0,av.HP)(c)?(f=b,E(c)):(0,av.On)(c)?(a.consume(c),b):D(c)}(b)}function w(b){return 45===b||(0,av.lV)(b)?(a.consume(b),w):47===b||62===b||(0,av.Ee)(b)?x(b):c(b)}function x(b){return 47===b?(a.consume(b),D):58===b||95===b||(0,av.CW)(b)?(a.consume(b),y):(0,av.HP)(b)?(f=x,E(b)):(0,av.On)(b)?(a.consume(b),x):D(b)}function y(b){return 45===b||46===b||58===b||95===b||(0,av.lV)(b)?(a.consume(b),y):function b(c){return 61===c?(a.consume(c),z):(0,av.HP)(c)?(f=b,E(c)):(0,av.On)(c)?(a.consume(c),b):x(c)}(b)}function z(b){return null===b||60===b||61===b||62===b||96===b?c(b):34===b||39===b?(a.consume(b),d=b,A):(0,av.HP)(b)?(f=z,E(b)):(0,av.On)(b)?(a.consume(b),z):(a.consume(b),B)}function A(b){return b===d?(a.consume(b),d=void 0,C):null===b?c(b):(0,av.HP)(b)?(f=A,E(b)):(a.consume(b),A)}function B(b){return null===b||34===b||39===b||60===b||61===b||96===b?c(b):47===b||62===b||(0,av.Ee)(b)?x(b):(a.consume(b),B)}function C(a){return 47===a||62===a||(0,av.Ee)(a)?x(a):c(a)}function D(d){return 62===d?(a.consume(d),a.exit("htmlTextData"),a.exit("htmlText"),b):c(d)}function E(b){return a.exit("htmlTextData"),a.enter("lineEnding"),a.consume(b),a.exit("lineEnding"),F}function F(b){return(0,av.On)(b)?(0,au.N)(a,G,"linePrefix",g.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(b):G(b)}function G(b){return a.enter("htmlTextData"),f(b)}}}],91:bg,92:[{name:"hardBreakEscape",tokenize:function(a,b,c){return function(b){return a.enter("hardBreakEscape"),a.consume(b),d};function d(d){return(0,av.HP)(d)?(a.exit("hardBreakEscape"),b(d)):c(d)}}},a5],93:a8,95:be,96:{name:"codeText",previous:function(a){return 96!==a||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(a){let b,c,d=a.length-4,e=3;if(("lineEnding"===a[3][1].type||"space"===a[e][1].type)&&("lineEnding"===a[d][1].type||"space"===a[d][1].type)){for(b=e;++b13&&c<32||c>126&&c<160||c>55295&&c<57344||c>64975&&c<65008||(65535&c)==65535||(65535&c)==65534||c>1114111?"�":String.fromCodePoint(c)}let bs=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function bt(a,b,c){if(b)return b;if(35===c.charCodeAt(0)){let a=c.charCodeAt(1),b=120===a||88===a;return br(c.slice(b?2:1),b?16:10)}return a3(c)||a}let bu={}.hasOwnProperty;function bv(a){return{line:a.line,column:a.column,offset:a.offset}}function bw(a,b){if(a)throw Error("Cannot close `"+a.type+"` ("+W({start:a.start,end:a.end})+"): a different token (`"+b.type+"`, "+W({start:b.start,end:b.end})+") is open");throw Error("Cannot close document, a token (`"+b.type+"`, "+W({start:b.start,end:b.end})+") is still open")}function bx(a){let b=this;b.parser=function(c){var d,f;let g,h,i,j;return"string"!=typeof(d={...b.data("settings"),...a,extensions:b.data("micromarkExtensions")||[],mdastExtensions:b.data("fromMarkdownExtensions")||[]})&&(f=d,d=void 0),(function(a){let b={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:d(r),autolinkProtocol:j,autolinkEmail:j,atxHeading:d(o),blockQuote:d(function(){return{type:"blockquote",children:[]}}),characterEscape:j,characterReference:j,codeFenced:d(n),codeFencedFenceInfo:e,codeFencedFenceMeta:e,codeIndented:d(n,e),codeText:d(function(){return{type:"inlineCode",value:""}},e),codeTextData:j,data:j,codeFlowValue:j,definition:d(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:e,definitionLabelString:e,definitionTitleString:e,emphasis:d(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:d(p),hardBreakTrailing:d(p),htmlFlow:d(q,e),htmlFlowData:j,htmlText:d(q,e),htmlTextData:j,image:d(function(){return{type:"image",title:null,url:"",alt:null}}),label:e,link:d(r),listItem:d(function(a){return{type:"listItem",spread:a._spread,checked:null,children:[]}}),listItemValue:function(a){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(a),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:d(s,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:d(s),paragraph:d(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:e,resourceDestinationString:e,resourceTitleString:e,setextHeading:d(o),strong:d(function(){return{type:"strong",children:[]}}),thematicBreak:d(function(){return{type:"thematicBreak"}})},exit:{atxHeading:g(),atxHeadingSequence:function(a){let b=this.stack[this.stack.length-1];b.depth||(b.depth=this.sliceSerialize(a).length)},autolink:g(),autolinkEmail:function(a){k.call(this,a),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(a)},autolinkProtocol:function(a){k.call(this,a),this.stack[this.stack.length-1].url=this.sliceSerialize(a)},blockQuote:g(),characterEscapeValue:k,characterReferenceMarkerHexadecimal:m,characterReferenceMarkerNumeric:m,characterReferenceValue:function(a){let b,c=this.sliceSerialize(a),d=this.data.characterReferenceType;d?(b=br(c,"characterReferenceMarkerNumeric"===d?10:16),this.data.characterReferenceType=void 0):b=a3(c);let e=this.stack[this.stack.length-1];e.value+=b},characterReference:function(a){this.stack.pop().position.end=bv(a.end)},codeFenced:g(function(){let a=this.resume();this.stack[this.stack.length-1].value=a.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let a=this.resume();this.stack[this.stack.length-1].lang=a},codeFencedFenceMeta:function(){let a=this.resume();this.stack[this.stack.length-1].meta=a},codeFlowValue:k,codeIndented:g(function(){let a=this.resume();this.stack[this.stack.length-1].value=a.replace(/(\r?\n|\r)$/g,"")}),codeText:g(function(){let a=this.resume();this.stack[this.stack.length-1].value=a}),codeTextData:k,data:k,definition:g(),definitionDestinationString:function(){let a=this.resume();this.stack[this.stack.length-1].url=a},definitionLabelString:function(a){let b=this.resume(),c=this.stack[this.stack.length-1];c.label=b,c.identifier=(0,aS.B)(this.sliceSerialize(a)).toLowerCase()},definitionTitleString:function(){let a=this.resume();this.stack[this.stack.length-1].title=a},emphasis:g(),hardBreakEscape:g(l),hardBreakTrailing:g(l),htmlFlow:g(function(){let a=this.resume();this.stack[this.stack.length-1].value=a}),htmlFlowData:k,htmlText:g(function(){let a=this.resume();this.stack[this.stack.length-1].value=a}),htmlTextData:k,image:g(function(){let a=this.stack[this.stack.length-1];if(this.data.inReference){let b=this.data.referenceType||"shortcut";a.type+="Reference",a.referenceType=b,delete a.url,delete a.title}else delete a.identifier,delete a.label;this.data.referenceType=void 0}),label:function(){let a=this.stack[this.stack.length-1],b=this.resume(),c=this.stack[this.stack.length-1];this.data.inReference=!0,"link"===c.type?c.children=a.children:c.alt=b},labelText:function(a){let b=this.sliceSerialize(a),c=this.stack[this.stack.length-2];c.label=b.replace(bs,bt),c.identifier=(0,aS.B)(b).toLowerCase()},lineEnding:function(a){let c=this.stack[this.stack.length-1];if(this.data.atHardBreak){c.children[c.children.length-1].position.end=bv(a.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&b.canContainEols.includes(c.type)&&(j.call(this,a),k.call(this,a))},link:g(function(){let a=this.stack[this.stack.length-1];if(this.data.inReference){let b=this.data.referenceType||"shortcut";a.type+="Reference",a.referenceType=b,delete a.url,delete a.title}else delete a.identifier,delete a.label;this.data.referenceType=void 0}),listItem:g(),listOrdered:g(),listUnordered:g(),paragraph:g(),referenceString:function(a){let b=this.resume(),c=this.stack[this.stack.length-1];c.label=b,c.identifier=(0,aS.B)(this.sliceSerialize(a)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let a=this.resume();this.stack[this.stack.length-1].url=a},resourceTitleString:function(){let a=this.resume();this.stack[this.stack.length-1].title=a},resource:function(){this.data.inReference=void 0},setextHeading:g(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(a){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(a).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:g(),thematicBreak:g()}};!function a(b,c){let d=-1;for(;++d0){let a=g.tokenStack[g.tokenStack.length-1];(a[1]||bw).call(g,void 0,a[0])}for(d.position={start:bv(a.length>0?a[0][1].start:{line:1,column:1,offset:0}),end:bv(a.length>0?a[a.length-2][1].end:{line:1,column:1,offset:0})},k=-1;++k-1){let a=c[0];"string"==typeof a?c[0]=a.slice(e):c.shift()}g>0&&c.push(a[f].slice(0,g))}return c}(g,a)}function m(){let{_bufferIndex:a,_index:b,line:c,column:e,offset:f}=d;return{_bufferIndex:a,_index:b,line:c,column:e,offset:f}}function n(a,b){b.restore()}function o(a,b){return function(c,e,f){var g;let k,l,n,o;return Array.isArray(c)?p(c):"tokenize"in c?p([c]):(g=c,function(a){let b=null!==a&&g[a],c=null!==a&&g.null;return p([...Array.isArray(b)?b:b?[b]:[],...Array.isArray(c)?c:c?[c]:[]])(a)});function p(a){return(k=a,l=0,0===a.length)?f:r(a[l])}function r(a){return function(c){return(o=function(){let a=m(),b=j.previous,c=j.currentConstruct,e=j.events.length,f=Array.from(h);return{from:e,restore:function(){d=a,j.previous=b,j.currentConstruct=c,j.events.length=e,h=f,q()}}}(),n=a,a.partial||(j.currentConstruct=a),a.name&&j.parser.constructs.disable.null.includes(a.name))?t(c):a.tokenize.call(b?Object.assign(Object.create(j),b):j,i,s,t)(c)}}function s(b){return a(n,o),e}function t(a){return(o.restore(),++l((a,b)=>{let c=(b,c)=>(a.set(c,b),b),d=e=>{if(a.has(e))return a.get(e);let[f,g]=b[e];switch(f){case 0:case -1:return c(g,e);case 1:{let a=c([],e);for(let b of g)a.push(d(b));return a}case 2:{let a=c({},e);for(let[b,c]of g)a[d(b)]=d(c);return a}case 3:return c(new Date(g),e);case 4:{let{source:a,flags:b}=g;return c(new RegExp(a,b),e)}case 5:{let a=c(new Map,e);for(let[b,c]of g)a.set(d(b),d(c));return a}case 6:{let a=c(new Set,e);for(let b of g)a.add(d(b));return a}case 7:{let{name:a,message:b}=g;return c(new by[a](b),e)}case 8:return c(BigInt(g),e);case"BigInt":return c(Object(BigInt(g)),e);case"ArrayBuffer":return c(new Uint8Array(g).buffer,g);case"DataView":{let{buffer:a}=new Uint8Array(g);return c(new DataView(a),g)}}return c(new by[f](g),e)};return d})(new Map,a)(0),{toString:bA}={},{keys:bB}=Object,bC=a=>{let b=typeof a;if("object"!==b||!a)return[0,b];let c=bA.call(a).slice(8,-1);switch(c){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""];case"DataView":return[1,c]}return c.includes("Array")?[1,c]:c.includes("Error")?[7,c]:[2,c]},bD=([a,b])=>0===a&&("function"===b||"symbol"===b),bE=(a,{json:b,lossy:c}={})=>{let d=[];return((a,b,c,d)=>{let e=(a,b)=>{let e=d.push(a)-1;return c.set(b,e),e},f=d=>{if(c.has(d))return c.get(d);let[g,h]=bC(d);switch(g){case 0:{let b=d;switch(h){case"bigint":g=8,b=d.toString();break;case"function":case"symbol":if(a)throw TypeError("unable to serialize "+h);b=null;break;case"undefined":return e([-1],d)}return e([g,b],d)}case 1:{if(h){let a=d;return"DataView"===h?a=new Uint8Array(d.buffer):"ArrayBuffer"===h&&(a=new Uint8Array(d)),e([h,[...a]],d)}let a=[],b=e([g,a],d);for(let b of d)a.push(f(b));return b}case 2:{if(h)switch(h){case"BigInt":return e([h,d.toString()],d);case"Boolean":case"Number":case"String":return e([h,d.valueOf()],d)}if(b&&"toJSON"in d)return f(d.toJSON());let c=[],i=e([g,c],d);for(let b of bB(d))(a||!bD(bC(d[b])))&&c.push([f(b),f(d[b])]);return i}case 3:return e([g,d.toISOString()],d);case 4:{let{source:a,flags:b}=d;return e([g,{source:a,flags:b}],d)}case 5:{let b=[],c=e([g,b],d);for(let[c,e]of d)(a||!(bD(bC(c))||bD(bC(e))))&&b.push([f(c),f(e)]);return c}case 6:{let b=[],c=e([g,b],d);for(let c of d)(a||!bD(bC(c)))&&b.push(f(c));return c}}let{message:i}=d;return e([g,{name:h,message:i}],d)};return f})(!(b||c),!!b,new Map,d)(a),d},bF="function"==typeof structuredClone?(a,b)=>b&&("json"in b||"lossy"in b)?bz(bE(a,b)):structuredClone(a):(a,b)=>bz(bE(a,b));function bG(a){let b=[],c=-1,d=0,e=0;for(;++c55295&&f<57344){let b=a.charCodeAt(c+1);f<56320&&b>56319&&b<57344?(g=String.fromCharCode(f,b),e=1):g="�"}else g=String.fromCharCode(f);g&&(b.push(a.slice(d,c),encodeURIComponent(g)),d=c+e+1,g=""),e&&(c+=e,e=0)}return b.join("")+a.slice(d)}function bH(a,b){let c=[{type:"text",value:"↩"}];return b>1&&c.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(b)}]}),c}function bI(a,b){return"Back to reference "+(a+1)+(b>1?"-"+b:"")}var bJ=c(60921);function bK(a,b){let c=b.referenceType,d="]";if("collapsed"===c?d+="[]":"full"===c&&(d+="["+(b.label||b.identifier)+"]"),"imageReference"===b.type)return[{type:"text",value:"!["+b.alt+d}];let e=a.all(b),f=e[0];f&&"text"===f.type?f.value="["+f.value:e.unshift({type:"text",value:"["});let g=e[e.length-1];return g&&"text"===g.type?g.value+=d:e.push({type:"text",value:d}),e}function bL(a){let b=a.spread;return null==b?a.children.length>1:b}function bM(a,b,c){let d=0,e=a.length;if(b){let b=a.codePointAt(d);for(;9===b||32===b;)d++,b=a.codePointAt(d)}if(c){let b=a.codePointAt(e-1);for(;9===b||32===b;)e--,b=a.codePointAt(e-1)}return e>d?a.slice(d,e):""}let bN={blockquote:function(a,b){let c={type:"element",tagName:"blockquote",properties:{},children:a.wrap(a.all(b),!0)};return a.patch(b,c),a.applyData(b,c)},break:function(a,b){let c={type:"element",tagName:"br",properties:{},children:[]};return a.patch(b,c),[a.applyData(b,c),{type:"text",value:"\n"}]},code:function(a,b){let c=b.value?b.value+"\n":"",d={};b.lang&&(d.className=["language-"+b.lang]);let e={type:"element",tagName:"code",properties:d,children:[{type:"text",value:c}]};return b.meta&&(e.data={meta:b.meta}),a.patch(b,e),e={type:"element",tagName:"pre",properties:{},children:[e=a.applyData(b,e)]},a.patch(b,e),e},delete:function(a,b){let c={type:"element",tagName:"del",properties:{},children:a.all(b)};return a.patch(b,c),a.applyData(b,c)},emphasis:function(a,b){let c={type:"element",tagName:"em",properties:{},children:a.all(b)};return a.patch(b,c),a.applyData(b,c)},footnoteReference:function(a,b){let c,d="string"==typeof a.options.clobberPrefix?a.options.clobberPrefix:"user-content-",e=String(b.identifier).toUpperCase(),f=bG(e.toLowerCase()),g=a.footnoteOrder.indexOf(e),h=a.footnoteCounts.get(e);void 0===h?(h=0,a.footnoteOrder.push(e),c=a.footnoteOrder.length):c=g+1,h+=1,a.footnoteCounts.set(e,h);let i={type:"element",tagName:"a",properties:{href:"#"+d+"fn-"+f,id:d+"fnref-"+f+(h>1?"-"+h:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};a.patch(b,i);let j={type:"element",tagName:"sup",properties:{},children:[i]};return a.patch(b,j),a.applyData(b,j)},heading:function(a,b){let c={type:"element",tagName:"h"+b.depth,properties:{},children:a.all(b)};return a.patch(b,c),a.applyData(b,c)},html:function(a,b){if(a.options.allowDangerousHtml){let c={type:"raw",value:b.value};return a.patch(b,c),a.applyData(b,c)}},imageReference:function(a,b){let c=String(b.identifier).toUpperCase(),d=a.definitionById.get(c);if(!d)return bK(a,b);let e={src:bG(d.url||""),alt:b.alt};null!==d.title&&void 0!==d.title&&(e.title=d.title);let f={type:"element",tagName:"img",properties:e,children:[]};return a.patch(b,f),a.applyData(b,f)},image:function(a,b){let c={src:bG(b.url)};null!==b.alt&&void 0!==b.alt&&(c.alt=b.alt),null!==b.title&&void 0!==b.title&&(c.title=b.title);let d={type:"element",tagName:"img",properties:c,children:[]};return a.patch(b,d),a.applyData(b,d)},inlineCode:function(a,b){let c={type:"text",value:b.value.replace(/\r?\n|\r/g," ")};a.patch(b,c);let d={type:"element",tagName:"code",properties:{},children:[c]};return a.patch(b,d),a.applyData(b,d)},linkReference:function(a,b){let c=String(b.identifier).toUpperCase(),d=a.definitionById.get(c);if(!d)return bK(a,b);let e={href:bG(d.url||"")};null!==d.title&&void 0!==d.title&&(e.title=d.title);let f={type:"element",tagName:"a",properties:e,children:a.all(b)};return a.patch(b,f),a.applyData(b,f)},link:function(a,b){let c={href:bG(b.url)};null!==b.title&&void 0!==b.title&&(c.title=b.title);let d={type:"element",tagName:"a",properties:c,children:a.all(b)};return a.patch(b,d),a.applyData(b,d)},listItem:function(a,b,c){let d=a.all(b),e=c?function(a){let b=!1;if("list"===a.type){b=a.spread||!1;let c=a.children,d=-1;for(;!b&&++d0&&a.children.unshift({type:"text",value:" "}),a.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:b.checked,disabled:!0},children:[]}),f.className=["task-list-item"]}let h=-1;for(;++h0){let d={type:"element",tagName:"tbody",properties:{},children:a.wrap(c,!0)},f=U(b.children[1]),g=T(b.children[b.children.length-1]);f&&g&&(d.position={start:f,end:g}),e.push(d)}let f={type:"element",tagName:"table",properties:{},children:a.wrap(e,!0)};return a.patch(b,f),a.applyData(b,f)},tableCell:function(a,b){let c={type:"element",tagName:"td",properties:{},children:a.all(b)};return a.patch(b,c),a.applyData(b,c)},tableRow:function(a,b,c){let d=c?c.children:void 0,e=0===(d?d.indexOf(b):1)?"th":"td",f=c&&"table"===c.type?c.align:void 0,g=f?f.length:b.children.length,h=-1,i=[];for(;++h0,!0),d[0]),e=d.index+d[0].length,d=c.exec(b);return f.push(bM(b.slice(e),e>0,!1)),f.join("")}(String(b.value))};return a.patch(b,c),a.applyData(b,c)},thematicBreak:function(a,b){let c={type:"element",tagName:"hr",properties:{},children:[]};return a.patch(b,c),a.applyData(b,c)},toml:bO,yaml:bO,definition:bO,footnoteDefinition:bO};function bO(){}let bP={}.hasOwnProperty,bQ={};function bR(a,b){a.position&&(b.position=function(a){let b=U(a),c=T(a);if(b&&c)return{start:b,end:c}}(a))}function bS(a,b){let c=b;if(a&&a.data){let b=a.data.hName,d=a.data.hChildren,e=a.data.hProperties;"string"==typeof b&&("element"===c.type?c.tagName=b:c={type:"element",tagName:b,properties:{},children:"children"in c?c.children:[c]}),"element"===c.type&&e&&Object.assign(c.properties,bF(e)),"children"in c&&c.children&&null!=d&&(c.children=d)}return c}function bT(a,b){let c=[],d=-1;for(b&&c.push({type:"text",value:"\n"});++d0&&c.push({type:"text",value:"\n"}),c}function bU(a){let b=0,c=a.charCodeAt(b);for(;9===c||32===c;)b++,c=a.charCodeAt(b);return a.slice(b)}function bV(a,b){let c=function(a,b){let c=b||bQ,d=new Map,e=new Map,f={all:function(a){let b=[];if("children"in a){let c=a.children,d=-1;for(;++d0&&l.push({type:"text",value:" "});let a="string"==typeof c?c:c(i,k);"string"==typeof a&&(a={type:"text",value:a}),l.push({type:"element",tagName:"a",properties:{href:"#"+b+"fnref-"+j+(k>1?"-"+k:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof d?d:d(i,k),className:["data-footnote-backref"]},children:Array.isArray(a)?a:[a]})}let n=f[f.length-1];if(n&&"element"===n.type&&"p"===n.tagName){let a=n.children[n.children.length-1];a&&"text"===a.type?a.value+=" ":n.children.push({type:"text",value:" "}),n.children.push(...l)}else f.push(...l);let o={type:"element",tagName:"li",properties:{id:b+"fn-"+j},children:a.wrap(f,!0)};a.patch(e,o),h.push(o)}if(0!==h.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:f,properties:{...bF(g),id:"footnote-label"},children:[{type:"text",value:e}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:a.wrap(h,!0)},{type:"text",value:"\n"}]}}(c),g=Array.isArray(d)?{type:"root",children:d}:d||{type:"root",children:[]};return e&&((0,f.ok)("children"in g),g.children.push({type:"text",value:"\n"},e)),g}function bW(a,b){return a&&"run"in a?async function(c,d){let e=bV(c,{file:d,...b});await a.run(e,d)}:function(c,d){return bV(c,{file:d,...a||b})}}function bX(a){if(a)throw a}var bY=c(88633);function bZ(a){if("object"!=typeof a||null===a)return!1;let b=Object.getPrototypeOf(a);return(null===b||b===Object.prototype||null===Object.getPrototypeOf(b))&&!(Symbol.toStringTag in a)&&!(Symbol.iterator in a)}var b$=c(76760),b_=c(1708);function b0(a){return!!(null!==a&&"object"==typeof a&&"href"in a&&a.href&&"protocol"in a&&a.protocol&&void 0===a.auth)}var b1=c(73136);let b2=["history","path","basename","stem","extname","dirname"];class b3{constructor(a){let b,c;b=a?b0(a)?{path:a}:"string"==typeof a||function(a){return!!(a&&"object"==typeof a&&"byteLength"in a&&"byteOffset"in a)}(a)?{value:a}:a:{},this.cwd="cwd"in b?"":b_.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let d=-1;for(;++db.length;g&&b.push(d);try{f=a.apply(this,b)}catch(a){if(g&&c)throw a;return d(a)}g||(f&&f.then&&"function"==typeof f.then?f.then(e,d):f instanceof Error?d(f):e(f))};function d(a,...e){c||(c=!0,b(a,...e))}function e(a){d(null,a)}})(h,e)(...g):d(null,...g)}(null,...b)},use:function(c){if("function"!=typeof c)throw TypeError("Expected `middelware` to be a function, not "+c);return a.push(c),b}};return b}()}copy(){let a=new b9,b=-1;for(;++b0){let[d,...f]=b,g=c[e][1];bZ(g)&&bZ(d)&&(d=bY(!0,g,d)),c[e]=[a,d,...f]}}}}let ca=new b9().freeze();function cb(a,b){if("function"!=typeof b)throw TypeError("Cannot `"+a+"` without `parser`")}function cc(a,b){if("function"!=typeof b)throw TypeError("Cannot `"+a+"` without `compiler`")}function cd(a,b){if(b)throw Error("Cannot call `"+a+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function ce(a){if(!bZ(a)||"string"!=typeof a.type)throw TypeError("Expected node, got `"+a+"`")}function cf(a,b,c){if(!c)throw Error("`"+a+"` finished async. Use `"+b+"` instead")}function cg(a){var b;return(b=a)&&"object"==typeof b&&"message"in b&&"messages"in b?a:new b3(a)}let ch=[],ci={allowDangerousHtml:!0},cj=/^(https?|ircs?|mailto|xmpp)$/i,ck=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function cl(a){let b=function(a){let b=a.rehypePlugins||ch,c=a.remarkPlugins||ch,d=a.remarkRehypeOptions?{...a.remarkRehypeOptions,...ci}:ci;return ca().use(bx).use(c).use(bW,d).use(b)}(a),c=function(a){let b=a.children||"",c=new b3;return"string"==typeof b?c.value=b:(0,f.HB)("Unexpected value `"+b+"` for `children` prop, expected `string`"),c}(a);return function(a,b){let c=b.allowedElements,d=b.allowElement,e=b.components,g=b.disallowedElements,h=b.skipHtml,i=b.unwrapDisallowed,j=b.urlTransform||cm;for(let a of ck)Object.hasOwn(b,a.from)&&(0,f.HB)("Unexpected `"+a.from+"` prop, "+(a.to?"use `"+a.to+"` instead":"remove it")+" (see for more info)");return c&&g&&(0,f.HB)("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other"),(0,bJ.YR)(a,function(a,b,e){if("raw"===a.type&&e&&"number"==typeof b)return h?e.children.splice(b,1):e.children[b]={type:"text",value:a.value},b;if("element"===a.type){let b;for(b in am)if(Object.hasOwn(am,b)&&Object.hasOwn(a.properties,b)){let c=a.properties[b],d=am[b];(null===d||d.includes(a.tagName))&&(a.properties[b]=j(String(c||""),b,a))}}if("element"===a.type){let f=c?!c.includes(a.tagName):!!g&&g.includes(a.tagName);if(!f&&d&&"number"==typeof b&&(f=!d(a,b,e)),f&&e&&"number"==typeof b)return i&&a.children?e.children.splice(b,1,...a.children):e.children.splice(b,1),b}}),function(a,b){var c,d,e,f;let g;if(!b||void 0===b.Fragment)throw TypeError("Expected `Fragment` in options");let h=b.filePath||void 0;if(b.development){if("function"!=typeof b.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");c=h,d=b.jsxDEV,g=function(a,b,e,f){let g=Array.isArray(e.children),h=U(a);return d(b,e,f,g,{columnNumber:h?h.column-1:void 0,fileName:c,lineNumber:h?h.line:void 0},void 0)}}else{if("function"!=typeof b.jsx)throw TypeError("Expected `jsx` in production options");if("function"!=typeof b.jsxs)throw TypeError("Expected `jsxs` in production options");e=b.jsx,f=b.jsxs,g=function(a,b,c,d){let g=Array.isArray(c.children)?f:e;return d?g(b,c,d):g(b,c)}}let i={Fragment:b.Fragment,ancestors:[],components:b.components||{},create:g,elementAttributeNameCase:b.elementAttributeNameCase||"react",evaluater:b.createEvaluater?b.createEvaluater():void 0,filePath:h,ignoreInvalidStyle:b.ignoreInvalidStyle||!1,passKeys:!1!==b.passKeys,passNode:b.passNode||!1,schema:"svg"===b.space?L:K,stylePropertyNameCase:b.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==b.tableCellAlignToStyle},j=af(i,a,void 0);return j&&"string"!=typeof j?j:i.create(a,i.Fragment,{children:j||void 0},void 0)}(a,{Fragment:an.Fragment,components:e,ignoreInvalidStyle:!0,jsx:an.jsx,jsxs:an.jsxs,passKeys:!0,passNode:!0})}(b.runSync(b.parse(c),c),a)}function cm(a){let b=a.indexOf(":"),c=a.indexOf("?"),d=a.indexOf("#"),e=a.indexOf("/");return -1===b||-1!==e&&b>e||-1!==c&&b>c||-1!==d&&b>d||cj.test(a.slice(0,b))?a:""}},46148:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]])},47332:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{formatUrl:function(){return f},formatWithValidation:function(){return h},urlObjectKeys:function(){return g}});let d=c(55823)._(c(15238)),e=/https?|ftp|gopher|file/;function f(a){let{auth:b,hostname:c}=a,f=a.protocol||"",g=a.pathname||"",h=a.hash||"",i=a.query||"",j=!1;b=b?encodeURIComponent(b).replace(/%3A/i,":")+"@":"",a.host?j=b+a.host:c&&(j=b+(~c.indexOf(":")?"["+c+"]":c),a.port&&(j+=":"+a.port)),i&&"object"==typeof i&&(i=String(d.urlQueryToSearchParams(i)));let k=a.search||i&&"?"+i||"";return f&&!f.endsWith(":")&&(f+=":"),a.slashes||(!f||e.test(f))&&!1!==j?(j="//"+(j||""),g&&"/"!==g[0]&&(g="/"+g)):j||(j=""),h&&"#"!==h[0]&&(h="#"+h),k&&"?"!==k[0]&&(k="?"+k),""+f+j+(g=g.replace(/[?#]/g,encodeURIComponent))+(k=k.replace("#","%23"))+h}let g=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function h(a){return f(a)}},49269:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]])},49427:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"useMergedRef",{enumerable:!0,get:function(){return e}});let d=c(38301);function e(a,b){let c=(0,d.useRef)(null),e=(0,d.useRef)(null);return(0,d.useCallback)(d=>{if(null===d){let a=c.current;a&&(c.current=null,a());let b=e.current;b&&(e.current=null,b())}else a&&(c.current=f(a,d)),b&&(e.current=f(b,d))},[a,b])}function f(a,b){if("function"!=typeof a)return a.current=b,()=>{a.current=null};{let c=a(b);return"function"==typeof c?c:()=>a(null)}}("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},50337:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("tablet",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["line",{x1:"12",x2:"12.01",y1:"18",y2:"18",key:"1dp563"}]])},50586:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"handleSegmentMismatch",{enumerable:!0,get:function(){return e}});let d=c(3219);function e(a,b,c){return(0,d.handleExternalUrl)(a,{},a.canonicalUrl,!0)}("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},50987:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("folder-git-2",[["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["path",{d:"M18 19c-2.8 0-5-2.2-5-5v8",key:"pkpw2h"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]])},51855:(a,b,c)=>{"use strict";c.d(b,{m:()=>r});let d=Symbol.for("constructDateFrom");function e(a,b){return"function"==typeof a?a(b):a&&"object"==typeof a&&d in a?a[d](b):a instanceof Date?new a.constructor(b):new Date(b)}let f={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function g(a){return (b={})=>{let c=b.width?String(b.width):a.defaultWidth;return a.formats[c]||a.formats[a.defaultWidth]}}let h={date:g({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:g({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:g({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},i={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function j(a){return(b,c)=>{let d;if("formatting"===(c?.context?String(c.context):"standalone")&&a.formattingValues){let b=a.defaultFormattingWidth||a.defaultWidth,e=c?.width?String(c.width):b;d=a.formattingValues[e]||a.formattingValues[b]}else{let b=a.defaultWidth,e=c?.width?String(c.width):a.defaultWidth;d=a.values[e]||a.values[b]}return d[a.argumentCallback?a.argumentCallback(b):b]}}function k(a){return(b,c={})=>{let d,e=c.width,f=e&&a.matchPatterns[e]||a.matchPatterns[a.defaultMatchWidth],g=b.match(f);if(!g)return null;let h=g[0],i=e&&a.parsePatterns[e]||a.parsePatterns[a.defaultParseWidth],j=Array.isArray(i)?function(a,b){for(let c=0;ca.test(h)):function(a,b){for(let c in a)if(Object.prototype.hasOwnProperty.call(a,c)&&b(a[c]))return c}(i,a=>a.test(h));return d=a.valueCallback?a.valueCallback(j):j,{value:d=c.valueCallback?c.valueCallback(d):d,rest:b.slice(h.length)}}}let l={code:"en-US",formatDistance:(a,b,c)=>{let d,e=f[a];if(d="string"==typeof e?e:1===b?e.one:e.other.replace("{{count}}",b.toString()),c?.addSuffix)if(c.comparison&&c.comparison>0)return"in "+d;else return d+" ago";return d},formatLong:h,formatRelative:(a,b,c,d)=>i[a],localize:{ordinalNumber:(a,b)=>{let c=Number(a),d=c%100;if(d>20||d<10)switch(d%10){case 1:return c+"st";case 2:return c+"nd";case 3:return c+"rd"}return c+"th"},era:j({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:j({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:a=>a-1}),month:j({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:j({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:j({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:function(a){return(b,c={})=>{let d=b.match(a.matchPattern);if(!d)return null;let e=d[0],f=b.match(a.parsePattern);if(!f)return null;let g=a.valueCallback?a.valueCallback(f[0]):f[0];return{value:g=c.valueCallback?c.valueCallback(g):g,rest:b.slice(e.length)}}}({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:a=>parseInt(a,10)}),era:k({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:k({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:a=>a+1}),month:k({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:k({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:k({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},m={};function n(a,b){return e(b||a,a)}function o(a){let b=n(a),c=new Date(Date.UTC(b.getFullYear(),b.getMonth(),b.getDate(),b.getHours(),b.getMinutes(),b.getSeconds(),b.getMilliseconds()));return c.setUTCFullYear(b.getFullYear()),a-c}function p(a,...b){let c=e.bind(null,a||b.find(a=>"object"==typeof a));return b.map(c)}function q(a,b){let c=n(a)-n(b);return c<0?-1:c>0?1:c}function r(a,b){return function(a,b,c){let d,e=c?.locale??m.locale??l,f=q(a,b);if(isNaN(f))throw RangeError("Invalid time value");let g=Object.assign({},c,{addSuffix:c?.addSuffix,comparison:f}),[h,i]=p(c?.in,...f>0?[b,a]:[a,b]),j=function(a,b,c){var d;return(d=void 0,a=>{let b=(d?Math[d]:Math.trunc)(a);return 0===b?0:b})((n(a)-n(b))/1e3)}(i,h),k=Math.round((j-(o(i)-o(h))/1e3)/60);if(k<2)if(c?.includeSeconds)if(j<5)return e.formatDistance("lessThanXSeconds",5,g);else if(j<10)return e.formatDistance("lessThanXSeconds",10,g);else if(j<20)return e.formatDistance("lessThanXSeconds",20,g);else if(j<40)return e.formatDistance("halfAMinute",0,g);else if(j<60)return e.formatDistance("lessThanXMinutes",1,g);else return e.formatDistance("xMinutes",1,g);else if(0===k)return e.formatDistance("lessThanXMinutes",1,g);else return e.formatDistance("xMinutes",k,g);if(k<45)return e.formatDistance("xMinutes",k,g);if(k<90)return e.formatDistance("aboutXHours",1,g);if(k<1440){let a=Math.round(k/60);return e.formatDistance("aboutXHours",a,g)}if(k<2520)return e.formatDistance("xDays",1,g);else if(k<43200){let a=Math.round(k/1440);return e.formatDistance("xDays",a,g)}else if(k<86400)return d=Math.round(k/43200),e.formatDistance("aboutXMonths",d,g);if((d=function(a,b,c){let[d,e,f]=p(void 0,a,a,b),g=q(e,f),h=Math.abs(function(a,b,c){let[d,e]=p(void 0,a,b);return 12*(d.getFullYear()-e.getFullYear())+(d.getMonth()-e.getMonth())}(e,f));if(h<1)return 0;1===e.getMonth()&&e.getDate()>27&&e.setDate(30),e.setMonth(e.getMonth()-g*h);let i=q(e,f)===-g;(function(a,b){let c=n(a,void 0);return+function(a,b){let c=n(a,b?.in);return c.setHours(23,59,59,999),c}(c,void 0)==+function(a,b){let c=n(a,b?.in),d=c.getMonth();return c.setFullYear(c.getFullYear(),d+1,0),c.setHours(23,59,59,999),c}(c,b)})(d)&&1===h&&1===q(d,f)&&(i=!1);let j=g*(h-i);return 0===j?0:j}(i,h))<12){let a=Math.round(k/43200);return e.formatDistance("xMonths",a,g)}{let a=d%12,b=Math.trunc(d/12);return a<3?e.formatDistance("aboutXYears",b,g):a<9?e.formatDistance("overXYears",b,g):e.formatDistance("almostXYears",b+1,g)}}(a,e(a,Date.now()),b)}},51881:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]])},52426:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("toggle-right",[["circle",{cx:"15",cy:"12",r:"3",key:"1afu0r"}],["rect",{width:"20",height:"14",x:"2",y:"5",rx:"7",key:"g7kal2"}]])},52998:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("newspaper",[["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-4 0v-9a2 2 0 0 1 2-2h2",key:"39pd36"}],["rect",{width:"8",height:"4",x:"10",y:"6",rx:"1",key:"aywv1n"}]])},53256:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("square-check-big",[["path",{d:"M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344",key:"2acyp4"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},55056:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]])},55705:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("list",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]])},57685:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{GracefulDegradeBoundary:function(){return f},default:function(){return g}});let d=c(21124),e=c(38301);class f extends e.Component{static getDerivedStateFromError(a){return{hasError:!0}}componentDidMount(){let a=this.htmlRef.current;this.state.hasError&&a&&Object.entries(this.htmlAttributes).forEach(b=>{let[c,d]=b;a.setAttribute(c,d)})}render(){let{hasError:a}=this.state;return a?(0,d.jsx)("html",{ref:this.htmlRef,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:this.rootHtml}}):this.props.children}constructor(a){super(a),this.state={hasError:!1},this.rootHtml="",this.htmlAttributes={},this.htmlRef=(0,e.createRef)()}}let g=f;("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},57759:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("file",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]])},58430:(a,b)=>{"use strict";function c(a){let b=a.indexOf("#"),c=a.indexOf("?"),d=c>-1&&(b<0||c-1?{pathname:a.substring(0,d?c:b),query:d?a.substring(c,b>-1?b:void 0):"",hash:b>-1?a.slice(b):""}:{pathname:a,query:"",hash:""}}Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"parsePath",{enumerable:!0,get:function(){return c}})},59147:(a,b,c)=>{"use strict";c.d(b,{Ke:()=>w,R6:()=>u,bL:()=>z});var d=c(38301),e=c(87868),f=c(2332),g=c(11720),h=c(68829),i=c(92808),j=c(6406),k=c(29988),l=c(75656),m=c(21124),n="Collapsible",[o,p]=(0,f.A)(n),[q,r]=o(n),s=d.forwardRef((a,b)=>{let{__scopeCollapsible:c,open:e,defaultOpen:f,disabled:h,onOpenChange:i,...k}=a,[o,p]=(0,g.i)({prop:e,defaultProp:f??!1,onChange:i,caller:n});return(0,m.jsx)(q,{scope:c,disabled:h,contentId:(0,l.B)(),open:o,onOpenToggle:d.useCallback(()=>p(a=>!a),[p]),children:(0,m.jsx)(j.sG.div,{"data-state":y(o),"data-disabled":h?"":void 0,...k,ref:b})})});s.displayName=n;var t="CollapsibleTrigger",u=d.forwardRef((a,b)=>{let{__scopeCollapsible:c,...d}=a,f=r(t,c);return(0,m.jsx)(j.sG.button,{type:"button","aria-controls":f.contentId,"aria-expanded":f.open||!1,"data-state":y(f.open),"data-disabled":f.disabled?"":void 0,disabled:f.disabled,...d,ref:b,onClick:(0,e.mK)(a.onClick,f.onOpenToggle)})});u.displayName=t;var v="CollapsibleContent",w=d.forwardRef((a,b)=>{let{forceMount:c,...d}=a,e=r(v,a.__scopeCollapsible);return(0,m.jsx)(k.C,{present:c||e.open,children:({present:a})=>(0,m.jsx)(x,{...d,ref:b,present:a})})});w.displayName=v;var x=d.forwardRef((a,b)=>{let{__scopeCollapsible:c,present:e,children:f,...g}=a,k=r(v,c),[l,n]=d.useState(e),o=d.useRef(null),p=(0,i.s)(b,o),q=d.useRef(0),s=q.current,t=d.useRef(0),u=t.current,w=k.open||l,x=d.useRef(w),z=d.useRef(void 0);return d.useEffect(()=>{let a=requestAnimationFrame(()=>x.current=!1);return()=>cancelAnimationFrame(a)},[]),(0,h.N)(()=>{let a=o.current;if(a){z.current=z.current||{transitionDuration:a.style.transitionDuration,animationName:a.style.animationName},a.style.transitionDuration="0s",a.style.animationName="none";let b=a.getBoundingClientRect();q.current=b.height,t.current=b.width,x.current||(a.style.transitionDuration=z.current.transitionDuration,a.style.animationName=z.current.animationName),n(e)}},[k.open,e]),(0,m.jsx)(j.sG.div,{"data-state":y(k.open),"data-disabled":k.disabled?"":void 0,id:k.contentId,hidden:!w,...g,ref:p,style:{"--radix-collapsible-content-height":s?`${s}px`:void 0,"--radix-collapsible-content-width":u?`${u}px`:void 0,...a.style},children:w&&f})});function y(a){return a?"open":"closed"}var z=s},59268:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},59405:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},59589:(a,b,c)=>{"use strict";function d(a,b){if(!Object.prototype.hasOwnProperty.call(a,b))throw TypeError("attempted to use private field on non-instance");return a}c.r(b),c.d(b,{_:()=>d})},60894:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"pathHasPrefix",{enumerable:!0,get:function(){return e}});let d=c(58430);function e(a,b){if("string"!=typeof a)return!1;let{pathname:c}=(0,d.parsePath)(a);return c===b||c.startsWith(b+"/")}},60921:(a,b,c)=>{"use strict";c.d(b,{YR:()=>e});var d=c(78971);function e(a,b,c,e){let f,g,h;"function"==typeof b&&"function"!=typeof c?(g=void 0,h=b,f=c):(g=b,h=c,f=e),(0,d.VG)(a,g,function(a,b){let c=b[b.length-1],d=c?c.children.indexOf(a):void 0;return h(a,d,c)},f)}},61421:function(a,b,c){"use strict";var d=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0}),b.default=function(a,b){var c=null;if(!a||"string"!=typeof a)return c;var d=(0,e.default)(a),f="function"==typeof b;return d.forEach(function(a){if("declaration"===a.type){var d=a.property,e=a.value;f?b(d,e,a):e&&((c=c||{})[d]=e)}}),c};var e=d(c(45076))},61962:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{DecodeError:function(){return o},MiddlewareNotFoundError:function(){return s},MissingStaticPage:function(){return r},NormalizeError:function(){return p},PageNotFoundError:function(){return q},SP:function(){return m},ST:function(){return n},WEB_VITALS:function(){return c},execOnce:function(){return d},getDisplayName:function(){return i},getLocationOrigin:function(){return g},getURL:function(){return h},isAbsoluteUrl:function(){return f},isResSent:function(){return j},loadGetInitialProps:function(){return l},normalizeRepeatedSlashes:function(){return k},stringifyError:function(){return t}});let c=["CLS","FCP","FID","INP","LCP","TTFB"];function d(a){let b,c=!1;return function(){for(var d=arguments.length,e=Array(d),f=0;fe.test(a);function g(){let{protocol:a,hostname:b,port:c}=window.location;return a+"//"+b+(c?":"+c:"")}function h(){let{href:a}=window.location,b=g();return a.substring(b.length)}function i(a){return"string"==typeof a?a:a.displayName||a.name||"Unknown"}function j(a){return a.finished||a.headersSent}function k(a){let b=a.split("?");return b[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(b[1]?"?"+b.slice(1).join("?"):"")}async function l(a,b){let c=b.res||b.ctx&&b.ctx.res;if(!a.getInitialProps)return b.ctx&&b.Component?{pageProps:await l(b.Component,b.ctx)}:{};let d=await a.getInitialProps(b);if(c&&j(c))return d;if(!d)throw Object.defineProperty(Error('"'+i(a)+'.getInitialProps()" should resolve to an object. But found "'+d+'" instead.'),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return d}let m="undefined"!=typeof performance,n=m&&["mark","measure","getEntriesByName"].every(a=>"function"==typeof performance[a]);class o extends Error{}class p extends Error{}class q extends Error{constructor(a){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+a}}class r extends Error{constructor(a,b){super(),this.message="Failed to load static file for page: "+a+" "+b}}class s extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function t(a){return JSON.stringify({message:a.message,stack:a.stack})}},62226:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"shouldHardNavigate",{enumerable:!0,get:function(){return function a(b,c){let[f,g]=c,[h,i]=b;return(0,e.matchSegment)(h,f)?!(b.length<=2)&&a((0,d.getNextFlightSegmentPath)(b),g[i]):!!Array.isArray(h)}}});let d=c(21600),e=c(93754);("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},65352:(a,b,c)=>{"use strict";function d(a,b,c){let d=[],e=-1;for(;++ed})},65828:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},65893:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]])},66041:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("hard-drive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},66241:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"PromiseQueue",{enumerable:!0,get:function(){return j}});let d=c(59589),e=c(769);var f=e._("_maxConcurrency"),g=e._("_runningCount"),h=e._("_queue"),i=e._("_processNext");class j{enqueue(a){let b,c,e=new Promise((a,d)=>{b=a,c=d}),f=async()=>{try{d._(this,g)[g]++;let c=await a();b(c)}catch(a){c(a)}finally{d._(this,g)[g]--,d._(this,i)[i]()}};return d._(this,h)[h].push({promiseFn:e,task:f}),d._(this,i)[i](),e}bump(a){let b=d._(this,h)[h].findIndex(b=>b.promiseFn===a);if(b>-1){let a=d._(this,h)[h].splice(b,1)[0];d._(this,h)[h].unshift(a),d._(this,i)[i](!0)}}constructor(a=5){Object.defineProperty(this,i,{value:k}),Object.defineProperty(this,f,{writable:!0,value:void 0}),Object.defineProperty(this,g,{writable:!0,value:void 0}),Object.defineProperty(this,h,{writable:!0,value:void 0}),d._(this,f)[f]=a,d._(this,g)[g]=0,d._(this,h)[h]=[]}}function k(a){if(void 0===a&&(a=!1),(d._(this,g)[g]0){var b;null==(b=d._(this,h)[h].shift())||b.task()}}("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},66600:(a,b,c)=>{"use strict";c.d(b,{y:()=>f});var d=c(282);let e={}.hasOwnProperty;function f(a){let b={},c=-1;for(;++c{"use strict";c.d(b,{UC:()=>D,ZL:()=>C,bL:()=>A,l9:()=>B,q7:()=>E,wv:()=>F});var d=c(38301),e=c(87868),f=c(92808),g=c(2332),h=c(11720),i=c(6406),j=c(87762),k=c(75656),l=c(21124),m="DropdownMenu",[n,o]=(0,g.A)(m,[j.UE]),p=(0,j.UE)(),[q,r]=n(m),s=a=>{let{__scopeDropdownMenu:b,children:c,dir:e,open:f,defaultOpen:g,onOpenChange:i,modal:n=!0}=a,o=p(b),r=d.useRef(null),[s,t]=(0,h.i)({prop:f,defaultProp:g??!1,onChange:i,caller:m});return(0,l.jsx)(q,{scope:b,triggerId:(0,k.B)(),triggerRef:r,contentId:(0,k.B)(),open:s,onOpenChange:t,onOpenToggle:d.useCallback(()=>t(a=>!a),[t]),modal:n,children:(0,l.jsx)(j.bL,{...o,open:s,onOpenChange:t,dir:e,modal:n,children:c})})};s.displayName=m;var t="DropdownMenuTrigger",u=d.forwardRef((a,b)=>{let{__scopeDropdownMenu:c,disabled:d=!1,...g}=a,h=r(t,c),k=p(c);return(0,l.jsx)(j.Mz,{asChild:!0,...k,children:(0,l.jsx)(i.sG.button,{type:"button",id:h.triggerId,"aria-haspopup":"menu","aria-expanded":h.open,"aria-controls":h.open?h.contentId:void 0,"data-state":h.open?"open":"closed","data-disabled":d?"":void 0,disabled:d,...g,ref:(0,f.t)(b,h.triggerRef),onPointerDown:(0,e.mK)(a.onPointerDown,a=>{!d&&0===a.button&&!1===a.ctrlKey&&(h.onOpenToggle(),h.open||a.preventDefault())}),onKeyDown:(0,e.mK)(a.onKeyDown,a=>{!d&&(["Enter"," "].includes(a.key)&&h.onOpenToggle(),"ArrowDown"===a.key&&h.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())})})})});u.displayName=t;var v=a=>{let{__scopeDropdownMenu:b,...c}=a,d=p(b);return(0,l.jsx)(j.ZL,{...d,...c})};v.displayName="DropdownMenuPortal";var w="DropdownMenuContent",x=d.forwardRef((a,b)=>{let{__scopeDropdownMenu:c,...f}=a,g=r(w,c),h=p(c),i=d.useRef(!1);return(0,l.jsx)(j.UC,{id:g.contentId,"aria-labelledby":g.triggerId,...h,...f,ref:b,onCloseAutoFocus:(0,e.mK)(a.onCloseAutoFocus,a=>{i.current||g.triggerRef.current?.focus(),i.current=!1,a.preventDefault()}),onInteractOutside:(0,e.mK)(a.onInteractOutside,a=>{let b=a.detail.originalEvent,c=0===b.button&&!0===b.ctrlKey,d=2===b.button||c;(!g.modal||d)&&(i.current=!0)}),style:{...a.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});x.displayName=w,d.forwardRef((a,b)=>{let{__scopeDropdownMenu:c,...d}=a,e=p(c);return(0,l.jsx)(j.YJ,{...e,...d,ref:b})}).displayName="DropdownMenuGroup",d.forwardRef((a,b)=>{let{__scopeDropdownMenu:c,...d}=a,e=p(c);return(0,l.jsx)(j.JU,{...e,...d,ref:b})}).displayName="DropdownMenuLabel";var y=d.forwardRef((a,b)=>{let{__scopeDropdownMenu:c,...d}=a,e=p(c);return(0,l.jsx)(j.q7,{...e,...d,ref:b})});y.displayName="DropdownMenuItem",d.forwardRef((a,b)=>{let{__scopeDropdownMenu:c,...d}=a,e=p(c);return(0,l.jsx)(j.H_,{...e,...d,ref:b})}).displayName="DropdownMenuCheckboxItem",d.forwardRef((a,b)=>{let{__scopeDropdownMenu:c,...d}=a,e=p(c);return(0,l.jsx)(j.z6,{...e,...d,ref:b})}).displayName="DropdownMenuRadioGroup",d.forwardRef((a,b)=>{let{__scopeDropdownMenu:c,...d}=a,e=p(c);return(0,l.jsx)(j.hN,{...e,...d,ref:b})}).displayName="DropdownMenuRadioItem",d.forwardRef((a,b)=>{let{__scopeDropdownMenu:c,...d}=a,e=p(c);return(0,l.jsx)(j.VF,{...e,...d,ref:b})}).displayName="DropdownMenuItemIndicator";var z=d.forwardRef((a,b)=>{let{__scopeDropdownMenu:c,...d}=a,e=p(c);return(0,l.jsx)(j.wv,{...e,...d,ref:b})});z.displayName="DropdownMenuSeparator",d.forwardRef((a,b)=>{let{__scopeDropdownMenu:c,...d}=a,e=p(c);return(0,l.jsx)(j.i3,{...e,...d,ref:b})}).displayName="DropdownMenuArrow",d.forwardRef((a,b)=>{let{__scopeDropdownMenu:c,...d}=a,e=p(c);return(0,l.jsx)(j.ZP,{...e,...d,ref:b})}).displayName="DropdownMenuSubTrigger",d.forwardRef((a,b)=>{let{__scopeDropdownMenu:c,...d}=a,e=p(c);return(0,l.jsx)(j.G5,{...e,...d,ref:b,style:{...a.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}).displayName="DropdownMenuSubContent";var A=s,B=u,C=v,D=x,E=y,F=z},68324:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]])},69022:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"restoreReducer",{enumerable:!0,get:function(){return f}});let d=c(11830),e=c(18151);function f(a,b){var c;let{url:f,tree:g}=b,h=(0,d.createHrefFromUrl)(f),i=g||a.tree,j=a.cache;return{canonicalUrl:h,pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},focusAndScrollRef:a.focusAndScrollRef,cache:j,prefetchCache:a.prefetchCache,tree:i,nextUrl:null!=(c=(0,e.extractPathFromFlightRouterState)(i))?c:f.pathname}}c(19427),("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},70045:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]])},70395:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"applyFlightData",{enumerable:!0,get:function(){return f}});let d=c(35939),e=c(28763);function f(a,b,c,f,g){let{tree:h,seedData:i,head:j,isRootRender:k}=f;if(null===i)return!1;if(k){let e=i[1];c.loading=i[3],c.rsc=e,c.prefetchRsc=null,(0,d.fillLazyItemsTillLeafWithHead)(a,c,b,h,i,j,g)}else c.rsc=b.rsc,c.prefetchRsc=b.prefetchRsc,c.parallelRoutes=new Map(b.parallelRoutes),c.loading=b.loading,(0,e.fillCacheWithNewSubTreeData)(a,c,b,f,g);return!0}("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},70491:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{DYNAMIC_STALETIME_MS:function(){return m},STATIC_STALETIME_MS:function(){return n},createSeededPrefetchCacheEntry:function(){return j},getOrCreatePrefetchCacheEntry:function(){return i},prunePrefetchCache:function(){return l}});let d=c(60535),e=c(12591),f=c(77743);function g(a,b,c){let d=a.pathname;return(b&&(d+=a.search),c)?""+c+"%"+d:d}function h(a,b,c){return g(a,b===e.PrefetchKind.FULL,c)}function i(a){let{url:b,nextUrl:c,tree:d,prefetchCache:f,kind:h,allowAliasing:i=!0}=a,j=function(a,b,c,d,f){for(let h of(void 0===b&&(b=e.PrefetchKind.TEMPORARY),[c,null])){let c=g(a,!0,h),i=g(a,!1,h),j=a.search?c:i,k=d.get(j);if(k&&f){if(k.url.pathname===a.pathname&&k.url.search!==a.search)return{...k,aliased:!0};return k}let l=d.get(i);if(f&&a.search&&b!==e.PrefetchKind.FULL&&l&&!l.key.includes("%"))return{...l,aliased:!0}}if(b!==e.PrefetchKind.FULL&&f){for(let b of d.values())if(b.url.pathname===a.pathname&&!b.key.includes("%"))return{...b,aliased:!0}}}(b,h,c,f,i);return j?(j.status=o(j),j.kind!==e.PrefetchKind.FULL&&h===e.PrefetchKind.FULL&&j.data.then(a=>{if(!(Array.isArray(a.flightData)&&a.flightData.some(a=>a.isRootRender&&null!==a.seedData)))return k({tree:d,url:b,nextUrl:c,prefetchCache:f,kind:null!=h?h:e.PrefetchKind.TEMPORARY})}),h&&j.kind===e.PrefetchKind.TEMPORARY&&(j.kind=h),j):k({tree:d,url:b,nextUrl:c,prefetchCache:f,kind:h||e.PrefetchKind.TEMPORARY})}function j(a){let{nextUrl:b,tree:c,prefetchCache:d,url:f,data:g,kind:i}=a,j=g.couldBeIntercepted?h(f,i,b):h(f,i),k={treeAtTimeOfPrefetch:c,data:Promise.resolve(g),kind:i,prefetchTime:Date.now(),lastUsedTime:Date.now(),staleTime:g.staleTime,key:j,status:e.PrefetchCacheEntryStatus.fresh,url:f};return d.set(j,k),k}function k(a){let{url:b,kind:c,tree:g,nextUrl:i,prefetchCache:j}=a,k=h(b,c),l=f.prefetchQueue.enqueue(()=>(0,d.fetchServerResponse)(b,{flightRouterState:g,nextUrl:i,prefetchKind:c}).then(a=>{let c;if(a.couldBeIntercepted&&(c=function(a){let{url:b,nextUrl:c,prefetchCache:d,existingCacheKey:e}=a,f=d.get(e);if(!f)return;let g=h(b,f.kind,c);return d.set(g,{...f,key:g}),d.delete(e),g}({url:b,existingCacheKey:k,nextUrl:i,prefetchCache:j})),a.prerendered){let b=j.get(null!=c?c:k);b&&(b.kind=e.PrefetchKind.FULL,-1!==a.staleTime&&(b.staleTime=a.staleTime))}return a})),m={treeAtTimeOfPrefetch:g,data:l,kind:c,prefetchTime:Date.now(),lastUsedTime:null,staleTime:-1,key:k,status:e.PrefetchCacheEntryStatus.fresh,url:b};return j.set(k,m),m}function l(a){for(let[b,c]of a)o(c)===e.PrefetchCacheEntryStatus.expired&&a.delete(b)}let m=1e3*Number("0"),n=1e3*Number("300");function o(a){let{kind:b,prefetchTime:c,lastUsedTime:d}=a;return Date.now()<(null!=d?d:c)+m?d?e.PrefetchCacheEntryStatus.reusable:e.PrefetchCacheEntryStatus.fresh:b===e.PrefetchKind.AUTO&&Date.now(){"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("arrow-up",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]])},71117:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]])},71563:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]])},71646:(a,b,c)=>{"use strict";c.d(b,{S:()=>e});var d=c(76713);function e(a){return null===a||(0,d.Ee)(a)||(0,d.Ny)(a)?1:(0,d.es)(a)?2:void 0}},71899:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("mouse-pointer-click",[["path",{d:"M14 4.1 12 6",key:"ita8i4"}],["path",{d:"m5.1 8-2.9-.8",key:"1go3kf"}],["path",{d:"m6 12-1.9 2",key:"mnht97"}],["path",{d:"M7.2 2.2 8 5.1",key:"1cfko1"}],["path",{d:"M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z",key:"s0h3yz"}]])},72869:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{addRefreshMarkerToActiveParallelSegments:function(){return function a(b,c){let[d,e,,g]=b;for(let h in d.includes(f.PAGE_SEGMENT_KEY)&&"refresh"!==g&&(b[2]=c,b[3]="refresh"),e)a(e[h],c)}},refreshInactiveParallelSegments:function(){return g}});let d=c(70395),e=c(60535),f=c(72454);async function g(a){let b=new Set;await h({...a,rootTree:a.updatedTree,fetchedSegments:b})}async function h(a){let{navigatedAt:b,state:c,updatedTree:f,updatedCache:g,includeNextUrl:i,fetchedSegments:j,rootTree:k=f,canonicalUrl:l}=a,[,m,n,o]=f,p=[];if(n&&n!==l&&"refresh"===o&&!j.has(n)){j.add(n);let a=(0,e.fetchServerResponse)(new URL(n,location.origin),{flightRouterState:[k[0],k[1],k[2],"refetch"],nextUrl:i?c.nextUrl:null}).then(a=>{let{flightData:c}=a;if("string"!=typeof c)for(let a of c)(0,d.applyFlightData)(b,g,g,a)});p.push(a)}for(let a in m){let d=h({navigatedAt:b,state:c,updatedTree:m[a],updatedCache:g,includeNextUrl:i,fetchedSegments:j,rootTree:k,canonicalUrl:l});p.push(d)}await Promise.all(p)}("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},73486:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"handleMutable",{enumerable:!0,get:function(){return f}});let d=c(18151);function e(a){return void 0!==a}function f(a,b){var c,f;let g=null==(c=b.shouldScroll)||c,h=a.nextUrl;if(e(b.patchedTree)){let c=(0,d.computeChangedPath)(a.tree,b.patchedTree);c?h=c:h||(h=a.canonicalUrl)}return{canonicalUrl:e(b.canonicalUrl)?b.canonicalUrl===a.canonicalUrl?a.canonicalUrl:b.canonicalUrl:a.canonicalUrl,pushRef:{pendingPush:e(b.pendingPush)?b.pendingPush:a.pushRef.pendingPush,mpaNavigation:e(b.mpaNavigation)?b.mpaNavigation:a.pushRef.mpaNavigation,preserveCustomHistoryState:e(b.preserveCustomHistoryState)?b.preserveCustomHistoryState:a.pushRef.preserveCustomHistoryState},focusAndScrollRef:{apply:!!g&&(!!e(null==b?void 0:b.scrollableSegments)||a.focusAndScrollRef.apply),onlyHashChange:b.onlyHashChange||!1,hashFragment:g?b.hashFragment&&""!==b.hashFragment?decodeURIComponent(b.hashFragment.slice(1)):a.focusAndScrollRef.hashFragment:null,segmentPaths:g?null!=(f=null==b?void 0:b.scrollableSegments)?f:a.focusAndScrollRef.segmentPaths:[]},cache:b.cache?b.cache:a.cache,prefetchCache:b.prefetchCache?b.prefetchCache:a.prefetchCache,tree:e(b.patchedTree)?b.patchedTree:a.tree,nextUrl:h}}("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},74097:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]])},75179:(a,b,c)=>{"use strict";function d(a){return a.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}c.d(b,{B:()=>d})},75535:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},76143:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"applyRouterStatePatchToTree",{enumerable:!0,get:function(){return function a(b,c,d,i){let j,[k,l,m,n,o]=c;if(1===b.length){let a=h(c,d);return(0,g.addRefreshMarkerToActiveParallelSegments)(a,i),a}let[p,q]=b;if(!(0,f.matchSegment)(p,k))return null;if(2===b.length)j=h(l[q],d);else if(null===(j=a((0,e.getNextFlightSegmentPath)(b),l[q],d,i)))return null;let r=[b[0],{...l,[q]:j},m,n];return o&&(r[4]=!0),(0,g.addRefreshMarkerToActiveParallelSegments)(r,i),r}}});let d=c(72454),e=c(21600),f=c(93754),g=c(72869);function h(a,b){let[c,e]=a,[g,i]=b;if(g===d.DEFAULT_SEGMENT_KEY&&c!==d.DEFAULT_SEGMENT_KEY)return a;if((0,f.matchSegment)(c,g)){let b={};for(let a in e)void 0!==i[a]?b[a]=h(e[a],i[a]):b[a]=e[a];for(let a in i)b[a]||(b[a]=i[a]);let d=[c,b];return a[2]&&(d[2]=a[2]),a[3]&&(d[3]=a[3]),a[4]&&(d[4]=a[4]),d}return b}("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},76180:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("square-pen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]])},76713:(a,b,c)=>{"use strict";c.d(b,{BM:()=>h,CW:()=>d,Ee:()=>l,HP:()=>k,JQ:()=>g,Ny:()=>o,On:()=>m,cx:()=>f,es:()=>n,lV:()=>e,ok:()=>i,ol:()=>j});let d=p(/[A-Za-z]/),e=p(/[\dA-Za-z]/),f=p(/[#-'*+\--9=?A-Z^-~]/);function g(a){return null!==a&&(a<32||127===a)}let h=p(/\d/),i=p(/[\dA-Fa-f]/),j=p(/[!-/:-@[-`{-~]/);function k(a){return null!==a&&a<-2}function l(a){return null!==a&&(a<0||32===a)}function m(a){return -2===a||-1===a||32===a}let n=p(/\p{P}|\p{S}/u),o=p(/\s/);function p(a){return function(b){return null!==b&&b>-1&&a.test(String.fromCharCode(b))}}},77377:(a,b)=>{"use strict";function c(a){let b=parseInt(a.slice(0,2),16),c=b>>1&63,d=Array(6);for(let a=0;a<6;a++){let b=c>>5-a&1;d[a]=1===b}return{type:1==(b>>7&1)?"use-cache":"server-action",usedArgs:d,hasRestArgs:1==(1&b)}}function d(a,b){let c=Array(a.length);for(let d=0;d=6&&b.hasRestArgs)&&(c[d]=a[d]);return c}Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{extractInfoFromServerReferenceId:function(){return c},omitUnusedArgs:function(){return d}})},77410:(a,b,c)=>{"use strict";c.d(b,{C:()=>d});let d=function(a){var b,c;if(null==a)return f;if("function"==typeof a)return e(a);if("object"==typeof a){return Array.isArray(a)?function(a){let b=[],c=-1;for(;++c{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{prefetchQueue:function(){return f},prefetchReducer:function(){return g}});let d=c(66241),e=c(70491),f=new d.PromiseQueue(5),g=function(a,b){(0,e.prunePrefetchCache)(a.prefetchCache);let{url:c}=b;return(0,e.getOrCreatePrefetchCacheEntry)({url:c,nextUrl:a.nextUrl,prefetchCache:a.prefetchCache,kind:b.kind,tree:a.tree,allowAliasing:!0}),a};("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},77850:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("layout-dashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]])},78092:(a,b,c)=>{"use strict";c.d(b,{q7:()=>D,bL:()=>C});var d=c(38301),e=c(2332),f=c(6406),g=c(88617),h=c(87868),i=c(11720),j=c(21124),k="Toggle",l=d.forwardRef((a,b)=>{let{pressed:c,defaultPressed:d,onPressedChange:e,...g}=a,[l,m]=(0,i.i)({prop:c,onChange:e,defaultProp:d??!1,caller:k});return(0,j.jsx)(f.sG.button,{type:"button","aria-pressed":l,"data-state":l?"on":"off","data-disabled":a.disabled?"":void 0,...g,ref:b,onClick:(0,h.mK)(a.onClick,()=>{a.disabled||m(!l)})})});l.displayName=k;var m=c(10498),n="ToggleGroup",[o,p]=(0,e.A)(n,[g.RG]),q=(0,g.RG)(),r=d.forwardRef((a,b)=>{let{type:c,...d}=a;if("single"===c)return(0,j.jsx)(u,{...d,ref:b});if("multiple"===c)return(0,j.jsx)(v,{...d,ref:b});throw Error(`Missing prop \`type\` expected on \`${n}\``)});r.displayName=n;var[s,t]=o(n),u=d.forwardRef((a,b)=>{let{value:c,defaultValue:e,onValueChange:f=()=>{},...g}=a,[h,k]=(0,i.i)({prop:c,defaultProp:e??"",onChange:f,caller:n});return(0,j.jsx)(s,{scope:a.__scopeToggleGroup,type:"single",value:d.useMemo(()=>h?[h]:[],[h]),onItemActivate:k,onItemDeactivate:d.useCallback(()=>k(""),[k]),children:(0,j.jsx)(y,{...g,ref:b})})}),v=d.forwardRef((a,b)=>{let{value:c,defaultValue:e,onValueChange:f=()=>{},...g}=a,[h,k]=(0,i.i)({prop:c,defaultProp:e??[],onChange:f,caller:n}),l=d.useCallback(a=>k((b=[])=>[...b,a]),[k]),m=d.useCallback(a=>k((b=[])=>b.filter(b=>b!==a)),[k]);return(0,j.jsx)(s,{scope:a.__scopeToggleGroup,type:"multiple",value:h,onItemActivate:l,onItemDeactivate:m,children:(0,j.jsx)(y,{...g,ref:b})})});r.displayName=n;var[w,x]=o(n),y=d.forwardRef((a,b)=>{let{__scopeToggleGroup:c,disabled:d=!1,rovingFocus:e=!0,orientation:h,dir:i,loop:k=!0,...l}=a,n=q(c),o=(0,m.jH)(i),p={role:"group",dir:o,...l};return(0,j.jsx)(w,{scope:c,rovingFocus:e,disabled:d,children:e?(0,j.jsx)(g.bL,{asChild:!0,...n,orientation:h,dir:o,loop:k,children:(0,j.jsx)(f.sG.div,{...p,ref:b})}):(0,j.jsx)(f.sG.div,{...p,ref:b})})}),z="ToggleGroupItem",A=d.forwardRef((a,b)=>{let c=t(z,a.__scopeToggleGroup),e=x(z,a.__scopeToggleGroup),f=q(a.__scopeToggleGroup),h=c.value.includes(a.value),i=e.disabled||a.disabled,k={...a,pressed:h,disabled:i},l=d.useRef(null);return e.rovingFocus?(0,j.jsx)(g.q7,{asChild:!0,...f,focusable:!i,active:h,ref:l,children:(0,j.jsx)(B,{...k,ref:b})}):(0,j.jsx)(B,{...k,ref:b})});A.displayName=z;var B=d.forwardRef((a,b)=>{let{__scopeToggleGroup:c,value:d,...e}=a,f=t(z,c),g={role:"radio","aria-checked":a.pressed,"aria-pressed":void 0},h="single"===f.type?g:void 0;return(0,j.jsx)(l,{...h,...e,ref:b,onPressedChange:a=>{a?f.onItemActivate(d):f.onItemDeactivate(d)}})}),C=r,D=A},78460:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]])},78733:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]])},78971:(a,b,c)=>{"use strict";c.d(b,{dc:()=>f,VG:()=>g});var d=c(77410);let e=[],f=!1;function g(a,b,c,g){let h;"function"==typeof b&&"function"!=typeof c?(g=c,c=b):h=b;let i=(0,d.C)(h),j=g?-1:1;(function a(d,h,k){let l=d&&"object"==typeof d?d:{};if("string"==typeof l.type){let a="string"==typeof l.tagName?l.tagName:"string"==typeof l.name?l.name:void 0;Object.defineProperty(m,"name",{value:"node (\x1b[33m"+d.type+(a?"<"+a+">":"")+"\x1b[39m)"})}return m;function m(){var l;let m,n,o,p=e;if((!b||i(d,h,k[k.length-1]||void 0))&&(p=Array.isArray(l=c(d,k))?l:"number"==typeof l?[!0,l]:null==l?e:[l])[0]===f)return p;if("children"in d&&d.children&&d.children&&"skip"!==p[0])for(n=(g?d.children.length:-1)+j,o=k.concat(d);n>-1&&n{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("server-cog",[["path",{d:"m10.852 14.772-.383.923",key:"11vil6"}],["path",{d:"M13.148 14.772a3 3 0 1 0-2.296-5.544l-.383-.923",key:"1v3clb"}],["path",{d:"m13.148 9.228.383-.923",key:"t2zzyc"}],["path",{d:"m13.53 15.696-.382-.924a3 3 0 1 1-2.296-5.544",key:"1bxfiv"}],["path",{d:"m14.772 10.852.923-.383",key:"k9m8cz"}],["path",{d:"m14.772 13.148.923.383",key:"1xvhww"}],["path",{d:"M4.5 10H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-.5",key:"tn8das"}],["path",{d:"M4.5 14H4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2h-.5",key:"1g2pve"}],["path",{d:"M6 18h.01",key:"uhywen"}],["path",{d:"M6 6h.01",key:"1utrut"}],["path",{d:"m9.228 10.852-.923-.383",key:"1wtb30"}],["path",{d:"m9.228 13.148-.923.383",key:"1a830x"}]])},79976:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"serverPatchReducer",{enumerable:!0,get:function(){return k}});let d=c(11830),e=c(76143),f=c(81711),g=c(3219),h=c(70395),i=c(73486),j=c(97163);function k(a,b){let{serverResponse:{flightData:c,canonicalUrl:k},navigatedAt:l}=b,m={};if(m.preserveCustomHistoryState=!1,"string"==typeof c)return(0,g.handleExternalUrl)(a,m,c,a.pushRef.pendingPush);let n=a.tree,o=a.cache;for(let b of c){let{segmentPath:c,tree:i}=b,p=(0,e.applyRouterStatePatchToTree)(["",...c],n,i,a.canonicalUrl);if(null===p)return a;if((0,f.isNavigatingToNewRootLayout)(n,p))return(0,g.handleExternalUrl)(a,m,a.canonicalUrl,a.pushRef.pendingPush);let q=k?(0,d.createHrefFromUrl)(k):void 0;q&&(m.canonicalUrl=q);let r=(0,j.createEmptyCacheNode)();(0,h.applyFlightData)(l,o,r,b),m.patchedTree=p,m.cache=r,o=r,n=p}return(0,i.handleMutable)(a,m)}("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},80101:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("crosshair",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"22",x2:"18",y1:"12",y2:"12",key:"l9bcsi"}],["line",{x1:"6",x2:"2",y1:"12",y2:"12",key:"13hhkx"}],["line",{x1:"12",x2:"12",y1:"6",y2:"2",key:"10w3f3"}],["line",{x1:"12",x2:"12",y1:"22",y2:"18",key:"15g9kq"}]])},80196:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},80414:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("table-2",[["path",{d:"M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18",key:"gugj83"}]])},81100:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]])},81711:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"isNavigatingToNewRootLayout",{enumerable:!0,get:function(){return function a(b,c){let d=b[0],e=c[0];if(Array.isArray(d)&&Array.isArray(e)){if(d[0]!==e[0]||d[2]!==e[2])return!0}else if(d!==e)return!0;if(b[4])return!c[4];if(c[4])return!0;let f=Object.values(b[1])[0],g=Object.values(c[1])[0];return!f||!g||a(f,g)}}}),("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},81925:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("funnel",[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]])},82548:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("layout-grid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]])},83224:(a,b,c)=>{"use strict";c.d(b,{N:()=>e});var d=c(76713);function e(a,b,c,e){let f=e?e-1:1/0,g=0;return function(e){return(0,d.On)(e)?(a.enter(c),function e(h){return(0,d.On)(h)&&g++{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("pen",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]])},84589:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"errorOnce",{enumerable:!0,get:function(){return c}});let c=a=>{}},86773:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("arrow-up-down",[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]])},86949:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("circle-help",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},87278:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]])},87762:(a,b,c)=>{"use strict";c.d(b,{G5:()=>aU,H_:()=>aM,JU:()=>aK,Mz:()=>aG,Pb:()=>aS,UC:()=>aI,UE:()=>H,VF:()=>aP,YJ:()=>aJ,ZL:()=>aH,ZP:()=>aT,bL:()=>aF,hN:()=>aO,i3:()=>aR,q7:()=>aL,wv:()=>aQ,z6:()=>aN});var d=c(38301),e=c(87868),f=c(825),g=c(92808),h=c(2332),i=c(10498),j=c(7412),k=c(70904),l=c(69998),m=c(75656),n=c(25122),o=c(61611),p=c(29988),q=c(6406),r=c(88617),s=c(96425),t=c(71700),u=c(61225),v=c(36409),w=c(21124),x=["Enter"," "],y=["ArrowUp","PageDown","End"],z=["ArrowDown","PageUp","Home",...y],A={ltr:[...x,"ArrowRight"],rtl:[...x,"ArrowLeft"]},B={ltr:["ArrowLeft"],rtl:["ArrowRight"]},C="Menu",[D,E,F]=(0,f.N)(C),[G,H]=(0,h.A)(C,[F,n.Bk,r.RG]),I=(0,n.Bk)(),J=(0,r.RG)(),[K,L]=G(C),[M,N]=G(C),O=a=>{let{__scopeMenu:b,open:c=!1,children:e,dir:f,onOpenChange:g,modal:h=!0}=a,j=I(b),[k,l]=d.useState(null),m=d.useRef(!1),o=(0,t.c)(g),p=(0,i.jH)(f);return d.useEffect(()=>{let a=()=>{m.current=!0,document.addEventListener("pointerdown",b,{capture:!0,once:!0}),document.addEventListener("pointermove",b,{capture:!0,once:!0})},b=()=>m.current=!1;return document.addEventListener("keydown",a,{capture:!0}),()=>{document.removeEventListener("keydown",a,{capture:!0}),document.removeEventListener("pointerdown",b,{capture:!0}),document.removeEventListener("pointermove",b,{capture:!0})}},[]),(0,w.jsx)(n.bL,{...j,children:(0,w.jsx)(K,{scope:b,open:c,onOpenChange:o,content:k,onContentChange:l,children:(0,w.jsx)(M,{scope:b,onClose:d.useCallback(()=>o(!1),[o]),isUsingKeyboardRef:m,dir:p,modal:h,children:e})})})};O.displayName=C;var P=d.forwardRef((a,b)=>{let{__scopeMenu:c,...d}=a,e=I(c);return(0,w.jsx)(n.Mz,{...e,...d,ref:b})});P.displayName="MenuAnchor";var Q="MenuPortal",[R,S]=G(Q,{forceMount:void 0}),T=a=>{let{__scopeMenu:b,forceMount:c,children:d,container:e}=a,f=L(Q,b);return(0,w.jsx)(R,{scope:b,forceMount:c,children:(0,w.jsx)(p.C,{present:c||f.open,children:(0,w.jsx)(o.Z,{asChild:!0,container:e,children:d})})})};T.displayName=Q;var U="MenuContent",[V,W]=G(U),X=d.forwardRef((a,b)=>{let c=S(U,a.__scopeMenu),{forceMount:d=c.forceMount,...e}=a,f=L(U,a.__scopeMenu),g=N(U,a.__scopeMenu);return(0,w.jsx)(D.Provider,{scope:a.__scopeMenu,children:(0,w.jsx)(p.C,{present:d||f.open,children:(0,w.jsx)(D.Slot,{scope:a.__scopeMenu,children:g.modal?(0,w.jsx)(Y,{...e,ref:b}):(0,w.jsx)(Z,{...e,ref:b})})})})}),Y=d.forwardRef((a,b)=>{let c=L(U,a.__scopeMenu),f=d.useRef(null),h=(0,g.s)(b,f);return d.useEffect(()=>{let a=f.current;if(a)return(0,u.Eq)(a)},[]),(0,w.jsx)(_,{...a,ref:h,trapFocus:c.open,disableOutsidePointerEvents:c.open,disableOutsideScroll:!0,onFocusOutside:(0,e.mK)(a.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>c.onOpenChange(!1)})}),Z=d.forwardRef((a,b)=>{let c=L(U,a.__scopeMenu);return(0,w.jsx)(_,{...a,ref:b,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>c.onOpenChange(!1)})}),$=(0,s.TL)("MenuContent.ScrollLock"),_=d.forwardRef((a,b)=>{let{__scopeMenu:c,loop:f=!1,trapFocus:h,onOpenAutoFocus:i,onCloseAutoFocus:m,disableOutsidePointerEvents:o,onEntryFocus:p,onEscapeKeyDown:q,onPointerDownOutside:s,onFocusOutside:t,onInteractOutside:u,onDismiss:x,disableOutsideScroll:A,...B}=a,C=L(U,c),D=N(U,c),F=I(c),G=J(c),H=E(c),[K,M]=d.useState(null),O=d.useRef(null),P=(0,g.s)(b,O,C.onContentChange),Q=d.useRef(0),R=d.useRef(""),S=d.useRef(0),T=d.useRef(null),W=d.useRef("right"),X=d.useRef(0),Y=A?v.A:d.Fragment;d.useEffect(()=>()=>window.clearTimeout(Q.current),[]),(0,k.Oh)();let Z=d.useCallback(a=>W.current===T.current?.side&&function(a,b){return!!b&&function(a,b){let{x:c,y:d}=a,e=!1;for(let a=0,f=b.length-1;ad!=l>d&&c<(k-i)*(d-j)/(l-j)+i&&(e=!e)}return e}({x:a.clientX,y:a.clientY},b)}(a,T.current?.area),[]);return(0,w.jsx)(V,{scope:c,searchRef:R,onItemEnter:d.useCallback(a=>{Z(a)&&a.preventDefault()},[Z]),onItemLeave:d.useCallback(a=>{Z(a)||(O.current?.focus(),M(null))},[Z]),onTriggerLeave:d.useCallback(a=>{Z(a)&&a.preventDefault()},[Z]),pointerGraceTimerRef:S,onPointerGraceIntentChange:d.useCallback(a=>{T.current=a},[]),children:(0,w.jsx)(Y,{...A?{as:$,allowPinchZoom:!0}:void 0,children:(0,w.jsx)(l.n,{asChild:!0,trapped:h,onMountAutoFocus:(0,e.mK)(i,a=>{a.preventDefault(),O.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:m,children:(0,w.jsx)(j.qW,{asChild:!0,disableOutsidePointerEvents:o,onEscapeKeyDown:q,onPointerDownOutside:s,onFocusOutside:t,onInteractOutside:u,onDismiss:x,children:(0,w.jsx)(r.bL,{asChild:!0,...G,dir:D.dir,orientation:"vertical",loop:f,currentTabStopId:K,onCurrentTabStopIdChange:M,onEntryFocus:(0,e.mK)(p,a=>{D.isUsingKeyboardRef.current||a.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,w.jsx)(n.UC,{role:"menu","aria-orientation":"vertical","data-state":aB(C.open),"data-radix-menu-content":"",dir:D.dir,...F,...B,ref:P,style:{outline:"none",...B.style},onKeyDown:(0,e.mK)(B.onKeyDown,a=>{let b=a.target.closest("[data-radix-menu-content]")===a.currentTarget,c=a.ctrlKey||a.altKey||a.metaKey,d=1===a.key.length;b&&("Tab"===a.key&&a.preventDefault(),!c&&d&&(a=>{let b=R.current+a,c=H().filter(a=>!a.disabled),d=document.activeElement,e=c.find(a=>a.ref.current===d)?.textValue,f=function(a,b,c){var d;let e=b.length>1&&Array.from(b).every(a=>a===b[0])?b[0]:b,f=c?a.indexOf(c):-1,g=(d=Math.max(f,0),a.map((b,c)=>a[(d+c)%a.length]));1===e.length&&(g=g.filter(a=>a!==c));let h=g.find(a=>a.toLowerCase().startsWith(e.toLowerCase()));return h!==c?h:void 0}(c.map(a=>a.textValue),b,e),g=c.find(a=>a.textValue===f)?.ref.current;!function a(b){R.current=b,window.clearTimeout(Q.current),""!==b&&(Q.current=window.setTimeout(()=>a(""),1e3))}(b),g&&setTimeout(()=>g.focus())})(a.key));let e=O.current;if(a.target!==e||!z.includes(a.key))return;a.preventDefault();let f=H().filter(a=>!a.disabled).map(a=>a.ref.current);y.includes(a.key)&&f.reverse(),function(a){let b=document.activeElement;for(let c of a)if(c===b||(c.focus(),document.activeElement!==b))return}(f)}),onBlur:(0,e.mK)(a.onBlur,a=>{a.currentTarget.contains(a.target)||(window.clearTimeout(Q.current),R.current="")}),onPointerMove:(0,e.mK)(a.onPointerMove,aE(a=>{let b=a.target,c=X.current!==a.clientX;a.currentTarget.contains(b)&&c&&(W.current=a.clientX>X.current?"right":"left",X.current=a.clientX)}))})})})})})})});X.displayName=U;var aa=d.forwardRef((a,b)=>{let{__scopeMenu:c,...d}=a;return(0,w.jsx)(q.sG.div,{role:"group",...d,ref:b})});aa.displayName="MenuGroup";var ab=d.forwardRef((a,b)=>{let{__scopeMenu:c,...d}=a;return(0,w.jsx)(q.sG.div,{...d,ref:b})});ab.displayName="MenuLabel";var ac="MenuItem",ad="menu.itemSelect",ae=d.forwardRef((a,b)=>{let{disabled:c=!1,onSelect:f,...h}=a,i=d.useRef(null),j=N(ac,a.__scopeMenu),k=W(ac,a.__scopeMenu),l=(0,g.s)(b,i),m=d.useRef(!1);return(0,w.jsx)(af,{...h,ref:l,disabled:c,onClick:(0,e.mK)(a.onClick,()=>{let a=i.current;if(!c&&a){let b=new CustomEvent(ad,{bubbles:!0,cancelable:!0});a.addEventListener(ad,a=>f?.(a),{once:!0}),(0,q.hO)(a,b),b.defaultPrevented?m.current=!1:j.onClose()}}),onPointerDown:b=>{a.onPointerDown?.(b),m.current=!0},onPointerUp:(0,e.mK)(a.onPointerUp,a=>{m.current||a.currentTarget?.click()}),onKeyDown:(0,e.mK)(a.onKeyDown,a=>{let b=""!==k.searchRef.current;c||b&&" "===a.key||x.includes(a.key)&&(a.currentTarget.click(),a.preventDefault())})})});ae.displayName=ac;var af=d.forwardRef((a,b)=>{let{__scopeMenu:c,disabled:f=!1,textValue:h,...i}=a,j=W(ac,c),k=J(c),l=d.useRef(null),m=(0,g.s)(b,l),[n,o]=d.useState(!1),[p,s]=d.useState("");return d.useEffect(()=>{let a=l.current;a&&s((a.textContent??"").trim())},[i.children]),(0,w.jsx)(D.ItemSlot,{scope:c,disabled:f,textValue:h??p,children:(0,w.jsx)(r.q7,{asChild:!0,...k,focusable:!f,children:(0,w.jsx)(q.sG.div,{role:"menuitem","data-highlighted":n?"":void 0,"aria-disabled":f||void 0,"data-disabled":f?"":void 0,...i,ref:m,onPointerMove:(0,e.mK)(a.onPointerMove,aE(a=>{f?j.onItemLeave(a):(j.onItemEnter(a),a.defaultPrevented||a.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,e.mK)(a.onPointerLeave,aE(a=>j.onItemLeave(a))),onFocus:(0,e.mK)(a.onFocus,()=>o(!0)),onBlur:(0,e.mK)(a.onBlur,()=>o(!1))})})})}),ag=d.forwardRef((a,b)=>{let{checked:c=!1,onCheckedChange:d,...f}=a;return(0,w.jsx)(ao,{scope:a.__scopeMenu,checked:c,children:(0,w.jsx)(ae,{role:"menuitemcheckbox","aria-checked":aC(c)?"mixed":c,...f,ref:b,"data-state":aD(c),onSelect:(0,e.mK)(f.onSelect,()=>d?.(!!aC(c)||!c),{checkForDefaultPrevented:!1})})})});ag.displayName="MenuCheckboxItem";var ah="MenuRadioGroup",[ai,aj]=G(ah,{value:void 0,onValueChange:()=>{}}),ak=d.forwardRef((a,b)=>{let{value:c,onValueChange:d,...e}=a,f=(0,t.c)(d);return(0,w.jsx)(ai,{scope:a.__scopeMenu,value:c,onValueChange:f,children:(0,w.jsx)(aa,{...e,ref:b})})});ak.displayName=ah;var al="MenuRadioItem",am=d.forwardRef((a,b)=>{let{value:c,...d}=a,f=aj(al,a.__scopeMenu),g=c===f.value;return(0,w.jsx)(ao,{scope:a.__scopeMenu,checked:g,children:(0,w.jsx)(ae,{role:"menuitemradio","aria-checked":g,...d,ref:b,"data-state":aD(g),onSelect:(0,e.mK)(d.onSelect,()=>f.onValueChange?.(c),{checkForDefaultPrevented:!1})})})});am.displayName=al;var an="MenuItemIndicator",[ao,ap]=G(an,{checked:!1}),aq=d.forwardRef((a,b)=>{let{__scopeMenu:c,forceMount:d,...e}=a,f=ap(an,c);return(0,w.jsx)(p.C,{present:d||aC(f.checked)||!0===f.checked,children:(0,w.jsx)(q.sG.span,{...e,ref:b,"data-state":aD(f.checked)})})});aq.displayName=an;var ar=d.forwardRef((a,b)=>{let{__scopeMenu:c,...d}=a;return(0,w.jsx)(q.sG.div,{role:"separator","aria-orientation":"horizontal",...d,ref:b})});ar.displayName="MenuSeparator";var as=d.forwardRef((a,b)=>{let{__scopeMenu:c,...d}=a,e=I(c);return(0,w.jsx)(n.i3,{...e,...d,ref:b})});as.displayName="MenuArrow";var at="MenuSub",[au,av]=G(at),aw=a=>{let{__scopeMenu:b,children:c,open:e=!1,onOpenChange:f}=a,g=L(at,b),h=I(b),[i,j]=d.useState(null),[k,l]=d.useState(null),o=(0,t.c)(f);return d.useEffect(()=>(!1===g.open&&o(!1),()=>o(!1)),[g.open,o]),(0,w.jsx)(n.bL,{...h,children:(0,w.jsx)(K,{scope:b,open:e,onOpenChange:o,content:k,onContentChange:l,children:(0,w.jsx)(au,{scope:b,contentId:(0,m.B)(),triggerId:(0,m.B)(),trigger:i,onTriggerChange:j,children:c})})})};aw.displayName=at;var ax="MenuSubTrigger",ay=d.forwardRef((a,b)=>{let c=L(ax,a.__scopeMenu),f=N(ax,a.__scopeMenu),h=av(ax,a.__scopeMenu),i=W(ax,a.__scopeMenu),j=d.useRef(null),{pointerGraceTimerRef:k,onPointerGraceIntentChange:l}=i,m={__scopeMenu:a.__scopeMenu},n=d.useCallback(()=>{j.current&&window.clearTimeout(j.current),j.current=null},[]);return d.useEffect(()=>n,[n]),d.useEffect(()=>{let a=k.current;return()=>{window.clearTimeout(a),l(null)}},[k,l]),(0,w.jsx)(P,{asChild:!0,...m,children:(0,w.jsx)(af,{id:h.triggerId,"aria-haspopup":"menu","aria-expanded":c.open,"aria-controls":h.contentId,"data-state":aB(c.open),...a,ref:(0,g.t)(b,h.onTriggerChange),onClick:b=>{a.onClick?.(b),a.disabled||b.defaultPrevented||(b.currentTarget.focus(),c.open||c.onOpenChange(!0))},onPointerMove:(0,e.mK)(a.onPointerMove,aE(b=>{i.onItemEnter(b),!b.defaultPrevented&&(a.disabled||c.open||j.current||(i.onPointerGraceIntentChange(null),j.current=window.setTimeout(()=>{c.onOpenChange(!0),n()},100)))})),onPointerLeave:(0,e.mK)(a.onPointerLeave,aE(a=>{n();let b=c.content?.getBoundingClientRect();if(b){let d=c.content?.dataset.side,e="right"===d,f=b[e?"left":"right"],g=b[e?"right":"left"];i.onPointerGraceIntentChange({area:[{x:a.clientX+(e?-5:5),y:a.clientY},{x:f,y:b.top},{x:g,y:b.top},{x:g,y:b.bottom},{x:f,y:b.bottom}],side:d}),window.clearTimeout(k.current),k.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(a),a.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:(0,e.mK)(a.onKeyDown,b=>{let d=""!==i.searchRef.current;a.disabled||d&&" "===b.key||A[f.dir].includes(b.key)&&(c.onOpenChange(!0),c.content?.focus(),b.preventDefault())})})})});ay.displayName=ax;var az="MenuSubContent",aA=d.forwardRef((a,b)=>{let c=S(U,a.__scopeMenu),{forceMount:f=c.forceMount,...h}=a,i=L(U,a.__scopeMenu),j=N(U,a.__scopeMenu),k=av(az,a.__scopeMenu),l=d.useRef(null),m=(0,g.s)(b,l);return(0,w.jsx)(D.Provider,{scope:a.__scopeMenu,children:(0,w.jsx)(p.C,{present:f||i.open,children:(0,w.jsx)(D.Slot,{scope:a.__scopeMenu,children:(0,w.jsx)(_,{id:k.contentId,"aria-labelledby":k.triggerId,...h,ref:m,align:"start",side:"rtl"===j.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:a=>{j.isUsingKeyboardRef.current&&l.current?.focus(),a.preventDefault()},onCloseAutoFocus:a=>a.preventDefault(),onFocusOutside:(0,e.mK)(a.onFocusOutside,a=>{a.target!==k.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:(0,e.mK)(a.onEscapeKeyDown,a=>{j.onClose(),a.preventDefault()}),onKeyDown:(0,e.mK)(a.onKeyDown,a=>{let b=a.currentTarget.contains(a.target),c=B[j.dir].includes(a.key);b&&c&&(i.onOpenChange(!1),k.trigger?.focus(),a.preventDefault())})})})})})});function aB(a){return a?"open":"closed"}function aC(a){return"indeterminate"===a}function aD(a){return aC(a)?"indeterminate":a?"checked":"unchecked"}function aE(a){return b=>"mouse"===b.pointerType?a(b):void 0}aA.displayName=az;var aF=O,aG=P,aH=T,aI=X,aJ=aa,aK=ab,aL=ae,aM=ag,aN=ak,aO=am,aP=aq,aQ=ar,aR=as,aS=aw,aT=ay,aU=aA},88205:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("file-code",[["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}]])},88617:(a,b,c)=>{"use strict";c.d(b,{RG:()=>v,bL:()=>E,q7:()=>F});var d=c(38301),e=c(87868),f=c(825),g=c(92808),h=c(2332),i=c(75656),j=c(6406),k=c(71700),l=c(11720),m=c(10498),n=c(21124),o="rovingFocusGroup.onEntryFocus",p={bubbles:!1,cancelable:!0},q="RovingFocusGroup",[r,s,t]=(0,f.N)(q),[u,v]=(0,h.A)(q,[t]),[w,x]=u(q),y=d.forwardRef((a,b)=>(0,n.jsx)(r.Provider,{scope:a.__scopeRovingFocusGroup,children:(0,n.jsx)(r.Slot,{scope:a.__scopeRovingFocusGroup,children:(0,n.jsx)(z,{...a,ref:b})})}));y.displayName=q;var z=d.forwardRef((a,b)=>{let{__scopeRovingFocusGroup:c,orientation:f,loop:h=!1,dir:i,currentTabStopId:r,defaultCurrentTabStopId:t,onCurrentTabStopIdChange:u,onEntryFocus:v,preventScrollOnEntryFocus:x=!1,...y}=a,z=d.useRef(null),A=(0,g.s)(b,z),B=(0,m.jH)(i),[C,E]=(0,l.i)({prop:r,defaultProp:t??null,onChange:u,caller:q}),[F,G]=d.useState(!1),H=(0,k.c)(v),I=s(c),J=d.useRef(!1),[K,L]=d.useState(0);return d.useEffect(()=>{let a=z.current;if(a)return a.addEventListener(o,H),()=>a.removeEventListener(o,H)},[H]),(0,n.jsx)(w,{scope:c,orientation:f,dir:B,loop:h,currentTabStopId:C,onItemFocus:d.useCallback(a=>E(a),[E]),onItemShiftTab:d.useCallback(()=>G(!0),[]),onFocusableItemAdd:d.useCallback(()=>L(a=>a+1),[]),onFocusableItemRemove:d.useCallback(()=>L(a=>a-1),[]),children:(0,n.jsx)(j.sG.div,{tabIndex:F||0===K?-1:0,"data-orientation":f,...y,ref:A,style:{outline:"none",...a.style},onMouseDown:(0,e.mK)(a.onMouseDown,()=>{J.current=!0}),onFocus:(0,e.mK)(a.onFocus,a=>{let b=!J.current;if(a.target===a.currentTarget&&b&&!F){let b=new CustomEvent(o,p);if(a.currentTarget.dispatchEvent(b),!b.defaultPrevented){let a=I().filter(a=>a.focusable);D([a.find(a=>a.active),a.find(a=>a.id===C),...a].filter(Boolean).map(a=>a.ref.current),x)}}J.current=!1}),onBlur:(0,e.mK)(a.onBlur,()=>G(!1))})})}),A="RovingFocusGroupItem",B=d.forwardRef((a,b)=>{let{__scopeRovingFocusGroup:c,focusable:f=!0,active:g=!1,tabStopId:h,children:k,...l}=a,m=(0,i.B)(),o=h||m,p=x(A,c),q=p.currentTabStopId===o,t=s(c),{onFocusableItemAdd:u,onFocusableItemRemove:v,currentTabStopId:w}=p;return d.useEffect(()=>{if(f)return u(),()=>v()},[f,u,v]),(0,n.jsx)(r.ItemSlot,{scope:c,id:o,focusable:f,active:g,children:(0,n.jsx)(j.sG.span,{tabIndex:q?0:-1,"data-orientation":p.orientation,...l,ref:b,onMouseDown:(0,e.mK)(a.onMouseDown,a=>{f?p.onItemFocus(o):a.preventDefault()}),onFocus:(0,e.mK)(a.onFocus,()=>p.onItemFocus(o)),onKeyDown:(0,e.mK)(a.onKeyDown,a=>{if("Tab"===a.key&&a.shiftKey)return void p.onItemShiftTab();if(a.target!==a.currentTarget)return;let b=function(a,b,c){var d;let e=(d=a.key,"rtl"!==c?d:"ArrowLeft"===d?"ArrowRight":"ArrowRight"===d?"ArrowLeft":d);if(!("vertical"===b&&["ArrowLeft","ArrowRight"].includes(e))&&!("horizontal"===b&&["ArrowUp","ArrowDown"].includes(e)))return C[e]}(a,p.orientation,p.dir);if(void 0!==b){if(a.metaKey||a.ctrlKey||a.altKey||a.shiftKey)return;a.preventDefault();let c=t().filter(a=>a.focusable).map(a=>a.ref.current);if("last"===b)c.reverse();else if("prev"===b||"next"===b){"prev"===b&&c.reverse();let d=c.indexOf(a.currentTarget);c=p.loop?function(a,b){return a.map((c,d)=>a[(b+d)%a.length])}(c,d+1):c.slice(d+1)}setTimeout(()=>D(c))}}),children:"function"==typeof k?k({isCurrentTabStop:q,hasTabStop:null!=w}):k})})});B.displayName=A;var C={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function D(a,b=!1){let c=document.activeElement;for(let d of a)if(d===c||(d.focus({preventScroll:b}),document.activeElement!==c))return}var E=y,F=B},88633:a=>{"use strict";var b=Object.prototype.hasOwnProperty,c=Object.prototype.toString,d=Object.defineProperty,e=Object.getOwnPropertyDescriptor,f=function(a){return"function"==typeof Array.isArray?Array.isArray(a):"[object Array]"===c.call(a)},g=function(a){if(!a||"[object Object]"!==c.call(a))return!1;var d,e=b.call(a,"constructor"),f=a.constructor&&a.constructor.prototype&&b.call(a.constructor.prototype,"isPrototypeOf");if(a.constructor&&!e&&!f)return!1;for(d in a);return void 0===d||b.call(a,d)},h=function(a,b){d&&"__proto__"===b.name?d(a,b.name,{enumerable:!0,configurable:!0,value:b.newValue,writable:!0}):a[b.name]=b.newValue},i=function(a,c){if("__proto__"===c){if(!b.call(a,c))return;else if(e)return e(a,c).value}return a[c]};a.exports=function a(){var b,c,d,e,j,k,l=arguments[0],m=1,n=arguments.length,o=!1;for("boolean"==typeof l&&(o=l,l=arguments[1]||{},m=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});m{"use strict";c.d(b,{C1:()=>x,bL:()=>v});var d=c(38301),e=c(92808),f=c(2332),g=c(87868),h=c(11720),i=c(10350),j=c(96386),k=c(29988),l=c(6406),m=c(21124),n="Checkbox",[o,p]=(0,f.A)(n),[q,r]=o(n);function s(a){let{__scopeCheckbox:b,checked:c,children:e,defaultChecked:f,disabled:g,form:i,name:j,onCheckedChange:k,required:l,value:o="on",internal_do_not_use_render:p}=a,[r,s]=(0,h.i)({prop:c,defaultProp:f??!1,onChange:k,caller:n}),[t,u]=d.useState(null),[v,w]=d.useState(null),x=d.useRef(!1),y=!t||!!i||!!t.closest("form"),z={checked:r,disabled:g,setChecked:s,control:t,setControl:u,name:j,form:i,value:o,hasConsumerStoppedPropagationRef:x,required:l,defaultChecked:!A(f)&&f,isFormControl:y,bubbleInput:v,setBubbleInput:w};return(0,m.jsx)(q,{scope:b,...z,children:"function"==typeof p?p(z):e})}var t="CheckboxTrigger",u=d.forwardRef(({__scopeCheckbox:a,onKeyDown:b,onClick:c,...f},h)=>{let{control:i,value:j,disabled:k,checked:n,required:o,setControl:p,setChecked:q,hasConsumerStoppedPropagationRef:s,isFormControl:u,bubbleInput:v}=r(t,a),w=(0,e.s)(h,p),x=d.useRef(n);return d.useEffect(()=>{let a=i?.form;if(a){let b=()=>q(x.current);return a.addEventListener("reset",b),()=>a.removeEventListener("reset",b)}},[i,q]),(0,m.jsx)(l.sG.button,{type:"button",role:"checkbox","aria-checked":A(n)?"mixed":n,"aria-required":o,"data-state":B(n),"data-disabled":k?"":void 0,disabled:k,value:j,...f,ref:w,onKeyDown:(0,g.mK)(b,a=>{"Enter"===a.key&&a.preventDefault()}),onClick:(0,g.mK)(c,a=>{q(a=>!!A(a)||!a),v&&u&&(s.current=a.isPropagationStopped(),s.current||a.stopPropagation())})})});u.displayName=t;var v=d.forwardRef((a,b)=>{let{__scopeCheckbox:c,name:d,checked:e,defaultChecked:f,required:g,disabled:h,value:i,onCheckedChange:j,form:k,...l}=a;return(0,m.jsx)(s,{__scopeCheckbox:c,checked:e,defaultChecked:f,disabled:h,required:g,onCheckedChange:j,name:d,form:k,value:i,internal_do_not_use_render:({isFormControl:a})=>(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(u,{...l,ref:b,__scopeCheckbox:c}),a&&(0,m.jsx)(z,{__scopeCheckbox:c})]})})});v.displayName=n;var w="CheckboxIndicator",x=d.forwardRef((a,b)=>{let{__scopeCheckbox:c,forceMount:d,...e}=a,f=r(w,c);return(0,m.jsx)(k.C,{present:d||A(f.checked)||!0===f.checked,children:(0,m.jsx)(l.sG.span,{"data-state":B(f.checked),"data-disabled":f.disabled?"":void 0,...e,ref:b,style:{pointerEvents:"none",...a.style}})})});x.displayName=w;var y="CheckboxBubbleInput",z=d.forwardRef(({__scopeCheckbox:a,...b},c)=>{let{control:f,hasConsumerStoppedPropagationRef:g,checked:h,defaultChecked:k,required:n,disabled:o,name:p,value:q,form:s,bubbleInput:t,setBubbleInput:u}=r(y,a),v=(0,e.s)(c,u),w=(0,i.Z)(h),x=(0,j.X)(f);d.useEffect(()=>{if(!t)return;let a=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,b=!g.current;if(w!==h&&a){let c=new Event("click",{bubbles:b});t.indeterminate=A(h),a.call(t,!A(h)&&h),t.dispatchEvent(c)}},[t,w,h,g]);let z=d.useRef(!A(h)&&h);return(0,m.jsx)(l.sG.input,{type:"checkbox","aria-hidden":!0,defaultChecked:k??z.current,required:n,disabled:o,name:p,value:q,form:s,...b,tabIndex:-1,ref:v,style:{...b.style,...x,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function A(a){return"indeterminate"===a}function B(a){return A(a)?"indeterminate":a?"checked":"unchecked"}z.displayName=y},89989:(a,b,c)=>{"use strict";c.d(b,{B8:()=>D,UC:()=>F,bL:()=>C,l9:()=>E});var d=c(38301),e=c(87868),f=c(2332),g=c(88617),h=c(29988),i=c(6406),j=c(10498),k=c(11720),l=c(75656),m=c(21124),n="Tabs",[o,p]=(0,f.A)(n,[g.RG]),q=(0,g.RG)(),[r,s]=o(n),t=d.forwardRef((a,b)=>{let{__scopeTabs:c,value:d,onValueChange:e,defaultValue:f,orientation:g="horizontal",dir:h,activationMode:o="automatic",...p}=a,q=(0,j.jH)(h),[s,t]=(0,k.i)({prop:d,onChange:e,defaultProp:f??"",caller:n});return(0,m.jsx)(r,{scope:c,baseId:(0,l.B)(),value:s,onValueChange:t,orientation:g,dir:q,activationMode:o,children:(0,m.jsx)(i.sG.div,{dir:q,"data-orientation":g,...p,ref:b})})});t.displayName=n;var u="TabsList",v=d.forwardRef((a,b)=>{let{__scopeTabs:c,loop:d=!0,...e}=a,f=s(u,c),h=q(c);return(0,m.jsx)(g.bL,{asChild:!0,...h,orientation:f.orientation,dir:f.dir,loop:d,children:(0,m.jsx)(i.sG.div,{role:"tablist","aria-orientation":f.orientation,...e,ref:b})})});v.displayName=u;var w="TabsTrigger",x=d.forwardRef((a,b)=>{let{__scopeTabs:c,value:d,disabled:f=!1,...h}=a,j=s(w,c),k=q(c),l=A(j.baseId,d),n=B(j.baseId,d),o=d===j.value;return(0,m.jsx)(g.q7,{asChild:!0,...k,focusable:!f,active:o,children:(0,m.jsx)(i.sG.button,{type:"button",role:"tab","aria-selected":o,"aria-controls":n,"data-state":o?"active":"inactive","data-disabled":f?"":void 0,disabled:f,id:l,...h,ref:b,onMouseDown:(0,e.mK)(a.onMouseDown,a=>{f||0!==a.button||!1!==a.ctrlKey?a.preventDefault():j.onValueChange(d)}),onKeyDown:(0,e.mK)(a.onKeyDown,a=>{[" ","Enter"].includes(a.key)&&j.onValueChange(d)}),onFocus:(0,e.mK)(a.onFocus,()=>{let a="manual"!==j.activationMode;o||f||!a||j.onValueChange(d)})})})});x.displayName=w;var y="TabsContent",z=d.forwardRef((a,b)=>{let{__scopeTabs:c,value:e,forceMount:f,children:g,...j}=a,k=s(y,c),l=A(k.baseId,e),n=B(k.baseId,e),o=e===k.value,p=d.useRef(o);return d.useEffect(()=>{let a=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(a)},[]),(0,m.jsx)(h.C,{present:f||o,children:({present:c})=>(0,m.jsx)(i.sG.div,{"data-state":o?"active":"inactive","data-orientation":k.orientation,role:"tabpanel","aria-labelledby":l,hidden:!c,id:n,tabIndex:0,...j,ref:b,style:{...a.style,animationDuration:p.current?"0s":void 0},children:c&&g})})});function A(a,b){return`${a}-trigger-${b}`}function B(a,b){return`${a}-content-${b}`}z.displayName=y;var C=t,D=v,E=x,F=z},90133:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},90771:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("toggle-left",[["circle",{cx:"9",cy:"12",r:"3",key:"u3jwor"}],["rect",{width:"20",height:"14",x:"2",y:"5",rx:"7",key:"g7kal2"}]])},90783:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"invalidateCacheBelowFlightSegmentPath",{enumerable:!0,get:function(){return function a(b,c,f){let g=f.length<=2,[h,i]=f,j=(0,d.createRouterCacheKey)(i),k=c.parallelRoutes.get(h);if(!k)return;let l=b.parallelRoutes.get(h);if(l&&l!==k||(l=new Map(k),b.parallelRoutes.set(h,l)),g)return void l.delete(j);let m=k.get(j),n=l.get(j);n&&m&&(n===m&&(n={lazyData:n.lazyData,rsc:n.rsc,prefetchRsc:n.prefetchRsc,head:n.head,prefetchHead:n.prefetchHead,parallelRoutes:new Map(n.parallelRoutes)},l.set(j,n)),a(n,m,(0,e.getNextFlightSegmentPath)(f)))}}});let d=c(95812),e=c(21600);("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},91044:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("test-tube",[["path",{d:"M14.5 2v17.5c0 1.4-1.1 2.5-2.5 2.5c-1.4 0-2.5-1.1-2.5-2.5V2",key:"125lnx"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M14.5 16h-5",key:"1ox875"}]])},91349:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"invalidateCacheByRouterState",{enumerable:!0,get:function(){return e}});let d=c(95812);function e(a,b,c){for(let e in c[1]){let f=c[1][e][0],g=(0,d.createRouterCacheKey)(f),h=b.parallelRoutes.get(e);if(h){let b=new Map(h);b.delete(g),a.parallelRoutes.set(e,b)}}}("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},91351:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("file-box",[["path",{d:"M14.5 22H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"16lz6z"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M3 13.1a2 2 0 0 0-1 1.76v3.24a2 2 0 0 0 .97 1.78L6 21.7a2 2 0 0 0 2.03.01L11 19.9a2 2 0 0 0 1-1.76V14.9a2 2 0 0 0-.97-1.78L8 11.3a2 2 0 0 0-2.03-.01Z",key:"99pj1s"}],["path",{d:"M7 17v5",key:"1yj1jh"}],["path",{d:"M11.7 14.2 7 17l-4.7-2.8",key:"1yk8tc"}]])},92464:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"addBasePath",{enumerable:!0,get:function(){return f}});let d=c(42511),e=c(11107);function f(a,b){return(0,e.normalizePathTrailingSlash)((0,d.addPathPrefix)(a,""))}("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},92714:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]])},92800:(a,b)=>{"use strict";function c(a){return a.replace(/\/$/,"")||"/"}Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"removeTrailingSlash",{enumerable:!0,get:function(){return c}})},94104:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("clipboard-list",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]])},94122:(a,b,c)=>{"use strict";let d,e;c.d(b,{TW:()=>ap,YZ:()=>am,Zk:()=>o});var f,g=c(38301);let h=(0,g.createContext)(null);h.displayName="PanelGroupContext";let i={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},j=(f||(f=c.t(g,2)))["useId".toString()],k="function"==typeof j?j:()=>null,l=0;function m(a=null){let b=k(),c=(0,g.useRef)(a||b||null);return null===c.current&&(c.current=""+l++),null!=a?a:c.current}function n({children:a,className:b="",collapsedSize:c,collapsible:d,defaultSize:e,forwardedRef:f,id:j,maxSize:k,minSize:l,onCollapse:n,onExpand:o,onResize:p,order:q,style:r,tagName:s="div",...t}){let u=(0,g.useContext)(h);if(null===u)throw Error("Panel components must be rendered within a PanelGroup container");let{collapsePanel:v,expandPanel:w,getPanelSize:x,getPanelStyle:y,groupId:z,isPanelCollapsed:A,reevaluatePanelConstraints:B,registerPanel:C,resizePanel:D,unregisterPanel:E}=u,F=m(j),G=(0,g.useRef)({callbacks:{onCollapse:n,onExpand:o,onResize:p},constraints:{collapsedSize:c,collapsible:d,defaultSize:e,maxSize:k,minSize:l},id:F,idIsFromProps:void 0!==j,order:q});(0,g.useRef)({didLogMissingDefaultSizeWarning:!1}),(0,g.useImperativeHandle)(f,()=>({collapse:()=>{v(G.current)},expand:a=>{w(G.current,a)},getId:()=>F,getSize:()=>x(G.current),isCollapsed:()=>A(G.current),isExpanded:()=>!A(G.current),resize:a=>{D(G.current,a)}}),[v,w,x,A,F,D]);let H=y(G.current,e);return(0,g.createElement)(s,{...t,children:a,className:b,id:F,style:{...H,...r},[i.groupId]:z,[i.panel]:"",[i.panelCollapsible]:d||void 0,[i.panelId]:F,[i.panelSize]:parseFloat(""+H.flexGrow).toFixed(1)})}let o=(0,g.forwardRef)((a,b)=>(0,g.createElement)(n,{...a,forwardedRef:b}));n.displayName="Panel",o.displayName="forwardRef(Panel)";let p=null,q=-1,r=null;function s(a,b,c){var e,f,g;let h=function(a,b,c){let d=(b&C)!=0,e=(b&D)!=0,f=(b&E)!=0,g=(b&F)!=0;if(b){if(d)if(f)return"se-resize";else if(g)return"ne-resize";else return"e-resize";else if(e)if(f)return"sw-resize";else if(g)return"nw-resize";else return"w-resize";else if(f)return"s-resize";else if(g)return"n-resize"}switch(a){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}(a,b,0);p!==h&&(p=h,null===r&&(r=document.createElement("style"),d&&r.setAttribute("nonce",d),document.head.appendChild(r)),q>=0&&(null==(g=r.sheet)||g.removeRule(q)),q=null!=(e=null==(f=r.sheet)?void 0:f.insertRule(`*{cursor: ${h} !important;}`))?e:-1)}function t(a){return"keydown"===a.type}function u(a){return a.type.startsWith("pointer")}function v(a){return a.type.startsWith("mouse")}function w(a){if(u(a)){if(a.isPrimary)return{x:a.clientX,y:a.clientY}}else if(v(a))return{x:a.clientX,y:a.clientY};return{x:1/0,y:1/0}}let x=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function y(a){let b=a.length;for(;b--;){let c=a[b];if(U(c,"Missing node"),function(a){let b=getComputedStyle(a);return!!("fixed"===b.position||"auto"!==b.zIndex&&("static"!==b.position||function(a){var b;let c=getComputedStyle(null!=(b=B(a))?b:a).display;return"flex"===c||"inline-flex"===c}(a))||1>+b.opacity||"transform"in b&&"none"!==b.transform||"webkitTransform"in b&&"none"!==b.webkitTransform||"mixBlendMode"in b&&"normal"!==b.mixBlendMode||"filter"in b&&"none"!==b.filter||"webkitFilter"in b&&"none"!==b.webkitFilter||"isolation"in b&&"isolate"===b.isolation||x.test(b.willChange))||"touch"===b.webkitOverflowScrolling}(c))return c}return null}function z(a){return a&&Number(getComputedStyle(a).zIndex)||0}function A(a){let b=[];for(;a;)b.push(a),a=B(a);return b}function B(a){let{parentNode:b}=a;return b&&b instanceof ShadowRoot?b.host:b}let C=1,D=2,E=4,F=8,G="coarse"===function(){if("function"==typeof matchMedia)return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}(),H=[],I=!1,J=new Map,K=new Map,L=new Set;function M(a){let{target:b}=a,{x:c,y:d}=w(a);I=!0,Q({target:b,x:c,y:d}),S(),H.length>0&&(T("down",a),R(),a.preventDefault(),P(b)||a.stopImmediatePropagation())}function N(a){let{x:b,y:c}=w(a);if(I&&"pointerleave"!==a.type&&0===a.buttons&&(I=!1,T("up",a)),!I){let{target:d}=a;Q({target:d,x:b,y:c})}T("move",a),R(),H.length>0&&a.preventDefault()}function O(a){let{target:b}=a,{x:c,y:d}=w(a);K.clear(),I=!1,H.length>0&&(a.preventDefault(),P(b)||a.stopImmediatePropagation()),T("up",a),Q({target:b,x:c,y:d}),R(),S()}function P(a){let b=a;for(;b;){if(b.hasAttribute(i.resizeHandle))return!0;b=b.parentElement}return!1}function Q({target:a,x:b,y:c}){H.splice(0);let d=null;(a instanceof HTMLElement||a instanceof SVGElement)&&(d=a),L.forEach(a=>{let{element:e,hitAreaMargins:f}=a,g=e.getBoundingClientRect(),{bottom:h,left:i,right:j,top:k}=g,l=G?f.coarse:f.fine;if(b>=i-l&&b<=j+l&&c>=k-l&&c<=h+l){if(null!==d&&document.contains(d)&&e!==d&&!e.contains(d)&&!d.contains(e)&&function(a,b){let c;if(a===b)throw Error("Cannot compare node with itself");let d={a:A(a),b:A(b)};for(;d.a.at(-1)===d.b.at(-1);)a=d.a.pop(),b=d.b.pop(),c=a;U(c,"Stacking order can only be calculated for elements with a common ancestor");let e={a:z(y(d.a)),b:z(y(d.b))};if(e.a===e.b){let a=c.childNodes,b={a:d.a.at(-1),b:d.b.at(-1)},e=a.length;for(;e--;){let c=a[e];if(c===b.a)return 1;if(c===b.b)return -1}}return Math.sign(e.a-e.b)}(d,e)>0){let a=d,b=!1;for(;a;){var m;if(a.contains(e))break;if(m=a.getBoundingClientRect(),m.xg.x&&m.yg.y){b=!0;break}a=a.parentElement}if(b)return}H.push(a)}})}function R(){let a=!1,b=!1;H.forEach(c=>{let{direction:d}=c;"horizontal"===d?a=!0:b=!0});let c=0;K.forEach(a=>{c|=a}),a&&b?s("intersection",c,I):a?s("horizontal",c,I):b?s("vertical",c,I):null!==r&&(document.head.removeChild(r),p=null,r=null,q=-1)}function S(){var a;null==(a=e)||a.abort();let b={capture:!0,signal:(e=new AbortController).signal};L.size&&(I?(H.length>0&&J.forEach((a,c)=>{let{body:d}=c;a>0&&(d.addEventListener("contextmenu",O,b),d.addEventListener("pointerleave",N,b),d.addEventListener("pointermove",N,b))}),J.forEach((a,c)=>{let{body:d}=c;d.addEventListener("pointerup",O,b),d.addEventListener("pointercancel",O,b)})):J.forEach((a,c)=>{let{body:d}=c;a>0&&(d.addEventListener("pointerdown",M,b),d.addEventListener("pointermove",N,b))}))}function T(a,b){L.forEach(c=>{let{setResizeHandlerState:d}=c;d(a,H.includes(c),b)})}function U(a,b){if(!a)throw console.error(b),Error(b)}function V(a,b,c=10){return a.toFixed(c)===b.toFixed(c)?0:a>b?1:-1}function W(a,b,c=10){return 0===V(a,b,c)}function X(a,b,c){return 0===V(a,b,c)}function Y({panelConstraints:a,panelIndex:b,size:c}){let d=a[b];U(null!=d,`Panel constraints not found for index ${b}`);let{collapsedSize:e=0,collapsible:f,maxSize:g=100,minSize:h=0}=d;return 0>V(c,h)&&(c=f&&0>V(c,(e+h)/2)?e:h),c=parseFloat((c=Math.min(g,c)).toFixed(10))}function Z({delta:a,initialLayout:b,panelConstraints:c,pivotIndices:d,prevLayout:e,trigger:f}){if(X(a,0))return b;let g=[...b],[h,i]=d;U(null!=h,"Invalid first pivot index"),U(null!=i,"Invalid second pivot index");let j=0;if("keyboard"===f){{let d=a<0?i:h,e=c[d];U(e,`Panel constraints not found for index ${d}`);let{collapsedSize:f=0,collapsible:g,minSize:j=0}=e;if(g){let c=b[d];if(U(null!=c,`Previous layout not found for panel index ${d}`),X(c,f)){let b=j-c;V(b,Math.abs(a))>0&&(a=a<0?0-b:b)}}}{let d=a<0?h:i,e=c[d];U(e,`No panel constraints found for index ${d}`);let{collapsedSize:f=0,collapsible:g,minSize:j=0}=e;if(g){let c=b[d];if(U(null!=c,`Previous layout not found for panel index ${d}`),X(c,j)){let b=c-f;V(b,Math.abs(a))>0&&(a=a<0?0-b:b)}}}}{let d=a<0?1:-1,e=a<0?i:h,f=0;for(;;){let a=b[e];if(U(null!=a,`Previous layout not found for panel index ${e}`),f+=Y({panelConstraints:c,panelIndex:e,size:100})-a,(e+=d)<0||e>=c.length)break}let g=Math.min(Math.abs(a),Math.abs(f));a=a<0?0-g:g}{let d=a<0?h:i;for(;d>=0&&d=0))break;a<0?d--:d++}}if(function(a,b,c){if(a.length!==b.length)return!1;for(let c=0;c=0&&d0?d--:d++}}}return X(g.reduce((a,b)=>b+a,0),100)?g:e}function $(a,b=document){return Array.from(b.querySelectorAll(`[${i.resizeHandleId}][data-panel-group-id="${a}"]`))}function _(a,b,c=document){let d=$(a,c).findIndex(a=>a.getAttribute(i.resizeHandleId)===b);return null!=d?d:null}function aa(a,b,c){let d=_(a,b,c);return null!=d?[d,d+1]:[-1,-1]}function ab(a,b=document){if((b instanceof HTMLElement||"object"==typeof b&&null!==b&&"tagName"in b&&"getAttribute"in b)&&b.dataset.panelGroupId==a)return b;let c=b.querySelector(`[data-panel-group][data-panel-group-id="${a}"]`);return c||null}function ac(a,b=document){let c=b.querySelector(`[${i.resizeHandleId}="${a}"]`);return c||null}function ad(a,b){let{x:c,y:d}=w(b);return"horizontal"===a?c:d}function ae(a,b,c){b.forEach((b,d)=>{let e=a[d];U(e,`Panel data not found for index ${d}`);let{callbacks:f,constraints:g,id:h}=e,{collapsedSize:i=0,collapsible:j}=g,k=c[h];if(null==k||b!==k){c[h]=b;let{onCollapse:a,onExpand:d,onResize:e}=f;e&&e(b,k),j&&(a||d)&&(d&&(null==k||W(k,i))&&!W(b,i)&&d(),a&&(null==k||!W(k,i))&&W(b,i)&&a())}})}function af(a,b){if(a.length!==b.length)return!1;for(let c=0;clocalStorage.getItem(a),a.setItem=(a,b)=>{localStorage.setItem(a,b)};else throw Error("localStorage not supported in this environment")}catch(b){console.error(b),a.getItem=()=>null,a.setItem=()=>{}}}function ah(a){return`react-resizable-panels:${a}`}function ai(a,b,c,d,e){var f;let g=ah(a),h=b.map(a=>{let{constraints:b,id:c,idIsFromProps:d,order:e}=a;return d?c:e?`${e}:${JSON.stringify(b)}`:JSON.stringify(b)}).sort((a,b)=>a.localeCompare(b)).join(","),i=null!=(f=function(a,b){try{let c=ah(a),d=b.getItem(c);if(d){let a=JSON.parse(d);if("object"==typeof a&&null!=a)return a}}catch(a){}return null}(a,e))?f:{};i[h]={expandToSizes:Object.fromEntries(c.entries()),layout:d};try{e.setItem(g,JSON.stringify(i))}catch(a){console.error(a)}}let aj={getItem:a=>(ag(aj),aj.getItem(a)),setItem:(a,b)=>{ag(aj),aj.setItem(a,b)}},ak={};function al({autoSaveId:a=null,children:b,className:c="",direction:d,forwardedRef:e,id:f=null,onLayout:j=null,keyboardResizeBy:k=null,storage:l=aj,style:n,tagName:o="div",...p}){let q=m(f),r=(0,g.useRef)(null),[s,w]=(0,g.useState)(null),[x,y]=(0,g.useState)([]),z=function(){let[a,b]=(0,g.useState)(0);return(0,g.useCallback)(()=>b(a=>a+1),[])}(),A=(0,g.useRef)({}),B=(0,g.useRef)(new Map),G=(0,g.useRef)(0),H=(0,g.useRef)({autoSaveId:a,direction:d,dragState:s,id:q,keyboardResizeBy:k,onLayout:j,storage:l}),I=(0,g.useRef)({layout:x,panelDataArray:[],panelDataArrayChanged:!1});(0,g.useRef)({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),(0,g.useImperativeHandle)(e,()=>({getId:()=>H.current.id,getLayout:()=>{let{layout:a}=I.current;return a},setLayout:a=>{let{onLayout:b}=H.current,{layout:c,panelDataArray:d}=I.current,e=function({layout:a,panelConstraints:b}){let c=[...a],d=c.reduce((a,b)=>a+b,0);if(c.length!==b.length)throw Error(`Invalid ${b.length} panel layout: ${c.map(a=>`${a}%`).join(", ")}`);if(!X(d,100)&&c.length>0)for(let a=0;aa.constraints)});!function(a,b){if(a.length!==b.length)return!1;for(let c=0;c{if(!f)return;let a=b.current;U(a,"Eager values not found");let{panelDataArray:e}=a;U(null!=ab(c,f),`No group found for id "${c}"`);let g=$(c,f);U(g,`No resize handles found for group id "${c}"`);let j=g.map(a=>{let b=a.getAttribute(i.resizeHandleId);U(b,"Resize handle element has no handle id attribute");let[g,j]=function(a,b,c,d=document){var e,f,g,h;let i=ac(b,d),j=$(a,d),k=i?j.indexOf(i):-1;return[null!=(e=null==(f=c[k])?void 0:f.id)?e:null,null!=(g=null==(h=c[k+1])?void 0:h.id)?g:null]}(c,b,e,f);if(null==g||null==j)return()=>{};let k=a=>{if(!a.defaultPrevented&&"Enter"===a.key){a.preventDefault();let i=e.findIndex(a=>a.id===g);if(i>=0){let a=e[i];U(a,`No panel data found for index ${i}`);let g=d[i],{collapsedSize:j=0,collapsible:k,minSize:l=0}=a.constraints;if(null!=g&&k){let a=Z({delta:X(g,j)?l-j:j-g,initialLayout:d,panelConstraints:e.map(a=>a.constraints),pivotIndices:aa(c,b,f),prevLayout:d,trigger:"keyboard"});d!==a&&h(a)}}}};return a.addEventListener("keydown",k),()=>{a.removeEventListener("keydown",k)}});return()=>{j.forEach(a=>a())}},[f,a,b,c,d,e,h])}({committedValuesRef:H,eagerValuesRef:I,groupId:q,layout:x,panelDataArray:I.current.panelDataArray,setLayout:y,panelGroupElement:r.current}),(0,g.useEffect)(()=>{let{panelDataArray:b}=I.current;if(a){if(0===x.length||x.length!==b.length)return;let c=ak[a];null==c&&(c=function(a,b=10){let c=null;return(...d)=>{null!==c&&clearTimeout(c),c=setTimeout(()=>{a(...d)},b)}}(ai,100),ak[a]=c),c(a,[...b],new Map(B.current),x,l)}},[a,x,l]),(0,g.useEffect)(()=>{});let J=(0,g.useCallback)(a=>{let{onLayout:b}=H.current,{layout:c,panelDataArray:d}=I.current;if(a.constraints.collapsible){let e=d.map(a=>a.constraints),{collapsedSize:f=0,panelSize:g,pivotIndices:h}=ao(d,a,c);if(U(null!=g,`Panel size not found for panel "${a.id}"`),!W(g,f)){B.current.set(a.id,g);let i=Z({delta:an(d,a)===d.length-1?g-f:f-g,initialLayout:c,panelConstraints:e,pivotIndices:h,prevLayout:c,trigger:"imperative-api"});af(c,i)||(y(i),I.current.layout=i,b&&b(i),ae(d,i,A.current))}}},[]),L=(0,g.useCallback)((a,b)=>{let{onLayout:c}=H.current,{layout:d,panelDataArray:e}=I.current;if(a.constraints.collapsible){let f=e.map(a=>a.constraints),{collapsedSize:g=0,panelSize:h=0,minSize:i=0,pivotIndices:j}=ao(e,a,d),k=null!=b?b:i;if(W(h,g)){let b=B.current.get(a.id),g=null!=b&&b>=k?b:k,i=Z({delta:an(e,a)===e.length-1?h-g:g-h,initialLayout:d,panelConstraints:f,pivotIndices:j,prevLayout:d,trigger:"imperative-api"});af(d,i)||(y(i),I.current.layout=i,c&&c(i),ae(e,i,A.current))}}},[]),M=(0,g.useCallback)(a=>{let{layout:b,panelDataArray:c}=I.current,{panelSize:d}=ao(c,a,b);return U(null!=d,`Panel size not found for panel "${a.id}"`),d},[]),N=(0,g.useCallback)((a,b)=>{let{panelDataArray:c}=I.current,d=an(c,a);return function({defaultSize:a,dragState:b,layout:c,panelData:d,panelIndex:e,precision:f=3}){let g=c[e];return{flexBasis:0,flexGrow:null==g?void 0!=a?a.toFixed(f):"1":1===d.length?"1":g.toFixed(f),flexShrink:1,overflow:"hidden",pointerEvents:null!==b?"none":void 0}}({defaultSize:b,dragState:s,layout:x,panelData:c,panelIndex:d})},[s,x]),O=(0,g.useCallback)(a=>{let{layout:b,panelDataArray:c}=I.current,{collapsedSize:d=0,collapsible:e,panelSize:f}=ao(c,a,b);return U(null!=f,`Panel size not found for panel "${a.id}"`),!0===e&&W(f,d)},[]),P=(0,g.useCallback)(a=>{let{layout:b,panelDataArray:c}=I.current,{collapsedSize:d=0,collapsible:e,panelSize:f}=ao(c,a,b);return U(null!=f,`Panel size not found for panel "${a.id}"`),!e||V(f,d)>0},[]),Q=(0,g.useCallback)(a=>{let{panelDataArray:b}=I.current;b.push(a),b.sort((a,b)=>{let c=a.order,d=b.order;return null==c&&null==d?0:null==c?-1:null==d?1:c-d}),I.current.panelDataArrayChanged=!0,z()},[z]),R=(0,g.useCallback)(a=>{let b=!1,c=r.current;return c&&"rtl"===window.getComputedStyle(c,null).getPropertyValue("direction")&&(b=!0),function(c){var d,e;c.preventDefault();let f=r.current;if(!f)return()=>null;let{direction:g,dragState:h,id:j,keyboardResizeBy:k,onLayout:l}=H.current,{layout:m,panelDataArray:n}=I.current,{initialLayout:o}=null!=h?h:{},p=aa(j,a,f),q=function(a,b,c,d,e,f){if(t(a)){let b="horizontal"===c,d=0;d=a.shiftKey?100:null!=e?e:10;let f=0;switch(a.key){case"ArrowDown":f=b?0:d;break;case"ArrowLeft":f=b?-d:0;break;case"ArrowRight":f=b?d:0;break;case"ArrowUp":f=b?0:-d;break;case"End":f=100;break;case"Home":f=-100}return f}return null==d?0:function(a,b,c,d,e){let f="horizontal"===c,g=ac(b,e);U(g,`No resize handle element found for id "${b}"`);let h=g.getAttribute(i.groupId);U(h,"Resize handle element has no group id attribute");let{initialCursorPosition:j}=d,k=ad(c,a),l=ab(h,e);U(l,`No group element found for id "${h}"`);let m=l.getBoundingClientRect();return(k-j)/(f?m.width:m.height)*100}(a,b,c,d,f)}(c,a,g,h,k,f),s="horizontal"===g;s&&b&&(q=-q);let w=Z({delta:q,initialLayout:null!=o?o:m,panelConstraints:n.map(a=>a.constraints),pivotIndices:p,prevLayout:m,trigger:t(c)?"keyboard":"mouse-or-touch"}),x=!af(m,w);(u(c)||v(c))&&G.current!=q&&((G.current=q,x||0===q)?K.set(a,0):s?(d=q<0?C:D,K.set(a,d)):(e=q<0?E:F,K.set(a,e))),x&&(y(w),I.current.layout=w,l&&l(w),ae(n,w,A.current))}},[]),S=(0,g.useCallback)((a,b)=>{let{onLayout:c}=H.current,{layout:d,panelDataArray:e}=I.current,f=e.map(a=>a.constraints),{panelSize:g,pivotIndices:h}=ao(e,a,d);U(null!=g,`Panel size not found for panel "${a.id}"`);let i=Z({delta:an(e,a)===e.length-1?g-b:b-g,initialLayout:d,panelConstraints:f,pivotIndices:h,prevLayout:d,trigger:"imperative-api"});af(d,i)||(y(i),I.current.layout=i,c&&c(i),ae(e,i,A.current))},[]),T=(0,g.useCallback)((a,b)=>{let{layout:c,panelDataArray:d}=I.current,{collapsedSize:e=0,collapsible:f}=b,{collapsedSize:g=0,collapsible:h,maxSize:i=100,minSize:j=0}=a.constraints,{panelSize:k}=ao(d,a,c);null!=k&&(f&&h&&W(k,e)?W(e,g)||S(a,g):ki&&S(a,i))},[S]),_=(0,g.useCallback)((a,b)=>{let{direction:c}=H.current,{layout:d}=I.current;if(!r.current)return;let e=ac(a,r.current);U(e,`Drag handle element not found for id "${a}"`);let f=ad(c,b);w({dragHandleId:a,dragHandleRect:e.getBoundingClientRect(),initialCursorPosition:f,initialLayout:d})},[]),ag=(0,g.useCallback)(()=>{w(null)},[]),ah=(0,g.useCallback)(a=>{let{panelDataArray:b}=I.current,c=an(b,a);c>=0&&(b.splice(c,1),delete A.current[a.id],I.current.panelDataArrayChanged=!0,z())},[z]),al=(0,g.useMemo)(()=>({collapsePanel:J,direction:d,dragState:s,expandPanel:L,getPanelSize:M,getPanelStyle:N,groupId:q,isPanelCollapsed:O,isPanelExpanded:P,reevaluatePanelConstraints:T,registerPanel:Q,registerResizeHandle:R,resizePanel:S,startDragging:_,stopDragging:ag,unregisterPanel:ah,panelGroupElement:r.current}),[J,s,d,L,M,N,q,O,P,T,Q,R,S,_,ag,ah]);return(0,g.createElement)(h.Provider,{value:al},(0,g.createElement)(o,{...p,children:b,className:c,id:f,ref:r,style:{display:"flex",flexDirection:"horizontal"===d?"row":"column",height:"100%",overflow:"hidden",width:"100%",...n},[i.group]:"",[i.groupDirection]:d,[i.groupId]:q}))}let am=(0,g.forwardRef)((a,b)=>(0,g.createElement)(al,{...a,forwardedRef:b}));function an(a,b){return a.findIndex(a=>a===b||a.id===b.id)}function ao(a,b,c){let d=an(a,b),e=d===a.length-1,f=c[d];return{...b.constraints,panelSize:f,pivotIndices:e?[d-1,d]:[d,d+1]}}function ap({children:a=null,className:b="",disabled:c=!1,hitAreaMargins:d,id:e,onBlur:f,onClick:j,onDragging:k,onFocus:l,onPointerDown:n,onPointerUp:o,style:p={},tabIndex:q=0,tagName:r="div",...s}){var t,u;let v=(0,g.useRef)(null),w=(0,g.useRef)({onClick:j,onDragging:k,onPointerDown:n,onPointerUp:o});(0,g.useEffect)(()=>{w.current.onClick=j,w.current.onDragging=k,w.current.onPointerDown=n,w.current.onPointerUp=o});let x=(0,g.useContext)(h);if(null===x)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");let{direction:y,groupId:z,registerResizeHandle:A,startDragging:B,stopDragging:C,panelGroupElement:D}=x,E=m(e),[F,G]=(0,g.useState)("inactive"),[I,M]=(0,g.useState)(!1),[N,O]=(0,g.useState)(null),P=(0,g.useRef)({state:F});(0,g.useEffect)(()=>{if(c)O(null);else{let a=A(E);O(()=>a)}},[c,E,A]);let Q=null!=(t=null==d?void 0:d.coarse)?t:15,T=null!=(u=null==d?void 0:d.fine)?u:5;return(0,g.useEffect)(()=>{if(c||null==N)return;let a=v.current;U(a,"Element ref not attached");let b=!1;return function(a,b,c,d,e){var f;let{ownerDocument:g}=b,h={direction:c,element:b,hitAreaMargins:d,setResizeHandlerState:e},i=null!=(f=J.get(g))?f:0;return J.set(g,i+1),L.add(h),S(),function(){var b;K.delete(a),L.delete(h);let c=null!=(b=J.get(g))?b:1;if(J.set(g,c-1),S(),1===c&&J.delete(g),H.includes(h)){let a=H.indexOf(h);a>=0&&H.splice(a,1),R(),e("up",!0,null)}}}(E,a,y,{coarse:Q,fine:T},(a,c,d)=>{if(!c)return void G("inactive");switch(a){case"down":{G("drag"),b=!1,U(d,'Expected event to be defined for "down" action'),B(E,d);let{onDragging:a,onPointerDown:c}=w.current;null==a||a(!0),null==c||c();break}case"move":{let{state:a}=P.current;b=!0,"drag"!==a&&G("hover"),U(d,'Expected event to be defined for "move" action'),N(d);break}case"up":{G("hover"),C();let{onClick:a,onDragging:c,onPointerUp:d}=w.current;null==c||c(!1),null==d||d(),b||null==a||a()}}})},[Q,y,c,T,A,E,N,B,C]),!function({disabled:a,handleId:b,resizeHandler:c,panelGroupElement:d}){(0,g.useEffect)(()=>{if(a||null==c||null==d)return;let e=ac(b,d);if(null==e)return;let f=a=>{if(!a.defaultPrevented)switch(a.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":a.preventDefault(),c(a);break;case"F6":{a.preventDefault();let c=e.getAttribute(i.groupId);U(c,`No group element found for id "${c}"`);let f=$(c,d),g=_(c,b,d);U(null!==g,`No resize element found for id "${b}"`);let h=a.shiftKey?g>0?g-1:f.length-1:g+1{e.removeEventListener("keydown",f)}},[d,a,b,c])}({disabled:c,handleId:E,resizeHandler:N,panelGroupElement:D}),(0,g.createElement)(r,{...s,children:a,className:b,id:e,onBlur:()=>{M(!1),null==f||f()},onFocus:()=>{M(!0),null==l||l()},ref:v,role:"separator",style:{touchAction:"none",userSelect:"none",...p},tabIndex:q,[i.groupDirection]:y,[i.groupId]:z,[i.resizeHandle]:"",[i.resizeHandleActive]:"drag"===F?"pointer":I?"keyboard":void 0,[i.resizeHandleEnabled]:!c,[i.resizeHandleId]:E,[i.resizeHandleState]:F})}al.displayName="PanelGroup",am.displayName="forwardRef(PanelGroup)",ap.displayName="PanelResizeHandle"},94684:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},96429:(a,b,c)=>{"use strict";c.d(b,{d:()=>e});let d={};function e(a,b){let c=b||d;return f(a,"boolean"!=typeof c.includeImageAlt||c.includeImageAlt,"boolean"!=typeof c.includeHtml||c.includeHtml)}function f(a,b,c){var d;if((d=a)&&"object"==typeof d){if("value"in a)return"html"!==a.type||c?a.value:"";if(b&&"alt"in a&&a.alt)return a.alt;if("children"in a)return g(a.children,b,c)}return Array.isArray(a)?g(a,b,c):""}function g(a,b,c){let d=[],e=-1;for(;++e{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("key-round",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]])},97150:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{addSearchParamsToPageSegments:function(){return m},handleAliasedPrefetchEntry:function(){return l}});let d=c(72454),e=c(97163),f=c(76143),g=c(11830),h=c(95812),i=c(28763),j=c(73486),k=c(3219);function l(a,b,c,l,n){let o,p=b.tree,q=b.cache,r=(0,g.createHrefFromUrl)(l),s=[];if("string"==typeof c)return!1;for(let b of c){if(!function a(b){if(!b)return!1;let c=b[2];if(b[3])return!0;for(let b in c)if(a(c[b]))return!0;return!1}(b.seedData))continue;let c=b.tree;c=m(c,Object.fromEntries(l.searchParams));let{seedData:g,isRootRender:j,pathToSegment:n}=b,t=["",...n];c=m(c,Object.fromEntries(l.searchParams));let u=(0,f.applyRouterStatePatchToTree)(t,p,c,r),v=(0,e.createEmptyCacheNode)();if(j&&g){let b=g[1];v.loading=g[3],v.rsc=b,function a(b,c,e,f,g){if(0!==Object.keys(f[1]).length)for(let i in f[1]){let j,k=f[1][i],l=k[0],m=(0,h.createRouterCacheKey)(l),n=null!==g&&void 0!==g[2][i]?g[2][i]:null;if(null!==n){let a=n[1],c=n[3];j={lazyData:null,rsc:l.includes(d.PAGE_SEGMENT_KEY)?null:a,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:c,navigatedAt:b}}else j={lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:null,navigatedAt:-1};let o=c.parallelRoutes.get(i);o?o.set(m,j):c.parallelRoutes.set(i,new Map([[m,j]])),a(b,j,e,k,n)}}(a,v,q,c,g)}else v.rsc=q.rsc,v.prefetchRsc=q.prefetchRsc,v.loading=q.loading,v.parallelRoutes=new Map(q.parallelRoutes),(0,i.fillCacheWithNewSubTreeDataButOnlyLoading)(a,v,q,b);for(let a of(u&&(p=u,q=v,o=!0),(0,k.generateSegmentsFromPatch)(c))){let c=[...b.pathToSegment,...a];c[c.length-1]!==d.DEFAULT_SEGMENT_KEY&&s.push(c)}}return!!o&&(n.patchedTree=p,n.cache=q,n.canonicalUrl=r,n.hashFragment=l.hash,n.scrollableSegments=s,(0,j.handleMutable)(b,n))}function m(a,b){let[c,e,...f]=a;if(c.includes(d.PAGE_SEGMENT_KEY))return[(0,d.addSearchParamsIfPageSegment)(c,b),e,...f];let g={};for(let[a,c]of Object.entries(e))g[a]=m(c,b);return[c,g,...f]}("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},97163:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{createEmptyCacheNode:function(){return G},createPrefetchURL:function(){return E},default:function(){return K},isExternalURL:function(){return D}});let d=c(35288),e=c(55823),f=c(21124),g=e._(c(38301)),h=c(12889),i=c(12591),j=c(11830),k=c(38398),l=c(22158),m=c(27963),n=c(92464),o=c(38065),p=c(47939),q=c(22398),r=c(25963),s=c(35103),t=c(33043),u=c(18151),v=c(58997),w=c(41439),x=c(69296),y=c(47847);c(30551);let z=d._(c(99384)),A=d._(c(54160)),B=c(12263),C={};function D(a){return a.origin!==window.location.origin}function E(a){let b;if((0,m.isBot)(window.navigator.userAgent))return null;try{b=new URL((0,n.addBasePath)(a),window.location.href)}catch(b){throw Object.defineProperty(Error("Cannot prefetch '"+a+"' because it cannot be converted to a URL."),"__NEXT_ERROR_CODE",{value:"E234",enumerable:!1,configurable:!0})}return D(b)?null:b}function F(a){let{appRouterState:b}=a;return(0,g.useInsertionEffect)(()=>{let{tree:a,pushRef:c,canonicalUrl:d}=b,e={...c.preserveCustomHistoryState?window.history.state:{},__NA:!0,__PRIVATE_NEXTJS_INTERNALS_TREE:a};c.pendingPush&&(0,j.createHrefFromUrl)(new URL(window.location.href))!==d?(c.pendingPush=!1,window.history.pushState(e,"",d)):window.history.replaceState(e,"",d)},[b]),(0,g.useEffect)(()=>{},[b.nextUrl,b.tree]),null}function G(){return{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:null,navigatedAt:-1}}function H(a){null==a&&(a={});let b=window.history.state,c=null==b?void 0:b.__NA;c&&(a.__NA=c);let d=null==b?void 0:b.__PRIVATE_NEXTJS_INTERNALS_TREE;return d&&(a.__PRIVATE_NEXTJS_INTERNALS_TREE=d),a}function I(a){let{headCacheNode:b}=a,c=null!==b?b.head:null,d=null!==b?b.prefetchHead:null,e=null!==d?d:c;return(0,g.useDeferredValue)(c,e)}function J(a){let b,{actionQueue:c,assetPrefix:d,globalError:e}=a,j=(0,l.useActionQueue)(c),{canonicalUrl:m}=j,{searchParams:n,pathname:v}=(0,g.useMemo)(()=>{let a=new URL(m,"http://n");return{searchParams:a.searchParams,pathname:(0,t.hasBasePath)(a.pathname)?(0,s.removeBasePath)(a.pathname):a.pathname}},[m]);(0,g.useEffect)(()=>{function a(a){var b;a.persisted&&(null==(b=window.history.state)?void 0:b.__PRIVATE_NEXTJS_INTERNALS_TREE)&&(C.pendingMpaPath=void 0,(0,l.dispatchAppRouterAction)({type:i.ACTION_RESTORE,url:new URL(window.location.href),tree:window.history.state.__PRIVATE_NEXTJS_INTERNALS_TREE}))}return window.addEventListener("pageshow",a),()=>{window.removeEventListener("pageshow",a)}},[]),(0,g.useEffect)(()=>{function a(a){let b="reason"in a?a.reason:a.error;if((0,y.isRedirectError)(b)){a.preventDefault();let c=(0,x.getURLFromRedirectError)(b);(0,x.getRedirectTypeFromError)(b)===y.RedirectType.push?w.publicAppRouterInstance.push(c,{}):w.publicAppRouterInstance.replace(c,{})}}return window.addEventListener("error",a),window.addEventListener("unhandledrejection",a),()=>{window.removeEventListener("error",a),window.removeEventListener("unhandledrejection",a)}},[]);let{pushRef:A}=j;if(A.mpaNavigation){if(C.pendingMpaPath!==m){let a=window.location;A.pendingPush?a.assign(m):a.replace(m),C.pendingMpaPath=m}throw r.unresolvedThenable}(0,g.useEffect)(()=>{let a=window.history.pushState.bind(window.history),b=window.history.replaceState.bind(window.history),c=a=>{var b;let c=window.location.href,d=null==(b=window.history.state)?void 0:b.__PRIVATE_NEXTJS_INTERNALS_TREE;(0,g.startTransition)(()=>{(0,l.dispatchAppRouterAction)({type:i.ACTION_RESTORE,url:new URL(null!=a?a:c,c),tree:d})})};window.history.pushState=function(b,d,e){return(null==b?void 0:b.__NA)||(null==b?void 0:b._N)||(b=H(b),e&&c(e)),a(b,d,e)},window.history.replaceState=function(a,d,e){return(null==a?void 0:a.__NA)||(null==a?void 0:a._N)||(a=H(a),e&&c(e)),b(a,d,e)};let d=a=>{if(a.state){if(!a.state.__NA)return void window.location.reload();(0,g.startTransition)(()=>{(0,w.dispatchTraverseAction)(window.location.href,a.state.__PRIVATE_NEXTJS_INTERNALS_TREE)})}};return window.addEventListener("popstate",d),()=>{window.history.pushState=a,window.history.replaceState=b,window.removeEventListener("popstate",d)}},[]);let{cache:D,tree:E,nextUrl:G,focusAndScrollRef:J}=j,K=(0,g.useMemo)(()=>(0,q.findHeadInCache)(D,E[1]),[D,E]),L=(0,g.useMemo)(()=>(0,u.getSelectedParams)(E),[E]),M=(0,g.useMemo)(()=>({parentTree:E,parentCacheNode:D,parentSegmentPath:null,url:m}),[E,D,m]),O=(0,g.useMemo)(()=>({tree:E,focusAndScrollRef:J,nextUrl:G}),[E,J,G]);if(null!==K){let[a,c,d]=K;b=(0,f.jsx)(I,{headCacheNode:a},d)}else b=null;let P=(0,f.jsxs)(p.RedirectBoundary,{children:[b,(0,f.jsx)(B.RootLayoutBoundary,{children:D.rsc}),(0,f.jsx)(o.AppRouterAnnouncer,{tree:E})]});return P=(0,f.jsx)(z.default,{errorComponent:e[0],errorStyles:e[1],children:P}),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(F,{appRouterState:j}),(0,f.jsx)(N,{}),(0,f.jsx)(k.PathParamsContext.Provider,{value:L,children:(0,f.jsx)(k.PathnameContext.Provider,{value:v,children:(0,f.jsx)(k.SearchParamsContext.Provider,{value:n,children:(0,f.jsx)(h.GlobalLayoutRouterContext.Provider,{value:O,children:(0,f.jsx)(h.AppRouterContext.Provider,{value:w.publicAppRouterInstance,children:(0,f.jsx)(h.LayoutRouterContext.Provider,{value:M,children:P})})})})})})]})}function K(a){let{actionQueue:b,globalErrorState:c,assetPrefix:d}=a;(0,v.useNavFailureHandler)();let e=(0,f.jsx)(J,{actionQueue:b,assetPrefix:d,globalError:c});return(0,f.jsx)(z.default,{errorComponent:A.default,children:e})}let L=new Set,M=new Set;function N(){let[,a]=g.default.useState(0),b=L.size;return(0,g.useEffect)(()=>{let c=()=>a(a=>a+1);return M.add(c),b!==L.size&&c(),()=>{M.delete(c)}},[b,a]),[...L].map((a,b)=>(0,f.jsx)("link",{rel:"stylesheet",href:""+a,precedence:"next"},b))}globalThis._N_E_STYLE_LOAD=function(a){let b=L.size;return L.add(a),L.size!==b&&M.forEach(a=>a()),Promise.resolve()},("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},97950:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]])},98688:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]])},99384:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"default",{enumerable:!0,get:function(){return g}});let d=c(35288),e=c(21124);c(38301),c(57685);let f=c(94515);function g(a){let{children:b,errorComponent:c,errorStyles:d,errorScripts:g}=a;return(0,e.jsx)(f.ErrorBoundary,{errorComponent:c,errorStyles:d,errorScripts:g,children:b})}c(27963),("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)}}; \ No newline at end of file diff --git a/.next/server/chunks/2797.js b/.next/server/chunks/2644.js similarity index 71% rename from .next/server/chunks/2797.js rename to .next/server/chunks/2644.js index 2587ed804d87e225d7d7672e7d0962631698ec1f..aa830c34bde16f9fdc5199e987f4ff9f48fdc624 100644 --- a/.next/server/chunks/2797.js +++ b/.next/server/chunks/2644.js @@ -1,8 +1,8 @@ -"use strict";exports.id=2797,exports.ids=[2797],exports.modules={82797:(a,b,c)=>{c.d(b,{YE:()=>q,lN:()=>r});var d=c(29021),e=c(33873),f=c.n(e),g=c(97778),h=c(51295),i=c.n(h),j=c(95012);class k{constructor(a,b,c,d){this.blobUrls=new Map,this.fileHashes=new Map,this.templateCache=new Map,this.partialsRegistered=!1,this.vfs=a,this.projectId=b,this.siteId=d,this.baseUrl="",c&&(this.blobUrls=new Map(c)),this.handlebars=i().create(),this.registerHelpers()}registerHelpers(){this.handlebars.registerHelper("eq",(a,b)=>a===b),this.handlebars.registerHelper("ne",(a,b)=>a!==b),this.handlebars.registerHelper("lt",(a,b)=>aa>b),this.handlebars.registerHelper("lte",(a,b)=>a<=b),this.handlebars.registerHelper("gte",(a,b)=>a>=b),this.handlebars.registerHelper("and",function(){let a=Array.prototype.slice.call(arguments,0,-1);return a.every(a=>a)}),this.handlebars.registerHelper("or",function(){let a=Array.prototype.slice.call(arguments,0,-1);return a.some(a=>a)}),this.handlebars.registerHelper("not",a=>!a),this.handlebars.registerHelper("add",(a,b)=>a+b),this.handlebars.registerHelper("subtract",(a,b)=>a-b),this.handlebars.registerHelper("multiply",(a,b)=>a*b),this.handlebars.registerHelper("divide",(a,b)=>a/b),this.handlebars.registerHelper("uppercase",a=>a?.toUpperCase()),this.handlebars.registerHelper("lowercase",a=>a?.toLowerCase()),this.handlebars.registerHelper("concat",function(){let a=Array.prototype.slice.call(arguments,0,-1);return a.join("")}),this.handlebars.registerHelper("json",a=>JSON.stringify(a,null,2)),this.handlebars.registerHelper("formatDate",a=>new Date(a).toLocaleDateString()),this.handlebars.registerHelper("limit",(a,b)=>a?.slice(0,b))}async registerPartials(){if(!this.partialsRegistered)try{for(let a of(await this.vfs.getAllFilesAndDirectories(this.projectId)).filter(a=>"content"in a&&a.path.startsWith("/templates/")&&(a.path.endsWith(".hbs")||a.path.endsWith(".handlebars")))){let b=a.content,c=a.path.replace(/^\/templates\//,"").replace(/\.hbs$/,"").replace(/\.handlebars$/,"");this.handlebars.registerPartial(c,b);let d=c.split("/").pop();if(d&&this.handlebars.registerPartial(d,b),c.includes("/")){let a=c.replace(/\//g,"-");this.handlebars.registerPartial(a,b)}}this.partialsRegistered=!0}catch(a){}}async compileTemplate(a,b={}){let c=this.templateCache.get(a);if(!c)try{let b=(await this.vfs.readFile(this.projectId,a)).content;c=this.handlebars.compile(b),this.templateCache.set(a,c)}catch(b){return j.v.error(`Failed to compile template ${a}:`,b),""}return c(b)}async compileProject(a=!1){await this.registerPartials();let b=await this.vfs.listDirectory(this.projectId,"/"),c=new Map(this.blobUrls),d=new Map,e=[];for(let f of b){let b;if("template"===f.type||"html"===f.type||"css"===f.type)continue;b="image"===f.type||"video"===f.type?{path:f.path,content:f.content,mimeType:f.mimeType}:"js"===f.type?await this.processJS(f):{path:f.path,content:f.content,mimeType:f.mimeType};let g=this.hashContent(b.content),h=this.fileHashes.get(b.path);if(a&&h===g&&c.has(b.path)){let a=c.get(b.path);d.set(b.path,a),b.blobUrl=a,c.delete(b.path)}else{let a=new Blob([b.content],{type:b.mimeType}),c=URL.createObjectURL(a);d.set(b.path,c),b.blobUrl=c,this.fileHashes.set(b.path,g)}e.push(b)}for(let f of b){if("html"!==f.type)continue;let b=await this.processHTML(f,d),g=this.hashContent(b.content),h=this.fileHashes.get(b.path);if(a&&h===g&&c.has(b.path)){let a=c.get(b.path);d.set(b.path,a),b.blobUrl=a,c.delete(b.path)}else{let a=new Blob([b.content],{type:b.mimeType}),c=URL.createObjectURL(a);d.set(b.path,c),b.blobUrl=c,this.fileHashes.set(b.path,g)}e.push(b)}let f=[...e];for(let e of b)if("css"===e.type){let b=await this.processCSS(e,d),g=this.hashContent(b.content),h=this.fileHashes.get(b.path);if(a&&h===g&&c.has(b.path)){let a=c.get(b.path);d.set(b.path,a),b.blobUrl=a,c.delete(b.path)}else{let a=new Blob([b.content],{type:b.mimeType}),c=URL.createObjectURL(a);d.set(b.path,c),b.blobUrl=c,this.fileHashes.set(b.path,g)}f.push(b)}let g=this.generateRoutes(b);if(a)for(let[,a]of c)URL.revokeObjectURL(a);else a||this.cleanupBlobUrls();return this.blobUrls=d,{entryPoint:"/index.html",files:f,routes:g,blobUrls:this.blobUrls}}hashContent(a){let b=0;if(a instanceof ArrayBuffer){let c=new Uint8Array(a);for(let a=0;a +"use strict";exports.id=2644,exports.ids=[2644],exports.modules={12644:(a,b,c)=>{c.d(b,{KJ:()=>v,$_:()=>w});var d=c(29021),e=c(33873),f=c.n(e),g=c(32907),h=c(51295),i=c.n(h),j=c(95012);class k{constructor(a,b,c,d){this.blobUrls=new Map,this.fileHashes=new Map,this.templateCache=new Map,this.partialsRegistered=!1,this.vfs=a,this.projectId=b,this.deploymentId=d,this.baseUrl="",c&&(this.blobUrls=new Map(c)),this.handlebars=i().create(),this.registerHelpers()}registerHelpers(){this.handlebars.registerHelper("eq",(a,b)=>a===b),this.handlebars.registerHelper("ne",(a,b)=>a!==b),this.handlebars.registerHelper("lt",(a,b)=>aa>b),this.handlebars.registerHelper("lte",(a,b)=>a<=b),this.handlebars.registerHelper("gte",(a,b)=>a>=b),this.handlebars.registerHelper("and",function(){let a=Array.prototype.slice.call(arguments,0,-1);return a.every(a=>a)}),this.handlebars.registerHelper("or",function(){let a=Array.prototype.slice.call(arguments,0,-1);return a.some(a=>a)}),this.handlebars.registerHelper("not",a=>!a),this.handlebars.registerHelper("add",(a,b)=>a+b),this.handlebars.registerHelper("subtract",(a,b)=>a-b),this.handlebars.registerHelper("multiply",(a,b)=>a*b),this.handlebars.registerHelper("divide",(a,b)=>a/b),this.handlebars.registerHelper("uppercase",a=>a?.toUpperCase()),this.handlebars.registerHelper("lowercase",a=>a?.toLowerCase()),this.handlebars.registerHelper("concat",function(){let a=Array.prototype.slice.call(arguments,0,-1);return a.join("")}),this.handlebars.registerHelper("json",a=>JSON.stringify(a,null,2)),this.handlebars.registerHelper("formatDate",a=>new Date(a).toLocaleDateString()),this.handlebars.registerHelper("limit",(a,b)=>a?.slice(0,b))}async registerPartials(){if(!this.partialsRegistered)try{for(let a of(await this.vfs.getAllFilesAndDirectories(this.projectId)).filter(a=>"content"in a&&a.path.startsWith("/templates/")&&(a.path.endsWith(".hbs")||a.path.endsWith(".handlebars")))){let b=a.content,c=a.path.replace(/^\/templates\//,"").replace(/\.hbs$/,"").replace(/\.handlebars$/,"");this.handlebars.registerPartial(c,b);let d=c.split("/").pop();if(d&&this.handlebars.registerPartial(d,b),c.includes("/")){let a=c.replace(/\//g,"-");this.handlebars.registerPartial(a,b)}}this.partialsRegistered=!0}catch(a){}}async compileTemplate(a,b={}){let c=this.templateCache.get(a);if(!c)try{let b=(await this.vfs.readFile(this.projectId,a)).content;c=this.handlebars.compile(b),this.templateCache.set(a,c)}catch(b){return j.v.error(`Failed to compile template ${a}:`,b),""}return c(b)}async compileProject(a=!1){await this.registerPartials();let b=await this.vfs.listDirectory(this.projectId,"/"),c=new Map(this.blobUrls),d=new Map,e=[];for(let f of b){let b;if("template"===f.type||"html"===f.type||"css"===f.type)continue;b="image"===f.type||"video"===f.type?{path:f.path,content:f.content,mimeType:f.mimeType}:"js"===f.type?await this.processJS(f):{path:f.path,content:f.content,mimeType:f.mimeType};let g=this.hashContent(b.content),h=this.fileHashes.get(b.path);if(a&&h===g&&c.has(b.path)){let a=c.get(b.path);d.set(b.path,a),b.blobUrl=a,c.delete(b.path)}else{let a=new Blob([b.content],{type:b.mimeType}),c=URL.createObjectURL(a);d.set(b.path,c),b.blobUrl=c,this.fileHashes.set(b.path,g)}e.push(b)}for(let f of b){if("html"!==f.type)continue;let b=await this.processHTML(f,d),g=this.hashContent(b.content),h=this.fileHashes.get(b.path);if(a&&h===g&&c.has(b.path)){let a=c.get(b.path);d.set(b.path,a),b.blobUrl=a,c.delete(b.path)}else{let a=new Blob([b.content],{type:b.mimeType}),c=URL.createObjectURL(a);d.set(b.path,c),b.blobUrl=c,this.fileHashes.set(b.path,g)}e.push(b)}let f=[...e];for(let e of b)if("css"===e.type){let b=await this.processCSS(e,d),g=this.hashContent(b.content),h=this.fileHashes.get(b.path);if(a&&h===g&&c.has(b.path)){let a=c.get(b.path);d.set(b.path,a),b.blobUrl=a,c.delete(b.path)}else{let a=new Blob([b.content],{type:b.mimeType}),c=URL.createObjectURL(a);d.set(b.path,c),b.blobUrl=c,this.fileHashes.set(b.path,g)}f.push(b)}let g=this.generateRoutes(b);if(a)for(let[,a]of c)URL.revokeObjectURL(a);else a||this.cleanupBlobUrls();return this.blobUrls=d,{entryPoint:"/index.html",files:f,routes:g,blobUrls:this.blobUrls}}hashContent(a){let b=0;if(a instanceof ArrayBuffer){let c=new Uint8Array(a);for(let a=0;a // VFS Asset Interceptor - Auto-injected by OSW Studio (function() { const vfsBlobUrls = ${JSON.stringify(d)}; - const siteId = ${JSON.stringify(e)}; + const deploymentId = ${JSON.stringify(e)}; // Helper function to resolve VFS paths to blob URLs function resolveVfsUrl(url) { @@ -15,7 +15,7 @@ // Helper function to check if a URL looks like an edge function call function isEdgeFunctionUrl(url) { - if (!url || typeof url !== 'string' || !siteId) return false; + if (!url || typeof url !== 'string' || !deploymentId) return false; // Skip external URLs, blob URLs, data URLs, and hash-only URLs if (url.startsWith('http://') || url.startsWith('https://') || url.startsWith('blob:') || url.startsWith('data:') || @@ -34,14 +34,14 @@ // Helper function to convert an edge function URL to the API endpoint function toEdgeFunctionApiUrl(url) { - if (!siteId) return url; + if (!deploymentId) return url; // Normalize the path let path = url; if (!path.startsWith('/')) path = '/' + path; // Remove leading slash for the function name const functionPath = path.substring(1); // Return the API endpoint URL - return '/api/sites/' + siteId + '/functions/' + functionPath; + return '/api/deployments/' + deploymentId + '/functions/' + functionPath; } // Intercept Image src setter to handle ALL image loading @@ -182,7 +182,7 @@ }; // Intercept form submissions for edge functions - if (siteId) { + if (deploymentId) { document.addEventListener('submit', function(e) { const form = e.target; if (!(form instanceof HTMLFormElement)) return; @@ -324,7 +324,7 @@ ${a} `}}detectInvalidHandlebarsPatterns(a){let b=[];return/\w+\s*=\s*\(\s*>\s*[\w-]+\s*\)/g.test(a)&&b.push({error:"Invalid syntax: Using (> partial) as parameter value",suggestion:"Use string-based dynamic partials: content=\"partial-name\" then {{> (lookup this 'content')}}"}),/\{\{\s*>\s*\(\s*>\s*[\w-]+\s*\)\s*\}\}/g.test(a)&&b.push({error:"Invalid syntax: Double partial reference {{> (> partial)}}",suggestion:"Use {{> partialName}} for static partials or {{> (lookup data 'partialName')}} for dynamic"}),/\{\{\s*>\s*[\w-]+\s+\w+\s*=\s*[^"'\s}][^}]*\s[^}]*(?:\s|}})/g.test(a)&&b.push({error:"Missing quotes in parameter values",suggestion:'Wrap parameter values in quotes: title="My Title" not title=My Title'}),b}async processCSS(a,b){let c=a.content;return c=await this.processUrlReferences(c,b),{path:a.path,content:c,mimeType:a.mimeType}}async processJS(a){let b=a.content;return{path:a.path,content:b,mimeType:a.mimeType}}isAssetReference(a){let b=a.split("?")[0].split("#")[0];return[".css",".js",".jsx",".ts",".tsx",".png",".jpg",".jpeg",".gif",".svg",".ico",".webp",".woff",".woff2",".ttf",".otf",".eot",".mp4",".webm",".ogg",".mp3",".wav",".pdf",".zip",".json",".xml"].includes(b.substring(b.lastIndexOf(".")).toLowerCase())}async processInternalReferences(a,b){let c=await this.vfs.listDirectory(this.projectId,"/"),d=b||this.blobUrls,e=a;for(let a of[/href="([^"]+)"/g,/src="([^"]+)"/g,/href='([^']+)'/g,/src='([^']+)'/g])e=e.replace(a,(a,b)=>{if(b.startsWith("http")||b.startsWith("data:")||b.startsWith("//")||b.startsWith("blob:")||b.startsWith("#")||a.includes("href=")&&!this.isAssetReference(b))return a;let e=this.normalizePath(b);if(c.some(a=>a.path===e)){let c=d.get(e);if(c)return a.replace(b,c)}return a});return e}async processUrlReferences(a,b){return a.replace(/url\(['"]?([^'")]+)['"]?\)/g,(a,c)=>{if(c.startsWith("http")||c.startsWith("data:")||c.startsWith("//")||c.startsWith("blob:"))return a;let d=this.normalizePath(c),e=b.get(d);return e?`url('${e}')`:a})}normalizePath(a){return(a.startsWith("./")&&(a=a.slice(2)),a.startsWith("/")||(a="/"+a),a.endsWith("/"))?a+"index.html":a.includes(".")?a:a+".html"}generateRoutes(a){return a.filter(a=>"html"===a.type).map(a=>{let b=a.content.match(/([^<]+)<\/title>/i),c=b?b[1]:a.name.replace(".html",""),d=a.path.replace(".html","")||"/";return{path:"/index"===d?"/":d,file:a.path,title:c}})}extractTitle(a){let b=a.match(/<title>([^<]+)<\/title>/i);return b?b[1]:"Untitled Page"}cleanupBlobUrls(){for(let a of this.blobUrls.values())URL.revokeObjectURL(a);this.blobUrls.clear(),this.templateCache.clear(),this.partialsRegistered=!1}async getCompiledFile(a){try{let b=await this.vfs.readFile(this.projectId,a);if("html"===b.type)return await this.processHTML(b,this.blobUrls);if("css"===b.type)return await this.processCSS(b,new Map);if("js"===b.type)return await this.processJS(b);else return{path:b.path,content:b.content,mimeType:b.mimeType}}catch{return null}}}function l(a){let{siteId:b,apiEndpoint:c="/api/analytics/track",interactionEndpoint:d="/api/analytics/interaction",features:e={basicTracking:!0,heatmaps:!1,sessionRecording:!1,performanceMetrics:!1,engagementTracking:!1,customEvents:!1}}=a;return` +-->`}}detectInvalidHandlebarsPatterns(a){let b=[];return/\w+\s*=\s*\(\s*>\s*[\w-]+\s*\)/g.test(a)&&b.push({error:"Invalid syntax: Using (> partial) as parameter value",suggestion:"Use string-based dynamic partials: content=\"partial-name\" then {{> (lookup this 'content')}}"}),/\{\{\s*>\s*\(\s*>\s*[\w-]+\s*\)\s*\}\}/g.test(a)&&b.push({error:"Invalid syntax: Double partial reference {{> (> partial)}}",suggestion:"Use {{> partialName}} for static partials or {{> (lookup data 'partialName')}} for dynamic"}),/\{\{\s*>\s*[\w-]+\s+\w+\s*=\s*[^"'\s}][^}]*\s[^}]*(?:\s|}})/g.test(a)&&b.push({error:"Missing quotes in parameter values",suggestion:'Wrap parameter values in quotes: title="My Title" not title=My Title'}),b}async processCSS(a,b){let c=a.content;return c=await this.processUrlReferences(c,b),{path:a.path,content:c,mimeType:a.mimeType}}async processJS(a){let b=a.content;return{path:a.path,content:b,mimeType:a.mimeType}}isAssetReference(a){let b=a.split("?")[0].split("#")[0];return[".css",".js",".jsx",".ts",".tsx",".png",".jpg",".jpeg",".gif",".svg",".ico",".webp",".woff",".woff2",".ttf",".otf",".eot",".mp4",".webm",".ogg",".mp3",".wav",".pdf",".zip",".json",".xml"].includes(b.substring(b.lastIndexOf(".")).toLowerCase())}async processInternalReferences(a,b){let c=await this.vfs.listDirectory(this.projectId,"/"),d=b||this.blobUrls,e=a;for(let a of[/href="([^"]+)"/g,/src="([^"]+)"/g,/href='([^']+)'/g,/src='([^']+)'/g])e=e.replace(a,(a,b)=>{if(b.startsWith("http")||b.startsWith("data:")||b.startsWith("//")||b.startsWith("blob:")||b.startsWith("#")||a.includes("href=")&&!this.isAssetReference(b))return a;let e=this.normalizePath(b);if(c.some(a=>a.path===e)){let c=d.get(e);if(c)return a.replace(b,c)}return a});return e}async processUrlReferences(a,b){return a.replace(/url\(['"]?([^'")]+)['"]?\)/g,(a,c)=>{if(c.startsWith("http")||c.startsWith("data:")||c.startsWith("//")||c.startsWith("blob:"))return a;let d=this.normalizePath(c),e=b.get(d);return e?`url('${e}')`:a})}normalizePath(a){return(a.startsWith("./")&&(a=a.slice(2)),a.startsWith("/")||(a="/"+a),a.endsWith("/"))?a+"index.html":a.includes(".")?a:a+".html"}generateRoutes(a){return a.filter(a=>"html"===a.type).map(a=>{let b=a.content.match(/<title>([^<]+)<\/title>/i),c=b?b[1]:a.name.replace(".html",""),d=a.path.replace(".html","")||"/";return{path:"/index"===d?"/":d,file:a.path,title:c}})}extractTitle(a){let b=a.match(/<title>([^<]+)<\/title>/i);return b?b[1]:"Untitled Page"}cleanupBlobUrls(){for(let a of this.blobUrls.values())URL.revokeObjectURL(a);this.blobUrls.clear(),this.templateCache.clear(),this.partialsRegistered=!1}async getCompiledFile(a){try{let b=await this.vfs.readFile(this.projectId,a);if("html"===b.type)return await this.processHTML(b,this.blobUrls);if("css"===b.type)return await this.processCSS(b,new Map);if("js"===b.type)return await this.processJS(b);else return{path:b.path,content:b.content,mimeType:b.mimeType}}catch{return null}}}function l(a){let{deploymentId:b,apiEndpoint:c="/api/analytics/track",interactionEndpoint:d="/api/analytics/interaction",features:e={basicTracking:!0,heatmaps:!1,sessionRecording:!1,performanceMetrics:!1,engagementTracking:!1,customEvents:!1}}=a;return` <!-- OSW Studio Analytics --> <script> (function() { @@ -332,7 +332,7 @@ ${a} // Configuration var config = { - siteId: '${b}', + deploymentId: '${b}', apiEndpoint: '${c}', interactionEndpoint: '${d}', features: ${JSON.stringify(e)} @@ -400,7 +400,7 @@ ${a} if (!config.features.basicTracking) return; var data = { - siteId: config.siteId, + deploymentId: config.deploymentId, pagePath: window.location.pathname, referrer: document.referrer || '', userAgent: navigator.userAgent, @@ -424,7 +424,7 @@ ${a} eventQueue.push({ type: 'click', data: { - siteId: config.siteId, + deploymentId: config.deploymentId, pagePath: window.location.pathname, interactionType: 'click', elementSelector: selector, @@ -465,7 +465,7 @@ ${a} eventQueue.push({ type: 'scroll', data: { - siteId: config.siteId, + deploymentId: config.deploymentId, pagePath: window.location.pathname, interactionType: 'scroll', scrollDepth: milestone, @@ -486,7 +486,7 @@ ${a} if (timeOnPage < 1000) return; // Ignore very short visits sendData(config.interactionEndpoint, { - siteId: config.siteId, + deploymentId: config.deploymentId, pagePath: window.location.pathname, interactionType: 'exit', timeOnPage: timeOnPage @@ -579,7 +579,7 @@ ${a} init(); })(); </script> -`.trim()}function m(a){let b={"&":"&","<":"<",">":">",'"':""","'":"'"};return a.replace(/[&<>"']/g,a=>b[a])}function n(a,b){let c=a.indexOf("</head>");if(-1===c){let c="<head>",d=a.indexOf(c);return -1!==d?a.slice(0,d+c.length)+"\n "+b+"\n"+a.slice(d+c.length):b+"\n"+a}return a.slice(0,c)+" "+b+"\n"+a.slice(c)}function o(a,b){let c=a.lastIndexOf("</body>");return -1===c?a+"\n"+b+"\n":a.slice(0,c)+b+"\n"+a.slice(c)}function p(a){let b={"&":"&","<":"<",">":">",'"':""","'":"'"};return a.replace(/[&<>"']/g,a=>b[a])}async function q(a){try{var b,c;let e=await (0,g.B)();await e.init();let h=await e.getSite?.(a);if(!h)return await e.close?.(),j.v.error(`[Static Builder] Site ${a} not found in database`),{success:!1,siteId:a,projectId:"",filesWritten:0,outputPath:"",error:"Site not found"};if(!await e.getProject(h.projectId))return await e.close?.(),j.v.error(`[Static Builder] Project ${h.projectId} not found in database`),{success:!1,siteId:a,projectId:h.projectId,filesWritten:0,outputPath:"",error:"Project not found"};if(h.underConstruction){await e.close?.();let b=f().join(process.cwd(),"public","sites",a);try{await d.promises.rm(b,{recursive:!0,force:!0})}catch(a){}await d.promises.mkdir(b,{recursive:!0});let c=function(a){let b=a?function(a){let b={"&":"&","<":"<",">":">",'"':""","'":"'"};return a.replace(/[&<>"']/g,a=>b[a])}(a):"";return`<!DOCTYPE html> +`.trim()}function m(a){let b={"&":"&","<":"<",">":">",'"':""","'":"'"};return a.replace(/[&<>"']/g,a=>b[a])}function n(a,b){let c=a.indexOf("</head>");if(-1===c){let c="<head>",d=a.indexOf(c);return -1!==d?a.slice(0,d+c.length)+"\n "+b+"\n"+a.slice(d+c.length):b+"\n"+a}return a.slice(0,c)+" "+b+"\n"+a.slice(c)}function o(a,b){let c=a.lastIndexOf("</body>");return -1===c?a+"\n"+b+"\n":a.slice(0,c)+b+"\n"+a.slice(c)}function p(a){let b={"&":"&","<":"<",">":">",'"':""","'":"'"};return a.replace(/[&<>"']/g,a=>b[a])}var q=c(2304),r=c(97347),s=c(74051),t=c(75794);async function u(a,b){let c={edgeFunctions:0,serverFunctions:0,secrets:0,scheduledFunctions:0,databaseSchemaApplied:!1,errors:[]},d=(0,g.q)();await d.init();let e=d.listEdgeFunctions?await d.listEdgeFunctions(a):[],f=d.listServerFunctions?await d.listServerFunctions(a):[],h=d.listSecrets?await d.listSecrets(a):[],i=d.listScheduledFunctions?await d.listScheduledFunctions(a):[];if(0===e.length&&0===f.length&&0===h.length&&0===i.length)return c;let j=new q.k(b);for(let a of(j.init(),j.listFunctions()))j.deleteFunction(a.id);for(let a of j.listServerFunctions())j.deleteServerFunction(a.id);for(let a of j.listSecrets())j.deleteSecret(a.id);for(let a of j.listScheduledFunctions())j.deleteScheduledFunction(a.id);let k=new Map;for(let a of e)try{let b=j.createFunction({name:a.name,description:a.description,code:a.code,method:a.method,enabled:a.enabled,timeoutMs:a.timeoutMs});k.set(a.name,b),c.edgeFunctions++}catch(b){c.errors.push(`Edge function "${a.name}": ${b instanceof Error?b.message:String(b)}`)}for(let a of f)try{j.createServerFunction({name:a.name,description:a.description,code:a.code,enabled:a.enabled}),c.serverFunctions++}catch(b){c.errors.push(`Server function "${a.name}": ${b instanceof Error?b.message:String(b)}`)}for(let a of h)try{a.value&&(0,t.yg)()?j.createSecret(a.name,a.value,a.description):j.createSecretPlaceholder(a.name,a.description),c.secrets++}catch(b){c.errors.push(`Secret "${a.name}": ${b instanceof Error?b.message:String(b)}`)}for(let a of i)try{let b=k.get(a.functionId)||a.functionId;if(!k.has(a.functionId)){let b=e.find(b=>b.id===a.functionId);if(b){let d=k.get(b.name);if(d){j.createScheduledFunction({name:a.name,description:a.description,functionId:d,cronExpression:a.cronExpression,timezone:a.timezone,config:a.config,enabled:a.enabled,lastRunAt:a.lastRunAt,nextRunAt:a.nextRunAt,lastStatus:a.lastStatus,lastError:a.lastError,lastDurationMs:a.lastDurationMs}),c.scheduledFunctions++;continue}}}j.createScheduledFunction({name:a.name,description:a.description,functionId:b,cronExpression:a.cronExpression,timezone:a.timezone,config:a.config,enabled:a.enabled,lastRunAt:a.lastRunAt,nextRunAt:a.nextRunAt,lastStatus:a.lastStatus,lastError:a.lastError,lastDurationMs:a.lastDurationMs}),c.scheduledFunctions++}catch(b){c.errors.push(`Scheduled function "${a.name}": ${b instanceof Error?b.message:String(b)}`)}if((0,s.projectDatabaseExists)(a))try{if(/^[a-f0-9-]+$/i.test(a)){let b=new r.r(a);b.init();let d=b.getTableSchema();if(d.length>0){let e=b.getSchemaForExport();j.executeDDL(e);let f=(0,s.getProjectDatabasePath)(a);for(let a of(j.executeDDL(`ATTACH DATABASE '${f.replace(/'/g,"''")}' AS project_db`),d))if(a.rowCount>0){let b=`"${a.name.replace(/"/g,'""')}"`;j.executeDDL(`INSERT INTO ${b} SELECT * FROM project_db.${b}`)}j.executeDDL("DETACH DATABASE project_db"),c.databaseSchemaApplied=!0}}else c.errors.push("Project database: invalid project ID format")}catch(a){c.errors.push(`Project database: ${a instanceof Error?a.message:String(a)}`)}return c}async function v(a){try{var b,c;let e=await (0,g.B)();await e.init();let h=await e.getDeployment?.(a);if(!h)return await e.close?.(),j.v.error(`[Static Builder] Deployment ${a} not found in database`),{success:!1,deploymentId:a,projectId:"",filesWritten:0,outputPath:"",error:"Deployment not found"};if(!await e.getProject(h.projectId))return await e.close?.(),j.v.error(`[Static Builder] Project ${h.projectId} not found in database`),{success:!1,deploymentId:a,projectId:h.projectId,filesWritten:0,outputPath:"",error:"Project not found"};if(h.underConstruction){await e.close?.();let b=f().join(process.cwd(),"public","deployments",a);try{await d.promises.rm(b,{recursive:!0,force:!0})}catch(a){}await d.promises.mkdir(b,{recursive:!0});let c=function(a){let b=a?function(a){let b={"&":"&","<":"<",">":">",'"':""","'":"'"};return a.replace(/[&<>"']/g,a=>b[a])}(a):"";return`<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> @@ -714,7 +714,7 @@ ${a} </div> </div> </body> -</html>`}(h.name);return await d.promises.writeFile(f().join(b,"index.html"),c,"utf-8"),j.v.info(`[Static Builder] Built under construction page for site ${a}`),{success:!0,siteId:a,projectId:h.projectId,filesWritten:1,outputPath:`/sites/${a}`}}let i=await e.listFiles(h.projectId),q=(b=h.projectId,{async getAllFilesAndDirectories(a){if(a!==b)throw Error("Invalid project ID");return i},async listDirectory(a,c){if(a!==b)throw Error("Invalid project ID");return"/"===c?i:i.filter(a=>a.path.startsWith(c))},async readFile(a,c){if(a!==b)throw Error("Invalid project ID");let d=i.find(a=>a.path===c);if(!d)throw Error(`File not found: ${c}`);return d},async fileExists(a,c){if(a!==b)throw Error("Invalid project ID");return i.some(a=>a.path===c)}}),r=new k(q,h.projectId),s=await r.compileProject();await e.close?.();let t=new Map;for(let[a,b]of s.blobUrls)t.set(b,a);let u=h.customDomain?`https://${h.customDomain}`:`${process.env.NEXT_PUBLIC_APP_URL||"http://localhost:3000"}/sites/${a}`,v=[];for(let b of s.files)"string"==typeof b.content&&(b.content=function(a,b,c,d,e){let f=a,g=e?"":`/sites/${d}`;for(let[a,c]of b){let b=`${g}${c}`;f=f.replace(RegExp(a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g"),b)}let h=a=>g&&a.startsWith(g);return f=(f=(f=(f=f.replace(/href=(["'])(\/[^"']*\.html?)\1/g,(a,b,c)=>h(c)?a:`href=${b}${g}${c}${b}`)).replace(/(?:href|src)=(["'])(\/(?:styles|scripts|assets|images|fonts|js|css)\/[^"']+)\1/g,(a,b,c)=>h(c)?a:a.replace(c,`${g}${c}`))).replace(/url\(['"]?(\/(?:styles|scripts|assets|images|fonts|js|css)\/[^'")]+)['"]?\)/g,(a,b)=>h(b)?a:a.replace(b,`${g}${b}`))).replace(/href=(["'])([^"':/][^"']*\.html?)\1/g,(a,b,c)=>c.startsWith("/")||c.includes("://")?a:`href=${b}${g}/${c}${b}`),g&&(f=f.replace(/href=(["'])\/\1/g,(a,b)=>`href=${b}${g}/${b}`)),f}(b.content,t,0,a,h.customDomain),b.path.endsWith(".html")&&(b.content=b.content.replace(/<script>\s*\/\/ VFS Asset Interceptor[\s\S]*?<\/script>\s*/,""),v.push(b.path),b.content=function(a,b){var c,d,e,f,g;let{publishSettings:h,projectId:i,baseUrl:j,siteId:k}=b,q=a;return e=q=function(a,b,c){if(!c.analytics.enabled||"builtin"!==c.analytics.provider)return a;let{analytics:d}=c,e={siteId:b,token:d.token,features:{basicTracking:d.features?.basicTracking!==!1,heatmaps:d.features?.heatmaps===!0,sessionRecording:d.features?.sessionRecording===!0,performanceMetrics:d.features?.performanceMetrics===!0,engagementTracking:d.features?.engagementTracking===!0,customEvents:d.features?.customEvents===!0}};return c.compliance.enabled&&c.compliance.blockAnalytics?o(a,` +</html>`}(h.name);return await d.promises.writeFile(f().join(b,"index.html"),c,"utf-8"),j.v.info(`[Static Builder] Built under construction page for deployment ${a}`),{success:!0,deploymentId:a,projectId:h.projectId,filesWritten:1,outputPath:`/deployments/${a}`}}let i=await e.listFiles(h.projectId),q=(b=h.projectId,{async getAllFilesAndDirectories(a){if(a!==b)throw Error("Invalid project ID");return i},async listDirectory(a,c){if(a!==b)throw Error("Invalid project ID");return"/"===c?i:i.filter(a=>a.path.startsWith(c))},async readFile(a,c){if(a!==b)throw Error("Invalid project ID");let d=i.find(a=>a.path===c);if(!d)throw Error(`File not found: ${c}`);return d},async fileExists(a,c){if(a!==b)throw Error("Invalid project ID");return i.some(a=>a.path===c)}}),r=new k(q,h.projectId),s=await r.compileProject();await e.close?.();let t=new Map;for(let[a,b]of s.blobUrls)t.set(b,a);let v=h.customDomain?`https://${h.customDomain}`:`${process.env.NEXT_PUBLIC_APP_URL||"http://localhost:3000"}/deployments/${a}`,w=[];for(let b of s.files)"string"==typeof b.content&&(b.content=function(a,b,c,d,e){let f=a,g=e?"":`/deployments/${d}`;for(let[a,c]of b){let b=`${g}${c}`;f=f.replace(RegExp(a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g"),b)}let h=a=>g&&a.startsWith(g);return f=(f=(f=(f=f.replace(/href=(["'])(\/[^"']*\.html?)\1/g,(a,b,c)=>h(c)?a:`href=${b}${g}${c}${b}`)).replace(/(?:href|src)=(["'])(\/(?:styles|scripts|assets|images|fonts|js|css)\/[^"']+)\1/g,(a,b,c)=>h(c)?a:a.replace(c,`${g}${c}`))).replace(/url\(['"]?(\/(?:styles|scripts|assets|images|fonts|js|css)\/[^'")]+)['"]?\)/g,(a,b)=>h(b)?a:a.replace(b,`${g}${b}`))).replace(/href=(["'])([^"':/][^"']*\.html?)\1/g,(a,b,c)=>c.startsWith("/")||c.includes("://")?a:`href=${b}${g}/${c}${b}`),g&&(f=f.replace(/href=(["'])\/\1/g,(a,b)=>`href=${b}${g}/${b}`)),f}(b.content,t,0,a,h.customDomain),b.path.endsWith(".html")&&(b.content=b.content.replace(/<script>\s*\/\/ VFS Asset Interceptor[\s\S]*?<\/script>\s*/,""),w.push(b.path),b.content=function(a,b){var c,d,e,f,g;let{publishSettings:h,projectId:i,baseUrl:j,deploymentId:k}=b,q=a;return e=q=function(a,b,c){if(!c.analytics.enabled||"builtin"!==c.analytics.provider)return a;let{analytics:d}=c,e={deploymentId:b,token:d.token,features:{basicTracking:d.features?.basicTracking!==!1,heatmaps:d.features?.heatmaps===!0,sessionRecording:d.features?.sessionRecording===!0,performanceMetrics:d.features?.performanceMetrics===!0,engagementTracking:d.features?.engagementTracking===!0,customEvents:d.features?.customEvents===!0}};return c.compliance.enabled&&c.compliance.blockAnalytics?o(a,` <script> if (!window.oswAnalyticsBlocked) { ${l(e).replace(/<\/?script>/g,"")} @@ -725,8 +725,8 @@ ${a.content} </script>`):"external"===a.type&&d.push(`<script src="${p(a.src)}" ${a.async?"async":""} ${a.defer?"defer":""}></script>`);let e=a.lastIndexOf("</body>");return -1===e?a+"\n"+d.join("\n")+"\n":a.slice(0,e)+" "+d.join("\n ")+"\n"+a.slice(e)}((c=q=function(a,b){let c=b.headScripts.filter(a=>a.enabled);if(0===c.length)return a;let d=[];for(let a of c)"inline"===a.type?d.push(`<script> ${a.content} </script>`):"external"===a.type&&d.push(`<script src="${p(a.src)}" ${a.async?"async":""} ${a.defer?"defer":""}></script>`);return n(a,d.join("\n "))}(q=function(a,b){let c=b.cdnLinks.filter(a=>a.enabled);if(0===c.length)return a;let d=[];for(let a of c)"css"===a.type?d.push(`<link rel="stylesheet" href="${p(a.url)}" ${a.integrity?`integrity="${p(a.integrity)}"`:""} crossorigin="anonymous">`):"js"===a.type&&d.push(`<script src="${p(a.url)}" ${a.integrity?`integrity="${p(a.integrity)}"`:""} crossorigin="anonymous"></script>`);return n(a,d.join("\n "))}(q=function(a,b,c){let{seo:d}=b;if(!d||0===Object.keys(d).length)return a;let e=[];d.title&&(e.push(`<title>${p(d.title)}`),e.push(``),e.push(``)),d.description&&(e.push(``),e.push(``),e.push(``)),d.keywords&&d.keywords.length>0&&e.push(``),d.ogImage&&(e.push(``),e.push(``)),e.push(``),e.push(''),e.push(''),d.canonical&&e.push(``);let f=[];return d.noIndex&&f.push("noindex"),d.noFollow&&f.push("nofollow"),f.length>0&&e.push(``),n(a,e.join("\n "))}(q,h,j),h),h),q=(d=k)?n(c,``):c),h),k,h),f=k,q=(g=h).compliance.enabled?o(e,function(a){let{siteId:b,compliance:c}=a;if(!c.enabled)return"";let{bannerPosition:d,bannerStyle:e,message:f,acceptButtonText:g,declineButtonText:h,privacyPolicyUrl:i,cookiePolicyUrl:j,mode:k,blockAnalytics:l}=c,n="top"===d?"top: 0; border-bottom: 1px solid rgba(0,0,0,0.1);":"bottom: 0; border-top: 1px solid rgba(0,0,0,0.1);",o="";return"bar"===e?o=` +(function(){var s="${d}";function e(u){if(!u||typeof u!=="string")return false;if(u.startsWith("http://")||u.startsWith("https://")||u.startsWith("blob:")||u.startsWith("data:")||u.startsWith("//")||u.startsWith("#"))return false;if(u.startsWith("/api/"))return false;var p=u.split("?")[0].split("#")[0];var l=p.split("/").pop()||"";if(l.includes("."))return false;return true}function a(u){var p=u;if(!p.startsWith("/"))p="/"+p;return"/api/deployments/"+s+"/functions"+p}var f=window.fetch;window.fetch=function(i,o){var u=typeof i==="string"?i:i.url;if(e(u))return f(a(u),o);return f(i,o)};var X=window.XMLHttpRequest;window.XMLHttpRequest=function(){var x=new X();var op=x.open;x.open=function(m,u){if(e(u))return op.call(this,m,a(u));return op.apply(this,arguments)};return x};document.addEventListener("submit",function(ev){var fm=ev.target;if(!(fm instanceof HTMLFormElement))return;var ac=fm.getAttribute("action")||"";if(!e(ac))return;ev.preventDefault();var m=(fm.method||"POST").toUpperCase();var fd=new FormData(fm);var d={};fd.forEach(function(v,k){d[k]=v});fetch(a(ac),{method:m,headers:{"Content-Type":"application/json"},body:m!=="GET"?JSON.stringify(d):undefined}).then(function(r){return r.json().catch(function(){return r.text()})}).then(function(r){var ev=new CustomEvent("edge-function-response",{detail:{action:ac,result:r}});fm.dispatchEvent(ev);document.dispatchEvent(ev)}).catch(function(err){console.error("[Edge Function]",err);var ev=new CustomEvent("edge-function-error",{detail:{action:ac,error:err.message}});fm.dispatchEvent(ev);document.dispatchEvent(ev)})},true)})(); +`):c),h),k,h),f=k,q=(g=h).compliance.enabled?o(e,function(a){let{deploymentId:b,compliance:c}=a;if(!c.enabled)return"";let{bannerPosition:d,bannerStyle:e,message:f,acceptButtonText:g,declineButtonText:h,privacyPolicyUrl:i,cookiePolicyUrl:j,mode:k,blockAnalytics:l}=c,n="top"===d?"top: 0; border-bottom: 1px solid rgba(0,0,0,0.1);":"bottom: 0; border-top: 1px solid rgba(0,0,0,0.1);",o="";return"bar"===e?o=` ${n} left: 0; right: 0; @@ -1028,9 +1028,9 @@ ${a.content} } })(); -`.trim()}({siteId:f,compliance:g.compliance})):e}(b.content,{publishSettings:{enabled:h.enabled,underConstruction:h.underConstruction,customDomain:h.customDomain,headScripts:h.headScripts,bodyScripts:h.bodyScripts,cdnLinks:h.cdnLinks,analytics:h.analytics,seo:h.seo,compliance:h.compliance,settingsVersion:h.settingsVersion,lastPublishedVersion:h.lastPublishedVersion},projectId:h.projectId,baseUrl:u,siteId:a})));let w=f().join(process.cwd(),"public","sites",a);try{await d.promises.rm(w,{recursive:!0,force:!0})}catch(a){}await d.promises.mkdir(w,{recursive:!0});let x=0;for(let a of s.files){if((c=a.path).endsWith(".hbs")||c.endsWith(".handlebars")||c.startsWith("/templates/")||"/data.json"===c)continue;let b=a.path.startsWith("/")?a.path.slice(1):a.path,e=f().join(w,b),g=f().dirname(e);await d.promises.mkdir(g,{recursive:!0}),"string"==typeof a.content?await d.promises.writeFile(e,a.content,"utf-8"):await d.promises.writeFile(e,Buffer.from(a.content)),x++}if(v.length>0){let a=function(a){let{baseUrl:b,htmlFiles:c,publishSettings:d}=a,{seo:e}=d;if(e?.noIndex)return` +`.trim()}({deploymentId:f,compliance:g.compliance})):e}(b.content,{publishSettings:{enabled:h.enabled,underConstruction:h.underConstruction,customDomain:h.customDomain,headScripts:h.headScripts,bodyScripts:h.bodyScripts,cdnLinks:h.cdnLinks,analytics:h.analytics,seo:h.seo,compliance:h.compliance,settingsVersion:h.settingsVersion,lastPublishedVersion:h.lastPublishedVersion},projectId:h.projectId,baseUrl:v,deploymentId:a})));let x=f().join(process.cwd(),"public","deployments",a);try{await d.promises.rm(x,{recursive:!0,force:!0})}catch(a){}await d.promises.mkdir(x,{recursive:!0});let y=0;for(let a of s.files){if((c=a.path).endsWith(".hbs")||c.endsWith(".handlebars")||c.startsWith("/templates/")||"/data.json"===c)continue;let b=a.path.startsWith("/")?a.path.slice(1):a.path,e=f().join(x,b),g=f().dirname(e);await d.promises.mkdir(g,{recursive:!0}),"string"==typeof a.content?await d.promises.writeFile(e,a.content,"utf-8"):await d.promises.writeFile(e,Buffer.from(a.content)),y++}if(w.length>0){let a=function(a){let{baseUrl:b,htmlFiles:c,publishSettings:d}=a,{seo:e}=d;if(e?.noIndex)return` - + `;let f=c.map(a=>{let c=a;c.startsWith("/")&&(c=c.slice(1)),"index.html"===c?c="":c.endsWith("/index.html")?c=c.slice(0,-10):c.endsWith(".html");let d=`${b}${c?"/"+c:""}`,e=new Date().toISOString().split("T")[0];return` ${function(a){let b={"&":"&","<":"<",">":">",'"':""","'":"'"};return a.replace(/[&<>"']/g,a=>b[a])}(d)} ${e} @@ -1039,4 +1039,4 @@ ${a.content} `}).join("\n");return` ${f} -`}({baseUrl:u,htmlFiles:v,publishSettings:{enabled:h.enabled,underConstruction:h.underConstruction,customDomain:h.customDomain,headScripts:h.headScripts,bodyScripts:h.bodyScripts,cdnLinks:h.cdnLinks,analytics:h.analytics,seo:h.seo,compliance:h.compliance,settingsVersion:h.settingsVersion,lastPublishedVersion:h.lastPublishedVersion}});await d.promises.writeFile(f().join(w,"sitemap.xml"),a,"utf-8"),x++}let y=function(a){let{baseUrl:b,publishSettings:c}=a,{seo:d}=c,e=[];return e.push("User-agent: *"),d?.noIndex||d?.noFollow?e.push("Disallow: /"):e.push("Allow: /"),d?.noIndex||(e.push(""),e.push(`Sitemap: ${b}/sitemap.xml`)),d?.noIndex||d?.noFollow||(e.push(""),e.push("# Disallow common non-content paths"),e.push("Disallow: /api/"),e.push("Disallow: /_next/"),e.push("Disallow: /admin/")),e.join("\n")+"\n"}({baseUrl:u,publishSettings:{enabled:h.enabled,underConstruction:h.underConstruction,customDomain:h.customDomain,headScripts:h.headScripts,bodyScripts:h.bodyScripts,cdnLinks:h.cdnLinks,analytics:h.analytics,seo:h.seo,compliance:h.compliance,settingsVersion:h.settingsVersion,lastPublishedVersion:h.lastPublishedVersion}});await d.promises.writeFile(f().join(w,"robots.txt"),y,"utf-8"),x++;let z=await (0,g.B)();return await z.init(),z.updateSite&&await z.updateSite({...h,lastPublishedVersion:h.settingsVersion,publishedAt:new Date}),await z.close?.(),r.cleanupBlobUrls(),j.v.info(`[Static Builder] Build complete: ${x} files written to /sites/${a}`),{success:!0,siteId:a,projectId:h.projectId,filesWritten:x,outputPath:`/sites/${a}`}}catch(b){return j.v.error("[Static Builder] Build failed:",b),{success:!1,siteId:a||"",projectId:"",filesWritten:0,outputPath:"",error:b instanceof Error?b.message:"Unknown error"}}}async function r(a){try{let b=f().join(process.cwd(),"public","sites",a);return await d.promises.rm(b,{recursive:!0,force:!0}),!0}catch(a){return j.v.error("[Static Builder] Error cleaning site:",a),!1}}},95012:(a,b,c)=>{c.d(b,{v:()=>g});let d={debug:10,info:20,warn:30,error:40,silent:50},e="undefined"!=typeof process&&"warn"||"warn";function f(a){return d[e]<=d[a]}let g={debug:(...a)=>{f("debug")&&console.debug(...a)},info:(...a)=>{f("info")&&console.info(...a)},warn:(...a)=>{f("warn")&&console.warn(...a)},error:(...a)=>{f("error")&&console.error(...a)}}}}; \ No newline at end of file +`}({baseUrl:v,htmlFiles:w,publishSettings:{enabled:h.enabled,underConstruction:h.underConstruction,customDomain:h.customDomain,headScripts:h.headScripts,bodyScripts:h.bodyScripts,cdnLinks:h.cdnLinks,analytics:h.analytics,seo:h.seo,compliance:h.compliance,settingsVersion:h.settingsVersion,lastPublishedVersion:h.lastPublishedVersion}});await d.promises.writeFile(f().join(x,"sitemap.xml"),a,"utf-8"),y++}let z=function(a){let{baseUrl:b,publishSettings:c}=a,{seo:d}=c,e=[];return e.push("User-agent: *"),d?.noIndex||d?.noFollow?e.push("Disallow: /"):e.push("Allow: /"),d?.noIndex||(e.push(""),e.push(`Sitemap: ${b}/sitemap.xml`)),d?.noIndex||d?.noFollow||(e.push(""),e.push("# Disallow common non-content paths"),e.push("Disallow: /api/"),e.push("Disallow: /_next/"),e.push("Disallow: /admin/")),e.join("\n")+"\n"}({baseUrl:v,publishSettings:{enabled:h.enabled,underConstruction:h.underConstruction,customDomain:h.customDomain,headScripts:h.headScripts,bodyScripts:h.bodyScripts,cdnLinks:h.cdnLinks,analytics:h.analytics,seo:h.seo,compliance:h.compliance,settingsVersion:h.settingsVersion,lastPublishedVersion:h.lastPublishedVersion}});await d.promises.writeFile(f().join(x,"robots.txt"),z,"utf-8"),y++;let A=await u(h.projectId,a);A.errors.length>0&&j.v.warn("[Static Builder] Backend feature extraction warnings:",A.errors),(A.edgeFunctions>0||A.serverFunctions>0||A.secrets>0||A.scheduledFunctions>0)&&j.v.info(`[Static Builder] Backend features provisioned: ${A.edgeFunctions} edge functions, ${A.serverFunctions} server functions, ${A.secrets} secrets, ${A.scheduledFunctions} scheduled functions`);let B=await (0,g.B)();return await B.init(),B.updateDeployment&&await B.updateDeployment({...h,lastPublishedVersion:h.settingsVersion,publishedAt:new Date}),await B.close?.(),r.cleanupBlobUrls(),j.v.info(`[Static Builder] Build complete: ${y} files written to /deployments/${a}`),{success:!0,deploymentId:a,projectId:h.projectId,filesWritten:y,outputPath:`/deployments/${a}`}}catch(b){return j.v.error("[Static Builder] Build failed:",b),{success:!1,deploymentId:a||"",projectId:"",filesWritten:0,outputPath:"",error:b instanceof Error?b.message:"Unknown error"}}}async function w(a){try{let b=f().join(process.cwd(),"public","deployments",a);return await d.promises.rm(b,{recursive:!0,force:!0}),!0}catch(a){return j.v.error("[Static Builder] Error cleaning deployment:",a),!1}}},95012:(a,b,c)=>{c.d(b,{v:()=>g});let d={debug:10,info:20,warn:30,error:40,silent:50},e="undefined"!=typeof process&&"warn"||"warn";function f(a){return d[e]<=d[a]}let g={debug:(...a)=>{f("debug")&&console.debug(...a)},info:(...a)=>{f("info")&&console.info(...a)},warn:(...a)=>{f("warn")&&console.warn(...a)},error:(...a)=>{f("error")&&console.error(...a)}}}}; \ No newline at end of file diff --git a/.next/server/chunks/726.js b/.next/server/chunks/3343.js similarity index 53% rename from .next/server/chunks/726.js rename to .next/server/chunks/3343.js index 78da689877e9950d530dbdb3468cb1df9622209c..a0b0fe6e83f30e6c9e1bde0ad52e43ec77cd927f 100644 --- a/.next/server/chunks/726.js +++ b/.next/server/chunks/3343.js @@ -1,4 +1,4 @@ -exports.id=726,exports.ids=[726],exports.modules={74051:(a,b,c)=>{"use strict";c.r(b),c.d(b,{closeAllConnections:()=>v,closeCoreDatabase:()=>u,closeSiteDatabase:()=>t,deleteSiteDatabase:()=>s,getCoreDatabase:()=>p,getCoreDatabasePath:()=>y,getSiteDatabase:()=>q,getSiteDatabasePath:()=>x,listSiteIds:()=>w,siteExists:()=>r});var d=c(87550),e=c.n(d),f=c(33873),g=c.n(f),h=c(29021),i=c.n(h);let j=null,k=new Map;function l(){return process.env.DATA_DIR||g().join(process.cwd(),"data")}function m(){return g().join(process.cwd(),"sites")}function n(a){i().existsSync(a)||i().mkdirSync(a,{recursive:!0})}function o(a){a.pragma("journal_mode = WAL"),a.pragma("foreign_keys = ON"),a.pragma("synchronous = NORMAL"),a.pragma("cache_size = -64000"),a.pragma("temp_store = MEMORY")}function p(){if(j)return j;let a=l();n(a);let b=g().join(a,"osws.sqlite");return o(j=new(e())(b)),j}function q(a){let b=k.get(a);if(b)return b;let c=m(),d=g().join(c,a);n(d);let f=g().join(d,"site.sqlite"),h=new(e())(f);return o(h),k.set(a,h),h}function r(a){let b=m(),c=g().join(b,a,"site.sqlite");return i().existsSync(c)}function s(a){t(a);let b=m(),c=g().join(b,a);if(i().existsSync(c)){for(let a of i().readdirSync(c))i().unlinkSync(g().join(c,a));i().rmdirSync(c)}}function t(a){let b=k.get(a);if(b){try{b.close()}catch{}k.delete(a)}}function u(){if(j){try{j.close()}catch{}j=null}}function v(){for(let[a]of k)t(a);u()}function w(){let a=m();return i().existsSync(a)?i().readdirSync(a,{withFileTypes:!0}).filter(a=>a.isDirectory()).filter(b=>i().existsSync(g().join(a,b.name,"site.sqlite"))).map(a=>a.name):[]}function x(a){let b=m();return g().join(b,a,"site.sqlite")}function y(){let a=l();return g().join(a,"osws.sqlite")}},75794:(a,b,c)=>{"use strict";c.d(b,{MG:()=>i,wu:()=>j,yg:()=>h});var d=c(55511),e=c.n(d);let f="aes-256-gcm";function g(){let a=process.env.SECRETS_ENCRYPTION_KEY;if(!a)throw Error("SECRETS_ENCRYPTION_KEY environment variable not set");let b=Buffer.from(a,"base64");if(32!==b.length)throw Error(`Invalid SECRETS_ENCRYPTION_KEY: expected 32 bytes, got ${b.length}`);return b}function h(){try{return g(),!0}catch{return!1}}function i(a){let b=g(),c=e().randomBytes(16),d=e().createCipheriv(f,b,c),h=d.update(a,"utf8","base64");return{encryptedValue:h+=d.final("base64"),iv:c.toString("base64"),authTag:d.getAuthTag().toString("base64")}}function j(a,b,c){let d=g(),h=e().createDecipheriv(f,d,Buffer.from(b,"base64"));h.setAuthTag(Buffer.from(c,"base64"));let i=h.update(a,"base64","utf8");return i+h.final("utf8")}},78335:()=>{},96487:()=>{},97778:(a,b,c)=>{"use strict";c.d(b,{B:()=>v,q:()=>w});var d=c(74051),e=c(32524),f=c(75794);function g(a){return a?"string"==typeof a?a:a.toISOString():null}function h(a){return"string"==typeof a?a:a.toISOString()}function i(a,b){if(!a)return b;try{return JSON.parse(a)}catch{return b}}function j(a){return a?new Date(a):new Date}class k{constructor(a){this.initialized=!1,this.siteId=a,this.db=(0,d.getSiteDatabase)(a)}init(){this.initialized||(this.db.exec(` +exports.id=3343,exports.ids=[3343],exports.modules={2304:(a,b,c)=>{"use strict";c.d(b,{k:()=>k});var d=c(32524),e=c(75794),f=c(74051);function g(a){return a?"string"==typeof a?a:a.toISOString():null}function h(a){return"string"==typeof a?a:a.toISOString()}function i(a,b){if(!a)return b;try{return JSON.parse(a)}catch{return b}}function j(a){return a?new Date(a):new Date}class k{constructor(a){this.initialized=!1,this.deploymentId=a,this.db=(0,f.getRuntimeDatabaseConnection)(a)}init(){this.initialized||(this.db.exec(` CREATE TABLE IF NOT EXISTS site_info ( id TEXT PRIMARY KEY DEFAULT 'main', project_id TEXT NOT NULL, @@ -34,9 +34,7 @@ exports.id=726,exports.ids=[726],exports.modules={74051:(a,b,c)=>{"use strict";c updated_at TEXT NOT NULL, metadata TEXT DEFAULT '{}' ) - `),this.db.exec(` - CREATE INDEX IF NOT EXISTS idx_files_path ON files(path) - `),this.db.exec(` + `),this.db.exec("CREATE INDEX IF NOT EXISTS idx_files_path ON files(path)"),this.db.exec(` CREATE TABLE IF NOT EXISTS file_tree_nodes ( id TEXT PRIMARY KEY, path TEXT NOT NULL UNIQUE, @@ -47,57 +45,7 @@ exports.id=726,exports.ids=[726],exports.modules={74051:(a,b,c)=>{"use strict";c children TEXT DEFAULT '[]', metadata TEXT DEFAULT '{}' ) - `),this.db.exec(` - CREATE INDEX IF NOT EXISTS idx_tree_nodes_parent_path ON file_tree_nodes(parent_path) - `),this.db.exec(` - CREATE TABLE IF NOT EXISTS pageviews ( - id INTEGER PRIMARY KEY AUTOINCREMENT, - page_path TEXT NOT NULL, - referrer TEXT, - country TEXT, - user_agent TEXT, - device_type TEXT, - session_id TEXT NOT NULL, - load_time INTEGER, - timestamp TEXT NOT NULL DEFAULT (datetime('now')) - ) - `),this.db.exec(` - CREATE INDEX IF NOT EXISTS idx_pageviews_timestamp ON pageviews(timestamp) - `),this.db.exec(` - CREATE INDEX IF NOT EXISTS idx_pageviews_session_id ON pageviews(session_id) - `),this.db.exec(` - CREATE TABLE IF NOT EXISTS interactions ( - id TEXT PRIMARY KEY, - session_id TEXT NOT NULL, - page_path TEXT NOT NULL, - interaction_type TEXT NOT NULL, - element_selector TEXT, - coordinates TEXT, - scroll_depth INTEGER, - time_on_page INTEGER, - timestamp TEXT NOT NULL DEFAULT (datetime('now')) - ) - `),this.db.exec(` - CREATE INDEX IF NOT EXISTS idx_interactions_page_path ON interactions(page_path) - `),this.db.exec(` - CREATE INDEX IF NOT EXISTS idx_interactions_timestamp ON interactions(timestamp) - `),this.db.exec(` - CREATE TABLE IF NOT EXISTS sessions ( - id TEXT PRIMARY KEY, - session_id TEXT NOT NULL, - entry_page TEXT, - exit_page TEXT, - page_count INTEGER DEFAULT 1, - duration INTEGER, - is_bounce INTEGER DEFAULT 1, - created_at TEXT NOT NULL DEFAULT (datetime('now')), - ended_at TEXT - ) - `),this.db.exec(` - CREATE INDEX IF NOT EXISTS idx_sessions_session_id ON sessions(session_id) - `),this.db.exec(` - CREATE INDEX IF NOT EXISTS idx_sessions_created_at ON sessions(created_at) - `),this.db.exec(` + `),this.db.exec("CREATE INDEX IF NOT EXISTS idx_tree_nodes_parent_path ON file_tree_nodes(parent_path)"),this.db.exec(` CREATE TABLE IF NOT EXISTS edge_functions ( id TEXT PRIMARY KEY, name TEXT NOT NULL UNIQUE, @@ -109,9 +57,7 @@ exports.id=726,exports.ids=[726],exports.modules={74051:(a,b,c)=>{"use strict";c created_at TEXT NOT NULL, updated_at TEXT NOT NULL ) - `),this.db.exec(` - CREATE INDEX IF NOT EXISTS idx_edge_functions_name ON edge_functions(name) - `),this.db.exec(` + `),this.db.exec("CREATE INDEX IF NOT EXISTS idx_edge_functions_name ON edge_functions(name)"),this.db.exec(` CREATE TABLE IF NOT EXISTS function_logs ( id INTEGER PRIMARY KEY AUTOINCREMENT, function_id TEXT NOT NULL, @@ -123,11 +69,7 @@ exports.id=726,exports.ids=[726],exports.modules={74051:(a,b,c)=>{"use strict";c timestamp TEXT NOT NULL DEFAULT (datetime('now')), FOREIGN KEY (function_id) REFERENCES edge_functions(id) ON DELETE CASCADE ) - `),this.db.exec(` - CREATE INDEX IF NOT EXISTS idx_function_logs_function_id ON function_logs(function_id) - `),this.db.exec(` - CREATE INDEX IF NOT EXISTS idx_function_logs_timestamp ON function_logs(timestamp) - `),this.db.exec(` + `),this.db.exec("CREATE INDEX IF NOT EXISTS idx_function_logs_function_id ON function_logs(function_id)"),this.db.exec("CREATE INDEX IF NOT EXISTS idx_function_logs_timestamp ON function_logs(timestamp)"),this.db.exec(` CREATE TABLE IF NOT EXISTS server_functions ( id TEXT PRIMARY KEY, name TEXT NOT NULL UNIQUE, @@ -137,9 +79,7 @@ exports.id=726,exports.ids=[726],exports.modules={74051:(a,b,c)=>{"use strict";c created_at TEXT NOT NULL, updated_at TEXT NOT NULL ) - `),this.db.exec(` - CREATE INDEX IF NOT EXISTS idx_server_functions_name ON server_functions(name) - `),this.db.exec(` + `),this.db.exec("CREATE INDEX IF NOT EXISTS idx_server_functions_name ON server_functions(name)"),this.db.exec(` CREATE TABLE IF NOT EXISTS secrets ( id TEXT PRIMARY KEY, name TEXT NOT NULL UNIQUE, @@ -150,9 +90,7 @@ exports.id=726,exports.ids=[726],exports.modules={74051:(a,b,c)=>{"use strict";c created_at TEXT NOT NULL, updated_at TEXT NOT NULL ) - `),this.db.exec(` - CREATE INDEX IF NOT EXISTS idx_secrets_name ON secrets(name) - `),this.db.exec(` + `),this.db.exec("CREATE INDEX IF NOT EXISTS idx_secrets_name ON secrets(name)"),this.db.exec(` CREATE TABLE IF NOT EXISTS scheduled_functions ( id TEXT PRIMARY KEY, name TEXT NOT NULL UNIQUE, @@ -171,11 +109,7 @@ exports.id=726,exports.ids=[726],exports.modules={74051:(a,b,c)=>{"use strict";c updated_at TEXT NOT NULL, FOREIGN KEY (function_id) REFERENCES edge_functions(id) ON DELETE CASCADE ) - `),this.db.exec(` - CREATE INDEX IF NOT EXISTS idx_scheduled_functions_name ON scheduled_functions(name) - `),this.db.exec(` - CREATE INDEX IF NOT EXISTS idx_scheduled_functions_next_run ON scheduled_functions(next_run_at) - `),this.initialized=!0)}close(){(0,d.closeSiteDatabase)(this.siteId)}createSiteInfo(a){this.db.prepare(` + `),this.db.exec("CREATE INDEX IF NOT EXISTS idx_scheduled_functions_name ON scheduled_functions(name)"),this.db.exec("CREATE INDEX IF NOT EXISTS idx_scheduled_functions_next_run ON scheduled_functions(next_run_at)"),this.initialized=!0)}close(){(0,f.closeRuntimeDatabase)(this.deploymentId)}createDeploymentInfo(a){this.db.prepare(` INSERT OR REPLACE INTO site_info ( id, project_id, name, slug, enabled, under_construction, custom_domain, head_scripts, body_scripts, cdn_links, @@ -185,7 +119,7 @@ exports.id=726,exports.ids=[726],exports.modules={74051:(a,b,c)=>{"use strict";c ) VALUES ( 'main', ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? ) - `).run(a.projectId,a.name,a.slug??null,+!!a.enabled,+!!a.underConstruction,a.customDomain??null,JSON.stringify(a.headScripts??[]),JSON.stringify(a.bodyScripts??[]),JSON.stringify(a.cdnLinks??[]),JSON.stringify(a.analytics??{}),JSON.stringify(a.seo??{}),JSON.stringify(a.compliance??{}),a.settingsVersion??1,a.lastPublishedVersion??null,a.previewImage??null,g(a.previewUpdatedAt),h(a.createdAt),h(a.updatedAt),g(a.publishedAt))}getSiteInfo(){let a=this.db.prepare("SELECT * FROM site_info WHERE id = ?").get("main");return a?{id:this.siteId,projectId:a.project_id,name:a.name,slug:a.slug,enabled:!!a.enabled,underConstruction:!!a.under_construction,customDomain:a.custom_domain,headScripts:i(a.head_scripts,[]),bodyScripts:i(a.body_scripts,[]),cdnLinks:i(a.cdn_links,[]),analytics:i(a.analytics,{enabled:!1,provider:"builtin",privacyMode:!0}),seo:i(a.seo,{}),compliance:i(a.compliance,{enabled:!1,bannerPosition:"bottom",bannerStyle:"bar",message:"",acceptButtonText:"Accept",declineButtonText:"Decline",mode:"opt-in",blockAnalytics:!1}),settingsVersion:a.settings_version,lastPublishedVersion:a.last_published_version,previewImage:a.preview_image,previewUpdatedAt:a.preview_updated_at?j(a.preview_updated_at):void 0,createdAt:j(a.created_at),updatedAt:j(a.updated_at),publishedAt:a.published_at?j(a.published_at):null}:null}updateSiteInfo(a){let b=[],c=[];if(void 0!==a.name&&(b.push("name = ?"),c.push(a.name)),void 0!==a.slug&&(b.push("slug = ?"),c.push(a.slug)),void 0!==a.enabled&&(b.push("enabled = ?"),c.push(+!!a.enabled)),void 0!==a.underConstruction&&(b.push("under_construction = ?"),c.push(+!!a.underConstruction)),void 0!==a.customDomain&&(b.push("custom_domain = ?"),c.push(a.customDomain)),void 0!==a.headScripts&&(b.push("head_scripts = ?"),c.push(JSON.stringify(a.headScripts))),void 0!==a.bodyScripts&&(b.push("body_scripts = ?"),c.push(JSON.stringify(a.bodyScripts))),void 0!==a.cdnLinks&&(b.push("cdn_links = ?"),c.push(JSON.stringify(a.cdnLinks))),void 0!==a.analytics&&(b.push("analytics = ?"),c.push(JSON.stringify(a.analytics))),void 0!==a.seo&&(b.push("seo = ?"),c.push(JSON.stringify(a.seo))),void 0!==a.compliance&&(b.push("compliance = ?"),c.push(JSON.stringify(a.compliance))),void 0!==a.settingsVersion&&(b.push("settings_version = ?"),c.push(a.settingsVersion)),void 0!==a.lastPublishedVersion&&(b.push("last_published_version = ?"),c.push(a.lastPublishedVersion)),void 0!==a.previewImage&&(b.push("preview_image = ?"),c.push(a.previewImage)),void 0!==a.previewUpdatedAt&&(b.push("preview_updated_at = ?"),c.push(g(a.previewUpdatedAt))),void 0!==a.updatedAt&&(b.push("updated_at = ?"),c.push(h(a.updatedAt))),void 0!==a.publishedAt&&(b.push("published_at = ?"),c.push(g(a.publishedAt))),0===b.length)return;a.updatedAt||(b.push("updated_at = ?"),c.push(new Date().toISOString()));let d=`UPDATE site_info SET ${b.join(", ")} WHERE id = 'main'`;this.db.prepare(d).run(...c)}createFile(a){let b,c=this.db.prepare(` + `).run(a.projectId,a.name,a.slug??null,+!!a.enabled,+!!a.underConstruction,a.customDomain??null,JSON.stringify(a.headScripts??[]),JSON.stringify(a.bodyScripts??[]),JSON.stringify(a.cdnLinks??[]),JSON.stringify(a.analytics??{}),JSON.stringify(a.seo??{}),JSON.stringify(a.compliance??{}),a.settingsVersion??1,a.lastPublishedVersion??null,a.previewImage??null,g(a.previewUpdatedAt),h(a.createdAt),h(a.updatedAt),g(a.publishedAt))}getDeploymentInfo(){let a=this.db.prepare("SELECT * FROM site_info WHERE id = ?").get("main");return a?{id:this.deploymentId,projectId:a.project_id,name:a.name,slug:a.slug,enabled:!!a.enabled,underConstruction:!!a.under_construction,customDomain:a.custom_domain,headScripts:i(a.head_scripts,[]),bodyScripts:i(a.body_scripts,[]),cdnLinks:i(a.cdn_links,[]),analytics:i(a.analytics,{enabled:!1,provider:"builtin",privacyMode:!0}),seo:i(a.seo,{}),compliance:i(a.compliance,{enabled:!1,bannerPosition:"bottom",bannerStyle:"bar",message:"",acceptButtonText:"Accept",declineButtonText:"Decline",mode:"opt-in",blockAnalytics:!1}),settingsVersion:a.settings_version,lastPublishedVersion:a.last_published_version,previewImage:a.preview_image,previewUpdatedAt:a.preview_updated_at?j(a.preview_updated_at):void 0,createdAt:j(a.created_at),updatedAt:j(a.updated_at),publishedAt:a.published_at?j(a.published_at):null}:null}updateDeploymentInfo(a){let b=[],c=[];if(void 0!==a.name&&(b.push("name = ?"),c.push(a.name)),void 0!==a.slug&&(b.push("slug = ?"),c.push(a.slug)),void 0!==a.enabled&&(b.push("enabled = ?"),c.push(+!!a.enabled)),void 0!==a.underConstruction&&(b.push("under_construction = ?"),c.push(+!!a.underConstruction)),void 0!==a.customDomain&&(b.push("custom_domain = ?"),c.push(a.customDomain)),void 0!==a.headScripts&&(b.push("head_scripts = ?"),c.push(JSON.stringify(a.headScripts))),void 0!==a.bodyScripts&&(b.push("body_scripts = ?"),c.push(JSON.stringify(a.bodyScripts))),void 0!==a.cdnLinks&&(b.push("cdn_links = ?"),c.push(JSON.stringify(a.cdnLinks))),void 0!==a.analytics&&(b.push("analytics = ?"),c.push(JSON.stringify(a.analytics))),void 0!==a.seo&&(b.push("seo = ?"),c.push(JSON.stringify(a.seo))),void 0!==a.compliance&&(b.push("compliance = ?"),c.push(JSON.stringify(a.compliance))),void 0!==a.settingsVersion&&(b.push("settings_version = ?"),c.push(a.settingsVersion)),void 0!==a.lastPublishedVersion&&(b.push("last_published_version = ?"),c.push(a.lastPublishedVersion)),void 0!==a.previewImage&&(b.push("preview_image = ?"),c.push(a.previewImage)),void 0!==a.previewUpdatedAt&&(b.push("preview_updated_at = ?"),c.push(g(a.previewUpdatedAt))),void 0!==a.updatedAt&&(b.push("updated_at = ?"),c.push(h(a.updatedAt))),void 0!==a.publishedAt&&(b.push("published_at = ?"),c.push(g(a.publishedAt))),0===b.length)return;a.updatedAt||(b.push("updated_at = ?"),c.push(new Date().toISOString()));let d=`UPDATE site_info SET ${b.join(", ")} WHERE id = 'main'`;this.db.prepare(d).run(...c)}createFile(a){let b,c=this.db.prepare(` INSERT INTO files ( id, path, name, type, content, mime_type, size, created_at, updated_at, metadata @@ -195,14 +129,92 @@ exports.id=726,exports.ids=[726],exports.modules={74051:(a,b,c)=>{"use strict";c name = ?, type = ?, content = ?, mime_type = ?, size = ?, updated_at = ?, metadata = ? WHERE path = ? - `);b=a.content instanceof ArrayBuffer?Buffer.from(a.content).toString("base64"):"string"==typeof a.content?a.content:"",c.run(a.name,a.type,b,a.mimeType??null,a.size??0,h(a.updatedAt),JSON.stringify(a.metadata??{}),a.path)}deleteFile(a){this.db.prepare("DELETE FROM files WHERE path = ?").run(a)}listFiles(){return this.db.prepare("SELECT * FROM files ORDER BY path").all().map(a=>this.rowToFile(a))}deleteAllFiles(){this.db.prepare("DELETE FROM files").run()}rowToFile(a){let b=i(a.metadata,{}),c=a.type,d=a.content;if("image"===c||"video"===c||"binary"===c)try{let a=d;if(a.startsWith("data:")){let b=a.indexOf(",");-1!==b&&(a=a.slice(b+1))}d=Buffer.from(a,"base64").buffer}catch{}return{id:a.id,projectId:this.siteId,path:a.path,name:a.name,type:c,content:d,mimeType:a.mime_type,size:a.size,createdAt:j(a.created_at),updatedAt:j(a.updated_at),metadata:b}}createTreeNode(a){this.db.prepare(` + `);b=a.content instanceof ArrayBuffer?Buffer.from(a.content).toString("base64"):"string"==typeof a.content?a.content:"",c.run(a.name,a.type,b,a.mimeType??null,a.size??0,h(a.updatedAt),JSON.stringify(a.metadata??{}),a.path)}deleteFile(a){this.db.prepare("DELETE FROM files WHERE path = ?").run(a)}listFiles(){return this.db.prepare("SELECT * FROM files ORDER BY path").all().map(a=>this.rowToFile(a))}deleteAllFiles(){this.db.prepare("DELETE FROM files").run()}rowToFile(a){let b=i(a.metadata,{}),c=a.type,d=a.content;if("image"===c||"video"===c||"binary"===c)try{let a=d;if(a.startsWith("data:")){let b=a.indexOf(",");-1!==b&&(a=a.slice(b+1))}d=Buffer.from(a,"base64").buffer}catch{}return{id:a.id,projectId:this.deploymentId,path:a.path,name:a.name,type:c,content:d,mimeType:a.mime_type,size:a.size,createdAt:j(a.created_at),updatedAt:j(a.updated_at),metadata:b}}createTreeNode(a){this.db.prepare(` INSERT INTO file_tree_nodes (id, path, name, type, parent_path, is_expanded, children, metadata) VALUES (?, ?, ?, ?, ?, ?, ?, ?) `).run(a.id,a.path,a.name,a.type,a.parentPath,+!!a.isExpanded,JSON.stringify(a.children??[]),JSON.stringify(a.metadata??{}))}getTreeNode(a){let b=this.db.prepare("SELECT * FROM file_tree_nodes WHERE path = ?").get(a);return b?this.rowToTreeNode(b):null}updateTreeNode(a){this.db.prepare(` UPDATE file_tree_nodes SET name = ?, type = ?, parent_path = ?, is_expanded = ?, children = ?, metadata = ? WHERE path = ? - `).run(a.name,a.type,a.parentPath,+!!a.isExpanded,JSON.stringify(a.children??[]),JSON.stringify(a.metadata??{}),a.path)}deleteTreeNode(a){this.db.prepare("DELETE FROM file_tree_nodes WHERE path = ?").run(a)}getChildNodes(a){return this.db.prepare("SELECT * FROM file_tree_nodes WHERE parent_path IS ? ORDER BY type DESC, path").all(a).map(a=>this.rowToTreeNode(a))}getAllTreeNodes(){return this.db.prepare("SELECT * FROM file_tree_nodes ORDER BY path").all().map(a=>this.rowToTreeNode(a))}rowToTreeNode(a){return{id:a.id,projectId:this.siteId,path:a.path,name:a.name,type:a.type,parentPath:a.parent_path,isExpanded:!!a.is_expanded,children:i(a.children,[]),metadata:i(a.metadata,{})}}recordPageview(a){this.db.prepare(` + `).run(a.name,a.type,a.parentPath,+!!a.isExpanded,JSON.stringify(a.children??[]),JSON.stringify(a.metadata??{}),a.path)}deleteTreeNode(a){this.db.prepare("DELETE FROM file_tree_nodes WHERE path = ?").run(a)}getChildNodes(a){return this.db.prepare("SELECT * FROM file_tree_nodes WHERE parent_path IS ? ORDER BY type DESC, path").all(a).map(a=>this.rowToTreeNode(a))}getAllTreeNodes(){return this.db.prepare("SELECT * FROM file_tree_nodes ORDER BY path").all().map(a=>this.rowToTreeNode(a))}rowToTreeNode(a){return{id:a.id,projectId:this.deploymentId,path:a.path,name:a.name,type:a.type,parentPath:a.parent_path,isExpanded:!!a.is_expanded,children:i(a.children,[]),metadata:i(a.metadata,{})}}createFunction(a){let b=(0,d.A)(),c=new Date().toISOString();return this.db.prepare(` + INSERT INTO edge_functions ( + id, name, description, code, method, enabled, timeout_ms, created_at, updated_at + ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) + `).run(b,a.name,a.description??null,a.code,a.method,+!!a.enabled,a.timeoutMs,c,c),b}getFunction(a){let b=this.db.prepare("SELECT * FROM edge_functions WHERE id = ?").get(a);return b?this.rowToFunction(b):null}getFunctionByName(a){let b=this.db.prepare("SELECT * FROM edge_functions WHERE name = ?").get(a);return b?this.rowToFunction(b):null}updateFunction(a,b){let c=[],d=[];if(void 0!==b.name&&(c.push("name = ?"),d.push(b.name)),void 0!==b.description&&(c.push("description = ?"),d.push(b.description)),void 0!==b.code&&(c.push("code = ?"),d.push(b.code)),void 0!==b.method&&(c.push("method = ?"),d.push(b.method)),void 0!==b.enabled&&(c.push("enabled = ?"),d.push(+!!b.enabled)),void 0!==b.timeoutMs&&(c.push("timeout_ms = ?"),d.push(b.timeoutMs)),0===c.length)return;c.push("updated_at = ?"),d.push(new Date().toISOString()),d.push(a);let e=`UPDATE edge_functions SET ${c.join(", ")} WHERE id = ?`;this.db.prepare(e).run(...d)}deleteFunction(a){this.db.prepare("DELETE FROM edge_functions WHERE id = ?").run(a)}listFunctions(){return this.db.prepare("SELECT * FROM edge_functions ORDER BY name").all().map(a=>this.rowToFunction(a))}rowToFunction(a){return{id:a.id,projectId:"",name:a.name,description:a.description,code:a.code,method:a.method,enabled:!!a.enabled,timeoutMs:a.timeout_ms,createdAt:j(a.created_at),updatedAt:j(a.updated_at)}}logFunctionExecution(a,b){this.db.prepare(` + INSERT INTO function_logs (function_id, method, path, status_code, duration_ms, error) + VALUES (?, ?, ?, ?, ?, ?) + `).run(a,b.method,b.path,b.statusCode,b.durationMs,b.error??null)}getFunctionLogs(a,b=100){return this.db.prepare(` + SELECT * FROM function_logs WHERE function_id = ? + ORDER BY timestamp DESC LIMIT ? + `).all(a,b).map(a=>this.rowToFunctionLog(a))}getRecentLogs(a=100){return this.db.prepare(` + SELECT * FROM function_logs ORDER BY timestamp DESC LIMIT ? + `).all(a).map(a=>this.rowToFunctionLog(a))}clearFunctionLogs(a,b){a&&b?this.db.prepare("DELETE FROM function_logs WHERE function_id = ? AND timestamp < ?").run(a,b.toISOString()):a?this.db.prepare("DELETE FROM function_logs WHERE function_id = ?").run(a):b?this.db.prepare("DELETE FROM function_logs WHERE timestamp < ?").run(b.toISOString()):this.db.prepare("DELETE FROM function_logs").run()}rowToFunctionLog(a){return{id:a.id,functionId:a.function_id,method:a.method,path:a.path,statusCode:a.status_code,durationMs:a.duration_ms,error:a.error,timestamp:j(a.timestamp)}}createServerFunction(a){let b=(0,d.A)(),c=new Date().toISOString();return this.db.prepare(` + INSERT INTO server_functions ( + id, name, description, code, enabled, created_at, updated_at + ) VALUES (?, ?, ?, ?, ?, ?, ?) + `).run(b,a.name,a.description??null,a.code,+!!a.enabled,c,c),b}getServerFunction(a){let b=this.db.prepare("SELECT * FROM server_functions WHERE id = ?").get(a);return b?this.rowToServerFunction(b):null}getServerFunctionByName(a){let b=this.db.prepare("SELECT * FROM server_functions WHERE name = ?").get(a);return b?this.rowToServerFunction(b):null}updateServerFunction(a,b){let c=[],d=[];if(void 0!==b.name&&(c.push("name = ?"),d.push(b.name)),void 0!==b.description&&(c.push("description = ?"),d.push(b.description)),void 0!==b.code&&(c.push("code = ?"),d.push(b.code)),void 0!==b.enabled&&(c.push("enabled = ?"),d.push(+!!b.enabled)),0===c.length)return;c.push("updated_at = ?"),d.push(new Date().toISOString()),d.push(a);let e=`UPDATE server_functions SET ${c.join(", ")} WHERE id = ?`;this.db.prepare(e).run(...d)}deleteServerFunction(a){this.db.prepare("DELETE FROM server_functions WHERE id = ?").run(a)}listServerFunctions(){return this.db.prepare("SELECT * FROM server_functions ORDER BY name").all().map(a=>this.rowToServerFunction(a))}rowToServerFunction(a){return{id:a.id,projectId:"",name:a.name,description:a.description,code:a.code,enabled:!!a.enabled,createdAt:j(a.created_at),updatedAt:j(a.updated_at)}}createSecret(a,b,c){if(!(0,e.yg)())throw Error("Secrets encryption not configured. Set SECRETS_ENCRYPTION_KEY environment variable.");let f=(0,d.A)(),g=new Date().toISOString(),h=(0,e.MG)(b);return this.db.prepare(` + INSERT INTO secrets (id, name, encrypted_value, iv, auth_tag, description, created_at, updated_at) + VALUES (?, ?, ?, ?, ?, ?, ?, ?) + `).run(f,a,h.encryptedValue,h.iv,h.authTag,c||null,g,g),f}getSecret(a){let b=this.db.prepare("SELECT * FROM secrets WHERE id = ?").get(a);return b?this.rowToSecret(b):null}getSecretByName(a){let b=this.db.prepare("SELECT * FROM secrets WHERE name = ?").get(a);return b?this.rowToSecret(b):null}updateSecretValue(a,b){if(!(0,e.yg)())throw Error("Secrets encryption not configured. Set SECRETS_ENCRYPTION_KEY environment variable.");let c=new Date().toISOString(),d=(0,e.MG)(b);this.db.prepare(` + UPDATE secrets + SET encrypted_value = ?, iv = ?, auth_tag = ?, updated_at = ? + WHERE id = ? + `).run(d.encryptedValue,d.iv,d.authTag,c,a)}updateSecretMetadata(a,b){let c=new Date().toISOString();void 0!==b.name&&this.db.prepare("UPDATE secrets SET name = ?, updated_at = ? WHERE id = ?").run(b.name,c,a),void 0!==b.description&&this.db.prepare("UPDATE secrets SET description = ?, updated_at = ? WHERE id = ?").run(b.description,c,a)}deleteSecret(a){this.db.prepare("DELETE FROM secrets WHERE id = ?").run(a)}listSecrets(){return this.db.prepare("SELECT * FROM secrets ORDER BY name").all().map(a=>this.rowToSecret(a))}listSecretsWithValues(){return this.db.prepare("SELECT name, encrypted_value, iv, auth_tag FROM secrets").all().map(a=>({name:a.name,encryptedValue:a.encrypted_value,iv:a.iv,authTag:a.auth_tag}))}rowToSecret(a){return{id:a.id,projectId:"",name:a.name,description:a.description,hasValue:null!==a.encrypted_value&&""!==a.encrypted_value,createdAt:j(a.created_at),updatedAt:j(a.updated_at)}}createSecretPlaceholder(a,b){let c=(0,d.A)(),e=new Date().toISOString();return this.db.prepare(` + INSERT INTO secrets (id, name, encrypted_value, iv, auth_tag, description, created_at, updated_at) + VALUES (?, ?, '', '', '', ?, ?, ?) + `).run(c,a,b||null,e,e),c}createScheduledFunction(a){let b=(0,d.A)(),c=new Date().toISOString();return this.db.prepare(` + INSERT INTO scheduled_functions ( + id, name, description, function_id, cron_expression, timezone, + config, enabled, last_run_at, next_run_at, last_status, last_error, + last_duration_ms, created_at, updated_at + ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) + `).run(b,a.name,a.description??null,a.functionId,a.cronExpression,a.timezone||"UTC",JSON.stringify(a.config||{}),+!!a.enabled,g(a.lastRunAt),g(a.nextRunAt),a.lastStatus??null,a.lastError??null,a.lastDurationMs??null,c,c),b}getScheduledFunction(a){let b=this.db.prepare("SELECT * FROM scheduled_functions WHERE id = ?").get(a);return b?this.rowToScheduledFunction(b):null}getScheduledFunctionByName(a){let b=this.db.prepare("SELECT * FROM scheduled_functions WHERE name = ?").get(a);return b?this.rowToScheduledFunction(b):null}updateScheduledFunction(a,b){let c=[],d=[];if(void 0!==b.name&&(c.push("name = ?"),d.push(b.name)),void 0!==b.description&&(c.push("description = ?"),d.push(b.description)),void 0!==b.functionId&&(c.push("function_id = ?"),d.push(b.functionId)),void 0!==b.cronExpression&&(c.push("cron_expression = ?"),d.push(b.cronExpression)),void 0!==b.timezone&&(c.push("timezone = ?"),d.push(b.timezone)),void 0!==b.config&&(c.push("config = ?"),d.push(JSON.stringify(b.config))),void 0!==b.enabled&&(c.push("enabled = ?"),d.push(+!!b.enabled)),void 0!==b.lastRunAt&&(c.push("last_run_at = ?"),d.push(g(b.lastRunAt))),void 0!==b.nextRunAt&&(c.push("next_run_at = ?"),d.push(g(b.nextRunAt))),void 0!==b.lastStatus&&(c.push("last_status = ?"),d.push(b.lastStatus)),void 0!==b.lastError&&(c.push("last_error = ?"),d.push(b.lastError)),void 0!==b.lastDurationMs&&(c.push("last_duration_ms = ?"),d.push(b.lastDurationMs)),0===c.length)return;c.push("updated_at = ?"),d.push(new Date().toISOString()),d.push(a);let e=`UPDATE scheduled_functions SET ${c.join(", ")} WHERE id = ?`;this.db.prepare(e).run(...d)}deleteScheduledFunction(a){this.db.prepare("DELETE FROM scheduled_functions WHERE id = ?").run(a)}listScheduledFunctions(){return this.db.prepare("SELECT * FROM scheduled_functions ORDER BY name").all().map(a=>this.rowToScheduledFunction(a))}listDueScheduledFunctions(){return this.db.prepare("SELECT * FROM scheduled_functions WHERE enabled = 1 AND next_run_at IS NOT NULL AND next_run_at <= strftime('%Y-%m-%dT%H:%M:%fZ', 'now')").all().map(a=>this.rowToScheduledFunction(a))}rowToScheduledFunction(a){return{id:a.id,projectId:"",name:a.name,description:a.description,functionId:a.function_id,cronExpression:a.cron_expression,timezone:a.timezone,config:i(a.config,{}),enabled:!!a.enabled,lastRunAt:a.last_run_at?j(a.last_run_at):void 0,nextRunAt:a.next_run_at?j(a.next_run_at):void 0,lastStatus:a.last_status,lastError:a.last_error,lastDurationMs:a.last_duration_ms,createdAt:j(a.created_at),updatedAt:j(a.updated_at)}}executeDDL(a){this.db.exec(a)}static{this.SYSTEM_TABLES=["site_info","files","file_tree_nodes","edge_functions","function_logs","server_functions","secrets","scheduled_functions"]}executeRawSQL(a,b){if(a.trim().toLowerCase().startsWith("select")){let c=this.db.prepare(a),d=b?c.all(...b):c.all();if(0===d.length)return{columns:[],rows:[],rowsAffected:0};let e=Object.keys(d[0]),f=d.map(a=>e.map(b=>a[b]));return{columns:e,rows:f,rowsAffected:0}}{let c=this.db.prepare(a);return{columns:[],rows:[],rowsAffected:(b?c.run(...b):c.run()).changes}}}getTableSchema(){return this.db.prepare(` + SELECT name FROM sqlite_master + WHERE type = 'table' AND name NOT LIKE 'sqlite_%' + ORDER BY name + `).all().map(a=>{let b=k.SYSTEM_TABLES.includes(a.name),c=this.db.prepare(`PRAGMA table_info('${a.name}')`).all(),d=this.db.prepare(`SELECT COUNT(*) as count FROM "${a.name}"`).get();return{name:a.name,columns:c.map(a=>({name:a.name,type:a.type,nullable:!a.notnull,primaryKey:a.pk>0,defaultValue:a.dflt_value??void 0})),rowCount:d.count,isSystemTable:b}})}getTableData(a,b=100,c=0){if(!this.db.prepare(` + SELECT name FROM sqlite_master WHERE type = 'table' AND name = ? + `).get(a))throw Error(`Table "${a}" does not exist`);let d=this.db.prepare(`SELECT COUNT(*) as count FROM "${a}"`).get(),e=this.db.prepare(`SELECT * FROM "${a}" LIMIT ? OFFSET ?`).all(b,c);if(0===e.length)return{columns:[],rows:[],total:d.count};let f=Object.keys(e[0]),g=e.map(a=>f.map(b=>a[b]));return{columns:f,rows:g,total:d.count}}isSystemTable(a){return k.SYSTEM_TABLES.includes(a)}executeUserQuery(a,b){let c=a.trim().toUpperCase(),d=this.validateNotSystemTable(c);if(d)return{columns:[],rows:[],rowsAffected:0,error:d};try{return this.executeRawSQL(a,b)}catch(a){return{columns:[],rows:[],rowsAffected:0,error:a instanceof Error?a.message:String(a)}}}validateNotSystemTable(a){let b=a.match(/^(DROP|ALTER|TRUNCATE)\s+TABLE\s+(?:IF\s+EXISTS\s+)?["'`]?(\w+)["'`]?/i);if(b){let a=b[2].toLowerCase();if(k.SYSTEM_TABLES.includes(a))return`Cannot modify system table: ${a}`}let c=a.match(/^INSERT\s+INTO\s+["'`]?(\w+)["'`]?/i);if(c){let a=c[1].toLowerCase();if(k.SYSTEM_TABLES.includes(a))return`Cannot insert into system table: ${a}`}let d=a.match(/^UPDATE\s+["'`]?(\w+)["'`]?/i);if(d){let a=d[1].toLowerCase();if(k.SYSTEM_TABLES.includes(a))return`Cannot update system table: ${a}`}let e=a.match(/^DELETE\s+FROM\s+["'`]?(\w+)["'`]?/i);if(e){let a=e[1].toLowerCase();if(k.SYSTEM_TABLES.includes(a))return`Cannot delete from system table: ${a}`}return null}getSchemaForExport(){let a=this.getTableSchema().filter(a=>!a.isSystemTable);if(0===a.length)return"-- No user tables defined\n-- Create tables using the SQL Editor or edge functions\n";let b="-- Database Schema\n";for(let c of(b+=`-- ${a.length} user table(s) + +`,a))b+=`-- Table: ${c.name} (${c.rowCount} rows) +`,b+=`CREATE TABLE ${c.name} ( +`,b+=c.columns.map(a=>{let b=` ${a.name} ${a.type}`;return a.primaryKey&&(b+=" PRIMARY KEY"),a.nullable||(b+=" NOT NULL"),void 0!==a.defaultValue&&(b+=` DEFAULT ${a.defaultValue}`),b}).join(",\n"),b+="\n);\n\n";return b}}},32907:(a,b,c)=>{"use strict";c.d(b,{B:()=>s,q:()=>t});var d=c(74051),e=c(2304),f=c(32524);class g{constructor(a){this.initialized=!1,this.deploymentId=a,this.db=(0,d.getAnalyticsDatabaseConnection)(a)}init(){this.initialized||(this.db.exec(` + CREATE TABLE IF NOT EXISTS pageviews ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + page_path TEXT NOT NULL, + referrer TEXT, + country TEXT, + user_agent TEXT, + device_type TEXT, + session_id TEXT NOT NULL, + load_time INTEGER, + timestamp TEXT NOT NULL DEFAULT (datetime('now')) + ) + `),this.db.exec("CREATE INDEX IF NOT EXISTS idx_pageviews_timestamp ON pageviews(timestamp)"),this.db.exec("CREATE INDEX IF NOT EXISTS idx_pageviews_session_id ON pageviews(session_id)"),this.db.exec(` + CREATE TABLE IF NOT EXISTS interactions ( + id TEXT PRIMARY KEY, + session_id TEXT NOT NULL, + page_path TEXT NOT NULL, + interaction_type TEXT NOT NULL, + element_selector TEXT, + coordinates TEXT, + scroll_depth INTEGER, + time_on_page INTEGER, + timestamp TEXT NOT NULL DEFAULT (datetime('now')) + ) + `),this.db.exec("CREATE INDEX IF NOT EXISTS idx_interactions_page_path ON interactions(page_path)"),this.db.exec("CREATE INDEX IF NOT EXISTS idx_interactions_timestamp ON interactions(timestamp)"),this.db.exec(` + CREATE TABLE IF NOT EXISTS sessions ( + id TEXT PRIMARY KEY, + session_id TEXT NOT NULL, + entry_page TEXT, + exit_page TEXT, + page_count INTEGER DEFAULT 1, + duration INTEGER, + is_bounce INTEGER DEFAULT 1, + created_at TEXT NOT NULL DEFAULT (datetime('now')), + ended_at TEXT + ) + `),this.db.exec("CREATE INDEX IF NOT EXISTS idx_sessions_session_id ON sessions(session_id)"),this.db.exec("CREATE INDEX IF NOT EXISTS idx_sessions_created_at ON sessions(created_at)"),this.initialized=!0)}close(){(0,d.closeAnalyticsDatabase)(this.deploymentId)}recordPageview(a){this.db.prepare(` INSERT INTO pageviews ( page_path, referrer, country, user_agent, device_type, session_id, load_time @@ -212,7 +224,7 @@ exports.id=726,exports.ids=[726],exports.modules={74051:(a,b,c)=>{"use strict";c id, session_id, page_path, interaction_type, element_selector, coordinates, scroll_depth, time_on_page ) VALUES (?, ?, ?, ?, ?, ?, ?, ?) - `).run((0,e.A)(),a.sessionId,a.pagePath,a.interactionType,a.elementSelector??null,a.coordinates?JSON.stringify(a.coordinates):null,a.scrollDepth??null,a.timeOnPage??null)}upsertSession(a,b){let c=this.db.prepare("SELECT * FROM sessions WHERE session_id = ?").get(a);if(c){let d=c.page_count+1;this.db.prepare(` + `).run((0,f.A)(),a.sessionId,a.pagePath,a.interactionType,a.elementSelector??null,a.coordinates?JSON.stringify(a.coordinates):null,a.scrollDepth??null,a.timeOnPage??null)}upsertSession(a,b){let c=this.db.prepare("SELECT * FROM sessions WHERE session_id = ?").get(a);if(c){let d=c.page_count+1;this.db.prepare(` UPDATE sessions SET exit_page = ?, page_count = ?, @@ -224,7 +236,7 @@ exports.id=726,exports.ids=[726],exports.modules={74051:(a,b,c)=>{"use strict";c id, session_id, entry_page, exit_page, page_count, is_bounce ) VALUES (?, ?, ?, ?, 1, 1) - `).run((0,e.A)(),a,b,b)}updateSessionDuration(a,b){this.db.prepare(` + `).run((0,f.A)(),a,b,b)}updateSessionDuration(a,b){this.db.prepare(` UPDATE sessions SET duration = ?, ended_at = datetime('now') WHERE session_id = ? `).run(b,a)}getStats(a=30){let b=new Date;b.setDate(b.getDate()-a);let c=b.toISOString(),d=this.db.prepare(` @@ -272,7 +284,7 @@ exports.id=726,exports.ids=[726],exports.modules={74051:(a,b,c)=>{"use strict";c FROM interactions WHERE page_path = ? AND interaction_type = ? AND coordinates IS NOT NULL GROUP BY coordinates - `).all(a,b).map(a=>{let b=i(a.coordinates,{x:0,y:0});return{x:b.x,y:b.y,count:a.count}})}getClickData(a,b,c,d=1e4){let e=` + `).all(a,b).map(a=>{let b=function(a,b){if(!a)return b;try{return JSON.parse(a)}catch{return b}}(a.coordinates,{x:0,y:0});return{x:b.x,y:b.y,count:a.count}})}getClickData(a,b,c,d=1e4){let e=` SELECT coordinates, element_selector, timestamp FROM interactions WHERE page_path = ? AND interaction_type = 'click' AND coordinates IS NOT NULL @@ -337,49 +349,7 @@ exports.id=726,exports.ids=[726],exports.modules={74051:(a,b,c)=>{"use strict";c duration, is_bounce, created_at, ended_at FROM sessions ORDER BY created_at DESC - `).all()),b}createFunction(a){let b=(0,e.A)(),c=new Date().toISOString();return this.db.prepare(` - INSERT INTO edge_functions ( - id, name, description, code, method, enabled, timeout_ms, created_at, updated_at - ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) - `).run(b,a.name,a.description??null,a.code,a.method,+!!a.enabled,a.timeoutMs,c,c),b}getFunction(a){let b=this.db.prepare("SELECT * FROM edge_functions WHERE id = ?").get(a);return b?this.rowToFunction(b):null}getFunctionByName(a){let b=this.db.prepare("SELECT * FROM edge_functions WHERE name = ?").get(a);return b?this.rowToFunction(b):null}updateFunction(a,b){let c=[],d=[];if(void 0!==b.name&&(c.push("name = ?"),d.push(b.name)),void 0!==b.description&&(c.push("description = ?"),d.push(b.description)),void 0!==b.code&&(c.push("code = ?"),d.push(b.code)),void 0!==b.method&&(c.push("method = ?"),d.push(b.method)),void 0!==b.enabled&&(c.push("enabled = ?"),d.push(+!!b.enabled)),void 0!==b.timeoutMs&&(c.push("timeout_ms = ?"),d.push(b.timeoutMs)),0===c.length)return;c.push("updated_at = ?"),d.push(new Date().toISOString()),d.push(a);let e=`UPDATE edge_functions SET ${c.join(", ")} WHERE id = ?`;this.db.prepare(e).run(...d)}deleteFunction(a){this.db.prepare("DELETE FROM edge_functions WHERE id = ?").run(a)}listFunctions(){return this.db.prepare("SELECT * FROM edge_functions ORDER BY name").all().map(a=>this.rowToFunction(a))}rowToFunction(a){return{id:a.id,name:a.name,description:a.description,code:a.code,method:a.method,enabled:!!a.enabled,timeoutMs:a.timeout_ms,createdAt:j(a.created_at),updatedAt:j(a.updated_at)}}logFunctionExecution(a,b){this.db.prepare(` - INSERT INTO function_logs (function_id, method, path, status_code, duration_ms, error) - VALUES (?, ?, ?, ?, ?, ?) - `).run(a,b.method,b.path,b.statusCode,b.durationMs,b.error??null)}getFunctionLogs(a,b=100){return this.db.prepare(` - SELECT * FROM function_logs WHERE function_id = ? - ORDER BY timestamp DESC LIMIT ? - `).all(a,b).map(a=>this.rowToFunctionLog(a))}getRecentLogs(a=100){return this.db.prepare(` - SELECT * FROM function_logs ORDER BY timestamp DESC LIMIT ? - `).all(a).map(a=>this.rowToFunctionLog(a))}clearFunctionLogs(a,b){a&&b?this.db.prepare("DELETE FROM function_logs WHERE function_id = ? AND timestamp < ?").run(a,b.toISOString()):a?this.db.prepare("DELETE FROM function_logs WHERE function_id = ?").run(a):b?this.db.prepare("DELETE FROM function_logs WHERE timestamp < ?").run(b.toISOString()):this.db.prepare("DELETE FROM function_logs").run()}rowToFunctionLog(a){return{id:a.id,functionId:a.function_id,method:a.method,path:a.path,statusCode:a.status_code,durationMs:a.duration_ms,error:a.error,timestamp:j(a.timestamp)}}createServerFunction(a){let b=(0,e.A)(),c=new Date().toISOString();return this.db.prepare(` - INSERT INTO server_functions ( - id, name, description, code, enabled, created_at, updated_at - ) VALUES (?, ?, ?, ?, ?, ?, ?) - `).run(b,a.name,a.description??null,a.code,+!!a.enabled,c,c),b}getServerFunction(a){let b=this.db.prepare("SELECT * FROM server_functions WHERE id = ?").get(a);return b?this.rowToServerFunction(b):null}getServerFunctionByName(a){let b=this.db.prepare("SELECT * FROM server_functions WHERE name = ?").get(a);return b?this.rowToServerFunction(b):null}updateServerFunction(a,b){let c=[],d=[];if(void 0!==b.name&&(c.push("name = ?"),d.push(b.name)),void 0!==b.description&&(c.push("description = ?"),d.push(b.description)),void 0!==b.code&&(c.push("code = ?"),d.push(b.code)),void 0!==b.enabled&&(c.push("enabled = ?"),d.push(+!!b.enabled)),0===c.length)return;c.push("updated_at = ?"),d.push(new Date().toISOString()),d.push(a);let e=`UPDATE server_functions SET ${c.join(", ")} WHERE id = ?`;this.db.prepare(e).run(...d)}deleteServerFunction(a){this.db.prepare("DELETE FROM server_functions WHERE id = ?").run(a)}listServerFunctions(){return this.db.prepare("SELECT * FROM server_functions ORDER BY name").all().map(a=>this.rowToServerFunction(a))}rowToServerFunction(a){return{id:a.id,name:a.name,description:a.description,code:a.code,enabled:!!a.enabled,createdAt:j(a.created_at),updatedAt:j(a.updated_at)}}createSecret(a,b,c){if(!(0,f.yg)())throw Error("Secrets encryption not configured. Set SECRETS_ENCRYPTION_KEY environment variable.");let d=(0,e.A)(),g=new Date().toISOString(),h=(0,f.MG)(b);return this.db.prepare(` - INSERT INTO secrets (id, name, encrypted_value, iv, auth_tag, description, created_at, updated_at) - VALUES (?, ?, ?, ?, ?, ?, ?, ?) - `).run(d,a,h.encryptedValue,h.iv,h.authTag,c||null,g,g),d}getSecret(a){let b=this.db.prepare("SELECT * FROM secrets WHERE id = ?").get(a);return b?this.rowToSecret(b):null}getSecretByName(a){let b=this.db.prepare("SELECT * FROM secrets WHERE name = ?").get(a);return b?this.rowToSecret(b):null}updateSecretValue(a,b){if(!(0,f.yg)())throw Error("Secrets encryption not configured. Set SECRETS_ENCRYPTION_KEY environment variable.");let c=new Date().toISOString(),d=(0,f.MG)(b);this.db.prepare(` - UPDATE secrets - SET encrypted_value = ?, iv = ?, auth_tag = ?, updated_at = ? - WHERE id = ? - `).run(d.encryptedValue,d.iv,d.authTag,c,a)}updateSecretMetadata(a,b){let c=new Date().toISOString();void 0!==b.name&&this.db.prepare("UPDATE secrets SET name = ?, updated_at = ? WHERE id = ?").run(b.name,c,a),void 0!==b.description&&this.db.prepare("UPDATE secrets SET description = ?, updated_at = ? WHERE id = ?").run(b.description,c,a)}deleteSecret(a){this.db.prepare("DELETE FROM secrets WHERE id = ?").run(a)}listSecrets(){return this.db.prepare("SELECT * FROM secrets ORDER BY name").all().map(a=>this.rowToSecret(a))}listSecretsWithValues(){return this.db.prepare("SELECT name, encrypted_value, iv, auth_tag FROM secrets").all().map(a=>({name:a.name,encryptedValue:a.encrypted_value,iv:a.iv,authTag:a.auth_tag}))}rowToSecret(a){return{id:a.id,name:a.name,description:a.description,hasValue:null!==a.encrypted_value&&""!==a.encrypted_value,createdAt:j(a.created_at),updatedAt:j(a.updated_at)}}createSecretPlaceholder(a,b){let c=(0,e.A)(),d=new Date().toISOString();return this.db.prepare(` - INSERT INTO secrets (id, name, encrypted_value, iv, auth_tag, description, created_at, updated_at) - VALUES (?, ?, '', '', '', ?, ?, ?) - `).run(c,a,b||null,d,d),c}createScheduledFunction(a){let b=(0,e.A)(),c=new Date().toISOString();return this.db.prepare(` - INSERT INTO scheduled_functions ( - id, name, description, function_id, cron_expression, timezone, - config, enabled, last_run_at, next_run_at, last_status, last_error, - last_duration_ms, created_at, updated_at - ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) - `).run(b,a.name,a.description??null,a.functionId,a.cronExpression,a.timezone||"UTC",JSON.stringify(a.config||{}),+!!a.enabled,g(a.lastRunAt),g(a.nextRunAt),a.lastStatus??null,a.lastError??null,a.lastDurationMs??null,c,c),b}getScheduledFunction(a){let b=this.db.prepare("SELECT * FROM scheduled_functions WHERE id = ?").get(a);return b?this.rowToScheduledFunction(b):null}getScheduledFunctionByName(a){let b=this.db.prepare("SELECT * FROM scheduled_functions WHERE name = ?").get(a);return b?this.rowToScheduledFunction(b):null}updateScheduledFunction(a,b){let c=[],d=[];if(void 0!==b.name&&(c.push("name = ?"),d.push(b.name)),void 0!==b.description&&(c.push("description = ?"),d.push(b.description)),void 0!==b.functionId&&(c.push("function_id = ?"),d.push(b.functionId)),void 0!==b.cronExpression&&(c.push("cron_expression = ?"),d.push(b.cronExpression)),void 0!==b.timezone&&(c.push("timezone = ?"),d.push(b.timezone)),void 0!==b.config&&(c.push("config = ?"),d.push(JSON.stringify(b.config))),void 0!==b.enabled&&(c.push("enabled = ?"),d.push(+!!b.enabled)),void 0!==b.lastRunAt&&(c.push("last_run_at = ?"),d.push(g(b.lastRunAt))),void 0!==b.nextRunAt&&(c.push("next_run_at = ?"),d.push(g(b.nextRunAt))),void 0!==b.lastStatus&&(c.push("last_status = ?"),d.push(b.lastStatus)),void 0!==b.lastError&&(c.push("last_error = ?"),d.push(b.lastError)),void 0!==b.lastDurationMs&&(c.push("last_duration_ms = ?"),d.push(b.lastDurationMs)),0===c.length)return;c.push("updated_at = ?"),d.push(new Date().toISOString()),d.push(a);let e=`UPDATE scheduled_functions SET ${c.join(", ")} WHERE id = ?`;this.db.prepare(e).run(...d)}deleteScheduledFunction(a){this.db.prepare("DELETE FROM scheduled_functions WHERE id = ?").run(a)}listScheduledFunctions(){return this.db.prepare("SELECT * FROM scheduled_functions ORDER BY name").all().map(a=>this.rowToScheduledFunction(a))}listDueScheduledFunctions(){return this.db.prepare("SELECT * FROM scheduled_functions WHERE enabled = 1 AND next_run_at IS NOT NULL AND next_run_at <= strftime('%Y-%m-%dT%H:%M:%fZ', 'now')").all().map(a=>this.rowToScheduledFunction(a))}rowToScheduledFunction(a){return{id:a.id,name:a.name,description:a.description,functionId:a.function_id,cronExpression:a.cron_expression,timezone:a.timezone,config:i(a.config,{}),enabled:!!a.enabled,lastRunAt:a.last_run_at?j(a.last_run_at):void 0,nextRunAt:a.next_run_at?j(a.next_run_at):void 0,lastStatus:a.last_status,lastError:a.last_error,lastDurationMs:a.last_duration_ms,createdAt:j(a.created_at),updatedAt:j(a.updated_at)}}executeDDL(a){this.db.exec(a)}static{this.SYSTEM_TABLES=["site_info","files","file_tree_nodes","pageviews","interactions","sessions","edge_functions","function_logs","server_functions","secrets","scheduled_functions"]}executeRawSQL(a,b){if(a.trim().toLowerCase().startsWith("select")){let c=this.db.prepare(a),d=b?c.all(...b):c.all();if(0===d.length)return{columns:[],rows:[],rowsAffected:0};let e=Object.keys(d[0]),f=d.map(a=>e.map(b=>a[b]));return{columns:e,rows:f,rowsAffected:0}}{let c=this.db.prepare(a);return{columns:[],rows:[],rowsAffected:(b?c.run(...b):c.run()).changes}}}getTableSchema(){return this.db.prepare(` - SELECT name FROM sqlite_master - WHERE type = 'table' AND name NOT LIKE 'sqlite_%' - ORDER BY name - `).all().map(a=>{let b=k.SYSTEM_TABLES.includes(a.name),c=this.db.prepare(`PRAGMA table_info('${a.name}')`).all(),d=this.db.prepare(`SELECT COUNT(*) as count FROM "${a.name}"`).get();return{name:a.name,columns:c.map(a=>({name:a.name,type:a.type,nullable:!a.notnull,primaryKey:a.pk>0,defaultValue:a.dflt_value??void 0})),rowCount:d.count,isSystemTable:b}})}getTableData(a,b=100,c=0){if(!this.db.prepare(` - SELECT name FROM sqlite_master WHERE type = 'table' AND name = ? - `).get(a))throw Error(`Table "${a}" does not exist`);let d=this.db.prepare(`SELECT COUNT(*) as count FROM "${a}"`).get(),e=this.db.prepare(`SELECT * FROM "${a}" LIMIT ? OFFSET ?`).all(b,c);if(0===e.length)return{columns:[],rows:[],total:d.count};let f=Object.keys(e[0]),g=e.map(a=>f.map(b=>a[b]));return{columns:f,rows:g,total:d.count}}isSystemTable(a){return k.SYSTEM_TABLES.includes(a)}executeUserQuery(a,b){let c=a.trim().toUpperCase(),d=this.validateNotSystemTable(c);if(d)return{columns:[],rows:[],rowsAffected:0,error:d};try{return this.executeRawSQL(a,b)}catch(a){return{columns:[],rows:[],rowsAffected:0,error:a instanceof Error?a.message:String(a)}}}validateNotSystemTable(a){let b=a.match(/^(DROP|ALTER|TRUNCATE)\s+TABLE\s+(?:IF\s+EXISTS\s+)?["'`]?(\w+)["'`]?/i);if(b){let a=b[2].toLowerCase();if(k.SYSTEM_TABLES.includes(a))return`Cannot modify system table: ${a}`}let c=a.match(/^INSERT\s+INTO\s+["'`]?(\w+)["'`]?/i);if(c){let a=c[1].toLowerCase();if(k.SYSTEM_TABLES.includes(a))return`Cannot insert into system table: ${a}`}let d=a.match(/^UPDATE\s+["'`]?(\w+)["'`]?/i);if(d){let a=d[1].toLowerCase();if(k.SYSTEM_TABLES.includes(a))return`Cannot update system table: ${a}`}let e=a.match(/^DELETE\s+FROM\s+["'`]?(\w+)["'`]?/i);if(e){let a=e[1].toLowerCase();if(k.SYSTEM_TABLES.includes(a))return`Cannot delete from system table: ${a}`}return null}getSchemaForExport(){let a=this.getTableSchema().filter(a=>!a.isSystemTable);if(0===a.length)return"-- No user tables defined\n-- Create tables using the SQL Editor or edge functions\n";let b="-- Database Schema\n";for(let c of(b+=`-- ${a.length} user table(s) - -`,a))b+=`-- Table: ${c.name} (${c.rowCount} rows) -`,b+=`CREATE TABLE ${c.name} ( -`,b+=c.columns.map(a=>{let b=` ${a.name} ${a.type}`;return a.primaryKey&&(b+=" PRIMARY KEY"),a.nullable||(b+=" NOT NULL"),void 0!==a.defaultValue&&(b+=` DEFAULT ${a.defaultValue}`),b}).join(",\n"),b+="\n);\n\n";return b}}let l={enabled:!1,provider:"builtin",privacyMode:!0},m={enabled:!1,bannerPosition:"bottom",bannerStyle:"bar",message:"This site uses cookies to improve your experience.",acceptButtonText:"Accept",declineButtonText:"Decline",mode:"opt-in",blockAnalytics:!0},n={},o=[{id:"initial_schema_v1",up:a=>{a.exec(` + `).all()),b}}var h=c(97347);let i={enabled:!1,provider:"builtin",privacyMode:!0},j={enabled:!1,bannerPosition:"bottom",bannerStyle:"bar",message:"This site uses cookies to improve your experience.",acceptButtonText:"Accept",declineButtonText:"Decline",mode:"opt-in",blockAnalytics:!0},k={},l=[{id:"initial_schema_v1",up:a=>{a.exec(` CREATE TABLE IF NOT EXISTS _migrations ( id TEXT PRIMARY KEY, applied_at TEXT NOT NULL DEFAULT (datetime('now')) @@ -500,18 +470,106 @@ exports.id=726,exports.ids=[726],exports.modules={74051:(a,b,c)=>{"use strict";c CREATE INDEX IF NOT EXISTS idx_request_log_timestamp ON request_log(timestamp) `),a.exec(` CREATE INDEX IF NOT EXISTS idx_request_log_site_id ON request_log(site_id) - `)}}];function p(a,b){if(!a)return b;try{return JSON.parse(a)}catch{return b}}function q(a){return a?new Date(a):new Date}function r(a){return a?"string"==typeof a?a:a.toISOString():null}function s(a){return"string"==typeof a?a:a.toISOString()}class t{async init(){this.initialized||(this.db=(0,d.getCoreDatabase)(),await this.runMigrations(),this.initialized=!0)}async close(){for(let[,a]of this.siteDatabases)a.close();this.siteDatabases.clear(),(0,d.closeAllConnections)(),this.db=null,this.initialized=!1}getDB(){if(!this.db)throw Error("SQLiteAdapter not initialized. Call init() first.");return this.db}getOrCreateSiteDB(a){let b=this.siteDatabases.get(a);return b||((b=new k(a)).init(),this.siteDatabases.set(a,b)),b}async enableSiteDatabase(a){this.getDB().prepare("UPDATE sites SET database_enabled = 1 WHERE id = ?").run(a),this.getOrCreateSiteDB(a)}async disableSiteDatabase(a){this.getDB().prepare("UPDATE sites SET database_enabled = 0 WHERE id = ?").run(a);let b=this.siteDatabases.get(a);b&&(b.close(),this.siteDatabases.delete(a)),(0,d.siteExists)(a)&&(0,d.deleteSiteDatabase)(a)}async runMigrations(){let a=this.getDB();a.exec(` + `)}},{id:"rename_sites_to_deployments_v4",up:a=>{a.exec("ALTER TABLE sites RENAME TO deployments"),a.exec("DROP INDEX IF EXISTS idx_sites_project_id"),a.exec(` + CREATE INDEX IF NOT EXISTS idx_deployments_project_id ON deployments(project_id) + `)}},{id:"add_project_server_features_v5",up:a=>{a.exec(` + CREATE TABLE IF NOT EXISTS project_edge_functions ( + id TEXT PRIMARY KEY, + project_id TEXT NOT NULL, + name TEXT NOT NULL, + description TEXT, + code TEXT NOT NULL, + method TEXT NOT NULL DEFAULT 'GET' CHECK(method IN ('GET', 'POST', 'PUT', 'DELETE', 'ANY')), + enabled INTEGER DEFAULT 1, + timeout_ms INTEGER DEFAULT 5000, + created_at TEXT NOT NULL DEFAULT (datetime('now')), + updated_at TEXT NOT NULL DEFAULT (datetime('now')), + UNIQUE(project_id, name), + FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE + ) + `),a.exec("CREATE INDEX IF NOT EXISTS idx_project_edge_functions_project_id ON project_edge_functions(project_id)"),a.exec(` + CREATE TABLE IF NOT EXISTS project_server_functions ( + id TEXT PRIMARY KEY, + project_id TEXT NOT NULL, + name TEXT NOT NULL, + description TEXT, + code TEXT NOT NULL, + enabled INTEGER DEFAULT 1, + created_at TEXT NOT NULL DEFAULT (datetime('now')), + updated_at TEXT NOT NULL DEFAULT (datetime('now')), + UNIQUE(project_id, name), + FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE + ) + `),a.exec("CREATE INDEX IF NOT EXISTS idx_project_server_functions_project_id ON project_server_functions(project_id)"),a.exec(` + CREATE TABLE IF NOT EXISTS project_secrets ( + id TEXT PRIMARY KEY, + project_id TEXT NOT NULL, + name TEXT NOT NULL, + description TEXT, + has_value INTEGER DEFAULT 0, + value TEXT, + created_at TEXT NOT NULL DEFAULT (datetime('now')), + updated_at TEXT NOT NULL DEFAULT (datetime('now')), + UNIQUE(project_id, name), + FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE + ) + `),a.exec("CREATE INDEX IF NOT EXISTS idx_project_secrets_project_id ON project_secrets(project_id)"),a.exec(` + CREATE TABLE IF NOT EXISTS project_scheduled_functions ( + id TEXT PRIMARY KEY, + project_id TEXT NOT NULL, + name TEXT NOT NULL, + description TEXT, + function_id TEXT NOT NULL, + cron_expression TEXT NOT NULL, + timezone TEXT DEFAULT 'UTC', + config TEXT DEFAULT '{}', + enabled INTEGER DEFAULT 1, + last_run_at TEXT, + next_run_at TEXT, + last_status TEXT, + last_error TEXT, + last_duration_ms INTEGER, + created_at TEXT NOT NULL DEFAULT (datetime('now')), + updated_at TEXT NOT NULL DEFAULT (datetime('now')), + UNIQUE(project_id, name), + FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE + ) + `),a.exec("CREATE INDEX IF NOT EXISTS idx_project_scheduled_functions_project_id ON project_scheduled_functions(project_id)")}}];function m(a,b){if(!a)return b;try{return JSON.parse(a)}catch{return b}}function n(a){return a?new Date(a):new Date}function o(a){return a?"string"==typeof a?a:a.toISOString():null}function p(a){return"string"==typeof a?a:a.toISOString()}class q{async init(){this.initialized||(this.db=(0,d.getCoreDatabase)(),await this.runMigrations(),this.initialized=!0)}async close(){for(let[,a]of this.deploymentDatabases)a.close();for(let[,a]of(this.deploymentDatabases.clear(),this.analyticsDatabases))a.close();for(let[,a]of(this.analyticsDatabases.clear(),this.projectDatabases))a.close();this.projectDatabases.clear(),(0,d.closeAllConnections)(),this.db=null,this.initialized=!1}getProjectDatabase(a){let b=this.projectDatabases.get(a);return b||((b=new h.r(a)).init(),this.projectDatabases.set(a,b)),b}getDB(){if(!this.db)throw Error("SQLiteAdapter not initialized. Call init() first.");return this.db}getOrCreateDeploymentDB(a){let b=this.deploymentDatabases.get(a);return b||((b=new e.k(a)).init(),this.deploymentDatabases.set(a,b)),b}async createEdgeFunction(a){this.getDB().prepare(` + INSERT INTO project_edge_functions (id, project_id, name, description, code, method, enabled, timeout_ms, created_at, updated_at) + VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) + `).run(a.id,a.projectId,a.name,a.description||null,a.code,a.method,+!!a.enabled,a.timeoutMs,p(a.createdAt),p(a.updatedAt))}async getEdgeFunction(a){let b=this.getDB().prepare("SELECT * FROM project_edge_functions WHERE id = ?").get(a);return b?this.rowToEdgeFunction(b):null}async listEdgeFunctions(a){return this.getDB().prepare("SELECT * FROM project_edge_functions WHERE project_id = ? ORDER BY name").all(a).map(a=>this.rowToEdgeFunction(a))}async updateEdgeFunction(a){this.getDB().prepare(` + UPDATE project_edge_functions SET name = ?, description = ?, code = ?, method = ?, enabled = ?, timeout_ms = ?, updated_at = ? + WHERE id = ? + `).run(a.name,a.description||null,a.code,a.method,+!!a.enabled,a.timeoutMs,p(a.updatedAt),a.id)}async deleteEdgeFunction(a){this.getDB().prepare("DELETE FROM project_edge_functions WHERE id = ?").run(a)}rowToEdgeFunction(a){return{id:a.id,projectId:a.project_id,name:a.name,description:a.description||void 0,code:a.code,method:a.method,enabled:1===a.enabled,timeoutMs:a.timeout_ms,createdAt:n(a.created_at),updatedAt:n(a.updated_at)}}async createServerFunction(a){this.getDB().prepare(` + INSERT INTO project_server_functions (id, project_id, name, description, code, enabled, created_at, updated_at) + VALUES (?, ?, ?, ?, ?, ?, ?, ?) + `).run(a.id,a.projectId,a.name,a.description||null,a.code,+!!a.enabled,p(a.createdAt),p(a.updatedAt))}async getServerFunction(a){let b=this.getDB().prepare("SELECT * FROM project_server_functions WHERE id = ?").get(a);return b?this.rowToServerFunction(b):null}async listServerFunctions(a){return this.getDB().prepare("SELECT * FROM project_server_functions WHERE project_id = ? ORDER BY name").all(a).map(a=>this.rowToServerFunction(a))}async updateServerFunction(a){this.getDB().prepare(` + UPDATE project_server_functions SET name = ?, description = ?, code = ?, enabled = ?, updated_at = ? + WHERE id = ? + `).run(a.name,a.description||null,a.code,+!!a.enabled,p(a.updatedAt),a.id)}async deleteServerFunction(a){this.getDB().prepare("DELETE FROM project_server_functions WHERE id = ?").run(a)}rowToServerFunction(a){return{id:a.id,projectId:a.project_id,name:a.name,description:a.description||void 0,code:a.code,enabled:1===a.enabled,createdAt:n(a.created_at),updatedAt:n(a.updated_at)}}async createSecret(a){this.getDB().prepare(` + INSERT INTO project_secrets (id, project_id, name, description, has_value, value, created_at, updated_at) + VALUES (?, ?, ?, ?, ?, ?, ?, ?) + `).run(a.id,a.projectId,a.name,a.description||null,+!!a.hasValue,a.value||null,p(a.createdAt),p(a.updatedAt))}async getSecret(a){let b=this.getDB().prepare("SELECT * FROM project_secrets WHERE id = ?").get(a);return b?this.rowToSecret(b):null}async listSecrets(a){return this.getDB().prepare("SELECT * FROM project_secrets WHERE project_id = ? ORDER BY name").all(a).map(a=>this.rowToSecret(a))}async updateSecret(a){this.getDB().prepare(` + UPDATE project_secrets SET name = ?, description = ?, has_value = ?, value = ?, updated_at = ? + WHERE id = ? + `).run(a.name,a.description||null,+!!a.hasValue,a.value||null,p(a.updatedAt),a.id)}async deleteSecret(a){this.getDB().prepare("DELETE FROM project_secrets WHERE id = ?").run(a)}rowToSecret(a){return{id:a.id,projectId:a.project_id,name:a.name,description:a.description||void 0,hasValue:1===a.has_value,value:a.value||void 0,createdAt:n(a.created_at),updatedAt:n(a.updated_at)}}async createScheduledFunction(a){this.getDB().prepare(` + INSERT INTO project_scheduled_functions (id, project_id, name, description, function_id, cron_expression, timezone, config, enabled, last_run_at, next_run_at, last_status, last_error, last_duration_ms, created_at, updated_at) + VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) + `).run(a.id,a.projectId,a.name,a.description||null,a.functionId,a.cronExpression,a.timezone,JSON.stringify(a.config),+!!a.enabled,o(a.lastRunAt??null),o(a.nextRunAt??null),a.lastStatus||null,a.lastError||null,a.lastDurationMs??null,p(a.createdAt),p(a.updatedAt))}async getScheduledFunction(a){let b=this.getDB().prepare("SELECT * FROM project_scheduled_functions WHERE id = ?").get(a);return b?this.rowToScheduledFunction(b):null}async listScheduledFunctions(a){return this.getDB().prepare("SELECT * FROM project_scheduled_functions WHERE project_id = ? ORDER BY name").all(a).map(a=>this.rowToScheduledFunction(a))}async updateScheduledFunction(a){this.getDB().prepare(` + UPDATE project_scheduled_functions SET name = ?, description = ?, function_id = ?, cron_expression = ?, timezone = ?, config = ?, enabled = ?, last_run_at = ?, next_run_at = ?, last_status = ?, last_error = ?, last_duration_ms = ?, updated_at = ? + WHERE id = ? + `).run(a.name,a.description||null,a.functionId,a.cronExpression,a.timezone,JSON.stringify(a.config),+!!a.enabled,o(a.lastRunAt??null),o(a.nextRunAt??null),a.lastStatus||null,a.lastError||null,a.lastDurationMs??null,p(a.updatedAt),a.id)}async deleteScheduledFunction(a){this.getDB().prepare("DELETE FROM project_scheduled_functions WHERE id = ?").run(a)}rowToScheduledFunction(a){return{id:a.id,projectId:a.project_id,name:a.name,description:a.description||void 0,functionId:a.function_id,cronExpression:a.cron_expression,timezone:a.timezone,config:m(a.config,{}),enabled:1===a.enabled,lastRunAt:a.last_run_at?n(a.last_run_at):void 0,nextRunAt:a.next_run_at?n(a.next_run_at):void 0,lastStatus:a.last_status||void 0,lastError:a.last_error||void 0,lastDurationMs:a.last_duration_ms??void 0,createdAt:n(a.created_at),updatedAt:n(a.updated_at)}}async enableDeploymentDatabase(a){this.getDB().prepare("UPDATE deployments SET database_enabled = 1 WHERE id = ?").run(a),this.getOrCreateDeploymentDB(a)}async disableDeploymentDatabase(a){this.getDB().prepare("UPDATE deployments SET database_enabled = 0 WHERE id = ?").run(a);let b=this.deploymentDatabases.get(a);b&&(b.close(),this.deploymentDatabases.delete(a)),(0,d.deploymentExists)(a)&&(0,d.deleteDeploymentDatabase)(a)}async runMigrations(){let a=this.getDB();a.exec(` CREATE TABLE IF NOT EXISTS _migrations ( id TEXT PRIMARY KEY, applied_at TEXT NOT NULL DEFAULT (datetime('now')) ) - `);let b=new Set(a.prepare("SELECT id FROM _migrations").all().map(a=>a.id)),c=a.transaction(c=>{b.has(c.id)||(c.up(a),a.prepare("INSERT INTO _migrations (id) VALUES (?)").run(c.id))});for(let a of o)c(a)}async createProject(a){this.getDB().prepare(` + `);let b=new Set(a.prepare("SELECT id FROM _migrations").all().map(a=>a.id)),c=a.transaction(c=>{b.has(c.id)||(c.up(a),a.prepare("INSERT INTO _migrations (id) VALUES (?)").run(c.id))});for(let a of l)c(a)}async createProject(a){this.getDB().prepare(` INSERT INTO projects ( id, name, description, created_at, updated_at, last_saved_at, last_saved_checkpoint_id, settings, cost_tracking, preview_image, last_synced_at, server_updated_at ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) - `).run(a.id,a.name,a.description??null,s(a.createdAt),s(a.updatedAt),r(a.lastSavedAt),a.lastSavedCheckpointId??null,JSON.stringify(a.settings??{}),JSON.stringify(a.costTracking??{}),a.previewImage??null,r(a.lastSyncedAt),r(a.serverUpdatedAt))}async getProject(a){let b=this.getDB().prepare("SELECT * FROM projects WHERE id = ?").get(a);return b?this.rowToProject(b):null}async updateProject(a){this.getDB().prepare(` + `).run(a.id,a.name,a.description??null,p(a.createdAt),p(a.updatedAt),o(a.lastSavedAt),a.lastSavedCheckpointId??null,JSON.stringify(a.settings??{}),JSON.stringify(a.costTracking??{}),a.previewImage??null,o(a.lastSyncedAt),o(a.serverUpdatedAt))}async getProject(a){let b=this.getDB().prepare("SELECT * FROM projects WHERE id = ?").get(a);return b?this.rowToProject(b):null}async updateProject(a){this.getDB().prepare(` UPDATE projects SET name = ?, description = ?, @@ -524,17 +582,17 @@ exports.id=726,exports.ids=[726],exports.modules={74051:(a,b,c)=>{"use strict";c last_synced_at = ?, server_updated_at = ? WHERE id = ? - `).run(a.name,a.description??null,s(a.updatedAt),r(a.lastSavedAt),a.lastSavedCheckpointId??null,JSON.stringify(a.settings??{}),JSON.stringify(a.costTracking??{}),a.previewImage??null,r(a.lastSyncedAt),r(a.serverUpdatedAt),a.id)}async deleteProject(a){this.getDB().prepare("DELETE FROM projects WHERE id = ?").run(a),(0,d.siteExists)(a)&&(this.siteDatabases.delete(a),(0,d.deleteSiteDatabase)(a))}async listProjects(a){return this.getDB().prepare("SELECT * FROM projects ORDER BY updated_at DESC").all().map(a=>this.rowToProject(a))}rowToProject(a){return{id:a.id,name:a.name,description:a.description,createdAt:q(a.created_at),updatedAt:q(a.updated_at),lastSavedAt:a.last_saved_at?q(a.last_saved_at):void 0,lastSavedCheckpointId:a.last_saved_checkpoint_id,settings:p(a.settings,{}),costTracking:p(a.cost_tracking,void 0),previewImage:a.preview_image,lastSyncedAt:a.last_synced_at?q(a.last_synced_at):void 0,serverUpdatedAt:a.server_updated_at?q(a.server_updated_at):void 0}}async createFile(a){let b,c=this.getDB();b=a.content instanceof ArrayBuffer?Buffer.from(a.content).toString("base64"):"string"==typeof a.content?a.content:"",c.prepare(` + `).run(a.name,a.description??null,p(a.updatedAt),o(a.lastSavedAt),a.lastSavedCheckpointId??null,JSON.stringify(a.settings??{}),JSON.stringify(a.costTracking??{}),a.previewImage??null,o(a.lastSyncedAt),o(a.serverUpdatedAt),a.id)}async deleteProject(a){this.getDB().prepare("DELETE FROM projects WHERE id = ?").run(a),(0,d.deploymentExists)(a)&&(this.deploymentDatabases.delete(a),(0,d.deleteDeploymentDatabase)(a)),this.projectDatabases.delete(a),(0,d.deleteProjectDatabase)(a)}async listProjects(a){return this.getDB().prepare("SELECT * FROM projects ORDER BY updated_at DESC").all().map(a=>this.rowToProject(a))}rowToProject(a){return{id:a.id,name:a.name,description:a.description,createdAt:n(a.created_at),updatedAt:n(a.updated_at),lastSavedAt:a.last_saved_at?n(a.last_saved_at):void 0,lastSavedCheckpointId:a.last_saved_checkpoint_id,settings:m(a.settings,{}),costTracking:m(a.cost_tracking,void 0),previewImage:a.preview_image,lastSyncedAt:a.last_synced_at?n(a.last_synced_at):void 0,serverUpdatedAt:a.server_updated_at?n(a.server_updated_at):void 0}}async createFile(a){let b,c=this.getDB();b=a.content instanceof ArrayBuffer?Buffer.from(a.content).toString("base64"):"string"==typeof a.content?a.content:"",c.prepare(` INSERT INTO files ( id, project_id, path, name, type, content, mime_type, size, created_at, updated_at, metadata ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) - `).run(a.id,a.projectId,a.path,a.name,a.type,b,a.mimeType??null,a.size??0,s(a.createdAt),s(a.updatedAt),JSON.stringify(a.metadata??{}))}async getFile(a,b){let c=this.getDB().prepare("SELECT * FROM files WHERE project_id = ? AND path = ?").get(a,b);return c?this.rowToFile(c,a):null}async updateFile(a){let b,c=this.getDB();b=a.content instanceof ArrayBuffer?Buffer.from(a.content).toString("base64"):"string"==typeof a.content?a.content:"",c.prepare(` + `).run(a.id,a.projectId,a.path,a.name,a.type,b,a.mimeType??null,a.size??0,p(a.createdAt),p(a.updatedAt),JSON.stringify(a.metadata??{}))}async getFile(a,b){let c=this.getDB().prepare("SELECT * FROM files WHERE project_id = ? AND path = ?").get(a,b);return c?this.rowToFile(c,a):null}async updateFile(a){let b,c=this.getDB();b=a.content instanceof ArrayBuffer?Buffer.from(a.content).toString("base64"):"string"==typeof a.content?a.content:"",c.prepare(` UPDATE files SET name = ?, type = ?, content = ?, mime_type = ?, size = ?, updated_at = ?, metadata = ? WHERE project_id = ? AND path = ? - `).run(a.name,a.type,b,a.mimeType??null,a.size??0,s(a.updatedAt),JSON.stringify(a.metadata??{}),a.projectId,a.path)}async deleteFile(a,b){this.getDB().prepare("DELETE FROM files WHERE project_id = ? AND path = ?").run(a,b)}async listFiles(a){return this.getDB().prepare("SELECT * FROM files WHERE project_id = ? ORDER BY path").all(a).map(b=>this.rowToFile(b,a))}async deleteProjectFiles(a){this.getDB().prepare("DELETE FROM files WHERE project_id = ?").run(a)}rowToFile(a,b){let c=a.type,d=a.content,e=d;if(("image"===c||"video"===c)&&d)try{let a=d;if(d.startsWith("data:")){let b=d.indexOf(",");-1!==b&&(a=d.slice(b+1))}let b=Buffer.from(a,"base64");e=b.buffer.slice(b.byteOffset,b.byteOffset+b.byteLength)}catch{e=d}return{id:a.id,projectId:b,path:a.path,name:a.name,type:c,content:e,mimeType:a.mime_type,size:a.size,createdAt:q(a.created_at),updatedAt:q(a.updated_at),metadata:p(a.metadata,{})}}async createTreeNode(a){this.getDB().prepare(` + `).run(a.name,a.type,b,a.mimeType??null,a.size??0,p(a.updatedAt),JSON.stringify(a.metadata??{}),a.projectId,a.path)}async deleteFile(a,b){this.getDB().prepare("DELETE FROM files WHERE project_id = ? AND path = ?").run(a,b)}async listFiles(a){return this.getDB().prepare("SELECT * FROM files WHERE project_id = ? ORDER BY path").all(a).map(b=>this.rowToFile(b,a))}async deleteProjectFiles(a){this.getDB().prepare("DELETE FROM files WHERE project_id = ?").run(a)}rowToFile(a,b){let c=a.type,d=a.content,e=d;if(("image"===c||"video"===c)&&d)try{let a=d;if(d.startsWith("data:")){let b=d.indexOf(",");-1!==b&&(a=d.slice(b+1))}let b=Buffer.from(a,"base64");e=b.buffer.slice(b.byteOffset,b.byteOffset+b.byteLength)}catch{e=d}return{id:a.id,projectId:b,path:a.path,name:a.name,type:c,content:e,mimeType:a.mime_type,size:a.size,createdAt:n(a.created_at),updatedAt:n(a.updated_at),metadata:m(a.metadata,{})}}async createTreeNode(a){this.getDB().prepare(` INSERT INTO file_tree_nodes ( id, project_id, path, name, type, parent_path, is_expanded, metadata ) VALUES (?, ?, ?, ?, ?, ?, ?, ?) @@ -542,7 +600,7 @@ exports.id=726,exports.ids=[726],exports.modules={74051:(a,b,c)=>{"use strict";c UPDATE file_tree_nodes SET name = ?, type = ?, parent_path = ?, is_expanded = ?, metadata = ? WHERE project_id = ? AND path = ? - `).run(a.name,a.type,a.parentPath??null,+!!a.isExpanded,JSON.stringify(a.metadata??{}),a.projectId,a.path)}async deleteTreeNode(a,b){this.getDB().prepare("DELETE FROM file_tree_nodes WHERE project_id = ? AND path = ?").run(a,b)}async getChildNodes(a,b){let c=this.getDB();return(null===b?c.prepare("SELECT * FROM file_tree_nodes WHERE project_id = ? AND parent_path IS NULL ORDER BY type DESC, name").all(a):c.prepare("SELECT * FROM file_tree_nodes WHERE project_id = ? AND parent_path = ? ORDER BY type DESC, name").all(a,b)).map(b=>this.rowToTreeNode(b,a))}async getAllTreeNodes(a){return this.getDB().prepare("SELECT * FROM file_tree_nodes WHERE project_id = ? ORDER BY path").all(a).map(b=>this.rowToTreeNode(b,a))}rowToTreeNode(a,b){return{id:a.id,projectId:b,path:a.path,name:a.name,type:a.type,parentPath:a.parent_path,isExpanded:!!a.is_expanded,metadata:p(a.metadata,{})}}async saveCustomTemplate(a){let b=this.getDB();b.prepare("SELECT id FROM custom_templates WHERE id = ?").get(a.id)?b.prepare(` + `).run(a.name,a.type,a.parentPath??null,+!!a.isExpanded,JSON.stringify(a.metadata??{}),a.projectId,a.path)}async deleteTreeNode(a,b){this.getDB().prepare("DELETE FROM file_tree_nodes WHERE project_id = ? AND path = ?").run(a,b)}async getChildNodes(a,b){let c=this.getDB();return(null===b?c.prepare("SELECT * FROM file_tree_nodes WHERE project_id = ? AND parent_path IS NULL ORDER BY type DESC, name").all(a):c.prepare("SELECT * FROM file_tree_nodes WHERE project_id = ? AND parent_path = ? ORDER BY type DESC, name").all(a,b)).map(b=>this.rowToTreeNode(b,a))}async getAllTreeNodes(a){return this.getDB().prepare("SELECT * FROM file_tree_nodes WHERE project_id = ? ORDER BY path").all(a).map(b=>this.rowToTreeNode(b,a))}rowToTreeNode(a,b){return{id:a.id,projectId:b,path:a.path,name:a.name,type:a.type,parentPath:a.parent_path,isExpanded:!!a.is_expanded,metadata:m(a.metadata,{})}}async saveCustomTemplate(a){let b=this.getDB();b.prepare("SELECT id FROM custom_templates WHERE id = ?").get(a.id)?b.prepare(` UPDATE custom_templates SET name = ?, description = ?, version = ?, files = ?, directories = ?, assets = ?, @@ -553,30 +611,80 @@ exports.id=726,exports.ids=[726],exports.modules={74051:(a,b,c)=>{"use strict";c id, name, description, version, files, directories, assets, metadata, imported_at ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) - `).run(a.id,a.name,a.description,a.version,JSON.stringify(a.files??[]),JSON.stringify(a.directories??[]),JSON.stringify(a.assets??[]),JSON.stringify(a.metadata??{}),s(a.importedAt))}async getCustomTemplate(a){let b=this.getDB().prepare("SELECT * FROM custom_templates WHERE id = ?").get(a);return b?this.rowToTemplate(b):null}async getAllCustomTemplates(){return this.getDB().prepare("SELECT * FROM custom_templates ORDER BY imported_at DESC").all().map(a=>this.rowToTemplate(a))}async deleteCustomTemplate(a){this.getDB().prepare("DELETE FROM custom_templates WHERE id = ?").run(a)}rowToTemplate(a){return{id:a.id,name:a.name,description:a.description,version:a.version,files:p(a.files,[]),directories:p(a.directories,[]),assets:p(a.assets,[]),metadata:p(a.metadata,{license:"personal"}),importedAt:q(a.imported_at)}}async createSkill(a){this.getDB().prepare(` + `).run(a.id,a.name,a.description,a.version,JSON.stringify(a.files??[]),JSON.stringify(a.directories??[]),JSON.stringify(a.assets??[]),JSON.stringify(a.metadata??{}),p(a.importedAt))}async getCustomTemplate(a){let b=this.getDB().prepare("SELECT * FROM custom_templates WHERE id = ?").get(a);return b?this.rowToTemplate(b):null}async getAllCustomTemplates(){return this.getDB().prepare("SELECT * FROM custom_templates ORDER BY imported_at DESC").all().map(a=>this.rowToTemplate(a))}async deleteCustomTemplate(a){this.getDB().prepare("DELETE FROM custom_templates WHERE id = ?").run(a)}rowToTemplate(a){return{id:a.id,name:a.name,description:a.description,version:a.version,files:m(a.files,[]),directories:m(a.directories,[]),assets:m(a.assets,[]),metadata:m(a.metadata,{license:"personal"}),importedAt:n(a.imported_at)}}async createSkill(a){this.getDB().prepare(` INSERT INTO skills ( id, name, description, content, markdown, is_built_in, created_at, updated_at ) VALUES (?, ?, ?, ?, ?, 0, ?, ?) - `).run(a.id,a.name,a.description,a.content,a.markdown,s(a.createdAt),s(a.updatedAt))}async getSkill(a){let b=this.getDB().prepare("SELECT * FROM skills WHERE id = ?").get(a);return b?this.rowToSkill(b):null}async updateSkill(a){this.getDB().prepare(` + `).run(a.id,a.name,a.description,a.content,a.markdown,p(a.createdAt),p(a.updatedAt))}async getSkill(a){let b=this.getDB().prepare("SELECT * FROM skills WHERE id = ?").get(a);return b?this.rowToSkill(b):null}async updateSkill(a){this.getDB().prepare(` UPDATE skills SET name = ?, description = ?, content = ?, markdown = ?, updated_at = ? WHERE id = ? AND is_built_in = 0 - `).run(a.name,a.description,a.content,a.markdown,s(a.updatedAt),a.id)}async deleteSkill(a){this.getDB().prepare("DELETE FROM skills WHERE id = ? AND is_built_in = 0").run(a)}async getAllSkills(){return this.getDB().prepare("SELECT * FROM skills ORDER BY name").all().map(a=>this.rowToSkill(a))}rowToSkill(a){return{id:a.id,name:a.name,description:a.description,content:a.content,markdown:a.markdown,isBuiltIn:!!a.is_built_in,createdAt:q(a.created_at),updatedAt:q(a.updated_at)}}async createSite(a){this.getDB().prepare(` - INSERT INTO sites ( + `).run(a.name,a.description,a.content,a.markdown,p(a.updatedAt),a.id)}async deleteSkill(a){this.getDB().prepare("DELETE FROM skills WHERE id = ? AND is_built_in = 0").run(a)}async getAllSkills(){return this.getDB().prepare("SELECT * FROM skills ORDER BY name").all().map(a=>this.rowToSkill(a))}rowToSkill(a){return{id:a.id,name:a.name,description:a.description,content:a.content,markdown:a.markdown,isBuiltIn:!!a.is_built_in,createdAt:n(a.created_at),updatedAt:n(a.updated_at)}}async createDeployment(a){this.getDB().prepare(` + INSERT INTO deployments ( id, project_id, name, slug, enabled, under_construction, custom_domain, head_scripts, body_scripts, cdn_links, analytics, seo, compliance, settings_version, last_published_version, preview_image, preview_updated_at, database_enabled, created_at, updated_at, published_at ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) - `).run(a.id,a.projectId,a.name,a.slug??null,+!!a.enabled,+!!a.underConstruction,a.customDomain??null,JSON.stringify(a.headScripts??[]),JSON.stringify(a.bodyScripts??[]),JSON.stringify(a.cdnLinks??[]),JSON.stringify(a.analytics??l),JSON.stringify(a.seo??n),JSON.stringify(a.compliance??m),a.settingsVersion??1,a.lastPublishedVersion??null,a.previewImage??null,r(a.previewUpdatedAt),+!!a.databaseEnabled,s(a.createdAt),s(a.updatedAt),r(a.publishedAt))}async getSite(a){let b=this.getDB().prepare("SELECT * FROM sites WHERE id = ?").get(a);return b?this.rowToSite(b):null}async getSiteBySlug(a){let b=this.getDB().prepare("SELECT * FROM sites WHERE slug = ?").get(a);return b?this.rowToSite(b):null}async listSites(){return this.getDB().prepare("SELECT * FROM sites ORDER BY updated_at DESC").all().map(a=>this.rowToSite(a))}async listSitesByProject(a){return this.getDB().prepare("SELECT * FROM sites WHERE project_id = ? ORDER BY created_at").all(a).map(a=>this.rowToSite(a))}async updateSite(a){this.getDB().prepare(` - UPDATE sites SET + `).run(a.id,a.projectId,a.name,a.slug??null,+!!a.enabled,+!!a.underConstruction,a.customDomain??null,JSON.stringify(a.headScripts??[]),JSON.stringify(a.bodyScripts??[]),JSON.stringify(a.cdnLinks??[]),JSON.stringify(a.analytics??i),JSON.stringify(a.seo??k),JSON.stringify(a.compliance??j),a.settingsVersion??1,a.lastPublishedVersion??null,a.previewImage??null,o(a.previewUpdatedAt),+!!a.databaseEnabled,p(a.createdAt),p(a.updatedAt),o(a.publishedAt))}async getDeployment(a){let b=this.getDB().prepare("SELECT * FROM deployments WHERE id = ?").get(a);return b?this.rowToDeployment(b):null}async getDeploymentBySlug(a){let b=this.getDB().prepare("SELECT * FROM deployments WHERE slug = ?").get(a);return b?this.rowToDeployment(b):null}async listDeployments(){return this.getDB().prepare("SELECT * FROM deployments ORDER BY updated_at DESC").all().map(a=>this.rowToDeployment(a))}async listDeploymentsByProject(a){return this.getDB().prepare("SELECT * FROM deployments WHERE project_id = ? ORDER BY created_at").all(a).map(a=>this.rowToDeployment(a))}async updateDeployment(a){this.getDB().prepare(` + UPDATE deployments SET project_id = ?, name = ?, slug = ?, enabled = ?, under_construction = ?, custom_domain = ?, head_scripts = ?, body_scripts = ?, cdn_links = ?, analytics = ?, seo = ?, compliance = ?, settings_version = ?, last_published_version = ?, preview_image = ?, preview_updated_at = ?, database_enabled = ?, updated_at = ?, published_at = ? WHERE id = ? - `).run(a.projectId,a.name,a.slug??null,+!!a.enabled,+!!a.underConstruction,a.customDomain??null,JSON.stringify(a.headScripts??[]),JSON.stringify(a.bodyScripts??[]),JSON.stringify(a.cdnLinks??[]),JSON.stringify(a.analytics??l),JSON.stringify(a.seo??n),JSON.stringify(a.compliance??m),a.settingsVersion??1,a.lastPublishedVersion??null,a.previewImage??null,r(a.previewUpdatedAt),+!!a.databaseEnabled,s(a.updatedAt),r(a.publishedAt),a.id)}async deleteSite(a){this.getDB().prepare("DELETE FROM sites WHERE id = ?").run(a);let b=this.siteDatabases.get(a);b&&(b.close(),this.siteDatabases.delete(a)),(0,d.siteExists)(a)&&(0,d.deleteSiteDatabase)(a)}rowToSite(a){return{id:a.id,projectId:a.project_id,name:a.name,slug:a.slug,enabled:!!a.enabled,underConstruction:!!a.under_construction,customDomain:a.custom_domain,headScripts:p(a.head_scripts,[]),bodyScripts:p(a.body_scripts,[]),cdnLinks:p(a.cdn_links,[]),analytics:p(a.analytics,l),seo:p(a.seo,n),compliance:p(a.compliance,m),settingsVersion:a.settings_version??1,lastPublishedVersion:a.last_published_version,previewImage:a.preview_image,previewUpdatedAt:a.preview_updated_at?q(a.preview_updated_at):void 0,databaseEnabled:!!a.database_enabled,createdAt:q(a.created_at),updatedAt:q(a.updated_at),publishedAt:a.published_at?q(a.published_at):void 0}}getSiteDatabaseForAnalytics(a){let b=this.getSiteSync(a);return b&&b.databaseEnabled?this.getOrCreateSiteDB(a):null}getSiteSync(a){let b=this.getDB().prepare("SELECT * FROM sites WHERE id = ?").get(a);return b?this.rowToSite(b):null}constructor(){this.db=null,this.initialized=!1,this.siteDatabases=new Map}}let u=null;async function v(){return u||(u=new t),u}function w(){return u||(u=new t),u}}}; \ No newline at end of file + `).run(a.projectId,a.name,a.slug??null,+!!a.enabled,+!!a.underConstruction,a.customDomain??null,JSON.stringify(a.headScripts??[]),JSON.stringify(a.bodyScripts??[]),JSON.stringify(a.cdnLinks??[]),JSON.stringify(a.analytics??i),JSON.stringify(a.seo??k),JSON.stringify(a.compliance??j),a.settingsVersion??1,a.lastPublishedVersion??null,a.previewImage??null,o(a.previewUpdatedAt),+!!a.databaseEnabled,p(a.updatedAt),o(a.publishedAt),a.id)}async deleteDeployment(a){this.getDB().prepare("DELETE FROM deployments WHERE id = ?").run(a);let b=this.deploymentDatabases.get(a);b&&(b.close(),this.deploymentDatabases.delete(a)),(0,d.deploymentExists)(a)&&(0,d.deleteDeploymentDatabase)(a)}rowToDeployment(a){return{id:a.id,projectId:a.project_id,name:a.name,slug:a.slug,enabled:!!a.enabled,underConstruction:!!a.under_construction,customDomain:a.custom_domain,headScripts:m(a.head_scripts,[]),bodyScripts:m(a.body_scripts,[]),cdnLinks:m(a.cdn_links,[]),analytics:m(a.analytics,i),seo:m(a.seo,k),compliance:m(a.compliance,j),settingsVersion:a.settings_version??1,lastPublishedVersion:a.last_published_version,previewImage:a.preview_image,previewUpdatedAt:a.preview_updated_at?n(a.preview_updated_at):void 0,databaseEnabled:!!a.database_enabled,createdAt:n(a.created_at),updatedAt:n(a.updated_at),publishedAt:a.published_at?n(a.published_at):void 0}}getDeploymentDatabaseForAnalytics(a){let b=this.getDeploymentSync(a);return b&&b.databaseEnabled?this.getOrCreateDeploymentDB(a):null}getAnalyticsDatabaseInstance(a){let b=this.getDeploymentSync(a);if(!b||!b.databaseEnabled)return null;let c=this.analyticsDatabases.get(a);return c||((c=new g(a)).init(),this.analyticsDatabases.set(a,c)),c}getDeploymentSync(a){let b=this.getDB().prepare("SELECT * FROM deployments WHERE id = ?").get(a);return b?this.rowToDeployment(b):null}constructor(){this.db=null,this.initialized=!1,this.deploymentDatabases=new Map,this.analyticsDatabases=new Map,this.projectDatabases=new Map}}let r=null;async function s(){return r||(r=new q),r}function t(){return r||(r=new q),r}},74051:(a,b,c)=>{"use strict";c.r(b),c.d(b,{closeAllConnections:()=>I,closeAnalyticsDatabase:()=>A,closeCoreDatabase:()=>C,closeDeploymentDatabase:()=>B,closeProjectDatabase:()=>G,closeRuntimeDatabase:()=>z,deleteDeploymentDatabase:()=>y,deleteProjectDatabase:()=>H,deploymentExists:()=>x,getAnalyticsDatabaseConnection:()=>v,getCoreDatabase:()=>t,getCoreDatabasePath:()=>L,getDeploymentDatabase:()=>w,getDeploymentDatabasePath:()=>K,getProjectDatabaseConnection:()=>F,getProjectDatabasePath:()=>D,getRuntimeDatabaseConnection:()=>u,listDeploymentIds:()=>J,projectDatabaseExists:()=>E});var d=c(87550),e=c.n(d),f=c(33873),g=c.n(f),h=c(29021),i=c.n(h);let j=null,k=new Map,l=new Map,m=new Map;function n(){return process.env.DATA_DIR||g().join(process.cwd(),"data")}function o(){let a=g().join(process.cwd(),"deployments"),b=g().join(process.cwd(),"sites");try{!i().existsSync(a)&&i().existsSync(b)&&i().renameSync(b,a)}catch{if(!i().existsSync(a))throw Error("Neither deployments/ nor sites/ directory exists")}return a}function p(a){i().existsSync(a)||i().mkdirSync(a,{recursive:!0})}function q(a,b){if(!/^[a-f0-9-]+$/i.test(a))throw Error(`Invalid ${b} format: ${a}`)}function r(a){a.pragma("journal_mode = WAL"),a.pragma("foreign_keys = ON"),a.pragma("synchronous = NORMAL"),a.pragma("cache_size = -64000"),a.pragma("temp_store = MEMORY")}function s(a,b){if(b&&!/^[a-f0-9-]+$/i.test(b))throw Error(`Invalid deployment ID format: ${b}`);let c=g().join(a,"deployment.sqlite"),d=g().join(a,"site.sqlite"),f=g().join(a,"runtime.sqlite"),h=g().join(a,"analytics.sqlite");if(i().existsSync(f))return;let j=null;if(i().existsSync(c)?j=c:i().existsSync(d)&&(j=d),j){var k=j;for(let a of(i().renameSync(k,f),["-wal","-shm"])){let b=k+a;i().existsSync(b)&&i().renameSync(b,f+a)}try{let a=new(e())(f);r(a);try{a.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='pageviews'").get()&&(a.exec(`ATTACH DATABASE '${h}' AS analytics_new`),a.exec(` + CREATE TABLE IF NOT EXISTS analytics_new.pageviews ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + page_path TEXT NOT NULL, + referrer TEXT, + country TEXT, + user_agent TEXT, + device_type TEXT, + session_id TEXT NOT NULL, + load_time INTEGER, + timestamp TEXT NOT NULL DEFAULT (datetime('now')) + ) + `),a.exec("CREATE INDEX IF NOT EXISTS analytics_new.idx_pageviews_timestamp ON pageviews(timestamp)"),a.exec("CREATE INDEX IF NOT EXISTS analytics_new.idx_pageviews_session_id ON pageviews(session_id)"),a.exec(` + CREATE TABLE IF NOT EXISTS analytics_new.interactions ( + id TEXT PRIMARY KEY, + session_id TEXT NOT NULL, + page_path TEXT NOT NULL, + interaction_type TEXT NOT NULL, + element_selector TEXT, + coordinates TEXT, + scroll_depth INTEGER, + time_on_page INTEGER, + timestamp TEXT NOT NULL DEFAULT (datetime('now')) + ) + `),a.exec("CREATE INDEX IF NOT EXISTS analytics_new.idx_interactions_page_path ON interactions(page_path)"),a.exec("CREATE INDEX IF NOT EXISTS analytics_new.idx_interactions_timestamp ON interactions(timestamp)"),a.exec(` + CREATE TABLE IF NOT EXISTS analytics_new.sessions ( + id TEXT PRIMARY KEY, + session_id TEXT NOT NULL, + entry_page TEXT, + exit_page TEXT, + page_count INTEGER DEFAULT 1, + duration INTEGER, + is_bounce INTEGER DEFAULT 1, + created_at TEXT NOT NULL DEFAULT (datetime('now')), + ended_at TEXT + ) + `),a.exec("CREATE INDEX IF NOT EXISTS analytics_new.idx_sessions_session_id ON sessions(session_id)"),a.exec("CREATE INDEX IF NOT EXISTS analytics_new.idx_sessions_created_at ON sessions(created_at)"),a.exec("INSERT INTO analytics_new.pageviews SELECT * FROM main.pageviews"),a.exec("INSERT INTO analytics_new.interactions SELECT * FROM main.interactions"),a.exec("INSERT INTO analytics_new.sessions SELECT * FROM main.sessions"),a.exec("DETACH DATABASE analytics_new"),a.exec("DROP TABLE IF EXISTS pageviews"),a.exec("DROP TABLE IF EXISTS interactions"),a.exec("DROP TABLE IF EXISTS sessions"))}finally{a.close()}}catch(a){console.error("[SQLite Migration] Failed to split deployment database:",a)}}}function t(){if(j)return j;let a=n();p(a);let b=g().join(a,"osws.sqlite");return r(j=new(e())(b)),j}function u(a){q(a,"deployment ID");let b=k.get(a);if(b)return b;let c=o(),d=g().join(c,a);p(d),s(d,a);let f=g().join(d,"runtime.sqlite"),h=new(e())(f);return r(h),k.set(a,h),h}function v(a){q(a,"deployment ID");let b=l.get(a);if(b)return b;let c=o(),d=g().join(c,a);p(d),s(d,a);let f=g().join(d,"analytics.sqlite"),h=new(e())(f);return r(h),l.set(a,h),h}function w(a){return u(a)}function x(a){q(a,"deployment ID");let b=o(),c=g().join(b,a),d=g().join(c,"runtime.sqlite"),e=g().join(c,"deployment.sqlite"),f=g().join(c,"site.sqlite");return i().existsSync(d)||i().existsSync(e)||i().existsSync(f)}function y(a){q(a,"deployment ID"),z(a),A(a);let b=o(),c=g().join(b,a);if(i().existsSync(c)){for(let a of i().readdirSync(c))i().unlinkSync(g().join(c,a));i().rmdirSync(c)}}function z(a){let b=k.get(a);if(b){try{b.close()}catch{}k.delete(a)}}function A(a){let b=l.get(a);if(b){try{b.close()}catch{}l.delete(a)}}function B(a){z(a),A(a)}function C(){if(j){try{j.close()}catch{}j=null}}function D(a){q(a,"project ID");let b=n();return g().join(b,"projects",a,"database.sqlite")}function E(a){return i().existsSync(D(a))}function F(a){q(a,"project ID");let b=m.get(a);if(b)return b;let c=n(),d=g().join(c,"projects",a);p(d);let f=g().join(d,"database.sqlite"),h=new(e())(f);return r(h),m.set(a,h),h}function G(a){let b=m.get(a);if(b){try{b.close()}catch{}m.delete(a)}}function H(a){q(a,"project ID"),G(a);let b=n(),c=g().join(b,"projects",a);if(i().existsSync(c)){for(let a of i().readdirSync(c))i().unlinkSync(g().join(c,a));i().rmdirSync(c)}}function I(){for(let[a]of k)z(a);for(let[a]of l)A(a);for(let[a]of m)G(a);C()}function J(){let a=o();return i().existsSync(a)?i().readdirSync(a,{withFileTypes:!0}).filter(a=>a.isDirectory()).filter(b=>{let c=g().join(a,b.name);return i().existsSync(g().join(c,"runtime.sqlite"))||i().existsSync(g().join(c,"deployment.sqlite"))||i().existsSync(g().join(c,"site.sqlite"))}).map(a=>a.name):[]}function K(a){q(a,"deployment ID");let b=o();return g().join(b,a,"runtime.sqlite")}function L(){let a=n();return g().join(a,"osws.sqlite")}},75794:(a,b,c)=>{"use strict";c.d(b,{MG:()=>i,wu:()=>j,yg:()=>h});var d=c(55511),e=c.n(d);let f="aes-256-gcm";function g(){let a=process.env.SECRETS_ENCRYPTION_KEY;if(!a)throw Error("SECRETS_ENCRYPTION_KEY environment variable not set");let b=Buffer.from(a,"base64");if(32!==b.length)throw Error(`Invalid SECRETS_ENCRYPTION_KEY: expected 32 bytes, got ${b.length}`);return b}function h(){try{return g(),!0}catch{return!1}}function i(a){let b=g(),c=e().randomBytes(16),d=e().createCipheriv(f,b,c),h=d.update(a,"utf8","base64");return{encryptedValue:h+=d.final("base64"),iv:c.toString("base64"),authTag:d.getAuthTag().toString("base64")}}function j(a,b,c){let d=g(),h=e().createDecipheriv(f,d,Buffer.from(b,"base64"));h.setAuthTag(Buffer.from(c,"base64"));let i=h.update(a,"base64","utf8");return i+h.final("utf8")}},78335:()=>{},96487:()=>{},97347:(a,b,c)=>{"use strict";c.d(b,{r:()=>f});var d=c(74051);function e(a){return`"${a.replace(/"/g,'""')}"`}class f{constructor(a){this.projectId=a,this.db=(0,d.getProjectDatabaseConnection)(a)}init(){}close(){(0,d.closeProjectDatabase)(this.projectId)}executeDDL(a){this.db.exec(a)}getTableSchema(){return this.db.prepare(` + SELECT name FROM sqlite_master + WHERE type = 'table' AND name NOT LIKE 'sqlite_%' + ORDER BY name + `).all().map(a=>{let b=e(a.name),c=this.db.prepare(`PRAGMA table_info(${b})`).all(),d=this.db.prepare(`SELECT COUNT(*) as count FROM ${b}`).get();return{name:a.name,columns:c.map(a=>({name:a.name,type:a.type,nullable:!a.notnull,primaryKey:a.pk>0,defaultValue:a.dflt_value??void 0})),rowCount:d.count,isSystemTable:!1}})}executeRawSQL(a,b){if(a.trim().toLowerCase().startsWith("select")){let c=this.db.prepare(a),d=b?c.all(...b):c.all();if(0===d.length)return{columns:[],rows:[],rowsAffected:0};let e=Object.keys(d[0]),f=d.map(a=>e.map(b=>a[b]));return{columns:e,rows:f,rowsAffected:0}}{let c=this.db.prepare(a);return{columns:[],rows:[],rowsAffected:(b?c.run(...b):c.run()).changes}}}getTableData(a,b=100,c=0){if(!this.db.prepare(` + SELECT name FROM sqlite_master WHERE type = 'table' AND name = ? + `).get(a))throw Error(`Table "${a}" does not exist`);let d=e(a),f=this.db.prepare(`SELECT COUNT(*) as count FROM ${d}`).get(),g=this.db.prepare(`SELECT * FROM ${d} LIMIT ? OFFSET ?`).all(b,c);if(0===g.length)return{columns:[],rows:[],total:f.count};let h=Object.keys(g[0]),i=g.map(a=>h.map(b=>a[b]));return{columns:h,rows:i,total:f.count}}getSchemaForExport(){let a=this.db.prepare(` + SELECT sql FROM sqlite_master + WHERE type = 'table' AND name NOT LIKE 'sqlite_%' AND sql IS NOT NULL + ORDER BY name + `).all(),b=this.db.prepare(` + SELECT sql FROM sqlite_master + WHERE type = 'index' AND sql IS NOT NULL + ORDER BY name + `).all();return 0===a.length?"":[...a,...b].map(a=>a.sql+";").join("\n\n")+"\n"}}}}; \ No newline at end of file diff --git a/.next/server/chunks/3614.js b/.next/server/chunks/3614.js index 9010643b6b2d8bc37311d8919004dd62d3c3b24a..79f48aebba30fc9f586388d9f26e2b9ea61f8cd0 100644 --- a/.next/server/chunks/3614.js +++ b/.next/server/chunks/3614.js @@ -1 +1,37 @@ -"use strict";exports.id=3614,exports.ids=[3614],exports.modules={13614:(a,b,c)=>{c.d(b,{L9:()=>o,P4:()=>t,_u:()=>r,bD:()=>s,hc:()=>p,listSiteIds:()=>u,uD:()=>q});var d=c(87550),e=c.n(d),f=c(33873),g=c.n(f),h=c(29021),i=c.n(h);let j=null,k=new Map;function l(){return g().join(process.cwd(),"sites")}function m(a){i().existsSync(a)||i().mkdirSync(a,{recursive:!0})}function n(a){a.pragma("journal_mode = WAL"),a.pragma("foreign_keys = ON"),a.pragma("synchronous = NORMAL"),a.pragma("cache_size = -64000"),a.pragma("temp_store = MEMORY")}function o(){if(j)return j;let a=process.env.DATA_DIR||g().join(process.cwd(),"data");m(a);let b=g().join(a,"osws.sqlite");return n(j=new(e())(b)),j}function p(a){let b=k.get(a);if(b)return b;let c=l(),d=g().join(c,a);m(d);let f=g().join(d,"site.sqlite"),h=new(e())(f);return n(h),k.set(a,h),h}function q(a){let b=l(),c=g().join(b,a,"site.sqlite");return i().existsSync(c)}function r(a){s(a);let b=l(),c=g().join(b,a);if(i().existsSync(c)){for(let a of i().readdirSync(c))i().unlinkSync(g().join(c,a));i().rmdirSync(c)}}function s(a){let b=k.get(a);if(b){try{b.close()}catch{}k.delete(a)}}function t(){for(let[a]of k)s(a);if(j){try{j.close()}catch{}j=null}}function u(){let a=l();return i().existsSync(a)?i().readdirSync(a,{withFileTypes:!0}).filter(a=>a.isDirectory()).filter(b=>i().existsSync(g().join(a,b.name,"site.sqlite"))).map(a=>a.name):[]}}}; \ No newline at end of file +"use strict";exports.id=3614,exports.ids=[3614],exports.modules={13614:(a,b,c)=>{c.d(b,{Bw:()=>A,Ez:()=>z,Hz:()=>B,Ib:()=>y,L9:()=>t,P4:()=>D,Ul:()=>v,listDeploymentIds:()=>E,q$:()=>C,qM:()=>x,sN:()=>u,yF:()=>w});var d=c(87550),e=c.n(d),f=c(33873),g=c.n(f),h=c(29021),i=c.n(h);let j=null,k=new Map,l=new Map,m=new Map;function n(){return process.env.DATA_DIR||g().join(process.cwd(),"data")}function o(){let a=g().join(process.cwd(),"deployments"),b=g().join(process.cwd(),"sites");try{!i().existsSync(a)&&i().existsSync(b)&&i().renameSync(b,a)}catch{if(!i().existsSync(a))throw Error("Neither deployments/ nor sites/ directory exists")}return a}function p(a){i().existsSync(a)||i().mkdirSync(a,{recursive:!0})}function q(a,b){if(!/^[a-f0-9-]+$/i.test(a))throw Error(`Invalid ${b} format: ${a}`)}function r(a){a.pragma("journal_mode = WAL"),a.pragma("foreign_keys = ON"),a.pragma("synchronous = NORMAL"),a.pragma("cache_size = -64000"),a.pragma("temp_store = MEMORY")}function s(a,b){if(b&&!/^[a-f0-9-]+$/i.test(b))throw Error(`Invalid deployment ID format: ${b}`);let c=g().join(a,"deployment.sqlite"),d=g().join(a,"site.sqlite"),f=g().join(a,"runtime.sqlite"),h=g().join(a,"analytics.sqlite");if(i().existsSync(f))return;let j=null;if(i().existsSync(c)?j=c:i().existsSync(d)&&(j=d),j){var k=j;for(let a of(i().renameSync(k,f),["-wal","-shm"])){let b=k+a;i().existsSync(b)&&i().renameSync(b,f+a)}try{let a=new(e())(f);r(a);try{a.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='pageviews'").get()&&(a.exec(`ATTACH DATABASE '${h}' AS analytics_new`),a.exec(` + CREATE TABLE IF NOT EXISTS analytics_new.pageviews ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + page_path TEXT NOT NULL, + referrer TEXT, + country TEXT, + user_agent TEXT, + device_type TEXT, + session_id TEXT NOT NULL, + load_time INTEGER, + timestamp TEXT NOT NULL DEFAULT (datetime('now')) + ) + `),a.exec("CREATE INDEX IF NOT EXISTS analytics_new.idx_pageviews_timestamp ON pageviews(timestamp)"),a.exec("CREATE INDEX IF NOT EXISTS analytics_new.idx_pageviews_session_id ON pageviews(session_id)"),a.exec(` + CREATE TABLE IF NOT EXISTS analytics_new.interactions ( + id TEXT PRIMARY KEY, + session_id TEXT NOT NULL, + page_path TEXT NOT NULL, + interaction_type TEXT NOT NULL, + element_selector TEXT, + coordinates TEXT, + scroll_depth INTEGER, + time_on_page INTEGER, + timestamp TEXT NOT NULL DEFAULT (datetime('now')) + ) + `),a.exec("CREATE INDEX IF NOT EXISTS analytics_new.idx_interactions_page_path ON interactions(page_path)"),a.exec("CREATE INDEX IF NOT EXISTS analytics_new.idx_interactions_timestamp ON interactions(timestamp)"),a.exec(` + CREATE TABLE IF NOT EXISTS analytics_new.sessions ( + id TEXT PRIMARY KEY, + session_id TEXT NOT NULL, + entry_page TEXT, + exit_page TEXT, + page_count INTEGER DEFAULT 1, + duration INTEGER, + is_bounce INTEGER DEFAULT 1, + created_at TEXT NOT NULL DEFAULT (datetime('now')), + ended_at TEXT + ) + `),a.exec("CREATE INDEX IF NOT EXISTS analytics_new.idx_sessions_session_id ON sessions(session_id)"),a.exec("CREATE INDEX IF NOT EXISTS analytics_new.idx_sessions_created_at ON sessions(created_at)"),a.exec("INSERT INTO analytics_new.pageviews SELECT * FROM main.pageviews"),a.exec("INSERT INTO analytics_new.interactions SELECT * FROM main.interactions"),a.exec("INSERT INTO analytics_new.sessions SELECT * FROM main.sessions"),a.exec("DETACH DATABASE analytics_new"),a.exec("DROP TABLE IF EXISTS pageviews"),a.exec("DROP TABLE IF EXISTS interactions"),a.exec("DROP TABLE IF EXISTS sessions"))}finally{a.close()}}catch(a){console.error("[SQLite Migration] Failed to split deployment database:",a)}}}function t(){if(j)return j;let a=n();p(a);let b=g().join(a,"osws.sqlite");return r(j=new(e())(b)),j}function u(a){q(a,"deployment ID");let b=k.get(a);if(b)return b;let c=o(),d=g().join(c,a);p(d),s(d,a);let f=g().join(d,"runtime.sqlite"),h=new(e())(f);return r(h),k.set(a,h),h}function v(a){q(a,"deployment ID");let b=l.get(a);if(b)return b;let c=o(),d=g().join(c,a);p(d),s(d,a);let f=g().join(d,"analytics.sqlite"),h=new(e())(f);return r(h),l.set(a,h),h}function w(a){q(a,"deployment ID");let b=o(),c=g().join(b,a),d=g().join(c,"runtime.sqlite"),e=g().join(c,"deployment.sqlite"),f=g().join(c,"site.sqlite");return i().existsSync(d)||i().existsSync(e)||i().existsSync(f)}function x(a){q(a,"deployment ID"),y(a),z(a);let b=o(),c=g().join(b,a);if(i().existsSync(c)){for(let a of i().readdirSync(c))i().unlinkSync(g().join(c,a));i().rmdirSync(c)}}function y(a){let b=k.get(a);if(b){try{b.close()}catch{}k.delete(a)}}function z(a){let b=l.get(a);if(b){try{b.close()}catch{}l.delete(a)}}function A(a){q(a,"project ID");let b=m.get(a);if(b)return b;let c=n(),d=g().join(c,"projects",a);p(d);let f=g().join(d,"database.sqlite"),h=new(e())(f);return r(h),m.set(a,h),h}function B(a){let b=m.get(a);if(b){try{b.close()}catch{}m.delete(a)}}function C(a){q(a,"project ID"),B(a);let b=n(),c=g().join(b,"projects",a);if(i().existsSync(c)){for(let a of i().readdirSync(c))i().unlinkSync(g().join(c,a));i().rmdirSync(c)}}function D(){for(let[a]of k)y(a);for(let[a]of l)z(a);for(let[a]of m)B(a);if(j){try{j.close()}catch{}j=null}}function E(){let a=o();return i().existsSync(a)?i().readdirSync(a,{withFileTypes:!0}).filter(a=>a.isDirectory()).filter(b=>{let c=g().join(a,b.name);return i().existsSync(g().join(c,"runtime.sqlite"))||i().existsSync(g().join(c,"deployment.sqlite"))||i().existsSync(g().join(c,"site.sqlite"))}).map(a=>a.name):[]}}}; \ No newline at end of file diff --git a/.next/server/chunks/4141.js b/.next/server/chunks/4141.js new file mode 100644 index 0000000000000000000000000000000000000000..ba8d03ec3094a9e64d0ca1caf72e6f75d2a2d275 --- /dev/null +++ b/.next/server/chunks/4141.js @@ -0,0 +1 @@ +"use strict";exports.id=4141,exports.ids=[4141],exports.modules={4141:(a,b,c)=>{c.d(b,{v4:()=>d.A});var d=c(2117)}}; \ No newline at end of file diff --git a/.next/server/chunks/4606.js b/.next/server/chunks/4606.js index d9f06359564894a07bd32fcea2d33b92f6b3d283..596a62c97f03b2890a781c9c0e9bbca08b28dbfa 100644 --- a/.next/server/chunks/4606.js +++ b/.next/server/chunks/4606.js @@ -1 +1 @@ -exports.id=4606,exports.ids=[4606],exports.modules={810:(a,b,c)=>{"use strict";c.d(b,{UC:()=>T,ZL:()=>S,bL:()=>Q,l9:()=>R});var d=c(38301),e=c(87868),f=c(92808),g=c(2332),h=c(7412),i=c(70904),j=c(69998),k=c(75656),l=c(25122),m=c(61611),n=c(29988),o=c(6406),p=c(96425),q=c(11720),r=c(61225),s=c(36409),t=c(21124),u="Popover",[v,w]=(0,g.A)(u,[l.Bk]),x=(0,l.Bk)(),[y,z]=v(u),A=a=>{let{__scopePopover:b,children:c,open:e,defaultOpen:f,onOpenChange:g,modal:h=!1}=a,i=x(b),j=d.useRef(null),[m,n]=d.useState(!1),[o,p]=(0,q.i)({prop:e,defaultProp:f??!1,onChange:g,caller:u});return(0,t.jsx)(l.bL,{...i,children:(0,t.jsx)(y,{scope:b,contentId:(0,k.B)(),triggerRef:j,open:o,onOpenChange:p,onOpenToggle:d.useCallback(()=>p(a=>!a),[p]),hasCustomAnchor:m,onCustomAnchorAdd:d.useCallback(()=>n(!0),[]),onCustomAnchorRemove:d.useCallback(()=>n(!1),[]),modal:h,children:c})})};A.displayName=u;var B="PopoverAnchor";d.forwardRef((a,b)=>{let{__scopePopover:c,...e}=a,f=z(B,c),g=x(c),{onCustomAnchorAdd:h,onCustomAnchorRemove:i}=f;return d.useEffect(()=>(h(),()=>i()),[h,i]),(0,t.jsx)(l.Mz,{...g,...e,ref:b})}).displayName=B;var C="PopoverTrigger",D=d.forwardRef((a,b)=>{let{__scopePopover:c,...d}=a,g=z(C,c),h=x(c),i=(0,f.s)(b,g.triggerRef),j=(0,t.jsx)(o.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":g.open,"aria-controls":g.contentId,"data-state":P(g.open),...d,ref:i,onClick:(0,e.mK)(a.onClick,g.onOpenToggle)});return g.hasCustomAnchor?j:(0,t.jsx)(l.Mz,{asChild:!0,...h,children:j})});D.displayName=C;var E="PopoverPortal",[F,G]=v(E,{forceMount:void 0}),H=a=>{let{__scopePopover:b,forceMount:c,children:d,container:e}=a,f=z(E,b);return(0,t.jsx)(F,{scope:b,forceMount:c,children:(0,t.jsx)(n.C,{present:c||f.open,children:(0,t.jsx)(m.Z,{asChild:!0,container:e,children:d})})})};H.displayName=E;var I="PopoverContent",J=d.forwardRef((a,b)=>{let c=G(I,a.__scopePopover),{forceMount:d=c.forceMount,...e}=a,f=z(I,a.__scopePopover);return(0,t.jsx)(n.C,{present:d||f.open,children:f.modal?(0,t.jsx)(L,{...e,ref:b}):(0,t.jsx)(M,{...e,ref:b})})});J.displayName=I;var K=(0,p.TL)("PopoverContent.RemoveScroll"),L=d.forwardRef((a,b)=>{let c=z(I,a.__scopePopover),g=d.useRef(null),h=(0,f.s)(b,g),i=d.useRef(!1);return d.useEffect(()=>{let a=g.current;if(a)return(0,r.Eq)(a)},[]),(0,t.jsx)(s.A,{as:K,allowPinchZoom:!0,children:(0,t.jsx)(N,{...a,ref:h,trapFocus:c.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,e.mK)(a.onCloseAutoFocus,a=>{a.preventDefault(),i.current||c.triggerRef.current?.focus()}),onPointerDownOutside:(0,e.mK)(a.onPointerDownOutside,a=>{let b=a.detail.originalEvent,c=0===b.button&&!0===b.ctrlKey;i.current=2===b.button||c},{checkForDefaultPrevented:!1}),onFocusOutside:(0,e.mK)(a.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),M=d.forwardRef((a,b)=>{let c=z(I,a.__scopePopover),e=d.useRef(!1),f=d.useRef(!1);return(0,t.jsx)(N,{...a,ref:b,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:b=>{a.onCloseAutoFocus?.(b),b.defaultPrevented||(e.current||c.triggerRef.current?.focus(),b.preventDefault()),e.current=!1,f.current=!1},onInteractOutside:b=>{a.onInteractOutside?.(b),b.defaultPrevented||(e.current=!0,"pointerdown"===b.detail.originalEvent.type&&(f.current=!0));let d=b.target;c.triggerRef.current?.contains(d)&&b.preventDefault(),"focusin"===b.detail.originalEvent.type&&f.current&&b.preventDefault()}})}),N=d.forwardRef((a,b)=>{let{__scopePopover:c,trapFocus:d,onOpenAutoFocus:e,onCloseAutoFocus:f,disableOutsidePointerEvents:g,onEscapeKeyDown:k,onPointerDownOutside:m,onFocusOutside:n,onInteractOutside:o,...p}=a,q=z(I,c),r=x(c);return(0,i.Oh)(),(0,t.jsx)(j.n,{asChild:!0,loop:!0,trapped:d,onMountAutoFocus:e,onUnmountAutoFocus:f,children:(0,t.jsx)(h.qW,{asChild:!0,disableOutsidePointerEvents:g,onInteractOutside:o,onEscapeKeyDown:k,onPointerDownOutside:m,onFocusOutside:n,onDismiss:()=>q.onOpenChange(!1),children:(0,t.jsx)(l.UC,{"data-state":P(q.open),role:"dialog",id:q.contentId,...r,...p,ref:b,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),O="PopoverClose";function P(a){return a?"open":"closed"}d.forwardRef((a,b)=>{let{__scopePopover:c,...d}=a,f=z(O,c);return(0,t.jsx)(o.sG.button,{type:"button",...d,ref:b,onClick:(0,e.mK)(a.onClick,()=>f.onOpenChange(!1))})}).displayName=O,d.forwardRef((a,b)=>{let{__scopePopover:c,...d}=a,e=x(c);return(0,t.jsx)(l.i3,{...e,...d,ref:b})}).displayName="PopoverArrow";var Q=A,R=D,S=H,T=J},825:(a,b,c)=>{"use strict";c.d(b,{N:()=>i});var d=c(38301),e=c(2332),f=c(92808),g=c(96425),h=c(21124);function i(a){let b=a+"CollectionProvider",[c,i]=(0,e.A)(b),[j,k]=c(b,{collectionRef:{current:null},itemMap:new Map}),l=a=>{let{scope:b,children:c}=a,e=d.useRef(null),f=d.useRef(new Map).current;return(0,h.jsx)(j,{scope:b,itemMap:f,collectionRef:e,children:c})};l.displayName=b;let m=a+"CollectionSlot",n=(0,g.TL)(m),o=d.forwardRef((a,b)=>{let{scope:c,children:d}=a,e=k(m,c),g=(0,f.s)(b,e.collectionRef);return(0,h.jsx)(n,{ref:g,children:d})});o.displayName=m;let p=a+"CollectionItemSlot",q="data-radix-collection-item",r=(0,g.TL)(p),s=d.forwardRef((a,b)=>{let{scope:c,children:e,...g}=a,i=d.useRef(null),j=(0,f.s)(b,i),l=k(p,c);return d.useEffect(()=>(l.itemMap.set(i,{ref:i,...g}),()=>void l.itemMap.delete(i))),(0,h.jsx)(r,{...{[q]:""},ref:j,children:e})});return s.displayName=p,[{Provider:l,Slot:o,ItemSlot:s},function(b){let c=k(a+"CollectionConsumer",b);return d.useCallback(()=>{let a=c.collectionRef.current;if(!a)return[];let b=Array.from(a.querySelectorAll(`[${q}]`));return Array.from(c.itemMap.values()).sort((a,c)=>b.indexOf(a.ref.current)-b.indexOf(c.ref.current))},[c.collectionRef,c.itemMap])},i]}var j=new WeakMap;function k(a,b){if("at"in Array.prototype)return Array.prototype.at.call(a,b);let c=function(a,b){let c=a.length,d=l(b),e=d>=0?d:c+d;return e<0||e>=c?-1:e}(a,b);return -1===c?void 0:a[c]}function l(a){return a!=a||0===a?0:Math.trunc(a)}(class a extends Map{#a;constructor(a){super(a),this.#a=[...super.keys()],j.set(this,!0)}set(a,b){return j.get(this)&&(this.has(a)?this.#a[this.#a.indexOf(a)]=a:this.#a.push(a)),super.set(a,b),this}insert(a,b,c){let d,e=this.has(b),f=this.#a.length,g=l(a),h=g>=0?g:f+g,i=h<0||h>=f?-1:h;if(i===this.size||e&&i===this.size-1||-1===i)return this.set(b,c),this;let j=this.size+ +!e;g<0&&h++;let k=[...this.#a],m=!1;for(let a=h;a=this.size&&(d=this.size-1),this.at(d)}keyFrom(a,b){let c=this.indexOf(a);if(-1===c)return;let d=c+b;return d<0&&(d=0),d>=this.size&&(d=this.size-1),this.keyAt(d)}find(a,b){let c=0;for(let d of this){if(Reflect.apply(a,b,[d,c,this]))return d;c++}}findIndex(a,b){let c=0;for(let d of this){if(Reflect.apply(a,b,[d,c,this]))return c;c++}return -1}filter(b,c){let d=[],e=0;for(let a of this)Reflect.apply(b,c,[a,e,this])&&d.push(a),e++;return new a(d)}map(b,c){let d=[],e=0;for(let a of this)d.push([a[0],Reflect.apply(b,c,[a,e,this])]),e++;return new a(d)}reduce(...a){let[b,c]=a,d=0,e=c??this.at(0);for(let c of this)e=0===d&&1===a.length?c:Reflect.apply(b,this,[e,c,d,this]),d++;return e}reduceRight(...a){let[b,c]=a,d=c??this.at(-1);for(let c=this.size-1;c>=0;c--){let e=this.at(c);d=c===this.size-1&&1===a.length?e:Reflect.apply(b,this,[d,e,c,this])}return d}toSorted(b){return new a([...this.entries()].sort(b))}toReversed(){let b=new a;for(let a=this.size-1;a>=0;a--){let c=this.keyAt(a),d=this.get(c);b.set(c,d)}return b}toSpliced(...b){let c=[...this.entries()];return c.splice(...b),new a(c)}slice(b,c){let d=new a,e=this.size-1;if(void 0===b)return d;b<0&&(b+=this.size),void 0!==c&&c>0&&(e=c-1);for(let a=b;a<=e;a++){let b=this.keyAt(a),c=this.get(b);d.set(b,c)}return d}every(a,b){let c=0;for(let d of this){if(!Reflect.apply(a,b,[d,c,this]))return!1;c++}return!0}some(a,b){let c=0;for(let d of this){if(Reflect.apply(a,b,[d,c,this]))return!0;c++}return!1}})},1094:a=>{"use strict";a.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},1793:(a,b)=>{"use strict";b.__esModule=!0;var c=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function d(a,b){var e=b&&b.loc,f=void 0,g=void 0,h=void 0,i=void 0;e&&(f=e.start.line,g=e.end.line,h=e.start.column,i=e.end.column,a+=" - "+f+":"+h);for(var j=Error.prototype.constructor.call(this,a),k=0;k{"use strict";c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},2229:(a,b,c)=>{"use strict";var d=c(20452),e=c(51238),f=c(75074),g=c(2276),h=c(4699),i=c(8153);a.exports=function(a,b){var c=this;return(b=d.extend(b||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:f.utf8decode}),i.isNode&&i.isStream(a))?e.Promise.reject(Error("JSZip can't accept a stream when loading a zip file.")):d.prepareContent("the loaded zip file",a,!0,b.optimizedBinaryString,b.base64).then(function(a){var c=new g(b);return c.load(a),c}).then(function(a){var c=[e.Promise.resolve(a)],d=a.files;if(b.checkCRC32)for(var f=0;f{"use strict";var d=c(38111),e=c(20452),f=c(80451),g=c(35652),h=c(9926);function i(a){this.files=[],this.loadOptions=a}i.prototype={checkSignature:function(a){if(!this.reader.readAndCheckSignature(a)){this.reader.index-=4;var b=this.reader.readString(4);throw Error("Corrupted zip or bug: unexpected signature ("+e.pretty(b)+", expected "+e.pretty(a)+")")}},isSignature:function(a,b){var c=this.reader.index;this.reader.setIndex(a);var d=this.reader.readString(4);return this.reader.setIndex(c),d===b},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var a=this.reader.readData(this.zipCommentLength),b=h.uint8array?"uint8array":"array",c=e.transformTo(b,a);this.zipComment=this.loadOptions.decodeFileName(c)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var a,b,c,d=this.zip64EndOfCentralSize-44;01)throw Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var a,b;for(a=0;a0)this.isSignature(b,f.CENTRAL_FILE_HEADER)||(this.reader.zero=d);else if(d<0)throw Error("Corrupted zip: missing "+Math.abs(d)+" bytes.")},prepareReader:function(a){this.reader=d(a)},load:function(a){this.prepareReader(a),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},a.exports=i},2332:(a,b,c)=>{"use strict";c.d(b,{A:()=>g,q:()=>f});var d=c(38301),e=c(21124);function f(a,b){let c=d.createContext(b),f=a=>{let{children:b,...f}=a,g=d.useMemo(()=>f,Object.values(f));return(0,e.jsx)(c.Provider,{value:g,children:b})};return f.displayName=a+"Provider",[f,function(e){let f=d.useContext(c);if(f)return f;if(void 0!==b)return b;throw Error(`\`${e}\` must be used within \`${a}\``)}]}function g(a,b=[]){let c=[],f=()=>{let b=c.map(a=>d.createContext(a));return function(c){let e=c?.[a]||b;return d.useMemo(()=>({[`__scope${a}`]:{...c,[a]:e}}),[c,e])}};return f.scopeName=a,[function(b,f){let g=d.createContext(f),h=c.length;c=[...c,f];let i=b=>{let{scope:c,children:f,...i}=b,j=c?.[a]?.[h]||g,k=d.useMemo(()=>i,Object.values(i));return(0,e.jsx)(j.Provider,{value:k,children:f})};return i.displayName=b+"Provider",[i,function(c,e){let i=e?.[a]?.[h]||g,j=d.useContext(i);if(j)return j;if(void 0!==f)return f;throw Error(`\`${c}\` must be used within \`${b}\``)}]},function(...a){let b=a[0];if(1===a.length)return b;let c=()=>{let c=a.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(a){let e=c.reduce((b,{useScope:c,scopeName:d})=>{let e=c(a)[`__scope${d}`];return{...b,...e}},{});return d.useMemo(()=>({[`__scope${b.scopeName}`]:e}),[e])}};return c.scopeName=b.scopeName,c}(f,...b)]}},2733:(a,b,c)=>{var d=c(30923).default,e=c(13544);d.PrintVisitor=e.PrintVisitor,d.print=e.print,a.exports=d},3368:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},4699:(a,b,c)=>{"use strict";var d=c(65353),e=c(35310);function f(){d.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}c(20452).inherits(f,d),f.prototype.processChunk=function(a){this.streamInfo.crc32=e(a.data,this.streamInfo.crc32||0),this.push(a)},a.exports=f},5887:(a,b)=>{"use strict";b.base64=!1,b.binary=!1,b.dir=!1,b.createFolders=!0,b.date=null,b.compression=null,b.compressionOptions=null,b.comment=null,b.unixPermissions=null,b.dosPermissions=null},5987:(a,b,c)=>{"use strict";var d=c(38590);function e(a){d.call(this,a);for(var b=0;b=0;--f)if(this.data[f]===b&&this.data[f+1]===c&&this.data[f+2]===d&&this.data[f+3]===e)return f-this.zero;return -1},e.prototype.readAndCheckSignature=function(a){var b=a.charCodeAt(0),c=a.charCodeAt(1),d=a.charCodeAt(2),e=a.charCodeAt(3),f=this.readData(4);return b===f[0]&&c===f[1]&&d===f[2]&&e===f[3]},e.prototype.readData=function(a){if(this.checkOffset(a),0===a)return[];var b=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,b},a.exports=e},6130:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("menu",[["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 18h16",key:"19g7jn"}],["path",{d:"M4 6h16",key:"1o0s65"}]])},6401:(a,b,c)=>{"use strict";var d=c(20452),e=c(65353);function f(a,b){e.call(this,"Nodejs stream input adapter for "+a),this._upstreamEnded=!1,this._bindStream(b)}d.inherits(f,e),f.prototype._bindStream=function(a){var b=this;this._stream=a,a.pause(),a.on("data",function(a){b.push({data:a,meta:{percent:0}})}).on("error",function(a){b.isPaused?this.generatedError=a:b.error(a)}).on("end",function(){b.isPaused?b._upstreamEnded=!0:b.end()})},f.prototype.pause=function(){return!!e.prototype.pause.call(this)&&(this._stream.pause(),!0)},f.prototype.resume=function(){return!!e.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},a.exports=f},6406:(a,b,c)=>{"use strict";c.d(b,{hO:()=>i,sG:()=>h});var d=c(38301),e=c(23312),f=c(96425),g=c(21124),h=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((a,b)=>{let c=(0,f.TL)(`Primitive.${b}`),e=d.forwardRef((a,d)=>{let{asChild:e,...f}=a;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,g.jsx)(e?c:b,{...f,ref:d})});return e.displayName=`Primitive.${b}`,{...a,[b]:e}},{});function i(a,b){a&&e.flushSync(()=>a.dispatchEvent(b))}},6725:(a,b,c)=>{"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}b.__esModule=!0;var f=e(c(25139)),g=d(c(64685)),h=d(c(1793)),i=e(c(50281)),j=e(c(76824)),k=d(c(59156));function l(){var a=new f.HandlebarsEnvironment;return i.extend(a,f),a.SafeString=g.default,a.Exception=h.default,a.Utils=i,a.escapeExpression=i.escapeExpression,a.VM=j,a.template=function(b){return j.template(b,a)},a}var m=l();m.create=l,k.default(m),m.default=m,b.default=m,a.exports=b.default},7225:(a,b,c)=>{"use strict";var d,e,f,g=c(43613);function h(a){for(var b=a.length;--b>=0;)a[b]=0}var i=573,j=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],k=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],l=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],m=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],n=Array(576);h(n);var o=Array(60);h(o);var p=Array(512);h(p);var q=Array(256);h(q);var r=Array(29);h(r);var s=Array(30);function t(a,b,c,d,e){this.static_tree=a,this.extra_bits=b,this.extra_base=c,this.elems=d,this.max_length=e,this.has_stree=a&&a.length}function u(a,b){this.dyn_tree=a,this.max_code=0,this.stat_desc=b}function v(a){return a<256?p[a]:p[256+(a>>>7)]}function w(a,b){a.pending_buf[a.pending++]=255&b,a.pending_buf[a.pending++]=b>>>8&255}function x(a,b,c){a.bi_valid>16-c?(a.bi_buf|=b<>16-a.bi_valid,a.bi_valid+=c-16):(a.bi_buf|=b<>>=1,c<<=1;while(--b>0);return c>>>1}function A(a,b,c){var d,e,f=Array(16),g=0;for(d=1;d<=15;d++)f[d]=g=g+c[d-1]<<1;for(e=0;e<=b;e++){var h=a[2*e+1];0!==h&&(a[2*e]=z(f[h]++,h))}}function B(a){var b;for(b=0;b<286;b++)a.dyn_ltree[2*b]=0;for(b=0;b<30;b++)a.dyn_dtree[2*b]=0;for(b=0;b<19;b++)a.bl_tree[2*b]=0;a.dyn_ltree[512]=1,a.opt_len=a.static_len=0,a.last_lit=a.matches=0}function C(a){a.bi_valid>8?w(a,a.bi_buf):a.bi_valid>0&&(a.pending_buf[a.pending++]=a.bi_buf),a.bi_buf=0,a.bi_valid=0}function D(a,b,c,d){var e=2*b,f=2*c;return a[e]>1;c>=1;c--)E(a,f,c);e=j;do c=a.heap[1],a.heap[1]=a.heap[a.heap_len--],E(a,f,1),d=a.heap[1],a.heap[--a.heap_max]=c,a.heap[--a.heap_max]=d,f[2*e]=f[2*c]+f[2*d],a.depth[e]=(a.depth[c]>=a.depth[d]?a.depth[c]:a.depth[d])+1,f[2*c+1]=f[2*d+1]=e,a.heap[1]=e++,E(a,f,1);while(a.heap_len>=2);a.heap[--a.heap_max]=a.heap[1],function(a,b){var c,d,e,f,g,h,j=b.dyn_tree,k=b.max_code,l=b.stat_desc.static_tree,m=b.stat_desc.has_stree,n=b.stat_desc.extra_bits,o=b.stat_desc.extra_base,p=b.stat_desc.max_length,q=0;for(f=0;f<=15;f++)a.bl_count[f]=0;for(j[2*a.heap[a.heap_max]+1]=0,c=a.heap_max+1;cp&&(f=p,q++),j[2*d+1]=f,!(d>k)&&(a.bl_count[f]++,g=0,d>=o&&(g=n[d-o]),h=j[2*d],a.opt_len+=h*(f+g),m&&(a.static_len+=h*(l[2*d+1]+g)));if(0!==q){do{for(f=p-1;0===a.bl_count[f];)f--;a.bl_count[f]--,a.bl_count[f+1]+=2,a.bl_count[p]--,q-=2}while(q>0);for(f=p;0!==f;f--)for(d=a.bl_count[f];0!==d;)!((e=a.heap[--c])>k)&&(j[2*e+1]!==f&&(a.opt_len+=(f-j[2*e+1])*j[2*e],j[2*e+1]=f),d--)}}(a,b),A(f,k,a.bl_count)}function H(a,b,c){var d,e,f=-1,g=b[1],h=0,i=7,j=4;for(0===g&&(i=138,j=3),b[(c+1)*2+1]=65535,d=0;d<=c;d++)e=g,g=b[(d+1)*2+1],++h>=7;g<30;g++)for(a=0,s[g]=h<<7;a<1<0?(2===a.strm.data_type&&(a.strm.data_type=function(a){var b,c=0xf3ffc07f;for(b=0;b<=31;b++,c>>>=1)if(1&c&&0!==a.dyn_ltree[2*b])return 0;if(0!==a.dyn_ltree[18]||0!==a.dyn_ltree[20]||0!==a.dyn_ltree[26])return 1;for(b=32;b<256;b++)if(0!==a.dyn_ltree[2*b])return 1;return 0}(a)),G(a,a.l_desc),G(a,a.d_desc),g=function(a){var b;for(H(a,a.dyn_ltree,a.l_desc.max_code),H(a,a.dyn_dtree,a.d_desc.max_code),G(a,a.bl_desc),b=18;b>=3&&0===a.bl_tree[2*m[b]+1];b--);return a.opt_len+=3*(b+1)+5+5+4,b}(a),e=a.opt_len+3+7>>>3,(f=a.static_len+3+7>>>3)<=e&&(e=f)):e=f=c+5,c+4<=e&&-1!==b?K(a,b,c,d):4===a.strategy||f===e?(x(a,2+ +!!d,3),F(a,n,o)):(x(a,4+ +!!d,3),function(a,b,c,d){var e;for(x(a,b-257,5),x(a,c-1,5),x(a,d-4,4),e=0;e>>8&255,a.pending_buf[a.d_buf+2*a.last_lit+1]=255&b,a.pending_buf[a.l_buf+a.last_lit]=255&c,a.last_lit++,0===b?a.dyn_ltree[2*c]++:(a.matches++,b--,a.dyn_ltree[(q[c]+256+1)*2]++,a.dyn_dtree[2*v(b)]++),a.last_lit===a.lit_bufsize-1},b._tr_align=function(a){x(a,2,3),y(a,256,n),16===a.bi_valid?(w(a,a.bi_buf),a.bi_buf=0,a.bi_valid=0):a.bi_valid>=8&&(a.pending_buf[a.pending++]=255&a.bi_buf,a.bi_buf>>=8,a.bi_valid-=8)}},7412:(a,b,c)=>{"use strict";c.d(b,{qW:()=>m});var d,e=c(38301),f=c(87868),g=c(6406),h=c(92808),i=c(71700),j=c(21124),k="dismissableLayer.update",l=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),m=e.forwardRef((a,b)=>{let{disableOutsidePointerEvents:c=!1,onEscapeKeyDown:m,onPointerDownOutside:p,onFocusOutside:q,onInteractOutside:r,onDismiss:s,...t}=a,u=e.useContext(l),[v,w]=e.useState(null),x=v?.ownerDocument??globalThis?.document,[,y]=e.useState({}),z=(0,h.s)(b,a=>w(a)),A=Array.from(u.layers),[B]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),C=A.indexOf(B),D=v?A.indexOf(v):-1,E=u.layersWithOutsidePointerEventsDisabled.size>0,F=D>=C,G=function(a,b=globalThis?.document){let c=(0,i.c)(a),d=e.useRef(!1),f=e.useRef(()=>{});return e.useEffect(()=>{let a=a=>{if(a.target&&!d.current){let d=function(){o("dismissableLayer.pointerDownOutside",c,e,{discrete:!0})},e={originalEvent:a};"touch"===a.pointerType?(b.removeEventListener("click",f.current),f.current=d,b.addEventListener("click",f.current,{once:!0})):d()}else b.removeEventListener("click",f.current);d.current=!1},e=window.setTimeout(()=>{b.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(e),b.removeEventListener("pointerdown",a),b.removeEventListener("click",f.current)}},[b,c]),{onPointerDownCapture:()=>d.current=!0}}(a=>{let b=a.target,c=[...u.branches].some(a=>a.contains(b));F&&!c&&(p?.(a),r?.(a),a.defaultPrevented||s?.())},x),H=function(a,b=globalThis?.document){let c=(0,i.c)(a),d=e.useRef(!1);return e.useEffect(()=>{let a=a=>{a.target&&!d.current&&o("dismissableLayer.focusOutside",c,{originalEvent:a},{discrete:!1})};return b.addEventListener("focusin",a),()=>b.removeEventListener("focusin",a)},[b,c]),{onFocusCapture:()=>d.current=!0,onBlurCapture:()=>d.current=!1}}(a=>{let b=a.target;![...u.branches].some(a=>a.contains(b))&&(q?.(a),r?.(a),a.defaultPrevented||s?.())},x);return!function(a,b=globalThis?.document){let c=(0,i.c)(a);e.useEffect(()=>{let a=a=>{"Escape"===a.key&&c(a)};return b.addEventListener("keydown",a,{capture:!0}),()=>b.removeEventListener("keydown",a,{capture:!0})},[c,b])}(a=>{D===u.layers.size-1&&(m?.(a),!a.defaultPrevented&&s&&(a.preventDefault(),s()))},x),e.useEffect(()=>{if(v)return c&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(d=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(v)),u.layers.add(v),n(),()=>{c&&1===u.layersWithOutsidePointerEventsDisabled.size&&(x.body.style.pointerEvents=d)}},[v,x,c,u]),e.useEffect(()=>()=>{v&&(u.layers.delete(v),u.layersWithOutsidePointerEventsDisabled.delete(v),n())},[v,u]),e.useEffect(()=>{let a=()=>y({});return document.addEventListener(k,a),()=>document.removeEventListener(k,a)},[]),(0,j.jsx)(g.sG.div,{...t,ref:z,style:{pointerEvents:E?F?"auto":"none":void 0,...a.style},onFocusCapture:(0,f.mK)(a.onFocusCapture,H.onFocusCapture),onBlurCapture:(0,f.mK)(a.onBlurCapture,H.onBlurCapture),onPointerDownCapture:(0,f.mK)(a.onPointerDownCapture,G.onPointerDownCapture)})});function n(){let a=new CustomEvent(k);document.dispatchEvent(a)}function o(a,b,c,{discrete:d}){let e=c.originalEvent.target,f=new CustomEvent(a,{bubbles:!1,cancelable:!0,detail:c});b&&e.addEventListener(a,b,{once:!0}),d?(0,g.hO)(e,f):e.dispatchEvent(f)}m.displayName="DismissableLayer",e.forwardRef((a,b)=>{let c=e.useContext(l),d=e.useRef(null),f=(0,h.s)(b,d);return e.useEffect(()=>{let a=d.current;if(a)return c.branches.add(a),()=>{c.branches.delete(a)}},[c.branches]),(0,j.jsx)(g.sG.div,{...a,ref:f})}).displayName="DismissableLayerBranch"},7932:(a,b,c)=>{"use strict";var d,e,f=c(39265);function g(a){var b=this;this.next=null,this.entry=null,this.finish=function(){var c=b,d=a,e=c.entry;for(c.entry=null;e;){var f=e.callback;d.pendingcb--,f(void 0),e=e.next}d.corkedRequestsFree.next=c}}a.exports=q;var h=["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:f.nextTick;q.WritableState=p;var i=Object.create(c(69082));i.inherits=c(48985);var j={deprecate:c(33403)},k=c(69720),l=c(62253).Buffer,m=("undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},n=c(15016);function o(){}function p(a,b){d=d||c(47482),a=a||{};var e=b instanceof d;this.objectMode=!!a.objectMode,e&&(this.objectMode=this.objectMode||!!a.writableObjectMode);var i=a.highWaterMark,j=a.writableHighWaterMark,k=this.objectMode?16:16384;i||0===i?this.highWaterMark=i:e&&(j||0===j)?this.highWaterMark=j:this.highWaterMark=k,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var l=!1===a.decodeStrings;this.decodeStrings=!l,this.defaultEncoding=a.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(a){!function(a,b){var c=a._writableState,d=c.sync,e=c.writecb;if(c.writing=!1,c.writecb=null,c.length-=c.writelen,c.writelen=0,b)--c.pendingcb,d?(f.nextTick(e,b),f.nextTick(w,a,c),a._writableState.errorEmitted=!0,a.emit("error",b)):(e(b),a._writableState.errorEmitted=!0,a.emit("error",b),w(a,c));else{var g=u(c);g||c.corked||c.bufferProcessing||!c.bufferedRequest||t(a,c),d?h(s,a,c,g,e):s(a,c,g,e)}}(b,a)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new g(this)}i.inherits(q,k),p.prototype.getBuffer=function(){for(var a=this.bufferedRequest,b=[];a;)b.push(a),a=a.next;return b};try{Object.defineProperty(p.prototype,"buffer",{get:j.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(a){}function q(a){if(d=d||c(47482),!e.call(q,this)&&!(this instanceof d))return new q(a);this._writableState=new p(a,this),this.writable=!0,a&&("function"==typeof a.write&&(this._write=a.write),"function"==typeof a.writev&&(this._writev=a.writev),"function"==typeof a.destroy&&(this._destroy=a.destroy),"function"==typeof a.final&&(this._final=a.final)),k.call(this)}function r(a,b,c,d,e,f,g){b.writelen=d,b.writecb=g,b.writing=!0,b.sync=!0,c?a._writev(e,b.onwrite):a._write(e,f,b.onwrite),b.sync=!1}function s(a,b,c,d){var e,f;c||(e=a,0===(f=b).length&&f.needDrain&&(f.needDrain=!1,e.emit("drain"))),b.pendingcb--,d(),w(a,b)}function t(a,b){b.bufferProcessing=!0;var c=b.bufferedRequest;if(a._writev&&c&&c.next){var d=Array(b.bufferedRequestCount),e=b.corkedRequestsFree;e.entry=c;for(var f=0,h=!0;c;)d[f]=c,c.isBuf||(h=!1),c=c.next,f+=1;d.allBuffers=h,r(a,b,!0,b.length,d,"",e.finish),b.pendingcb++,b.lastBufferedRequest=null,e.next?(b.corkedRequestsFree=e.next,e.next=null):b.corkedRequestsFree=new g(b),b.bufferedRequestCount=0}else{for(;c;){var i=c.chunk,j=c.encoding,k=c.callback,l=b.objectMode?1:i.length;if(r(a,b,!1,l,i,j,k),c=c.next,b.bufferedRequestCount--,b.writing)break}null===c&&(b.lastBufferedRequest=null)}b.bufferedRequest=c,b.bufferProcessing=!1}function u(a){return a.ending&&0===a.length&&null===a.bufferedRequest&&!a.finished&&!a.writing}function v(a,b){a._final(function(c){b.pendingcb--,c&&a.emit("error",c),b.prefinished=!0,a.emit("prefinish"),w(a,b)})}function w(a,b){var c=u(b);return c&&(b.prefinished||b.finalCalled||("function"==typeof a._final?(b.pendingcb++,b.finalCalled=!0,f.nextTick(v,a,b)):(b.prefinished=!0,a.emit("prefinish"))),0===b.pendingcb&&(b.finished=!0,a.emit("finish"))),c}"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(e=Function.prototype[Symbol.hasInstance],Object.defineProperty(q,Symbol.hasInstance,{value:function(a){return!!e.call(this,a)||this===q&&a&&a._writableState instanceof p}})):e=function(a){return a instanceof this},q.prototype.pipe=function(){this.emit("error",Error("Cannot pipe, not readable"))},q.prototype.write=function(a,b,c){var d,e,g,h,i,j,k,n,p=this._writableState,q=!1,s=!p.objectMode&&(d=a,l.isBuffer(d)||d instanceof m);return(s&&!l.isBuffer(a)&&(e=a,a=l.from(e)),"function"==typeof b&&(c=b,b=null),s?b="buffer":b||(b=p.defaultEncoding),"function"!=typeof c&&(c=o),p.ended)?(g=c,h=Error("write after end"),this.emit("error",h),f.nextTick(g,h)):(s||(i=a,j=c,k=!0,n=!1,null===i?n=TypeError("May not write null values to stream"):"string"==typeof i||void 0===i||p.objectMode||(n=TypeError("Invalid non-string/buffer chunk")),n&&(this.emit("error",n),f.nextTick(j,n),k=!1),k))&&(p.pendingcb++,q=function(a,b,c,d,e,f){if(!c){var g,h,i=(g=d,h=e,b.objectMode||!1===b.decodeStrings||"string"!=typeof g||(g=l.from(g,h)),g);d!==i&&(c=!0,e="buffer",d=i)}var j=b.objectMode?1:d.length;b.length+=j;var k=b.length-1))throw TypeError("Unknown encoding: "+a);return this._writableState.defaultEncoding=a,this},Object.defineProperty(q.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),q.prototype._write=function(a,b,c){c(Error("_write() is not implemented"))},q.prototype._writev=null,q.prototype.end=function(a,b,c){var d,e,g,h=this._writableState;"function"==typeof a?(c=a,a=null,b=null):"function"==typeof b&&(c=b,b=null),null!=a&&this.write(a,b),h.corked&&(h.corked=1,this.uncork()),h.ending||(d=this,e=h,g=c,e.ending=!0,w(d,e),g&&(e.finished?f.nextTick(g):d.once("finish",g)),e.ended=!0,d.writable=!1)},Object.defineProperty(q.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(a){this._writableState&&(this._writableState.destroyed=a)}}),q.prototype.destroy=n.destroy,q.prototype._undestroy=n.undestroy,q.prototype._destroy=function(a,b){this.end(),b(a)}},7975:(a,b,c)=>{"use strict";function d(){var a=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];this.options=a}function e(a,b,c){void 0===b&&(b=a.length);var d=a[b-1],e=a[b-2];return d?"ContentStatement"===d.type?(e||!c?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(d.original):void 0:c}function f(a,b,c){void 0===b&&(b=-1);var d=a[b+1],e=a[b+2];return d?"ContentStatement"===d.type?(e||!c?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(d.original):void 0:c}function g(a,b,c){var d=a[null==b?0:b+1];if(d&&"ContentStatement"===d.type&&(c||!d.rightStripped)){var e=d.value;d.value=d.value.replace(c?/^\s+/:/^[ \t]*\r?\n?/,""),d.rightStripped=d.value!==e}}function h(a,b,c){var d=a[null==b?a.length-1:b-1];if(d&&"ContentStatement"===d.type&&(c||!d.leftStripped)){var e=d.value;return d.value=d.value.replace(c?/\s+$/:/[ \t]+$/,""),d.leftStripped=d.value!==e,d.leftStripped}}b.__esModule=!0,d.prototype=new(function(a){return a&&a.__esModule?a:{default:a}}(c(25258))).default,d.prototype.Program=function(a){var b=!this.options.ignoreStandalone,c=!this.isRootSeen;this.isRootSeen=!0;for(var d=a.body,i=0,j=d.length;i{"use strict";a.exports={isNode:"undefined"!=typeof Buffer,newBufferFrom:function(a,b){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(a,b);if("number"==typeof a)throw Error('The "data" argument must not be a number');return new Buffer(a,b)},allocBuffer:function(a){if(Buffer.alloc)return Buffer.alloc(a);var b=new Buffer(a);return b.fill(0),b},isBuffer:function(a){return Buffer.isBuffer(a)},isStream:function(a){return a&&"function"==typeof a.on&&"function"==typeof a.pause&&"function"==typeof a.resume}}},9251:a=>{"use strict";var b=function(){for(var a,b=[],c=0;c<256;c++){a=c;for(var d=0;d<8;d++)a=1&a?0xedb88320^a>>>1:a>>>1;b[c]=a}return b}();a.exports=function(a,c,d,e){var f=e+d;a^=-1;for(var g=e;g>>8^b[(a^c[g])&255];return -1^a}},9926:(a,b,c)=>{"use strict";if(b.base64=!0,b.array=!0,b.string=!0,b.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,b.nodebuffer="undefined"!=typeof Buffer,b.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)b.blob=!1;else{var d=new ArrayBuffer(0);try{b.blob=0===new Blob([d],{type:"application/zip"}).size}catch(a){try{var e=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);e.append(d),b.blob=0===e.getBlob("application/zip").size}catch(a){b.blob=!1}}}try{b.nodestream=!!c(12778).Readable}catch(a){b.nodestream=!1}},9991:(a,b,c)=>{"use strict";function d(a){return a&&a.__esModule?a:{default:a}}b.__esModule=!0,b.parseWithoutProcessing=j,b.parse=function(a,b){var c=j(a,b);return new f.default(b).accept(c)};var e=d(c(67025)),f=d(c(7975)),g=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}(c(33585)),h=c(50281);b.parser=e.default;var i={};function j(a,b){return"Program"===a.type?a:(e.default.yy=i,i.locInfo=function(a){return new i.SourceLocation(b&&b.srcName,a)},e.default.parse(a))}h.extend(i,g)},10350:(a,b,c)=>{"use strict";c.d(b,{Z:()=>e});var d=c(38301);function e(a){let b=d.useRef({value:a,previous:a});return d.useMemo(()=>(b.current.value!==a&&(b.current.previous=b.current.value,b.current.value=a),b.current.previous),[a])}},10498:(a,b,c)=>{"use strict";c.d(b,{jH:()=>f});var d=c(38301);c(21124);var e=d.createContext(void 0);function f(a){let b=d.useContext(e);return a||b||"ltr"}},11082:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]])},11251:(a,b,c)=>{"use strict";var d,e,f=c(43613),g=c(90421),h=c(9251),i=c(36365),j=c(16466);function k(a){return(a>>>24&255)+(a>>>8&65280)+((65280&a)<<8)+((255&a)<<24)}function l(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new f.Buf16(320),this.work=new f.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function m(a){var b;return a&&a.state?(b=a.state,a.total_in=a.total_out=b.total=0,a.msg="",b.wrap&&(a.adler=1&b.wrap),b.mode=1,b.last=0,b.havedict=0,b.dmax=32768,b.head=null,b.hold=0,b.bits=0,b.lencode=b.lendyn=new f.Buf32(852),b.distcode=b.distdyn=new f.Buf32(592),b.sane=1,b.back=-1,0):-2}function n(a){var b;return a&&a.state?((b=a.state).wsize=0,b.whave=0,b.wnext=0,m(a)):-2}function o(a,b){var c,d;return a&&a.state?(d=a.state,b<0?(c=0,b=-b):(c=(b>>4)+1,b<48&&(b&=15)),b&&(b<8||b>15))?-2:(null!==d.window&&d.wbits!==b&&(d.window=null),d.wrap=c,d.wbits=b,n(a)):-2}function p(a,b){var c,d;return a?(a.state=d=new l,d.window=null,0!==(c=o(a,b))&&(a.state=null),c):-2}var q=!0;function r(a,b,c,d){var e,g=a.state;return null===g.window&&(g.wsize=1<=g.wsize?(f.arraySet(g.window,b,c-g.wsize,g.wsize,0),g.wnext=0,g.whave=g.wsize):((e=g.wsize-g.wnext)>d&&(e=d),f.arraySet(g.window,b,c-d,e,g.wnext),(d-=e)?(f.arraySet(g.window,b,c-d,d,0),g.wnext=d,g.whave=g.wsize):(g.wnext+=e,g.wnext===g.wsize&&(g.wnext=0),g.whave>>8&255,c.check=h(c.check,L,2,0),t=0,u=0,c.mode=2;break}if(c.flags=0,c.head&&(c.head.done=!1),!(1&c.wrap)||(((255&t)<<8)+(t>>8))%31){a.msg="incorrect header check",c.mode=30;break}if((15&t)!=8){a.msg="unknown compression method",c.mode=30;break}if(t>>>=4,u-=4,G=(15&t)+8,0===c.wbits)c.wbits=G;else if(G>c.wbits){a.msg="invalid window size",c.mode=30;break}c.dmax=1<>8&1),512&c.flags&&(L[0]=255&t,L[1]=t>>>8&255,c.check=h(c.check,L,2,0)),t=0,u=0,c.mode=3;case 3:for(;u<32;){if(0===p)break a;p--,t+=l[n++]<>>8&255,L[2]=t>>>16&255,L[3]=t>>>24&255,c.check=h(c.check,L,4,0)),t=0,u=0,c.mode=4;case 4:for(;u<16;){if(0===p)break a;p--,t+=l[n++]<>8),512&c.flags&&(L[0]=255&t,L[1]=t>>>8&255,c.check=h(c.check,L,2,0)),t=0,u=0,c.mode=5;case 5:if(1024&c.flags){for(;u<16;){if(0===p)break a;p--,t+=l[n++]<>>8&255,c.check=h(c.check,L,2,0)),t=0,u=0}else c.head&&(c.head.extra=null);c.mode=6;case 6:if(1024&c.flags&&((x=c.length)>p&&(x=p),x&&(c.head&&(G=c.head.extra_len-c.length,c.head.extra||(c.head.extra=Array(c.head.extra_len)),f.arraySet(c.head.extra,l,n,x,G)),512&c.flags&&(c.check=h(c.check,l,x,n)),p-=x,n+=x,c.length-=x),c.length))break a;c.length=0,c.mode=7;case 7:if(2048&c.flags){if(0===p)break a;x=0;do G=l[n+x++],c.head&&G&&c.length<65536&&(c.head.name+=String.fromCharCode(G));while(G&&x>9&1,c.head.done=!0),a.adler=c.check=0,c.mode=12;break;case 10:for(;u<32;){if(0===p)break a;p--,t+=l[n++]<>>=7&u,u-=7&u,c.mode=27;break}for(;u<3;){if(0===p)break a;p--,t+=l[n++]<>>=1)){case 0:c.mode=14;break;case 1:if(!function(a){if(q){var b;for(d=new f.Buf32(512),e=new f.Buf32(32),b=0;b<144;)a.lens[b++]=8;for(;b<256;)a.lens[b++]=9;for(;b<280;)a.lens[b++]=7;for(;b<288;)a.lens[b++]=8;for(j(1,a.lens,0,288,d,0,a.work,{bits:9}),b=0;b<32;)a.lens[b++]=5;j(2,a.lens,0,32,e,0,a.work,{bits:5}),q=!1}a.lencode=d,a.lenbits=9,a.distcode=e,a.distbits=5}(c),c.mode=20,6===b){t>>>=2,u-=2;break a}break;case 2:c.mode=17;break;case 3:a.msg="invalid block type",c.mode=30}t>>>=2,u-=2;break;case 14:for(t>>>=7&u,u-=7&u;u<32;){if(0===p)break a;p--,t+=l[n++]<>>16^65535)){a.msg="invalid stored block lengths",c.mode=30;break}if(c.length=65535&t,t=0,u=0,c.mode=15,6===b)break a;case 15:c.mode=16;case 16:if(x=c.length){if(x>p&&(x=p),x>s&&(x=s),0===x)break a;f.arraySet(m,l,n,x,o),p-=x,n+=x,s-=x,o+=x,c.length-=x;break}c.mode=12;break;case 17:for(;u<14;){if(0===p)break a;p--,t+=l[n++]<>>=5))+1,u-=5,c.ncode=(15&(t>>>=5))+4,t>>>=4,u-=4,c.nlen>286||c.ndist>30){a.msg="too many length or distance symbols",c.mode=30;break}c.have=0,c.mode=18;case 18:for(;c.have>>=3,u-=3}for(;c.have<19;)c.lens[M[c.have++]]=0;if(c.lencode=c.lendyn,c.lenbits=7,I={bits:c.lenbits},H=j(0,c.lens,0,19,c.lencode,0,c.work,I),c.lenbits=I.bits,H){a.msg="invalid code lengths set",c.mode=30;break}c.have=0,c.mode=19;case 19:for(;c.have>>24,B=K>>>16&255,C=65535&K,!(A<=u);){if(0===p)break a;p--,t+=l[n++]<>>=A,u-=A,c.lens[c.have++]=C;else{if(16===C){for(J=A+2;u>>=A,u-=A,0===c.have){a.msg="invalid bit length repeat",c.mode=30;break}G=c.lens[c.have-1],x=3+(3&t),t>>>=2,u-=2}else if(17===C){for(J=A+3;u>>=A,u-=A,G=0,x=3+(7&t),t>>>=3,u-=3}else{for(J=A+7;u>>=A,u-=A,G=0,x=11+(127&t),t>>>=7,u-=7}if(c.have+x>c.nlen+c.ndist){a.msg="invalid bit length repeat",c.mode=30;break}for(;x--;)c.lens[c.have++]=G}}if(30===c.mode)break;if(0===c.lens[256]){a.msg="invalid code -- missing end-of-block",c.mode=30;break}if(c.lenbits=9,I={bits:c.lenbits},H=j(1,c.lens,0,c.nlen,c.lencode,0,c.work,I),c.lenbits=I.bits,H){a.msg="invalid literal/lengths set",c.mode=30;break}if(c.distbits=6,c.distcode=c.distdyn,I={bits:c.distbits},H=j(2,c.lens,c.nlen,c.ndist,c.distcode,0,c.work,I),c.distbits=I.bits,H){a.msg="invalid distances set",c.mode=30;break}if(c.mode=20,6===b)break a;case 20:c.mode=21;case 21:if(p>=6&&s>=258){a.next_out=o,a.avail_out=s,a.next_in=n,a.avail_in=p,c.hold=t,c.bits=u,i(a,w),o=a.next_out,m=a.output,s=a.avail_out,n=a.next_in,l=a.input,p=a.avail_in,t=c.hold,u=c.bits,12===c.mode&&(c.back=-1);break}for(c.back=0;A=(K=c.lencode[t&(1<>>24,B=K>>>16&255,C=65535&K,!(A<=u);){if(0===p)break a;p--,t+=l[n++]<>D)])>>>24,B=K>>>16&255,C=65535&K,!(D+A<=u);){if(0===p)break a;p--,t+=l[n++]<>>=D,u-=D,c.back+=D}if(t>>>=A,u-=A,c.back+=A,c.length=C,0===B){c.mode=26;break}if(32&B){c.back=-1,c.mode=12;break}if(64&B){a.msg="invalid literal/length code",c.mode=30;break}c.extra=15&B,c.mode=22;case 22:if(c.extra){for(J=c.extra;u>>=c.extra,u-=c.extra,c.back+=c.extra}c.was=c.length,c.mode=23;case 23:for(;A=(K=c.distcode[t&(1<>>24,B=K>>>16&255,C=65535&K,!(A<=u);){if(0===p)break a;p--,t+=l[n++]<>D)])>>>24,B=K>>>16&255,C=65535&K,!(D+A<=u);){if(0===p)break a;p--,t+=l[n++]<>>=D,u-=D,c.back+=D}if(t>>>=A,u-=A,c.back+=A,64&B){a.msg="invalid distance code",c.mode=30;break}c.offset=C,c.extra=15&B,c.mode=24;case 24:if(c.extra){for(J=c.extra;u>>=c.extra,u-=c.extra,c.back+=c.extra}if(c.offset>c.dmax){a.msg="invalid distance too far back",c.mode=30;break}c.mode=25;case 25:if(0===s)break a;if(x=w-s,c.offset>x){if((x=c.offset-x)>c.whave&&c.sane){a.msg="invalid distance too far back",c.mode=30;break}x>c.wnext?(x-=c.wnext,y=c.wsize-x):y=c.wnext-x,x>c.length&&(x=c.length),z=c.window}else z=m,y=o-c.offset,x=c.length;x>s&&(x=s),s-=x,c.length-=x;do m[o++]=z[y++];while(--x);0===c.length&&(c.mode=21);break;case 26:if(0===s)break a;m[o++]=c.length,s--,c.mode=21;break;case 27:if(c.wrap){for(;u<32;){if(0===p)break a;p--,t|=l[n++]<{"use strict";c.d(b,{i:()=>h});var d,e=c(38301),f=c(68829),g=(d||(d=c.t(e,2)))[" useInsertionEffect ".trim().toString()]||f.N;function h({prop:a,defaultProp:b,onChange:c=()=>{},caller:d}){let[f,h,i]=function({defaultProp:a,onChange:b}){let[c,d]=e.useState(a),f=e.useRef(c),h=e.useRef(b);return g(()=>{h.current=b},[b]),e.useEffect(()=>{f.current!==c&&(h.current?.(c),f.current=c)},[c,f]),[c,d,h]}({defaultProp:b,onChange:c}),j=void 0!==a,k=j?a:f;{let b=e.useRef(void 0!==a);e.useEffect(()=>{let a=b.current;if(a!==j){let b=j?"controlled":"uncontrolled";console.warn(`${d} is changing from ${a?"controlled":"uncontrolled"} to ${b}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}b.current=j},[j,d])}return[k,e.useCallback(b=>{if(j){let c="function"==typeof b?b(a):b;c!==a&&i.current?.(c)}else h(b)},[j,a,h,i])]}Symbol("RADIX:SYNC_STATE")},12778:(a,b,c)=>{var d=c(27910);"disable"===process.env.READABLE_STREAM&&d?(a.exports=d,(b=a.exports=d.Readable).Readable=d.Readable,b.Writable=d.Writable,b.Duplex=d.Duplex,b.Transform=d.Transform,b.PassThrough=d.PassThrough,b.Stream=d):((b=a.exports=c(45948)).Stream=d||b,b.Readable=b,b.Writable=c(7932),b.Duplex=c(47482),b.Transform=c(99438),b.PassThrough=c(93872))},12803:(a,b,c)=>{"use strict";function d(a){return a&&a.__esModule?a:{default:a}}b.__esModule=!0;var e=c(25139),f=d(c(1793)),g=c(50281),h=d(c(89872));function i(a){this.value=a}function j(){}j.prototype={nameLookup:function(a,b){return this.internalNameLookup(a,b)},depthedLookup:function(a){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(a),")"]},compilerInfo:function(){var a=e.COMPILER_REVISION,b=e.REVISION_CHANGES[a];return[a,b]},appendToBuffer:function(a,b,c){return(g.isArray(a)||(a=[a]),a=this.source.wrap(a,b),this.environment.isSimple)?["return ",a,";"]:c?["buffer += ",a,";"]:(a.appendToBuffer=!0,a)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(a,b){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",a,",",JSON.stringify(b),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(a,b,c,d){this.environment=a,this.options=b,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!d,this.name=this.environment.name,this.isChild=!!c,this.context=c||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(a,b),this.useDepths=this.useDepths||a.useDepths||a.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||a.useBlockParams;var e=a.opcodes,g=void 0,h=void 0,i=void 0,j=void 0;for(i=0,j=e.length;i0&&(c+=", "+d.join(", "));var e=0;Object.keys(this.aliases).forEach(function(a){var d=b.aliases[a];d.children&&d.referenceCount>1&&(c+=", alias"+ ++e+"="+a,d.children[0]="alias"+e)}),this.lookupPropertyFunctionIsUsed&&(c+=", "+this.lookupPropertyFunctionVarDeclaration());var f=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&f.push("blockParams"),this.useDepths&&f.push("depths");var g=this.mergeSource(c);return a?(f.push(g),Function.apply(this,f)):this.source.wrap(["function(",f.join(","),") {\n ",g,"}"])},mergeSource:function(a){var b=this.environment.isSimple,c=!this.forceBuffer,d=void 0,e=void 0,f=void 0,g=void 0;return this.source.each(function(a){a.appendToBuffer?(f?a.prepend(" + "):f=a,g=a):(f&&(e?f.prepend("buffer += "):d=!0,g.add(";"),f=g=void 0),e=!0,b||(c=!1))}),c?f?(f.prepend("return "),g.add(";")):e||this.source.push('return "";'):(a+=", buffer = "+(d?"":this.initializeBuffer()),f?(f.prepend("return buffer + "),g.add(";")):this.source.push("return buffer;")),a&&this.source.prepend("var "+a.substring(2)+(d?"":";\n")),this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return"\n lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n }\n ".trim()},blockValue:function(a){var b=this.aliasable("container.hooks.blockHelperMissing"),c=[this.contextName(0)];this.setupHelperArgs(a,0,c);var d=this.popStack();c.splice(1,0,d),this.push(this.source.functionCall(b,"call",c))},ambiguousBlockValue:function(){var a=this.aliasable("container.hooks.blockHelperMissing"),b=[this.contextName(0)];this.setupHelperArgs("",0,b,!0),this.flushInline();var c=this.topStack();b.splice(1,0,c),this.pushSource(["if (!",this.lastHelper,") { ",c," = ",this.source.functionCall(a,"call",b),"}"])},appendContent:function(a){this.pendingContent?a=this.pendingContent+a:this.pendingLocation=this.source.currentLocation,this.pendingContent=a},append:function(){if(this.isInline())this.replaceStack(function(a){return[" != null ? ",a,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var a=this.popStack();this.pushSource(["if (",a," != null) { ",this.appendToBuffer(a,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(a){this.lastContext=a},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(a,b,c,d){var e=0;d||!this.options.compat||this.lastContext?this.pushContext():this.push(this.depthedLookup(a[e++])),this.resolvePath("context",a,e,b,c)},lookupBlockParam:function(a,b){this.useBlockParams=!0,this.push(["blockParams[",a[0],"][",a[1],"]"]),this.resolvePath("context",b,1)},lookupData:function(a,b,c){a?this.pushStackLiteral("container.data(data, "+a+")"):this.pushStackLiteral("data"),this.resolvePath("data",b,0,!0,c)},resolvePath:function(a,b,c,d,e){var f=this;if(this.options.strict||this.options.assumeObjects)return void this.push(function(a,b,c,d,e){var f=b.popStack(),g=c.length;for(a&&g--;dthis.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var a=this.inlineStack;this.inlineStack=[];for(var b=0,c=a.length;b{"use strict";function d(){this.padding=0}b.__esModule=!0,b.print=function(a){return new d().accept(a)},b.PrintVisitor=d,d.prototype=new(function(a){return a&&a.__esModule?a:{default:a}}(c(25258))).default,d.prototype.pad=function(a){for(var b="",c=0,d=this.padding;c "+b+" }}")},d.prototype.PartialBlockStatement=function(a){var b="PARTIAL BLOCK:"+a.name.original;return a.params[0]&&(b+=" "+this.accept(a.params[0])),a.hash&&(b+=" "+this.accept(a.hash)),b+=" "+this.pad("PROGRAM:"),this.padding++,b+=this.accept(a.program),this.padding--,this.pad("{{> "+b+" }}")},d.prototype.ContentStatement=function(a){return this.pad("CONTENT[ '"+a.value+"' ]")},d.prototype.CommentStatement=function(a){return this.pad("{{! '"+a.value+"' }}")},d.prototype.SubExpression=function(a){for(var b=a.params,c=[],d=void 0,e=0,f=b.length;ed});let d=(0,c(23339).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},15016:(a,b,c)=>{"use strict";var d=c(39265);function e(a,b){a.emit("error",b)}a.exports={destroy:function(a,b){var c=this,f=this._readableState&&this._readableState.destroyed,g=this._writableState&&this._writableState.destroyed;return f||g?b?b(a):a&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,d.nextTick(e,this,a)):d.nextTick(e,this,a)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(a){!b&&a?c._writableState?c._writableState.errorEmitted||(c._writableState.errorEmitted=!0,d.nextTick(e,c,a)):d.nextTick(e,c,a):b&&b(a)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},15303:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]])},16466:(a,b,c)=>{"use strict";var d=c(43613),e=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],f=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],g=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],h=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];a.exports=function(a,b,c,i,j,k,l,m){var n,o,p,q,r,s,t,u,v,w=m.bits,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=null,I=0,J=new d.Buf16(16),K=new d.Buf16(16),L=null,M=0;for(x=0;x<=15;x++)J[x]=0;for(y=0;y=1&&0===J[A];A--);if(B>A&&(B=A),0===A)return j[k++]=0x1400000,j[k++]=0x1400000,m.bits=1,0;for(z=1;z0&&(0===a||1!==A))return -1;for(x=1,K[1]=0;x<15;x++)K[x+1]=K[x]+J[x];for(y=0;y852||2===a&&F>592)return 1;for(;;){t=x-D,l[y]s?(u=L[M+l[y]],v=H[I+l[y]]):(u=96,v=0),n=1<>D)+(o-=n)]=t<<24|u<<16|v;while(0!==o);for(n=1<>=1;if(0!==n?(G&=n-1,G+=n):G=0,y++,0==--J[x]){if(x===A)break;x=b[c+l[y]]}if(x>B&&(G&q)!==p){for(0===D&&(D=B),r+=z,E=1<<(C=x-D);C+D852||2===a&&F>592)return 1;j[p=G&q]=B<<24|C<<16|r-k}}return 0!==G&&(j[r+G]=x-D<<24|4194304),m.bits=B,0}},16945:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},18310:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},18659:(a,b,c)=>{"use strict";function d(a){return a&&a.__esModule?a:{default:a}}b.__esModule=!0,b.Compiler=i,b.precompile=function(a,b,c){if(null==a||"string"!=typeof a&&"Program"!==a.type)throw new e.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+a);"data"in(b=b||{})||(b.data=!0),b.compat&&(b.useDepths=!0);var d=c.parse(a,b),f=new c.Compiler().compile(d,b);return new c.JavaScriptCompiler().compile(f,b)},b.compile=function(a,b,c){if(void 0===b&&(b={}),null==a||"string"!=typeof a&&"Program"!==a.type)throw new e.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+a);"data"in(b=f.extend({},b))||(b.data=!0),b.compat&&(b.useDepths=!0);var d=void 0;function g(){var d=c.parse(a,b),e=new c.Compiler().compile(d,b),f=new c.JavaScriptCompiler().compile(e,b,void 0,!0);return c.template(f)}function h(a,b){return d||(d=g()),d.call(this,a,b)}return h._setup=function(a){return d||(d=g()),d._setup(a)},h._child=function(a,b,c,e){return d||(d=g()),d._child(a,b,c,e)},h};var e=d(c(1793)),f=c(50281),g=d(c(87732)),h=[].slice;function i(){}function j(a){if(!a.path.parts){var b=a.path;a.path={type:"PathExpression",data:!1,depth:0,parts:[b.original+""],original:b.original+"",loc:b.loc}}}i.prototype={compiler:i,equals:function(a){var b=this.opcodes.length;if(a.opcodes.length!==b)return!1;for(var c=0;c1)throw new e.default("Unsupported number of partial arguments: "+c.length,a);c.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):c.push({type:"PathExpression",parts:[],depth:0}));var d=a.name.original,f="SubExpression"===a.name.type;f&&this.accept(a.name),this.setupFullMustacheParams(a,b,void 0,!0);var g=a.indent||"";this.options.preventIndent&&g&&(this.opcode("appendContent",g),g=""),this.opcode("invokePartial",f,d,g),this.opcode("append")},PartialBlockStatement:function(a){this.PartialStatement(a)},MustacheStatement:function(a){this.SubExpression(a),a.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(a){this.DecoratorBlock(a)},ContentStatement:function(a){a.value&&this.opcode("appendContent",a.value)},CommentStatement:function(){},SubExpression:function(a){j(a);var b=this.classifySexpr(a);"simple"===b?this.simpleSexpr(a):"helper"===b?this.helperSexpr(a):this.ambiguousSexpr(a)},ambiguousSexpr:function(a,b,c){var d=a.path,e=d.parts[0];this.opcode("getContext",d.depth),this.opcode("pushProgram",b),this.opcode("pushProgram",c),d.strict=!0,this.accept(d),this.opcode("invokeAmbiguous",e,null!=b||null!=c)},simpleSexpr:function(a){var b=a.path;b.strict=!0,this.accept(b),this.opcode("resolvePossibleLambda")},helperSexpr:function(a,b,c){var d=this.setupFullMustacheParams(a,b,c),f=a.path,h=f.parts[0];if(this.options.knownHelpers[h])this.opcode("invokeKnownHelper",d.length,h);else if(this.options.knownHelpersOnly)throw new e.default("You specified knownHelpersOnly, but used the unknown helper "+h,a);else f.strict=!0,f.falsy=!0,this.accept(f),this.opcode("invokeHelper",d.length,f.original,g.default.helpers.simpleId(f))},PathExpression:function(a){this.addDepth(a.depth),this.opcode("getContext",a.depth);var b=a.parts[0],c=g.default.helpers.scopedId(a),d=!a.depth&&!c&&this.blockParamIndex(b);d?this.opcode("lookupBlockParam",d,a.parts):b?a.data?(this.options.data=!0,this.opcode("lookupData",a.depth,a.parts,a.strict)):this.opcode("lookupOnContext",a.parts,a.falsy,a.strict,c):this.opcode("pushContext")},StringLiteral:function(a){this.opcode("pushString",a.value)},NumberLiteral:function(a){this.opcode("pushLiteral",a.value)},BooleanLiteral:function(a){this.opcode("pushLiteral",a.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(a){var b=a.pairs,c=0,d=b.length;for(this.opcode("pushHash");c=0)return[b,e]}}}},19710:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]])},19802:a=>{"undefined"!=typeof __nccwpck_require__&&(__nccwpck_require__.ab=__dirname+"/"),({189:function(){!function(a,b){"use strict";if(!a.setImmediate){var c,d,e,f,g,h=1,i={},j=!1,k=a.document,l=Object.getPrototypeOf&&Object.getPrototypeOf(a);l=l&&l.setTimeout?l:a,"[object process]"===({}).toString.call(a.process)?g=function(a){process.nextTick(function(){n(a)})}:function(){if(a.postMessage&&!a.importScripts){var b=!0,c=a.onmessage;return a.onmessage=function(){b=!1},a.postMessage("","*"),a.onmessage=c,b}}()?(c="setImmediate$"+Math.random()+"$",d=function(b){b.source===a&&"string"==typeof b.data&&0===b.data.indexOf(c)&&n(+b.data.slice(c.length))},a.addEventListener?a.addEventListener("message",d,!1):a.attachEvent("onmessage",d),g=function(b){a.postMessage(c+b,"*")}):a.MessageChannel?((e=new MessageChannel).port1.onmessage=function(a){n(a.data)},g=function(a){e.port2.postMessage(a)}):k&&"onreadystatechange"in k.createElement("script")?(f=k.documentElement,g=function(a){var b=k.createElement("script");b.onreadystatechange=function(){n(a),b.onreadystatechange=null,f.removeChild(b),b=null},f.appendChild(b)}):g=function(a){setTimeout(n,0,a)},l.setImmediate=function(a){"function"!=typeof a&&(a=Function(""+a));for(var b=Array(arguments.length-1),c=0;c{"use strict";var d=c(9926),e=c(50266),f=c(8153),g=c(51238);function h(a){return a}function i(a,b){for(var c=0;c1;)try{return j.stringifyByChunk(a,d,c)}catch(a){c=Math.floor(c/2)}return j.stringifyByChar(a)}function l(a,b){for(var c=0;c{"use strict";var d="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,e=c(56780),f=c(20452),g=c(65353),h=d?"uint8array":"array";function i(a,b){g.call(this,"FlateWorker/"+a),this._pako=null,this._pakoAction=a,this._pakoOptions=b,this.meta={}}b.magic="\b\0",f.inherits(i,g),i.prototype.processChunk=function(a){this.meta=a.meta,null===this._pako&&this._createPako(),this._pako.push(f.transformTo(h,a.data),!1)},i.prototype.flush=function(){g.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},i.prototype.cleanUp=function(){g.prototype.cleanUp.call(this),this._pako=null},i.prototype._createPako=function(){this._pako=new e[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var a=this;this._pako.onData=function(b){a.push({data:b,meta:a.meta})}},b.compressWorker=function(a){return new i("Deflate",a)},b.uncompressWorker=function(){return new i("Inflate",{})}},21843:(a,b,c)=>{"use strict";var d=c(51238),e=c(32970),f=c(4699),g=c(70211);function h(a,b,c,d,e){this.compressedSize=a,this.uncompressedSize=b,this.crc32=c,this.compression=d,this.compressedContent=e}h.prototype={getContentWorker:function(){var a=new e(d.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new g("data_length")),b=this;return a.on("end",function(){if(this.streamInfo.data_length!==b.uncompressedSize)throw Error("Bug : uncompressed data size mismatch")}),a},getCompressedWorker:function(){return new e(d.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},h.createWorkerFrom=function(a,b,c){return a.pipe(new f).pipe(new g("uncompressedSize")).pipe(b.compressWorker(c)).pipe(new g("compressedSize")).withStreamInfo("compression",b)},a.exports=h},23339:(a,b,c)=>{"use strict";c.d(b,{A:()=>i});var d=c(38301);let e=a=>{let b=a.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,b,c)=>c?c.toUpperCase():b.toLowerCase());return b.charAt(0).toUpperCase()+b.slice(1)},f=(...a)=>a.filter((a,b,c)=>!!a&&""!==a.trim()&&c.indexOf(a)===b).join(" ").trim();var g={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 h=(0,d.forwardRef)(({color:a="currentColor",size:b=24,strokeWidth:c=2,absoluteStrokeWidth:e,className:h="",children:i,iconNode:j,...k},l)=>(0,d.createElement)("svg",{ref:l,...g,width:b,height:b,stroke:a,strokeWidth:e?24*Number(c)/Number(b):c,className:f("lucide",h),...!i&&!(a=>{for(let b in a)if(b.startsWith("aria-")||"role"===b||"title"===b)return!0})(k)&&{"aria-hidden":"true"},...k},[...j.map(([a,b])=>(0,d.createElement)(a,b)),...Array.isArray(i)?i:[i]])),i=(a,b)=>{let c=(0,d.forwardRef)(({className:c,...g},i)=>(0,d.createElement)(h,{ref:i,iconNode:b,className:f(`lucide-${e(a).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${a}`,c),...g}));return c.displayName=e(a),c}},25122:(a,b,c)=>{"use strict";c.d(b,{Mz:()=>a1,i3:()=>a3,UC:()=>a2,bL:()=>a0,Bk:()=>aM});var d=c(38301);let e=["top","right","bottom","left"],f=Math.min,g=Math.max,h=Math.round,i=Math.floor,j=a=>({x:a,y:a}),k={left:"right",right:"left",bottom:"top",top:"bottom"},l={start:"end",end:"start"};function m(a,b){return"function"==typeof a?a(b):a}function n(a){return a.split("-")[0]}function o(a){return a.split("-")[1]}function p(a){return"x"===a?"y":"x"}function q(a){return"y"===a?"height":"width"}let r=new Set(["top","bottom"]);function s(a){return r.has(n(a))?"y":"x"}function t(a){return a.replace(/start|end/g,a=>l[a])}let u=["left","right"],v=["right","left"],w=["top","bottom"],x=["bottom","top"];function y(a){return a.replace(/left|right|bottom|top/g,a=>k[a])}function z(a){return"number"!=typeof a?{top:0,right:0,bottom:0,left:0,...a}:{top:a,right:a,bottom:a,left:a}}function A(a){let{x:b,y:c,width:d,height:e}=a;return{width:d,height:e,top:c,left:b,right:b+d,bottom:c+e,x:b,y:c}}function B(a,b,c){let d,{reference:e,floating:f}=a,g=s(b),h=p(s(b)),i=q(h),j=n(b),k="y"===g,l=e.x+e.width/2-f.width/2,m=e.y+e.height/2-f.height/2,r=e[i]/2-f[i]/2;switch(j){case"top":d={x:l,y:e.y-f.height};break;case"bottom":d={x:l,y:e.y+e.height};break;case"right":d={x:e.x+e.width,y:m};break;case"left":d={x:e.x-f.width,y:m};break;default:d={x:e.x,y:e.y}}switch(o(b)){case"start":d[h]-=r*(c&&k?-1:1);break;case"end":d[h]+=r*(c&&k?-1:1)}return d}let C=async(a,b,c)=>{let{placement:d="bottom",strategy:e="absolute",middleware:f=[],platform:g}=c,h=f.filter(Boolean),i=await (null==g.isRTL?void 0:g.isRTL(b)),j=await g.getElementRects({reference:a,floating:b,strategy:e}),{x:k,y:l}=B(j,d,i),m=d,n={},o=0;for(let c=0;ca[b]>=0)}let G=new Set(["left","top"]);async function H(a,b){let{placement:c,platform:d,elements:e}=a,f=await (null==d.isRTL?void 0:d.isRTL(e.floating)),g=n(c),h=o(c),i="y"===s(c),j=G.has(g)?-1:1,k=f&&i?-1:1,l=m(b,a),{mainAxis:p,crossAxis:q,alignmentAxis:r}="number"==typeof l?{mainAxis:l,crossAxis:0,alignmentAxis:null}:{mainAxis:l.mainAxis||0,crossAxis:l.crossAxis||0,alignmentAxis:l.alignmentAxis};return h&&"number"==typeof r&&(q="end"===h?-1*r:r),i?{x:q*k,y:p*j}:{x:p*j,y:q*k}}function I(){return"undefined"!=typeof window}function J(a){return M(a)?(a.nodeName||"").toLowerCase():"#document"}function K(a){var b;return(null==a||null==(b=a.ownerDocument)?void 0:b.defaultView)||window}function L(a){var b;return null==(b=(M(a)?a.ownerDocument:a.document)||window.document)?void 0:b.documentElement}function M(a){return!!I()&&(a instanceof Node||a instanceof K(a).Node)}function N(a){return!!I()&&(a instanceof Element||a instanceof K(a).Element)}function O(a){return!!I()&&(a instanceof HTMLElement||a instanceof K(a).HTMLElement)}function P(a){return!!I()&&"undefined"!=typeof ShadowRoot&&(a instanceof ShadowRoot||a instanceof K(a).ShadowRoot)}let Q=new Set(["inline","contents"]);function R(a){let{overflow:b,overflowX:c,overflowY:d,display:e}=aa(a);return/auto|scroll|overlay|hidden|clip/.test(b+d+c)&&!Q.has(e)}let S=new Set(["table","td","th"]),T=[":popover-open",":modal"];function U(a){return T.some(b=>{try{return a.matches(b)}catch(a){return!1}})}let V=["transform","translate","scale","rotate","perspective"],W=["transform","translate","scale","rotate","perspective","filter"],X=["paint","layout","strict","content"];function Y(a){let b=Z(),c=N(a)?aa(a):a;return V.some(a=>!!c[a]&&"none"!==c[a])||!!c.containerType&&"normal"!==c.containerType||!b&&!!c.backdropFilter&&"none"!==c.backdropFilter||!b&&!!c.filter&&"none"!==c.filter||W.some(a=>(c.willChange||"").includes(a))||X.some(a=>(c.contain||"").includes(a))}function Z(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let $=new Set(["html","body","#document"]);function _(a){return $.has(J(a))}function aa(a){return K(a).getComputedStyle(a)}function ab(a){return N(a)?{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}:{scrollLeft:a.scrollX,scrollTop:a.scrollY}}function ac(a){if("html"===J(a))return a;let b=a.assignedSlot||a.parentNode||P(a)&&a.host||L(a);return P(b)?b.host:b}function ad(a,b,c){var d;void 0===b&&(b=[]),void 0===c&&(c=!0);let e=function a(b){let c=ac(b);return _(c)?b.ownerDocument?b.ownerDocument.body:b.body:O(c)&&R(c)?c:a(c)}(a),f=e===(null==(d=a.ownerDocument)?void 0:d.body),g=K(e);if(f){let a=ae(g);return b.concat(g,g.visualViewport||[],R(e)?e:[],a&&c?ad(a):[])}return b.concat(e,ad(e,[],c))}function ae(a){return a.parent&&Object.getPrototypeOf(a.parent)?a.frameElement:null}function af(a){let b=aa(a),c=parseFloat(b.width)||0,d=parseFloat(b.height)||0,e=O(a),f=e?a.offsetWidth:c,g=e?a.offsetHeight:d,i=h(c)!==f||h(d)!==g;return i&&(c=f,d=g),{width:c,height:d,$:i}}function ag(a){return N(a)?a:a.contextElement}function ah(a){let b=ag(a);if(!O(b))return j(1);let c=b.getBoundingClientRect(),{width:d,height:e,$:f}=af(b),g=(f?h(c.width):c.width)/d,i=(f?h(c.height):c.height)/e;return g&&Number.isFinite(g)||(g=1),i&&Number.isFinite(i)||(i=1),{x:g,y:i}}let ai=j(0);function aj(a){let b=K(a);return Z()&&b.visualViewport?{x:b.visualViewport.offsetLeft,y:b.visualViewport.offsetTop}:ai}function ak(a,b,c,d){var e;void 0===b&&(b=!1),void 0===c&&(c=!1);let f=a.getBoundingClientRect(),g=ag(a),h=j(1);b&&(d?N(d)&&(h=ah(d)):h=ah(a));let i=(void 0===(e=c)&&(e=!1),d&&(!e||d===K(g))&&e)?aj(g):j(0),k=(f.left+i.x)/h.x,l=(f.top+i.y)/h.y,m=f.width/h.x,n=f.height/h.y;if(g){let a=K(g),b=d&&N(d)?K(d):d,c=a,e=ae(c);for(;e&&d&&b!==c;){let a=ah(e),b=e.getBoundingClientRect(),d=aa(e),f=b.left+(e.clientLeft+parseFloat(d.paddingLeft))*a.x,g=b.top+(e.clientTop+parseFloat(d.paddingTop))*a.y;k*=a.x,l*=a.y,m*=a.x,n*=a.y,k+=f,l+=g,e=ae(c=K(e))}}return A({width:m,height:n,x:k,y:l})}function al(a,b){let c=ab(a).scrollLeft;return b?b.left+c:ak(L(a)).left+c}function am(a,b){let c=a.getBoundingClientRect();return{x:c.left+b.scrollLeft-al(a,c),y:c.top+b.scrollTop}}let an=new Set(["absolute","fixed"]);function ao(a,b,c){let d;if("viewport"===b)d=function(a,b){let c=K(a),d=L(a),e=c.visualViewport,f=d.clientWidth,g=d.clientHeight,h=0,i=0;if(e){f=e.width,g=e.height;let a=Z();(!a||a&&"fixed"===b)&&(h=e.offsetLeft,i=e.offsetTop)}let j=al(d);if(j<=0){let a=d.ownerDocument,b=a.body,c=getComputedStyle(b),e="CSS1Compat"===a.compatMode&&parseFloat(c.marginLeft)+parseFloat(c.marginRight)||0,g=Math.abs(d.clientWidth-b.clientWidth-e);g<=25&&(f-=g)}else j<=25&&(f+=j);return{width:f,height:g,x:h,y:i}}(a,c);else if("document"===b)d=function(a){let b=L(a),c=ab(a),d=a.ownerDocument.body,e=g(b.scrollWidth,b.clientWidth,d.scrollWidth,d.clientWidth),f=g(b.scrollHeight,b.clientHeight,d.scrollHeight,d.clientHeight),h=-c.scrollLeft+al(a),i=-c.scrollTop;return"rtl"===aa(d).direction&&(h+=g(b.clientWidth,d.clientWidth)-e),{width:e,height:f,x:h,y:i}}(L(a));else if(N(b))d=function(a,b){let c=ak(a,!0,"fixed"===b),d=c.top+a.clientTop,e=c.left+a.clientLeft,f=O(a)?ah(a):j(1),g=a.clientWidth*f.x,h=a.clientHeight*f.y;return{width:g,height:h,x:e*f.x,y:d*f.y}}(b,c);else{let c=aj(a);d={x:b.x-c.x,y:b.y-c.y,width:b.width,height:b.height}}return A(d)}function ap(a){return"static"===aa(a).position}function aq(a,b){if(!O(a)||"fixed"===aa(a).position)return null;if(b)return b(a);let c=a.offsetParent;return L(a)===c&&(c=c.ownerDocument.body),c}function ar(a,b){var c;let d=K(a);if(U(a))return d;if(!O(a)){let b=ac(a);for(;b&&!_(b);){if(N(b)&&!ap(b))return b;b=ac(b)}return d}let e=aq(a,b);for(;e&&(c=e,S.has(J(c)))&&ap(e);)e=aq(e,b);return e&&_(e)&&ap(e)&&!Y(e)?d:e||function(a){let b=ac(a);for(;O(b)&&!_(b);){if(Y(b))return b;if(U(b))break;b=ac(b)}return null}(a)||d}let as=async function(a){let b=this.getOffsetParent||ar,c=this.getDimensions,d=await c(a.floating);return{reference:function(a,b,c){let d=O(b),e=L(b),f="fixed"===c,g=ak(a,!0,f,b),h={scrollLeft:0,scrollTop:0},i=j(0);if(d||!d&&!f)if(("body"!==J(b)||R(e))&&(h=ab(b)),d){let a=ak(b,!0,f,b);i.x=a.x+b.clientLeft,i.y=a.y+b.clientTop}else e&&(i.x=al(e));f&&!d&&e&&(i.x=al(e));let k=!e||d||f?j(0):am(e,h);return{x:g.left+h.scrollLeft-i.x-k.x,y:g.top+h.scrollTop-i.y-k.y,width:g.width,height:g.height}}(a.reference,await b(a.floating),a.strategy),floating:{x:0,y:0,width:d.width,height:d.height}}},at={convertOffsetParentRelativeRectToViewportRelativeRect:function(a){let{elements:b,rect:c,offsetParent:d,strategy:e}=a,f="fixed"===e,g=L(d),h=!!b&&U(b.floating);if(d===g||h&&f)return c;let i={scrollLeft:0,scrollTop:0},k=j(1),l=j(0),m=O(d);if((m||!m&&!f)&&(("body"!==J(d)||R(g))&&(i=ab(d)),O(d))){let a=ak(d);k=ah(d),l.x=a.x+d.clientLeft,l.y=a.y+d.clientTop}let n=!g||m||f?j(0):am(g,i);return{width:c.width*k.x,height:c.height*k.y,x:c.x*k.x-i.scrollLeft*k.x+l.x+n.x,y:c.y*k.y-i.scrollTop*k.y+l.y+n.y}},getDocumentElement:L,getClippingRect:function(a){let{element:b,boundary:c,rootBoundary:d,strategy:e}=a,h=[..."clippingAncestors"===c?U(b)?[]:function(a,b){let c=b.get(a);if(c)return c;let d=ad(a,[],!1).filter(a=>N(a)&&"body"!==J(a)),e=null,f="fixed"===aa(a).position,g=f?ac(a):a;for(;N(g)&&!_(g);){let b=aa(g),c=Y(g);c||"fixed"!==b.position||(e=null),(f?!c&&!e:!c&&"static"===b.position&&!!e&&an.has(e.position)||R(g)&&!c&&function a(b,c){let d=ac(b);return!(d===c||!N(d)||_(d))&&("fixed"===aa(d).position||a(d,c))}(a,g))?d=d.filter(a=>a!==g):e=b,g=ac(g)}return b.set(a,d),d}(b,this._c):[].concat(c),d],i=h[0],j=h.reduce((a,c)=>{let d=ao(b,c,e);return a.top=g(d.top,a.top),a.right=f(d.right,a.right),a.bottom=f(d.bottom,a.bottom),a.left=g(d.left,a.left),a},ao(b,i,e));return{width:j.right-j.left,height:j.bottom-j.top,x:j.left,y:j.top}},getOffsetParent:ar,getElementRects:as,getClientRects:function(a){return Array.from(a.getClientRects())},getDimensions:function(a){let{width:b,height:c}=af(a);return{width:b,height:c}},getScale:ah,isElement:N,isRTL:function(a){return"rtl"===aa(a).direction}};function au(a,b){return a.x===b.x&&a.y===b.y&&a.width===b.width&&a.height===b.height}let av=a=>({name:"arrow",options:a,async fn(b){let{x:c,y:d,placement:e,rects:h,platform:i,elements:j,middlewareData:k}=b,{element:l,padding:n=0}=m(a,b)||{};if(null==l)return{};let r=z(n),t={x:c,y:d},u=p(s(e)),v=q(u),w=await i.getDimensions(l),x="y"===u,y=x?"clientHeight":"clientWidth",A=h.reference[v]+h.reference[u]-t[u]-h.floating[v],B=t[u]-h.reference[u],C=await (null==i.getOffsetParent?void 0:i.getOffsetParent(l)),D=C?C[y]:0;D&&await (null==i.isElement?void 0:i.isElement(C))||(D=j.floating[y]||h.floating[v]);let E=D/2-w[v]/2-1,F=f(r[x?"top":"left"],E),G=f(r[x?"bottom":"right"],E),H=D-w[v]-G,I=D/2-w[v]/2+(A/2-B/2),J=g(F,f(I,H)),K=!k.arrow&&null!=o(e)&&I!==J&&h.reference[v]/2-(I{b.current=a}),b}var aC=c(6406),aD=c(21124),aE=d.forwardRef((a,b)=>{let{children:c,width:d=10,height:e=5,...f}=a;return(0,aD.jsx)(aC.sG.svg,{...f,ref:b,width:d,height:e,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:a.asChild?c:(0,aD.jsx)("polygon",{points:"0,0 30,0 15,10"})})});aE.displayName="Arrow";var aF=c(92808),aG=c(2332),aH=c(71700),aI=c(68829),aJ=c(96386),aK="Popper",[aL,aM]=(0,aG.A)(aK),[aN,aO]=aL(aK),aP=a=>{let{__scopePopper:b,children:c}=a,[e,f]=d.useState(null);return(0,aD.jsx)(aN,{scope:b,anchor:e,onAnchorChange:f,children:c})};aP.displayName=aK;var aQ="PopperAnchor",aR=d.forwardRef((a,b)=>{let{__scopePopper:c,virtualRef:e,...f}=a,g=aO(aQ,c),h=d.useRef(null),i=(0,aF.s)(b,h),j=d.useRef(null);return d.useEffect(()=>{let a=j.current;j.current=e?.current||h.current,a!==j.current&&g.onAnchorChange(j.current)}),e?null:(0,aD.jsx)(aC.sG.div,{...f,ref:i})});aR.displayName=aQ;var aS="PopperContent",[aT,aU]=aL(aS),aV=d.forwardRef((a,b)=>{let{__scopePopper:c,side:e="bottom",sideOffset:h=0,align:j="center",alignOffset:k=0,arrowPadding:l=0,avoidCollisions:r=!0,collisionBoundary:z=[],collisionPadding:A=0,sticky:B="partial",hideWhenDetached:I=!1,updatePositionStrategy:J="optimized",onPlaced:K,...M}=a,N=aO(aS,c),[O,P]=d.useState(null),Q=(0,aF.s)(b,a=>P(a)),[R,S]=d.useState(null),T=(0,aJ.X)(R),U=T?.width??0,V=T?.height??0,W="number"==typeof A?A:{top:0,right:0,bottom:0,left:0,...A},X=Array.isArray(z)?z:[z],Y=X.length>0,Z={padding:W,boundary:X.filter(aZ),altBoundary:Y},{refs:$,floatingStyles:_,placement:aa,isPositioned:ab,middlewareData:ac}=function(a){void 0===a&&(a={});let{placement:b="bottom",strategy:c="absolute",middleware:e=[],platform:f,elements:{reference:g,floating:h}={},transform:i=!0,whileElementsMounted:j,open:k}=a,[l,m]=d.useState({x:0,y:0,strategy:c,placement:b,middlewareData:{},isPositioned:!1}),[n,o]=d.useState(e);ay(n,e)||o(e);let[p,q]=d.useState(null),[r,s]=d.useState(null),t=d.useCallback(a=>{a!==x.current&&(x.current=a,q(a))},[]),u=d.useCallback(a=>{a!==y.current&&(y.current=a,s(a))},[]),v=g||p,w=h||r,x=d.useRef(null),y=d.useRef(null),z=d.useRef(l),A=null!=j,B=aB(j),D=aB(f),E=aB(k),F=d.useCallback(()=>{if(!x.current||!y.current)return;let a={placement:b,strategy:c,middleware:n};D.current&&(a.platform=D.current),((a,b,c)=>{let d=new Map,e={platform:at,...c},f={...e.platform,_c:d};return C(a,b,{...e,platform:f})})(x.current,y.current,a).then(a=>{let b={...a,isPositioned:!1!==E.current};G.current&&!ay(z.current,b)&&(z.current=b,aw.flushSync(()=>{m(b)}))})},[n,b,c,D,E]);ax(()=>{!1===k&&z.current.isPositioned&&(z.current.isPositioned=!1,m(a=>({...a,isPositioned:!1})))},[k]);let G=d.useRef(!1);ax(()=>(G.current=!0,()=>{G.current=!1}),[]),ax(()=>{if(v&&(x.current=v),w&&(y.current=w),v&&w){if(B.current)return B.current(v,w,F);F()}},[v,w,F,B,A]);let H=d.useMemo(()=>({reference:x,floating:y,setReference:t,setFloating:u}),[t,u]),I=d.useMemo(()=>({reference:v,floating:w}),[v,w]),J=d.useMemo(()=>{let a={position:c,left:0,top:0};if(!I.floating)return a;let b=aA(I.floating,l.x),d=aA(I.floating,l.y);return i?{...a,transform:"translate("+b+"px, "+d+"px)",...az(I.floating)>=1.5&&{willChange:"transform"}}:{position:c,left:b,top:d}},[c,i,I.floating,l.x,l.y]);return d.useMemo(()=>({...l,update:F,refs:H,elements:I,floatingStyles:J}),[l,F,H,I,J])}({strategy:"fixed",placement:e+("center"!==j?"-"+j:""),whileElementsMounted:(...a)=>(function(a,b,c,d){let e;void 0===d&&(d={});let{ancestorScroll:h=!0,ancestorResize:j=!0,elementResize:k="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:m=!1}=d,n=ag(a),o=h||j?[...n?ad(n):[],...ad(b)]:[];o.forEach(a=>{h&&a.addEventListener("scroll",c,{passive:!0}),j&&a.addEventListener("resize",c)});let p=n&&l?function(a,b){let c,d=null,e=L(a);function h(){var a;clearTimeout(c),null==(a=d)||a.disconnect(),d=null}return!function j(k,l){void 0===k&&(k=!1),void 0===l&&(l=1),h();let m=a.getBoundingClientRect(),{left:n,top:o,width:p,height:q}=m;if(k||b(),!p||!q)return;let r=i(o),s=i(e.clientWidth-(n+p)),t={rootMargin:-r+"px "+-s+"px "+-i(e.clientHeight-(o+q))+"px "+-i(n)+"px",threshold:g(0,f(1,l))||1},u=!0;function v(b){let d=b[0].intersectionRatio;if(d!==l){if(!u)return j();d?j(!1,d):c=setTimeout(()=>{j(!1,1e-7)},1e3)}1!==d||au(m,a.getBoundingClientRect())||j(),u=!1}try{d=new IntersectionObserver(v,{...t,root:e.ownerDocument})}catch(a){d=new IntersectionObserver(v,t)}d.observe(a)}(!0),h}(n,c):null,q=-1,r=null;k&&(r=new ResizeObserver(a=>{let[d]=a;d&&d.target===n&&r&&(r.unobserve(b),cancelAnimationFrame(q),q=requestAnimationFrame(()=>{var a;null==(a=r)||a.observe(b)})),c()}),n&&!m&&r.observe(n),r.observe(b));let s=m?ak(a):null;return m&&function b(){let d=ak(a);s&&!au(s,d)&&c(),s=d,e=requestAnimationFrame(b)}(),c(),()=>{var a;o.forEach(a=>{h&&a.removeEventListener("scroll",c),j&&a.removeEventListener("resize",c)}),null==p||p(),null==(a=r)||a.disconnect(),r=null,m&&cancelAnimationFrame(e)}})(...a,{animationFrame:"always"===J}),elements:{reference:N.anchor},middleware:[((a,b)=>({...function(a){return void 0===a&&(a=0),{name:"offset",options:a,async fn(b){var c,d;let{x:e,y:f,placement:g,middlewareData:h}=b,i=await H(b,a);return g===(null==(c=h.offset)?void 0:c.placement)&&null!=(d=h.arrow)&&d.alignmentOffset?{}:{x:e+i.x,y:f+i.y,data:{...i,placement:g}}}}}(a),options:[a,b]}))({mainAxis:h+V,alignmentAxis:k}),r&&((a,b)=>({...function(a){return void 0===a&&(a={}),{name:"shift",options:a,async fn(b){let{x:c,y:d,placement:e}=b,{mainAxis:h=!0,crossAxis:i=!1,limiter:j={fn:a=>{let{x:b,y:c}=a;return{x:b,y:c}}},...k}=m(a,b),l={x:c,y:d},o=await D(b,k),q=s(n(e)),r=p(q),t=l[r],u=l[q];if(h){let a="y"===r?"top":"left",b="y"===r?"bottom":"right",c=t+o[a],d=t-o[b];t=g(c,f(t,d))}if(i){let a="y"===q?"top":"left",b="y"===q?"bottom":"right",c=u+o[a],d=u-o[b];u=g(c,f(u,d))}let v=j.fn({...b,[r]:t,[q]:u});return{...v,data:{x:v.x-c,y:v.y-d,enabled:{[r]:h,[q]:i}}}}}}(a),options:[a,b]}))({mainAxis:!0,crossAxis:!1,limiter:"partial"===B?((a,b)=>({...function(a){return void 0===a&&(a={}),{options:a,fn(b){let{x:c,y:d,placement:e,rects:f,middlewareData:g}=b,{offset:h=0,mainAxis:i=!0,crossAxis:j=!0}=m(a,b),k={x:c,y:d},l=s(e),o=p(l),q=k[o],r=k[l],t=m(h,b),u="number"==typeof t?{mainAxis:t,crossAxis:0}:{mainAxis:0,crossAxis:0,...t};if(i){let a="y"===o?"height":"width",b=f.reference[o]-f.floating[a]+u.mainAxis,c=f.reference[o]+f.reference[a]-u.mainAxis;qc&&(q=c)}if(j){var v,w;let a="y"===o?"width":"height",b=G.has(n(e)),c=f.reference[l]-f.floating[a]+(b&&(null==(v=g.offset)?void 0:v[l])||0)+(b?0:u.crossAxis),d=f.reference[l]+f.reference[a]+(b?0:(null==(w=g.offset)?void 0:w[l])||0)-(b?u.crossAxis:0);rd&&(r=d)}return{[o]:q,[l]:r}}}}(a),options:[a,b]}))():void 0,...Z}),r&&((a,b)=>({...function(a){return void 0===a&&(a={}),{name:"flip",options:a,async fn(b){var c,d,e,f,g;let{placement:h,middlewareData:i,rects:j,initialPlacement:k,platform:l,elements:r}=b,{mainAxis:z=!0,crossAxis:A=!0,fallbackPlacements:B,fallbackStrategy:C="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:F=!0,...G}=m(a,b);if(null!=(c=i.arrow)&&c.alignmentOffset)return{};let H=n(h),I=s(k),J=n(k)===k,K=await (null==l.isRTL?void 0:l.isRTL(r.floating)),L=B||(J||!F?[y(k)]:function(a){let b=y(a);return[t(a),b,t(b)]}(k)),M="none"!==E;!B&&M&&L.push(...function(a,b,c,d){let e=o(a),f=function(a,b,c){switch(a){case"top":case"bottom":if(c)return b?v:u;return b?u:v;case"left":case"right":return b?w:x;default:return[]}}(n(a),"start"===c,d);return e&&(f=f.map(a=>a+"-"+e),b&&(f=f.concat(f.map(t)))),f}(k,F,E,K));let N=[k,...L],O=await D(b,G),P=[],Q=(null==(d=i.flip)?void 0:d.overflows)||[];if(z&&P.push(O[H]),A){let a=function(a,b,c){void 0===c&&(c=!1);let d=o(a),e=p(s(a)),f=q(e),g="x"===e?d===(c?"end":"start")?"right":"left":"start"===d?"bottom":"top";return b.reference[f]>b.floating[f]&&(g=y(g)),[g,y(g)]}(h,j,K);P.push(O[a[0]],O[a[1]])}if(Q=[...Q,{placement:h,overflows:P}],!P.every(a=>a<=0)){let a=((null==(e=i.flip)?void 0:e.index)||0)+1,b=N[a];if(b&&("alignment"!==A||I===s(b)||Q.every(a=>s(a.placement)!==I||a.overflows[0]>0)))return{data:{index:a,overflows:Q},reset:{placement:b}};let c=null==(f=Q.filter(a=>a.overflows[0]<=0).sort((a,b)=>a.overflows[1]-b.overflows[1])[0])?void 0:f.placement;if(!c)switch(C){case"bestFit":{let a=null==(g=Q.filter(a=>{if(M){let b=s(a.placement);return b===I||"y"===b}return!0}).map(a=>[a.placement,a.overflows.filter(a=>a>0).reduce((a,b)=>a+b,0)]).sort((a,b)=>a[1]-b[1])[0])?void 0:g[0];a&&(c=a);break}case"initialPlacement":c=k}if(h!==c)return{reset:{placement:c}}}return{}}}}(a),options:[a,b]}))({...Z}),((a,b)=>({...function(a){return void 0===a&&(a={}),{name:"size",options:a,async fn(b){var c,d;let e,h,{placement:i,rects:j,platform:k,elements:l}=b,{apply:p=()=>{},...q}=m(a,b),r=await D(b,q),t=n(i),u=o(i),v="y"===s(i),{width:w,height:x}=j.floating;"top"===t||"bottom"===t?(e=t,h=u===(await (null==k.isRTL?void 0:k.isRTL(l.floating))?"start":"end")?"left":"right"):(h=t,e="end"===u?"top":"bottom");let y=x-r.top-r.bottom,z=w-r.left-r.right,A=f(x-r[e],y),B=f(w-r[h],z),C=!b.middlewareData.shift,E=A,F=B;if(null!=(c=b.middlewareData.shift)&&c.enabled.x&&(F=z),null!=(d=b.middlewareData.shift)&&d.enabled.y&&(E=y),C&&!u){let a=g(r.left,0),b=g(r.right,0),c=g(r.top,0),d=g(r.bottom,0);v?F=w-2*(0!==a||0!==b?a+b:g(r.left,r.right)):E=x-2*(0!==c||0!==d?c+d:g(r.top,r.bottom))}await p({...b,availableWidth:F,availableHeight:E});let G=await k.getDimensions(l.floating);return w!==G.width||x!==G.height?{reset:{rects:!0}}:{}}}}(a),options:[a,b]}))({...Z,apply:({elements:a,rects:b,availableWidth:c,availableHeight:d})=>{let{width:e,height:f}=b.reference,g=a.floating.style;g.setProperty("--radix-popper-available-width",`${c}px`),g.setProperty("--radix-popper-available-height",`${d}px`),g.setProperty("--radix-popper-anchor-width",`${e}px`),g.setProperty("--radix-popper-anchor-height",`${f}px`)}}),R&&((a,b)=>({...(a=>({name:"arrow",options:a,fn(b){let{element:c,padding:d}="function"==typeof a?a(b):a;return c&&({}).hasOwnProperty.call(c,"current")?null!=c.current?av({element:c.current,padding:d}).fn(b):{}:c?av({element:c,padding:d}).fn(b):{}}}))(a),options:[a,b]}))({element:R,padding:l}),a$({arrowWidth:U,arrowHeight:V}),I&&((a,b)=>({...function(a){return void 0===a&&(a={}),{name:"hide",options:a,async fn(b){let{rects:c}=b,{strategy:d="referenceHidden",...e}=m(a,b);switch(d){case"referenceHidden":{let a=E(await D(b,{...e,elementContext:"reference"}),c.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:F(a)}}}case"escaped":{let a=E(await D(b,{...e,altBoundary:!0}),c.floating);return{data:{escapedOffsets:a,escaped:F(a)}}}default:return{}}}}}(a),options:[a,b]}))({strategy:"referenceHidden",...Z})]}),[ae,af]=a_(aa),ah=(0,aH.c)(K);(0,aI.N)(()=>{ab&&ah?.()},[ab,ah]);let ai=ac.arrow?.x,aj=ac.arrow?.y,al=ac.arrow?.centerOffset!==0,[am,an]=d.useState();return(0,aI.N)(()=>{O&&an(window.getComputedStyle(O).zIndex)},[O]),(0,aD.jsx)("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{..._,transform:ab?_.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:am,"--radix-popper-transform-origin":[ac.transformOrigin?.x,ac.transformOrigin?.y].join(" "),...ac.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:a.dir,children:(0,aD.jsx)(aT,{scope:c,placedSide:ae,onArrowChange:S,arrowX:ai,arrowY:aj,shouldHideArrow:al,children:(0,aD.jsx)(aC.sG.div,{"data-side":ae,"data-align":af,...M,ref:Q,style:{...M.style,animation:ab?void 0:"none"}})})})});aV.displayName=aS;var aW="PopperArrow",aX={top:"bottom",right:"left",bottom:"top",left:"right"},aY=d.forwardRef(function(a,b){let{__scopePopper:c,...d}=a,e=aU(aW,c),f=aX[e.placedSide];return(0,aD.jsx)("span",{ref:e.onArrowChange,style:{position:"absolute",left:e.arrowX,top:e.arrowY,[f]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[e.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[e.placedSide],visibility:e.shouldHideArrow?"hidden":void 0},children:(0,aD.jsx)(aE,{...d,ref:b,style:{...d.style,display:"block"}})})});function aZ(a){return null!==a}aY.displayName=aW;var a$=a=>({name:"transformOrigin",options:a,fn(b){let{placement:c,rects:d,middlewareData:e}=b,f=e.arrow?.centerOffset!==0,g=f?0:a.arrowWidth,h=f?0:a.arrowHeight,[i,j]=a_(c),k={start:"0%",center:"50%",end:"100%"}[j],l=(e.arrow?.x??0)+g/2,m=(e.arrow?.y??0)+h/2,n="",o="";return"bottom"===i?(n=f?k:`${l}px`,o=`${-h}px`):"top"===i?(n=f?k:`${l}px`,o=`${d.floating.height+h}px`):"right"===i?(n=`${-h}px`,o=f?k:`${m}px`):"left"===i&&(n=`${d.floating.width+h}px`,o=f?k:`${m}px`),{data:{x:n,y:o}}}});function a_(a){let[b,c="center"]=a.split("-");return[b,c]}var a0=aP,a1=aR,a2=aV,a3=aY},25139:(a,b,c)=>{"use strict";function d(a){return a&&a.__esModule?a:{default:a}}b.__esModule=!0,b.HandlebarsEnvironment=l;var e=c(50281),f=d(c(1793)),g=c(88293),h=c(32860),i=d(c(95050)),j=c(89777);b.VERSION="4.7.8",b.COMPILER_REVISION=8,b.LAST_COMPATIBLE_COMPILER_REVISION=7,b.REVISION_CHANGES={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};var k="[object Object]";function l(a,b,c){this.helpers=a||{},this.partials=b||{},this.decorators=c||{},g.registerDefaultHelpers(this),h.registerDefaultDecorators(this)}l.prototype={constructor:l,logger:i.default,log:i.default.log,registerHelper:function(a,b){if(e.toString.call(a)===k){if(b)throw new f.default("Arg not supported with multiple helpers");e.extend(this.helpers,a)}else this.helpers[a]=b},unregisterHelper:function(a){delete this.helpers[a]},registerPartial:function(a,b){if(e.toString.call(a)===k)e.extend(this.partials,a);else{if(void 0===b)throw new f.default('Attempting to register a partial called "'+a+'" as undefined');this.partials[a]=b}},unregisterPartial:function(a){delete this.partials[a]},registerDecorator:function(a,b){if(e.toString.call(a)===k){if(b)throw new f.default("Arg not supported with multiple decorators");e.extend(this.decorators,a)}else this.decorators[a]=b},unregisterDecorator:function(a){delete this.decorators[a]},resetLoggedPropertyAccesses:function(){j.resetLoggedProperties()}},b.log=i.default.log,b.createFrame=e.createFrame,b.logger=i.default},25258:(a,b,c)=>{"use strict";b.__esModule=!0;var d=function(a){return a&&a.__esModule?a:{default:a}}(c(1793));function e(){this.parents=[]}function f(a){this.acceptRequired(a,"path"),this.acceptArray(a.params),this.acceptKey(a,"hash")}function g(a){f.call(this,a),this.acceptKey(a,"program"),this.acceptKey(a,"inverse")}function h(a){this.acceptRequired(a,"name"),this.acceptArray(a.params),this.acceptKey(a,"hash")}e.prototype={constructor:e,mutating:!1,acceptKey:function(a,b){var c=this.accept(a[b]);if(this.mutating){if(c&&!e.prototype[c.type])throw new d.default('Unexpected node type "'+c.type+'" found when accepting '+b+" on "+a.type);a[b]=c}},acceptRequired:function(a,b){if(this.acceptKey(a,b),!a[b])throw new d.default(a.type+" requires "+b)},acceptArray:function(a){for(var b=0,c=a.length;b{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},26691:(a,b,c)=>{"use strict";c.d(b,{F:()=>g});var d=c(43249);let e=a=>"boolean"==typeof a?`${a}`:0===a?"0":a,f=d.$,g=(a,b)=>c=>{var d;if((null==b?void 0:b.variants)==null)return f(a,null==c?void 0:c.class,null==c?void 0:c.className);let{variants:g,defaultVariants:h}=b,i=Object.keys(g).map(a=>{let b=null==c?void 0:c[a],d=null==h?void 0:h[a];if(null===b)return null;let f=e(b)||e(d);return g[a][f]}),j=c&&Object.entries(c).reduce((a,b)=>{let[c,d]=b;return void 0===d||(a[c]=d),a},{});return f(a,i,null==b||null==(d=b.compoundVariants)?void 0:d.reduce((a,b)=>{let{class:c,className:d,...e}=b;return Object.entries(e).every(a=>{let[b,c]=a;return Array.isArray(c)?c.includes({...h,...j}[b]):({...h,...j})[b]===c})?[...a,c,d]:a},[]),null==c?void 0:c.class,null==c?void 0:c.className)}},27139:(a,b,c)=>{"use strict";var d=c(53247),e=c(43613),f=c(98164),g=c(78094),h=c(1094),i=Object.prototype.toString;function j(a){if(!(this instanceof j))return new j(a);this.options=e.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},a||{});var b,c=this.options;c.raw&&c.windowBits>0?c.windowBits=-c.windowBits:c.gzip&&c.windowBits>0&&c.windowBits<16&&(c.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new h,this.strm.avail_out=0;var k=d.deflateInit2(this.strm,c.level,c.method,c.windowBits,c.memLevel,c.strategy);if(0!==k)throw Error(g[k]);if(c.header&&d.deflateSetHeader(this.strm,c.header),c.dictionary){if(b="string"==typeof c.dictionary?f.string2buf(c.dictionary):"[object ArrayBuffer]"===i.call(c.dictionary)?new Uint8Array(c.dictionary):c.dictionary,0!==(k=d.deflateSetDictionary(this.strm,b)))throw Error(g[k]);this._dict_set=!0}}function k(a,b){var c=new j(b);if(c.push(a,!0),c.err)throw c.msg||g[c.err];return c.result}j.prototype.push=function(a,b){var c,g,h=this.strm,j=this.options.chunkSize;if(this.ended)return!1;g=b===~~b?b:4*(!0===b),"string"==typeof a?h.input=f.string2buf(a):"[object ArrayBuffer]"===i.call(a)?h.input=new Uint8Array(a):h.input=a,h.next_in=0,h.avail_in=h.input.length;do{if(0===h.avail_out&&(h.output=new e.Buf8(j),h.next_out=0,h.avail_out=j),1!==(c=d.deflate(h,g))&&0!==c)return this.onEnd(c),this.ended=!0,!1;(0===h.avail_out||0===h.avail_in&&(4===g||2===g))&&("string"===this.options.to?this.onData(f.buf2binstring(e.shrinkBuf(h.output,h.next_out))):this.onData(e.shrinkBuf(h.output,h.next_out)))}while((h.avail_in>0||0===h.avail_out)&&1!==c);return 4===g?(c=d.deflateEnd(this.strm),this.onEnd(c),this.ended=!0,0===c):(2===g&&(this.onEnd(0),h.avail_out=0),!0)},j.prototype.onData=function(a){this.chunks.push(a)},j.prototype.onEnd=function(a){0===a&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=e.flattenChunks(this.chunks)),this.chunks=[],this.err=a,this.msg=this.strm.msg},b.Deflate=j,b.deflate=k,b.deflateRaw=function(a,b){return(b=b||{}).raw=!0,k(a,b)},b.gzip=function(a,b){return(b=b||{}).gzip=!0,k(a,b)}},29562:(a,b)=>{"use strict";b.__esModule=!0,b.wrapHelper=function(a,b){return"function"!=typeof a?a:function(){var c=arguments[arguments.length-1];return arguments[arguments.length-1]=b(c),a.apply(this,arguments)}}},29988:(a,b,c)=>{"use strict";c.d(b,{C:()=>g});var d=c(38301),e=c(92808),f=c(68829),g=a=>{let{present:b,children:c}=a,g=function(a){var b,c;let[e,g]=d.useState(),i=d.useRef(null),j=d.useRef(a),k=d.useRef("none"),[l,m]=(b=a?"mounted":"unmounted",c={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},d.useReducer((a,b)=>c[a][b]??a,b));return d.useEffect(()=>{let a=h(i.current);k.current="mounted"===l?a:"none"},[l]),(0,f.N)(()=>{let b=i.current,c=j.current;if(c!==a){let d=k.current,e=h(b);a?m("MOUNT"):"none"===e||b?.display==="none"?m("UNMOUNT"):c&&d!==e?m("ANIMATION_OUT"):m("UNMOUNT"),j.current=a}},[a,m]),(0,f.N)(()=>{if(e){let a,b=e.ownerDocument.defaultView??window,c=c=>{let d=h(i.current).includes(CSS.escape(c.animationName));if(c.target===e&&d&&(m("ANIMATION_END"),!j.current)){let c=e.style.animationFillMode;e.style.animationFillMode="forwards",a=b.setTimeout(()=>{"forwards"===e.style.animationFillMode&&(e.style.animationFillMode=c)})}},d=a=>{a.target===e&&(k.current=h(i.current))};return e.addEventListener("animationstart",d),e.addEventListener("animationcancel",c),e.addEventListener("animationend",c),()=>{b.clearTimeout(a),e.removeEventListener("animationstart",d),e.removeEventListener("animationcancel",c),e.removeEventListener("animationend",c)}}m("ANIMATION_END")},[e,m]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:d.useCallback(a=>{i.current=a?getComputedStyle(a):null,g(a)},[])}}(b),i="function"==typeof c?c({present:g.isPresent}):d.Children.only(c),j=(0,e.s)(g.ref,function(a){let b=Object.getOwnPropertyDescriptor(a.props,"ref")?.get,c=b&&"isReactWarning"in b&&b.isReactWarning;return c?a.ref:(c=(b=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in b&&b.isReactWarning)?a.props.ref:a.props.ref||a.ref}(i));return"function"==typeof c||g.isPresent?d.cloneElement(i,{ref:j}):null};function h(a){return a?.animationName||"none"}g.displayName="Presence"},30298:(a,b,c)=>{"use strict";var d=c(65353);b.STORE={magic:"\0\0",compressWorker:function(){return new d("STORE compression")},uncompressWorker:function(){return new d("STORE decompression")}},b.DEFLATE=c(21379)},30887:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]])},30923:(a,b,c)=>{"use strict";function d(a){return a&&a.__esModule?a:{default:a}}b.__esModule=!0;var e=d(c(6725)),f=d(c(87732)),g=c(9991),h=c(18659),i=d(c(12803)),j=d(c(25258)),k=d(c(59156)),l=e.default.create;function m(){var a=l();return a.compile=function(b,c){return h.compile(b,c,a)},a.precompile=function(b,c){return h.precompile(b,c,a)},a.AST=f.default,a.Compiler=h.Compiler,a.JavaScriptCompiler=i.default,a.Parser=g.parser,a.parse=g.parse,a.parseWithoutProcessing=g.parseWithoutProcessing,a}var n=m();n.create=m,k.default(n),n.Visitor=j.default,n.default=n,b.default=n,a.exports=b.default},31506:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]])},32677:(a,b,c)=>{"use strict";var d=c(62253).Buffer,e=d.isEncoding||function(a){switch((a=""+a)&&a.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function f(a){var b;switch(this.encoding=function(a){var b=function(a){var b;if(!a)return"utf8";for(;;)switch(a){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return a;default:if(b)return;a=(""+a).toLowerCase(),b=!0}}(a);if("string"!=typeof b&&(d.isEncoding===e||!e(a)))throw Error("Unknown encoding: "+a);return b||a}(a),this.encoding){case"utf16le":this.text=i,this.end=j,b=4;break;case"utf8":this.fillLast=h,b=4;break;case"base64":this.text=k,this.end=l,b=3;break;default:this.write=m,this.end=n;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=d.allocUnsafe(b)}function g(a){return a<=127?0:a>>5==6?2:a>>4==14?3:a>>3==30?4:a>>6==2?-1:-2}function h(a){var b=this.lastTotal-this.lastNeed,c=function(a,b,c){if((192&b[0])!=128)return a.lastNeed=0,"�";if(a.lastNeed>1&&b.length>1){if((192&b[1])!=128)return a.lastNeed=1,"�";if(a.lastNeed>2&&b.length>2&&(192&b[2])!=128)return a.lastNeed=2,"�"}}(this,a,0);return void 0!==c?c:this.lastNeed<=a.length?(a.copy(this.lastChar,b,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(a.copy(this.lastChar,b,0,a.length),this.lastNeed-=a.length)}function i(a,b){if((a.length-b)%2==0){var c=a.toString("utf16le",b);if(c){var d=c.charCodeAt(c.length-1);if(d>=55296&&d<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=a[a.length-2],this.lastChar[1]=a[a.length-1],c.slice(0,-1)}return c}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=a[a.length-1],a.toString("utf16le",b,a.length-1)}function j(a){var b=a&&a.length?this.write(a):"";if(this.lastNeed){var c=this.lastTotal-this.lastNeed;return b+this.lastChar.toString("utf16le",0,c)}return b}function k(a,b){var c=(a.length-b)%3;return 0===c?a.toString("base64",b):(this.lastNeed=3-c,this.lastTotal=3,1===c?this.lastChar[0]=a[a.length-1]:(this.lastChar[0]=a[a.length-2],this.lastChar[1]=a[a.length-1]),a.toString("base64",b,a.length-c))}function l(a){var b=a&&a.length?this.write(a):"";return this.lastNeed?b+this.lastChar.toString("base64",0,3-this.lastNeed):b}function m(a){return a.toString(this.encoding)}function n(a){return a&&a.length?this.write(a):""}b.I=f,f.prototype.write=function(a){var b,c;if(0===a.length)return"";if(this.lastNeed){if(void 0===(b=this.fillLast(a)))return"";c=this.lastNeed,this.lastNeed=0}else c=0;return c=0?(e>0&&(a.lastNeed=e-1),e):--d=0?(e>0&&(a.lastNeed=e-2),e):--d=0?(e>0&&(2===e?e=0:a.lastNeed=e-3),e):0}(this,a,b);if(!this.lastNeed)return a.toString("utf8",b);this.lastTotal=c;var d=a.length-(c-this.lastNeed);return a.copy(this.lastChar,0,d),a.toString("utf8",b,d)},f.prototype.fillLast=function(a){if(this.lastNeed<=a.length)return a.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);a.copy(this.lastChar,this.lastTotal-this.lastNeed,0,a.length),this.lastNeed-=a.length}},32860:(a,b,c)=>{"use strict";b.__esModule=!0,b.registerDefaultDecorators=function(a){d.default(a)};var d=function(a){return a&&a.__esModule?a:{default:a}}(c(47210))},32970:(a,b,c)=>{"use strict";var d=c(20452),e=c(65353);function f(a){e.call(this,"DataWorker");var b=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,a.then(function(a){b.dataIsReady=!0,b.data=a,b.max=a&&a.length||0,b.type=d.getTypeOf(a),b.isPaused||b._tickAndRepeat()},function(a){b.error(a)})}d.inherits(f,e),f.prototype.cleanUp=function(){e.prototype.cleanUp.call(this),this.data=null},f.prototype.resume=function(){return!!e.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,d.delay(this._tickAndRepeat,[],this)),!0)},f.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(d.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},f.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var a=null,b=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":a=this.data.substring(this.index,b);break;case"uint8array":a=this.data.subarray(this.index,b);break;case"array":case"nodebuffer":a=this.data.slice(this.index,b)}return this.index=b,this.push({data:a,meta:{percent:this.max?this.index/this.max*100:0}})},a.exports=f},33018:a=>{"use strict";a.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},33403:(a,b,c)=>{a.exports=c(28354).deprecate},33585:(a,b,c)=>{"use strict";b.__esModule=!0,b.SourceLocation=function(a,b){this.source=a,this.start={line:b.first_line,column:b.first_column},this.end={line:b.last_line,column:b.last_column}},b.id=function(a){return/^\[.*\]$/.test(a)?a.substring(1,a.length-1):a},b.stripFlags=function(a,b){return{open:"~"===a.charAt(2),close:"~"===b.charAt(b.length-3)}},b.stripComment=function(a){return a.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")},b.preparePath=function(a,b,c){c=this.locInfo(c);for(var e=a?"@":"",f=[],g=0,h=0,i=b.length;h0)throw new d.default("Invalid path: "+e,{loc:c});else".."===j&&g++}return{type:"PathExpression",data:a,depth:g,parts:f,original:e,loc:c}},b.prepareMustache=function(a,b,c,d,e,f){var g=d.charAt(3)||d.charAt(2);return{type:/\*/.test(d)?"Decorator":"MustacheStatement",path:a,params:b,hash:c,escaped:"{"!==g&&"&"!==g,strip:e,loc:this.locInfo(f)}},b.prepareRawBlock=function(a,b,c,d){e(a,c);var f={type:"Program",body:b,strip:{},loc:d=this.locInfo(d)};return{type:"BlockStatement",path:a.path,params:a.params,hash:a.hash,program:f,openStrip:{},inverseStrip:{},closeStrip:{},loc:d}},b.prepareBlock=function(a,b,c,f,g,h){f&&f.path&&e(a,f);var i=/\*/.test(a.open);b.blockParams=a.blockParams;var j=void 0,k=void 0;if(c){if(i)throw new d.default("Unexpected inverse block on decorator",c);c.chain&&(c.program.body[0].closeStrip=f.strip),k=c.strip,j=c.program}return g&&(g=j,j=b,b=g),{type:i?"DecoratorBlock":"BlockStatement",path:a.path,params:a.params,hash:a.hash,program:b,inverse:j,openStrip:a.strip,inverseStrip:k,closeStrip:f&&f.strip,loc:this.locInfo(h)}},b.prepareProgram=function(a,b){if(!b&&a.length){var c=a[0].loc,d=a[a.length-1].loc;c&&d&&(b={source:c.source,start:{line:c.start.line,column:c.start.column},end:{line:d.end.line,column:d.end.column}})}return{type:"Program",body:a,strip:{},loc:b}},b.preparePartialBlock=function(a,b,c,d){return e(a,c),{type:"PartialBlockStatement",name:a.path,params:a.params,hash:a.hash,program:b,openStrip:a.strip,closeStrip:c&&c.strip,loc:this.locInfo(d)}};var d=function(a){return a&&a.__esModule?a:{default:a}}(c(1793));function e(a,b){if(b=b.path?b.path.original:b,a.path.original!==b){var c={loc:a.path.loc};throw new d.default(a.path.original+" doesn't match "+b,c)}}},34072:(a,b,c)=>{"use strict";var d=c(20452),e=c(67055),f=c(65353),g=c(50266),h=c(9926),i=c(51238),j=null;if(h.nodestream)try{j=c(96172)}catch(a){}function k(a,b,c){var g=b;switch(b){case"blob":case"arraybuffer":g="uint8array";break;case"base64":g="string"}try{this._internalType=g,this._outputType=b,this._mimeType=c,d.checkSupport(g),this._worker=a.pipe(new e(g)),a.lock()}catch(a){this._worker=new f("error"),this._worker.error(a)}}k.prototype={accumulate:function(a){var b;return b=this,new i.Promise(function(c,e){var f=[],h=b._internalType,i=b._outputType,j=b._mimeType;b.on("data",function(b,c){f.push(b),a&&a(c)}).on("error",function(a){f=[],e(a)}).on("end",function(){try{var a=function(a,b,c){switch(a){case"blob":return d.newBlob(d.transformTo("arraybuffer",b),c);case"base64":return g.encode(b);default:return d.transformTo(a,b)}}(i,function(a,b){var c,d=0,e=null,f=0;for(c=0;c{"use strict";var d=c(20452),e=function(){for(var a,b=[],c=0;c<256;c++){a=c;for(var d=0;d<8;d++)a=1&a?0xedb88320^a>>>1:a>>>1;b[c]=a}return b}();a.exports=function(a,b){return void 0!==a&&a.length?"string"!==d.getTypeOf(a)?function(a,b,c,d){var f=0+c;a^=-1;for(var g=0;g>>8^e[(a^b[g])&255];return -1^a}(0|b,a,a.length,0):function(a,b,c,d){var f=0+c;a^=-1;for(var g=0;g>>8^e[(a^b.charCodeAt(g))&255];return -1^a}(0|b,a,a.length,0):0}},35652:(a,b,c)=>{"use strict";var d=c(38111),e=c(20452),f=c(21843),g=c(35310),h=c(75074),i=c(30298),j=c(9926),k=function(a){for(var b in i)if(Object.prototype.hasOwnProperty.call(i,b)&&i[b].magic===a)return i[b];return null};function l(a,b){this.options=a,this.loadOptions=b}l.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(a){var b,c;if(a.skip(22),this.fileNameLength=a.readInt(2),c=a.readInt(2),this.fileName=a.readData(this.fileNameLength),a.skip(c),-1===this.compressedSize||-1===this.uncompressedSize)throw Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(b=k(this.compressionMethod)))throw Error("Corrupted zip : compression "+e.pretty(this.compressionMethod)+" unknown (inner file : "+e.transformTo("string",this.fileName)+")");this.decompressed=new f(this.compressedSize,this.uncompressedSize,this.crc32,b,a.readData(this.compressedSize))},readCentralPart:function(a){this.versionMadeBy=a.readInt(2),a.skip(2),this.bitFlag=a.readInt(2),this.compressionMethod=a.readString(2),this.date=a.readDate(),this.crc32=a.readInt(4),this.compressedSize=a.readInt(4),this.uncompressedSize=a.readInt(4);var b=a.readInt(2);if(this.extraFieldsLength=a.readInt(2),this.fileCommentLength=a.readInt(2),this.diskNumberStart=a.readInt(2),this.internalFileAttributes=a.readInt(2),this.externalFileAttributes=a.readInt(4),this.localHeaderOffset=a.readInt(4),this.isEncrypted())throw Error("Encrypted zip are not supported");a.skip(b),this.readExtraFields(a),this.parseZIP64ExtraField(a),this.fileComment=a.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var a=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0===a&&(this.dosPermissions=63&this.externalFileAttributes),3===a&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var a=d(this.extraFields[1].value);this.uncompressedSize===e.MAX_VALUE_32BITS&&(this.uncompressedSize=a.readInt(8)),this.compressedSize===e.MAX_VALUE_32BITS&&(this.compressedSize=a.readInt(8)),this.localHeaderOffset===e.MAX_VALUE_32BITS&&(this.localHeaderOffset=a.readInt(8)),this.diskNumberStart===e.MAX_VALUE_32BITS&&(this.diskNumberStart=a.readInt(4))}},readExtraFields:function(a){var b,c,d,e=a.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});a.index+4{"use strict";a.exports=function(a,b){var c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A;c=a.state,d=a.next_in,z=a.input,e=d+(a.avail_in-5),f=a.next_out,A=a.output,g=f-(b-a.avail_out),h=f+(a.avail_out-257),i=c.dmax,j=c.wsize,k=c.whave,l=c.wnext,m=c.window,n=c.hold,o=c.bits,p=c.lencode,q=c.distcode,r=(1<>>=u=t>>>24,o-=u,0==(u=t>>>16&255))A[f++]=65535&t;else if(16&u)for(v=65535&t,(u&=15)&&(o>>=u,o-=u),o<15&&(n+=z[d++]<>>=u=t>>>24,o-=u,16&(u=t>>>16&255)){if(w=65535&t,o<(u&=15)&&(n+=z[d++]<i){a.msg="invalid distance too far back",c.mode=30;break b}if(n>>>=u,o-=u,w>(u=f-g)){if((u=w-u)>k&&c.sane){a.msg="invalid distance too far back",c.mode=30;break b}if(x=0,y=m,0===l){if(x+=j-u,u2;)A[f++]=y[x++],A[f++]=y[x++],A[f++]=y[x++],v-=3;v&&(A[f++]=y[x++],v>1&&(A[f++]=y[x++]))}else{x=f-w;do A[f++]=A[x++],A[f++]=A[x++],A[f++]=A[x++],v-=3;while(v>2);v&&(A[f++]=A[x++],v>1&&(A[f++]=A[x++]))}}else if((64&u)==0){t=q[(65535&t)+(n&(1<>3,o-=v<<3,n&=(1<{"use strict";c.d(b,{A:()=>U});var d,e,f=function(){return(f=Object.assign||function(a){for(var b,c=1,d=arguments.length;cb.indexOf(d)&&(c[d]=a[d]);if(null!=a&&"function"==typeof Object.getOwnPropertySymbols)for(var e=0,d=Object.getOwnPropertySymbols(a);eb.indexOf(d[e])&&Object.prototype.propertyIsEnumerable.call(a,d[e])&&(c[d[e]]=a[d[e]]);return c}Object.create;Object.create;var h=("function"==typeof SuppressedError&&SuppressedError,c(38301)),i="right-scroll-bar-position",j="width-before-scroll-bar";function k(a,b){return"function"==typeof a?a(b):a&&(a.current=b),a}var l="undefined"!=typeof window?h.useLayoutEffect:h.useEffect,m=new WeakMap;function n(a){return a}var o=function(a){void 0===a&&(a={});var b,c,d,e=(void 0===b&&(b=n),c=[],d=!1,{read:function(){if(d)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return c.length?c[c.length-1]:null},useMedium:function(a){var e=b(a,d);return c.push(e),function(){c=c.filter(function(a){return a!==e})}},assignSyncMedium:function(a){for(d=!0;c.length;){var b=c;c=[],b.forEach(a)}c={push:function(b){return a(b)},filter:function(){return c}}},assignMedium:function(a){d=!0;var b=[];if(c.length){var e=c;c=[],e.forEach(a),b=c}var f=function(){var c=b;b=[],c.forEach(a)},g=function(){return Promise.resolve().then(f)};g(),c={push:function(a){b.push(a),g()},filter:function(a){return b=b.filter(a),c}}}});return e.options=f({async:!0,ssr:!1},a),e}(),p=function(){},q=h.forwardRef(function(a,b){var c,d,e,i,j=h.useRef(null),n=h.useState({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:p}),q=n[0],r=n[1],s=a.forwardProps,t=a.children,u=a.className,v=a.removeScrollBar,w=a.enabled,x=a.shards,y=a.sideCar,z=a.noRelative,A=a.noIsolation,B=a.inert,C=a.allowPinchZoom,D=a.as,E=a.gapMode,F=g(a,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),G=(c=[j,b],d=function(a){return c.forEach(function(b){return k(b,a)})},(e=(0,h.useState)(function(){return{value:null,callback:d,facade:{get current(){return e.value},set current(value){var a=e.value;a!==value&&(e.value=value,e.callback(value,a))}}}})[0]).callback=d,i=e.facade,l(function(){var a=m.get(i);if(a){var b=new Set(a),d=new Set(c),e=i.current;b.forEach(function(a){d.has(a)||k(a,null)}),d.forEach(function(a){b.has(a)||k(a,e)})}m.set(i,c)},[c]),i),H=f(f({},F),q);return h.createElement(h.Fragment,null,w&&h.createElement(y,{sideCar:o,removeScrollBar:v,shards:x,noRelative:z,noIsolation:A,inert:B,setCallbacks:r,allowPinchZoom:!!C,lockRef:j,gapMode:E}),s?h.cloneElement(h.Children.only(t),f(f({},H),{ref:G})):h.createElement(void 0===D?"div":D,f({},H,{className:u,ref:G}),t))});q.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},q.classNames={fullWidth:j,zeroRight:i};var r=function(a){var b=a.sideCar,c=g(a,["sideCar"]);if(!b)throw Error("Sidecar: please provide `sideCar` property to import the right car");var d=b.read();if(!d)throw Error("Sidecar medium not found");return h.createElement(d,f({},c))};r.isSideCarExport=!0;var s=function(){var a=0,b=null;return{add:function(d){if(0==a&&(b=function(){if(!document)return null;var a=document.createElement("style");a.type="text/css";var b=e||c.nc;return b&&a.setAttribute("nonce",b),a}())){var f,g;(f=b).styleSheet?f.styleSheet.cssText=d:f.appendChild(document.createTextNode(d)),g=b,(document.head||document.getElementsByTagName("head")[0]).appendChild(g)}a++},remove:function(){--a||!b||(b.parentNode&&b.parentNode.removeChild(b),b=null)}}},t=function(){var a=s();return function(b,c){h.useEffect(function(){return a.add(b),function(){a.remove()}},[b&&c])}},u=function(){var a=t();return function(b){return a(b.styles,b.dynamic),null}},v={left:0,top:0,right:0,gap:0},w=function(a){return parseInt(a||"",10)||0},x=function(a){var b=window.getComputedStyle(document.body),c=b["padding"===a?"paddingLeft":"marginLeft"],d=b["padding"===a?"paddingTop":"marginTop"],e=b["padding"===a?"paddingRight":"marginRight"];return[w(c),w(d),w(e)]},y=function(a){if(void 0===a&&(a="margin"),"undefined"==typeof window)return v;var b=x(a),c=document.documentElement.clientWidth,d=window.innerWidth;return{left:b[0],top:b[1],right:b[2],gap:Math.max(0,d-c+b[2]-b[0])}},z=u(),A="data-scroll-locked",B=function(a,b,c,d){var e=a.left,f=a.top,g=a.right,h=a.gap;return void 0===c&&(c="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(d,";\n padding-right: ").concat(h,"px ").concat(d,";\n }\n body[").concat(A,"] {\n overflow: hidden ").concat(d,";\n overscroll-behavior: contain;\n ").concat([b&&"position: relative ".concat(d,";"),"margin"===c&&"\n padding-left: ".concat(e,"px;\n padding-top: ").concat(f,"px;\n padding-right: ").concat(g,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(h,"px ").concat(d,";\n "),"padding"===c&&"padding-right: ".concat(h,"px ").concat(d,";")].filter(Boolean).join(""),"\n }\n \n .").concat(i," {\n right: ").concat(h,"px ").concat(d,";\n }\n \n .").concat(j," {\n margin-right: ").concat(h,"px ").concat(d,";\n }\n \n .").concat(i," .").concat(i," {\n right: 0 ").concat(d,";\n }\n \n .").concat(j," .").concat(j," {\n margin-right: 0 ").concat(d,";\n }\n \n body[").concat(A,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(h,"px;\n }\n")},C=function(){var a=parseInt(document.body.getAttribute(A)||"0",10);return isFinite(a)?a:0},D=function(){h.useEffect(function(){return document.body.setAttribute(A,(C()+1).toString()),function(){var a=C()-1;a<=0?document.body.removeAttribute(A):document.body.setAttribute(A,a.toString())}},[])},E=function(a){var b=a.noRelative,c=a.noImportant,d=a.gapMode,e=void 0===d?"margin":d;D();var f=h.useMemo(function(){return y(e)},[e]);return h.createElement(z,{styles:B(f,!b,e,c?"":"!important")})},F=!1;if("undefined"!=typeof window)try{var G=Object.defineProperty({},"passive",{get:function(){return F=!0,!0}});window.addEventListener("test",G,G),window.removeEventListener("test",G,G)}catch(a){F=!1}var H=!!F&&{passive:!1},I=function(a,b){if(!(a instanceof Element))return!1;var c=window.getComputedStyle(a);return"hidden"!==c[b]&&(c.overflowY!==c.overflowX||"TEXTAREA"===a.tagName||"visible"!==c[b])},J=function(a,b){var c=b.ownerDocument,d=b;do{if("undefined"!=typeof ShadowRoot&&d instanceof ShadowRoot&&(d=d.host),K(a,d)){var e=L(a,d);if(e[1]>e[2])return!0}d=d.parentNode}while(d&&d!==c.body);return!1},K=function(a,b){return"v"===a?I(b,"overflowY"):I(b,"overflowX")},L=function(a,b){return"v"===a?[b.scrollTop,b.scrollHeight,b.clientHeight]:[b.scrollLeft,b.scrollWidth,b.clientWidth]},M=function(a,b,c,d,e){var f,g=(f=window.getComputedStyle(b).direction,"h"===a&&"rtl"===f?-1:1),h=g*d,i=c.target,j=b.contains(i),k=!1,l=h>0,m=0,n=0;do{if(!i)break;var o=L(a,i),p=o[0],q=o[1]-o[2]-g*p;(p||q)&&K(a,i)&&(m+=q,n+=p);var r=i.parentNode;i=r&&r.nodeType===Node.DOCUMENT_FRAGMENT_NODE?r.host:r}while(!j&&i!==document.body||j&&(b.contains(i)||b===i));return l&&(e&&1>Math.abs(m)||!e&&h>m)?k=!0:!l&&(e&&1>Math.abs(n)||!e&&-h>n)&&(k=!0),k},N=function(a){return"changedTouches"in a?[a.changedTouches[0].clientX,a.changedTouches[0].clientY]:[0,0]},O=function(a){return[a.deltaX,a.deltaY]},P=function(a){return a&&"current"in a?a.current:a},Q=0,R=[];let S=(d=function(a){var b=h.useRef([]),c=h.useRef([0,0]),d=h.useRef(),e=h.useState(Q++)[0],f=h.useState(u)[0],g=h.useRef(a);h.useEffect(function(){g.current=a},[a]),h.useEffect(function(){if(a.inert){document.body.classList.add("block-interactivity-".concat(e));var b=(function(a,b,c){if(c||2==arguments.length)for(var d,e=0,f=b.length;eMath.abs(j)?"h":"v";if("touches"in a&&"h"===l&&"range"===k.type)return!1;var m=J(l,k);if(!m)return!0;if(m?e=l:(e="v"===l?"h":"v",m=J(l,k)),!m)return!1;if(!d.current&&"changedTouches"in a&&(i||j)&&(d.current=e),!e)return!0;var n=d.current||e;return M(n,b,a,"h"===n?i:j,!0)},[]),j=h.useCallback(function(a){if(R.length&&R[R.length-1]===f){var c="deltaY"in a?O(a):N(a),d=b.current.filter(function(b){var d;return b.name===a.type&&(b.target===a.target||a.target===b.shadowParent)&&(d=b.delta,d[0]===c[0]&&d[1]===c[1])})[0];if(d&&d.should){a.cancelable&&a.preventDefault();return}if(!d){var e=(g.current.shards||[]).map(P).filter(Boolean).filter(function(b){return b.contains(a.target)});(e.length>0?i(a,e[0]):!g.current.noIsolation)&&a.cancelable&&a.preventDefault()}}},[]),k=h.useCallback(function(a,c,d,e){var f={name:a,delta:c,target:d,should:e,shadowParent:function(a){for(var b=null;null!==a;)a instanceof ShadowRoot&&(b=a.host,a=a.host),a=a.parentNode;return b}(d)};b.current.push(f),setTimeout(function(){b.current=b.current.filter(function(a){return a!==f})},1)},[]),l=h.useCallback(function(a){c.current=N(a),d.current=void 0},[]),m=h.useCallback(function(b){k(b.type,O(b),b.target,i(b,a.lockRef.current))},[]),n=h.useCallback(function(b){k(b.type,N(b),b.target,i(b,a.lockRef.current))},[]);h.useEffect(function(){return R.push(f),a.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:n}),document.addEventListener("wheel",j,H),document.addEventListener("touchmove",j,H),document.addEventListener("touchstart",l,H),function(){R=R.filter(function(a){return a!==f}),document.removeEventListener("wheel",j,H),document.removeEventListener("touchmove",j,H),document.removeEventListener("touchstart",l,H)}},[]);var o=a.removeScrollBar,p=a.inert;return h.createElement(h.Fragment,null,p?h.createElement(f,{styles:"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")}):null,o?h.createElement(E,{noRelative:a.noRelative,gapMode:a.gapMode}):null)},o.useMedium(d),r);var T=h.forwardRef(function(a,b){return h.createElement(q,f({},a,{ref:b,sideCar:S}))});T.classNames=q.classNames;let U=T},36867:(a,b,c)=>{"use strict";var d=c(5987);function e(a){d.call(this,a)}c(20452).inherits(e,d),e.prototype.readData=function(a){if(this.checkOffset(a),0===a)return new Uint8Array(0);var b=this.data.subarray(this.zero+this.index,this.zero+this.index+a);return this.index+=a,b},a.exports=e},38111:(a,b,c)=>{"use strict";var d=c(20452),e=c(9926),f=c(5987),g=c(82955),h=c(48204),i=c(36867);a.exports=function(a){var b=d.getTypeOf(a);return(d.checkSupport(b),"string"!==b||e.uint8array)?"nodebuffer"===b?new h(a):e.uint8array?new i(d.transformTo("uint8array",a)):new f(d.transformTo("array",a)):new g(a)}},38590:(a,b,c)=>{"use strict";var d=c(20452);function e(a){this.data=a,this.length=a.length,this.index=0,this.zero=0}e.prototype={checkOffset:function(a){this.checkIndex(this.index+a)},checkIndex:function(a){if(this.length=this.index;b--)c=(c<<8)+this.byteAt(b);return this.index+=a,c},readString:function(a){return d.transformTo("string",this.readData(a))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var a=this.readInt(4);return new Date(Date.UTC((a>>25&127)+1980,(a>>21&15)-1,a>>16&31,a>>11&31,a>>5&63,(31&a)<<1))}},a.exports=e},39193:(a,b,c)=>{"use strict";function d(){if(!(this instanceof d))return new d;if(arguments.length)throw Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var a=new d;for(var b in this)"function"!=typeof this[b]&&(a[b]=this[b]);return a}}d.prototype=c(61494),d.prototype.loadAsync=c(2229),d.support=c(9926),d.defaults=c(5887),d.version="3.10.1",d.loadAsync=function(a,b){return new d().loadAsync(a,b)},d.external=c(51238),a.exports=d},39265:a=>{"use strict";"undefined"!=typeof process&&process.version&&0!==process.version.indexOf("v0.")&&(0!==process.version.indexOf("v1.")||0===process.version.indexOf("v1.8."))?a.exports=process:a.exports={nextTick:function(a,b,c,d){if("function"!=typeof a)throw TypeError('"callback" argument must be a function');var e,f,g=arguments.length;switch(g){case 0:case 1:return process.nextTick(a);case 2:return process.nextTick(function(){a.call(null,b)});case 3:return process.nextTick(function(){a.call(null,b,c)});case 4:return process.nextTick(function(){a.call(null,b,c,d)});default:for(e=Array(g-1),f=0;f{"use strict";c.d(b,{UC:()=>aI,YJ:()=>aK,In:()=>aG,q7:()=>aM,VF:()=>aO,p4:()=>aN,JU:()=>aL,ZL:()=>aH,bL:()=>aD,wn:()=>aQ,PP:()=>aP,l9:()=>aE,WT:()=>aF,LM:()=>aJ});var d=c(38301),e=c(23312);function f(a,[b,c]){return Math.min(c,Math.max(b,a))}var g=c(87868),h=c(825),i=c(92808),j=c(2332),k=c(10498),l=c(7412),m=c(70904),n=c(69998),o=c(75656),p=c(25122),q=c(61611),r=c(6406),s=c(96425),t=c(71700),u=c(11720),v=c(68829),w=c(10350),x=c(85009),y=c(61225),z=c(36409),A=c(21124),B=[" ","Enter","ArrowUp","ArrowDown"],C=[" ","Enter"],D="Select",[E,F,G]=(0,h.N)(D),[H,I]=(0,j.A)(D,[G,p.Bk]),J=(0,p.Bk)(),[K,L]=H(D),[M,N]=H(D),O=a=>{let{__scopeSelect:b,children:c,open:e,defaultOpen:f,onOpenChange:g,value:h,defaultValue:i,onValueChange:j,dir:l,name:m,autoComplete:n,disabled:q,required:r,form:s}=a,t=J(b),[v,w]=d.useState(null),[x,y]=d.useState(null),[z,B]=d.useState(!1),C=(0,k.jH)(l),[F,G]=(0,u.i)({prop:e,defaultProp:f??!1,onChange:g,caller:D}),[H,I]=(0,u.i)({prop:h,defaultProp:i,onChange:j,caller:D}),L=d.useRef(null),N=!v||s||!!v.closest("form"),[O,P]=d.useState(new Set),Q=Array.from(O).map(a=>a.props.value).join(";");return(0,A.jsx)(p.bL,{...t,children:(0,A.jsxs)(K,{required:r,scope:b,trigger:v,onTriggerChange:w,valueNode:x,onValueNodeChange:y,valueNodeHasChildren:z,onValueNodeHasChildrenChange:B,contentId:(0,o.B)(),value:H,onValueChange:I,open:F,onOpenChange:G,dir:C,triggerPointerDownPosRef:L,disabled:q,children:[(0,A.jsx)(E.Provider,{scope:b,children:(0,A.jsx)(M,{scope:a.__scopeSelect,onNativeOptionAdd:d.useCallback(a=>{P(b=>new Set(b).add(a))},[]),onNativeOptionRemove:d.useCallback(a=>{P(b=>{let c=new Set(b);return c.delete(a),c})},[]),children:c})}),N?(0,A.jsxs)(az,{"aria-hidden":!0,required:r,tabIndex:-1,name:m,autoComplete:n,value:H,onChange:a=>I(a.target.value),disabled:q,form:s,children:[void 0===H?(0,A.jsx)("option",{value:""}):null,Array.from(O)]},Q):null]})})};O.displayName=D;var P="SelectTrigger",Q=d.forwardRef((a,b)=>{let{__scopeSelect:c,disabled:e=!1,...f}=a,h=J(c),j=L(P,c),k=j.disabled||e,l=(0,i.s)(b,j.onTriggerChange),m=F(c),n=d.useRef("touch"),[o,q,s]=aB(a=>{let b=m().filter(a=>!a.disabled),c=b.find(a=>a.value===j.value),d=aC(b,a,c);void 0!==d&&j.onValueChange(d.value)}),t=a=>{k||(j.onOpenChange(!0),s()),a&&(j.triggerPointerDownPosRef.current={x:Math.round(a.pageX),y:Math.round(a.pageY)})};return(0,A.jsx)(p.Mz,{asChild:!0,...h,children:(0,A.jsx)(r.sG.button,{type:"button",role:"combobox","aria-controls":j.contentId,"aria-expanded":j.open,"aria-required":j.required,"aria-autocomplete":"none",dir:j.dir,"data-state":j.open?"open":"closed",disabled:k,"data-disabled":k?"":void 0,"data-placeholder":aA(j.value)?"":void 0,...f,ref:l,onClick:(0,g.mK)(f.onClick,a=>{a.currentTarget.focus(),"mouse"!==n.current&&t(a)}),onPointerDown:(0,g.mK)(f.onPointerDown,a=>{n.current=a.pointerType;let b=a.target;b.hasPointerCapture(a.pointerId)&&b.releasePointerCapture(a.pointerId),0===a.button&&!1===a.ctrlKey&&"mouse"===a.pointerType&&(t(a),a.preventDefault())}),onKeyDown:(0,g.mK)(f.onKeyDown,a=>{let b=""!==o.current;a.ctrlKey||a.altKey||a.metaKey||1!==a.key.length||q(a.key),(!b||" "!==a.key)&&B.includes(a.key)&&(t(),a.preventDefault())})})})});Q.displayName=P;var R="SelectValue",S=d.forwardRef((a,b)=>{let{__scopeSelect:c,className:d,style:e,children:f,placeholder:g="",...h}=a,j=L(R,c),{onValueNodeHasChildrenChange:k}=j,l=void 0!==f,m=(0,i.s)(b,j.onValueNodeChange);return(0,v.N)(()=>{k(l)},[k,l]),(0,A.jsx)(r.sG.span,{...h,ref:m,style:{pointerEvents:"none"},children:aA(j.value)?(0,A.jsx)(A.Fragment,{children:g}):f})});S.displayName=R;var T=d.forwardRef((a,b)=>{let{__scopeSelect:c,children:d,...e}=a;return(0,A.jsx)(r.sG.span,{"aria-hidden":!0,...e,ref:b,children:d||"▼"})});T.displayName="SelectIcon";var U=a=>(0,A.jsx)(q.Z,{asChild:!0,...a});U.displayName="SelectPortal";var V="SelectContent",W=d.forwardRef((a,b)=>{let c=L(V,a.__scopeSelect),[f,g]=d.useState();return((0,v.N)(()=>{g(new DocumentFragment)},[]),c.open)?(0,A.jsx)($,{...a,ref:b}):f?e.createPortal((0,A.jsx)(X,{scope:a.__scopeSelect,children:(0,A.jsx)(E.Slot,{scope:a.__scopeSelect,children:(0,A.jsx)("div",{children:a.children})})}),f):null});W.displayName=V;var[X,Y]=H(V),Z=(0,s.TL)("SelectContent.RemoveScroll"),$=d.forwardRef((a,b)=>{let{__scopeSelect:c,position:e="item-aligned",onCloseAutoFocus:f,onEscapeKeyDown:h,onPointerDownOutside:j,side:k,sideOffset:o,align:p,alignOffset:q,arrowPadding:r,collisionBoundary:s,collisionPadding:t,sticky:u,hideWhenDetached:v,avoidCollisions:w,...x}=a,B=L(V,c),[C,D]=d.useState(null),[E,G]=d.useState(null),H=(0,i.s)(b,a=>D(a)),[I,J]=d.useState(null),[K,M]=d.useState(null),N=F(c),[O,P]=d.useState(!1),Q=d.useRef(!1);d.useEffect(()=>{if(C)return(0,y.Eq)(C)},[C]),(0,m.Oh)();let R=d.useCallback(a=>{let[b,...c]=N().map(a=>a.ref.current),[d]=c.slice(-1),e=document.activeElement;for(let c of a)if(c===e||(c?.scrollIntoView({block:"nearest"}),c===b&&E&&(E.scrollTop=0),c===d&&E&&(E.scrollTop=E.scrollHeight),c?.focus(),document.activeElement!==e))return},[N,E]),S=d.useCallback(()=>R([I,C]),[R,I,C]);d.useEffect(()=>{O&&S()},[O,S]);let{onOpenChange:T,triggerPointerDownPosRef:U}=B;d.useEffect(()=>{if(C){let a={x:0,y:0},b=b=>{a={x:Math.abs(Math.round(b.pageX)-(U.current?.x??0)),y:Math.abs(Math.round(b.pageY)-(U.current?.y??0))}},c=c=>{a.x<=10&&a.y<=10?c.preventDefault():C.contains(c.target)||T(!1),document.removeEventListener("pointermove",b),U.current=null};return null!==U.current&&(document.addEventListener("pointermove",b),document.addEventListener("pointerup",c,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",b),document.removeEventListener("pointerup",c,{capture:!0})}}},[C,T,U]),d.useEffect(()=>{let a=()=>T(!1);return window.addEventListener("blur",a),window.addEventListener("resize",a),()=>{window.removeEventListener("blur",a),window.removeEventListener("resize",a)}},[T]);let[W,Y]=aB(a=>{let b=N().filter(a=>!a.disabled),c=b.find(a=>a.ref.current===document.activeElement),d=aC(b,a,c);d&&setTimeout(()=>d.ref.current.focus())}),$=d.useCallback((a,b,c)=>{let d=!Q.current&&!c;(void 0!==B.value&&B.value===b||d)&&(J(a),d&&(Q.current=!0))},[B.value]),ab=d.useCallback(()=>C?.focus(),[C]),ac=d.useCallback((a,b,c)=>{let d=!Q.current&&!c;(void 0!==B.value&&B.value===b||d)&&M(a)},[B.value]),ad="popper"===e?aa:_,ae=ad===aa?{side:k,sideOffset:o,align:p,alignOffset:q,arrowPadding:r,collisionBoundary:s,collisionPadding:t,sticky:u,hideWhenDetached:v,avoidCollisions:w}:{};return(0,A.jsx)(X,{scope:c,content:C,viewport:E,onViewportChange:G,itemRefCallback:$,selectedItem:I,onItemLeave:ab,itemTextRefCallback:ac,focusSelectedItem:S,selectedItemText:K,position:e,isPositioned:O,searchRef:W,children:(0,A.jsx)(z.A,{as:Z,allowPinchZoom:!0,children:(0,A.jsx)(n.n,{asChild:!0,trapped:B.open,onMountAutoFocus:a=>{a.preventDefault()},onUnmountAutoFocus:(0,g.mK)(f,a=>{B.trigger?.focus({preventScroll:!0}),a.preventDefault()}),children:(0,A.jsx)(l.qW,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:h,onPointerDownOutside:j,onFocusOutside:a=>a.preventDefault(),onDismiss:()=>B.onOpenChange(!1),children:(0,A.jsx)(ad,{role:"listbox",id:B.contentId,"data-state":B.open?"open":"closed",dir:B.dir,onContextMenu:a=>a.preventDefault(),...x,...ae,onPlaced:()=>P(!0),ref:H,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:(0,g.mK)(x.onKeyDown,a=>{let b=a.ctrlKey||a.altKey||a.metaKey;if("Tab"===a.key&&a.preventDefault(),b||1!==a.key.length||Y(a.key),["ArrowUp","ArrowDown","Home","End"].includes(a.key)){let b=N().filter(a=>!a.disabled).map(a=>a.ref.current);if(["ArrowUp","End"].includes(a.key)&&(b=b.slice().reverse()),["ArrowUp","ArrowDown"].includes(a.key)){let c=a.target,d=b.indexOf(c);b=b.slice(d+1)}setTimeout(()=>R(b)),a.preventDefault()}})})})})})})});$.displayName="SelectContentImpl";var _=d.forwardRef((a,b)=>{let{__scopeSelect:c,onPlaced:e,...g}=a,h=L(V,c),j=Y(V,c),[k,l]=d.useState(null),[m,n]=d.useState(null),o=(0,i.s)(b,a=>n(a)),p=F(c),q=d.useRef(!1),s=d.useRef(!0),{viewport:t,selectedItem:u,selectedItemText:w,focusSelectedItem:x}=j,y=d.useCallback(()=>{if(h.trigger&&h.valueNode&&k&&m&&t&&u&&w){let a=h.trigger.getBoundingClientRect(),b=m.getBoundingClientRect(),c=h.valueNode.getBoundingClientRect(),d=w.getBoundingClientRect();if("rtl"!==h.dir){let e=d.left-b.left,g=c.left-e,h=a.left-g,i=a.width+h,j=Math.max(i,b.width),l=f(g,[10,Math.max(10,window.innerWidth-10-j)]);k.style.minWidth=i+"px",k.style.left=l+"px"}else{let e=b.right-d.right,g=window.innerWidth-c.right-e,h=window.innerWidth-a.right-g,i=a.width+h,j=Math.max(i,b.width),l=f(g,[10,Math.max(10,window.innerWidth-10-j)]);k.style.minWidth=i+"px",k.style.right=l+"px"}let g=p(),i=window.innerHeight-20,j=t.scrollHeight,l=window.getComputedStyle(m),n=parseInt(l.borderTopWidth,10),o=parseInt(l.paddingTop,10),r=parseInt(l.borderBottomWidth,10),s=n+o+j+parseInt(l.paddingBottom,10)+r,v=Math.min(5*u.offsetHeight,s),x=window.getComputedStyle(t),y=parseInt(x.paddingTop,10),z=parseInt(x.paddingBottom,10),A=a.top+a.height/2-10,B=u.offsetHeight/2,C=n+o+(u.offsetTop+B);if(C<=A){let a=g.length>0&&u===g[g.length-1].ref.current;k.style.bottom="0px";let b=Math.max(i-A,B+(a?z:0)+(m.clientHeight-t.offsetTop-t.offsetHeight)+r);k.style.height=C+b+"px"}else{let a=g.length>0&&u===g[0].ref.current;k.style.top="0px";let b=Math.max(A,n+t.offsetTop+(a?y:0)+B);k.style.height=b+(s-C)+"px",t.scrollTop=C-A+t.offsetTop}k.style.margin="10px 0",k.style.minHeight=v+"px",k.style.maxHeight=i+"px",e?.(),requestAnimationFrame(()=>q.current=!0)}},[p,h.trigger,h.valueNode,k,m,t,u,w,h.dir,e]);(0,v.N)(()=>y(),[y]);let[z,B]=d.useState();(0,v.N)(()=>{m&&B(window.getComputedStyle(m).zIndex)},[m]);let C=d.useCallback(a=>{a&&!0===s.current&&(y(),x?.(),s.current=!1)},[y,x]);return(0,A.jsx)(ab,{scope:c,contentWrapper:k,shouldExpandOnScrollRef:q,onScrollButtonChange:C,children:(0,A.jsx)("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:z},children:(0,A.jsx)(r.sG.div,{...g,ref:o,style:{boxSizing:"border-box",maxHeight:"100%",...g.style}})})})});_.displayName="SelectItemAlignedPosition";var aa=d.forwardRef((a,b)=>{let{__scopeSelect:c,align:d="start",collisionPadding:e=10,...f}=a,g=J(c);return(0,A.jsx)(p.UC,{...g,...f,ref:b,align:d,collisionPadding:e,style:{boxSizing:"border-box",...f.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});aa.displayName="SelectPopperPosition";var[ab,ac]=H(V,{}),ad="SelectViewport",ae=d.forwardRef((a,b)=>{let{__scopeSelect:c,nonce:e,...f}=a,h=Y(ad,c),j=ac(ad,c),k=(0,i.s)(b,h.onViewportChange),l=d.useRef(0);return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:e}),(0,A.jsx)(E.Slot,{scope:c,children:(0,A.jsx)(r.sG.div,{"data-radix-select-viewport":"",role:"presentation",...f,ref:k,style:{position:"relative",flex:1,overflow:"hidden auto",...f.style},onScroll:(0,g.mK)(f.onScroll,a=>{let b=a.currentTarget,{contentWrapper:c,shouldExpandOnScrollRef:d}=j;if(d?.current&&c){let a=Math.abs(l.current-b.scrollTop);if(a>0){let d=window.innerHeight-20,e=Math.max(parseFloat(c.style.minHeight),parseFloat(c.style.height));if(e0?h:0,c.style.justifyContent="flex-end")}}}l.current=b.scrollTop})})})]})});ae.displayName=ad;var af="SelectGroup",[ag,ah]=H(af),ai=d.forwardRef((a,b)=>{let{__scopeSelect:c,...d}=a,e=(0,o.B)();return(0,A.jsx)(ag,{scope:c,id:e,children:(0,A.jsx)(r.sG.div,{role:"group","aria-labelledby":e,...d,ref:b})})});ai.displayName=af;var aj="SelectLabel",ak=d.forwardRef((a,b)=>{let{__scopeSelect:c,...d}=a,e=ah(aj,c);return(0,A.jsx)(r.sG.div,{id:e.id,...d,ref:b})});ak.displayName=aj;var al="SelectItem",[am,an]=H(al),ao=d.forwardRef((a,b)=>{let{__scopeSelect:c,value:e,disabled:f=!1,textValue:h,...j}=a,k=L(al,c),l=Y(al,c),m=k.value===e,[n,p]=d.useState(h??""),[q,s]=d.useState(!1),t=(0,i.s)(b,a=>l.itemRefCallback?.(a,e,f)),u=(0,o.B)(),v=d.useRef("touch"),w=()=>{f||(k.onValueChange(e),k.onOpenChange(!1))};if(""===e)throw Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,A.jsx)(am,{scope:c,value:e,disabled:f,textId:u,isSelected:m,onItemTextChange:d.useCallback(a=>{p(b=>b||(a?.textContent??"").trim())},[]),children:(0,A.jsx)(E.ItemSlot,{scope:c,value:e,disabled:f,textValue:n,children:(0,A.jsx)(r.sG.div,{role:"option","aria-labelledby":u,"data-highlighted":q?"":void 0,"aria-selected":m&&q,"data-state":m?"checked":"unchecked","aria-disabled":f||void 0,"data-disabled":f?"":void 0,tabIndex:f?void 0:-1,...j,ref:t,onFocus:(0,g.mK)(j.onFocus,()=>s(!0)),onBlur:(0,g.mK)(j.onBlur,()=>s(!1)),onClick:(0,g.mK)(j.onClick,()=>{"mouse"!==v.current&&w()}),onPointerUp:(0,g.mK)(j.onPointerUp,()=>{"mouse"===v.current&&w()}),onPointerDown:(0,g.mK)(j.onPointerDown,a=>{v.current=a.pointerType}),onPointerMove:(0,g.mK)(j.onPointerMove,a=>{v.current=a.pointerType,f?l.onItemLeave?.():"mouse"===v.current&&a.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,g.mK)(j.onPointerLeave,a=>{a.currentTarget===document.activeElement&&l.onItemLeave?.()}),onKeyDown:(0,g.mK)(j.onKeyDown,a=>{(l.searchRef?.current===""||" "!==a.key)&&(C.includes(a.key)&&w()," "===a.key&&a.preventDefault())})})})})});ao.displayName=al;var ap="SelectItemText",aq=d.forwardRef((a,b)=>{let{__scopeSelect:c,className:f,style:g,...h}=a,j=L(ap,c),k=Y(ap,c),l=an(ap,c),m=N(ap,c),[n,o]=d.useState(null),p=(0,i.s)(b,a=>o(a),l.onItemTextChange,a=>k.itemTextRefCallback?.(a,l.value,l.disabled)),q=n?.textContent,s=d.useMemo(()=>(0,A.jsx)("option",{value:l.value,disabled:l.disabled,children:q},l.value),[l.disabled,l.value,q]),{onNativeOptionAdd:t,onNativeOptionRemove:u}=m;return(0,v.N)(()=>(t(s),()=>u(s)),[t,u,s]),(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(r.sG.span,{id:l.textId,...h,ref:p}),l.isSelected&&j.valueNode&&!j.valueNodeHasChildren?e.createPortal(h.children,j.valueNode):null]})});aq.displayName=ap;var ar="SelectItemIndicator",as=d.forwardRef((a,b)=>{let{__scopeSelect:c,...d}=a;return an(ar,c).isSelected?(0,A.jsx)(r.sG.span,{"aria-hidden":!0,...d,ref:b}):null});as.displayName=ar;var at="SelectScrollUpButton",au=d.forwardRef((a,b)=>{let c=Y(at,a.__scopeSelect),e=ac(at,a.__scopeSelect),[f,g]=d.useState(!1),h=(0,i.s)(b,e.onScrollButtonChange);return(0,v.N)(()=>{if(c.viewport&&c.isPositioned){let a=function(){g(b.scrollTop>0)},b=c.viewport;return a(),b.addEventListener("scroll",a),()=>b.removeEventListener("scroll",a)}},[c.viewport,c.isPositioned]),f?(0,A.jsx)(ax,{...a,ref:h,onAutoScroll:()=>{let{viewport:a,selectedItem:b}=c;a&&b&&(a.scrollTop=a.scrollTop-b.offsetHeight)}}):null});au.displayName=at;var av="SelectScrollDownButton",aw=d.forwardRef((a,b)=>{let c=Y(av,a.__scopeSelect),e=ac(av,a.__scopeSelect),[f,g]=d.useState(!1),h=(0,i.s)(b,e.onScrollButtonChange);return(0,v.N)(()=>{if(c.viewport&&c.isPositioned){let a=function(){let a=b.scrollHeight-b.clientHeight;g(Math.ceil(b.scrollTop)b.removeEventListener("scroll",a)}},[c.viewport,c.isPositioned]),f?(0,A.jsx)(ax,{...a,ref:h,onAutoScroll:()=>{let{viewport:a,selectedItem:b}=c;a&&b&&(a.scrollTop=a.scrollTop+b.offsetHeight)}}):null});aw.displayName=av;var ax=d.forwardRef((a,b)=>{let{__scopeSelect:c,onAutoScroll:e,...f}=a,h=Y("SelectScrollButton",c),i=d.useRef(null),j=F(c),k=d.useCallback(()=>{null!==i.current&&(window.clearInterval(i.current),i.current=null)},[]);return d.useEffect(()=>()=>k(),[k]),(0,v.N)(()=>{let a=j().find(a=>a.ref.current===document.activeElement);a?.ref.current?.scrollIntoView({block:"nearest"})},[j]),(0,A.jsx)(r.sG.div,{"aria-hidden":!0,...f,ref:b,style:{flexShrink:0,...f.style},onPointerDown:(0,g.mK)(f.onPointerDown,()=>{null===i.current&&(i.current=window.setInterval(e,50))}),onPointerMove:(0,g.mK)(f.onPointerMove,()=>{h.onItemLeave?.(),null===i.current&&(i.current=window.setInterval(e,50))}),onPointerLeave:(0,g.mK)(f.onPointerLeave,()=>{k()})})});d.forwardRef((a,b)=>{let{__scopeSelect:c,...d}=a;return(0,A.jsx)(r.sG.div,{"aria-hidden":!0,...d,ref:b})}).displayName="SelectSeparator";var ay="SelectArrow";d.forwardRef((a,b)=>{let{__scopeSelect:c,...d}=a,e=J(c),f=L(ay,c),g=Y(ay,c);return f.open&&"popper"===g.position?(0,A.jsx)(p.i3,{...e,...d,ref:b}):null}).displayName=ay;var az=d.forwardRef(({__scopeSelect:a,value:b,...c},e)=>{let f=d.useRef(null),g=(0,i.s)(e,f),h=(0,w.Z)(b);return d.useEffect(()=>{let a=f.current;if(!a)return;let c=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(h!==b&&c){let d=new Event("change",{bubbles:!0});c.call(a,b),a.dispatchEvent(d)}},[h,b]),(0,A.jsx)(r.sG.select,{...c,style:{...x.Qg,...c.style},ref:g,defaultValue:b})});function aA(a){return""===a||void 0===a}function aB(a){let b=(0,t.c)(a),c=d.useRef(""),e=d.useRef(0),f=d.useCallback(a=>{let d=c.current+a;b(d),function a(b){c.current=b,window.clearTimeout(e.current),""!==b&&(e.current=window.setTimeout(()=>a(""),1e3))}(d)},[b]),g=d.useCallback(()=>{c.current="",window.clearTimeout(e.current)},[]);return d.useEffect(()=>()=>window.clearTimeout(e.current),[]),[c,f,g]}function aC(a,b,c){var d,e;let f=b.length>1&&Array.from(b).every(a=>a===b[0])?b[0]:b,g=c?a.indexOf(c):-1,h=(d=a,e=Math.max(g,0),d.map((a,b)=>d[(e+b)%d.length]));1===f.length&&(h=h.filter(a=>a!==c));let i=h.find(a=>a.textValue.toLowerCase().startsWith(f.toLowerCase()));return i!==c?i:void 0}az.displayName="SelectBubbleInput";var aD=O,aE=Q,aF=S,aG=T,aH=U,aI=W,aJ=ae,aK=ai,aL=ak,aM=ao,aN=aq,aO=as,aP=au,aQ=aw},42378:(a,b,c)=>{"use strict";var d=c(91330);c.o(d,"useRouter")&&c.d(b,{useRouter:function(){return d.useRouter}}),c.o(d,"useSearchParams")&&c.d(b,{useSearchParams:function(){return d.useSearchParams}})},43249:(a,b,c)=>{"use strict";function d(){for(var a,b,c=0,d="",e=arguments.length;cd})},43613:(a,b)=>{"use strict";var c="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;b.assign=function(a){for(var b=Array.prototype.slice.call(arguments,1);b.length;){var c=b.shift();if(c){if("object"!=typeof c)throw TypeError(c+"must be non-object");for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])}}return a},b.shrinkBuf=function(a,b){return a.length===b?a:a.subarray?a.subarray(0,b):(a.length=b,a)};var d={arraySet:function(a,b,c,d,e){if(b.subarray&&a.subarray)return void a.set(b.subarray(c,c+d),e);for(var f=0;f{"use strict";c.d(b,{ox:()=>u,ir:()=>v}),c(21820),c(33873),c(79748),c(27910),c(77725),c(29021);var d="https://huggingface.co";async function e(a,b){let c=new f(a.url,a.status,a.headers.get("X-Request-Id")??b?.requestId);c.message=`Api error with status ${c.statusCode}${b?.message?`. ${b.message}`:""}`;let d=[`URL: ${c.url}`,c.requestId?`Request ID: ${c.requestId}`:void 0].filter(Boolean).join(". ");if(a.headers.get("Content-Type")?.startsWith("application/json")){let b=await a.json();c.message=b.error||b.message||c.message,b.error_description&&(c.message=c.message?c.message+`: ${b.error_description}`:b.error_description),c.data=b}else c.data={message:await a.text()};throw c.message+=`. ${d}`,c}var f=class extends Error{statusCode;url;requestId;data;constructor(a,b,c,d){super(d),this.statusCode=b,this.requestId=c,this.url=a}};function g(a){if(!a.startsWith("hf_"))throw TypeError("Your access token must start with 'hf_'")}function h(a,b){return 0|a[b++]|a[b++]<<8|a[b++]<<16|a[b++]<<24}"undefined"!=typeof window&&window.document,"object"==typeof self&&self.constructor&&self.constructor.name,new Promise(a=>{}),j(5242880),function(){try{new Uint32Array(65536)}catch(b){let a=Array(65536);for(let b=0;b<65536;b++)a[b]=0;return a}}();var i={4:65536,5:262144,6:1048576,7:4194304};function j(a){return new Uint8Array(a)}function k(a,b){let c,d;return void 0===b&&(b=function(a){let b=0;if(0x184d2204!==h(a,0))throw Error("invalid magic number");b+=4;let c=a[b++];if((192&c)!=64)throw Error("incompatible descriptor version "+(192&c));let d=(16&c)!=0,e=a[b++]>>4&7;if(void 0===i[e])throw Error("invalid block size "+e);let f=i[e];if((8&c)!=0){var g;return g=b,0|a[g++]|a[g++]<<8|a[g++]<<16|a[g++]<<24|a[g++]<<32|a[g++]<<40|a[g++]<<48|a[g++]<<56}b++;let j=0;for(;;){let c=h(a,b);if(b+=4,0x80000000&c?(c&=0x7fffffff,j+=c):c>0&&(j+=f),0===c)return j;d&&(b+=4),b+=c}}(a)),(d=function(a,b){let c,d,e=0,f=0;if(0x184d2204!==h(a,0))throw Error("invalid magic number");if(e+=4,(192&(d=a[e++]))!=64)throw Error("incompatible descriptor version");if(c=(16&d)!=0,void 0===i[a[e++]>>4&7])throw Error("invalid block size");for((8&d)!=0&&(e+=8),e++;;){var g;if(g=h(a,e),e+=4,0===g)break;if(c&&(e+=4),(0x80000000&g)!=0){g&=0x7fffffff;for(let c=0;c>4;if(l>0){if(15===l)for(;l+=a[c],255===a[c++];);for(i=c+l;c=h)break;if(f=15&d,g=a[c++]|a[c++]<<8,15===f)for(;f+=a[c],255===a[c++];);if(f+=4,k&&1===g)b.fill(0|b[e-1],e,e+f),e+=f;else if(k&&g>f&&f>31)b.copyWithin(e,e-g,e-g+f),e+=f;else for(i=(j=e-g)+f;je.start&&c.push({index:d,range:e}),null!==e.data)throw Error("Overlapping range already has data")}if(0===c.length){this.ranges.push({start:a,end:b,refCount:1,data:null}),this.ranges.sort((a,b)=>a.start-b.start);return}let d=[],e=a;for(let a=0;ab&&d.push({start:b,end:f.end,refCount:f.refCount,data:null}),e=Math.max(e,f.end)}ea.start-b.start)}remove(a,b){if(b<=a)throw TypeError("End must be greater than start");let c=[];for(let d=0;de.start&&c.push({index:d,range:e})}if(0===c.length)throw Error("No ranges found to remove");if(a!==c[0].range.start||b!==c[c.length-1].range.end)throw Error("Range boundaries must match existing boundaries");for(let a=0;aa.refCount>0)}getRanges(a,b){if(b<=a)throw TypeError("End must be greater than start");return this.ranges.filter(c=>ac.start)}getAllRanges(){return[...this.ranges]}},m={0:"None",1:"LZ4",2:"ByteGroupingLZ4"},n=class extends Blob{fetch;accessToken;refreshUrl;reconstructionUrl;hash;start=0;end=0;internalLogging=!1;reconstructionInfo;listener;constructor(a){super([]),this.fetch=a.fetch??fetch.bind(globalThis),this.accessToken=function(a){return a.accessToken?(g(a.accessToken),a.accessToken):a.credentials?.accessToken?(g(a.credentials.accessToken),a.credentials.accessToken):void 0}(a),this.refreshUrl=a.refreshUrl,this.end=a.size,this.reconstructionUrl=a.reconstructionUrl,this.hash=a.hash,this.listener=a.listener,this.internalLogging=a.internalLogging??!1,this.refreshUrl}get size(){return this.end-this.start}#b(){let a=new n({fetch:this.fetch,hash:this.hash,refreshUrl:this.refreshUrl,reconstructionUrl:this.reconstructionUrl,size:this.size});return a.accessToken=this.accessToken,a.start=this.start,a.end=this.end,a.reconstructionInfo=this.reconstructionInfo,a.listener=this.listener,a.internalLogging=this.internalLogging,a}slice(a=0,b=this.size){(a<0||b<0)&&TypeError("Unsupported negative start/end on XetBlob.slice");let c=this.#b();return c.start=this.start+a,c.end=Math.min(this.start+b,this.end),(c.start!==this.start||c.end!==this.end)&&(c.reconstructionInfo=void 0),c}#c;#d(){return this.#c||(this.#c=(async()=>{let a=await q(this.accessToken,this.fetch,this.refreshUrl),b=await this.fetch(this.reconstructionUrl??`${a.casUrl}/v1/reconstructions/${this.hash}`,{headers:{Authorization:`Bearer ${a.accessToken}`,Range:`bytes=${this.start}-${this.end-1}`}});if(!b.ok)throw await e(b);return this.reconstructionInfo=await b.json(),this.reconstructionInfo})().finally(()=>this.#c=void 0)),this.#c}async #e(){this.reconstructionInfo||await this.#d();let a=new Map;if(!this.reconstructionInfo)throw Error("Failed to load reconstruction info");for(let b of this.reconstructionInfo.terms){let c=a.get(b.hash);c||(c=new l,a.set(b.hash,c)),c.add(b.range.start,b.range.end)}let b=this.listener,c=this.internalLogging?(...a)=>console.log(...a):()=>{},d=async function*(d,f,g,h){let i=0,j=d.offset_into_first_range;for(let l of d.terms){let n;if(i>=g)break;let o=a.get(l.hash);if(!o)throw Error(`Failed to find range list for term ${l.hash}`);{let a=o.getRanges(l.range.start,l.range.end);if(a.every(a=>a.data)){c("all data available for term",l.hash,j);c:for(let c of a)for(let a of c.data){if(j){let b=Math.min(j,a.byteLength);if(a=a.slice(b),j-=b,!a.byteLength)continue}if(a.byteLength>g-i&&(a=a.slice(0,g-i)),i+=a.byteLength,yield c.refCount>1?a.slice():a,b?.({event:"progress",progress:{read:i,total:g}}),i>=g)break c}o.remove(l.range.start,l.range.end);continue}}let p=d.fetch_info[l.hash].find(a=>a.range.start<=l.range.start&&a.range.end>=l.range.end);if(!p)throw Error(`Failed to find fetch info for term ${l.hash} and range ${l.range.start}-${l.range.end}`);c("term",l),c("fetchinfo",p),c("readBytesToSkip",j);let q=await f(p.url,{headers:{Range:`bytes=${p.url_range.start}-${p.url_range.end}`}});if(403===q.status&&(d=await h(),q=await f(p.url,{headers:{Range:`bytes=${p.url_range.start}-${p.url_range.end}`}})),!q.ok)throw await e(q);c("expected content length",q.headers.get("content-length"),"range",p.url_range,q.headers.get("content-range"));let r=q.body?.getReader();if(!r)throw Error("Failed to get reader from response body");let s=!1,t=p.range.start,u=o.getRanges(p.range.start,p.range.end),v=0;d:for(;!s&&i=1),e=d+b+ +(c>=2),f=e+b+ +(3==c),g=new Uint8Array(a.byteLength);for(let b=0,c=0;bt>=a.start&&t=l.range.start&&t=p&&(h.data??=[],h.data.push(f),q=!0),o){if(j){let a=Math.min(j,f.byteLength);f=f.slice(j),j-=a}f.byteLength>g-i&&(f=f.slice(0,g-i)),f.byteLength&&(c("yield",f.byteLength,"bytes",a.value.byteLength,"total read",i,q),i+=f.byteLength,yield q?f.slice():f,b?.({event:"progress",progress:{read:i,total:g}}))}t++,a.value=a.value.slice(e.compressed_length)}}if(s&&ib.pipeThrough(a)).catch(b=>a.writable.abort(b.message)),a.readable}},o=new Map,p=new Map;async function q(a,b,c){var d;let e=JSON.stringify([(d={refreshUrl:c,initialAccessToken:a}).refreshUrl,d.initialAccessToken]),f=p.get(e);if(f&&f.expiresAt>new Date(Date.now()+6e4))return{accessToken:f.accessToken,casUrl:f.casUrl};let g=o.get(e);if(g)return g;let h=(async()=>{let d=await b(c,{headers:{...a?{Authorization:`Bearer ${a}`}:{}}});if(!d.ok)throw Error(`Failed to get JWT token: ${d.status} ${await d.text()}`);let f=await d.json(),g={accessToken:f.accessToken,expiresAt:new Date(1e3*f.exp),casUrl:f.casUrl};for(let[a,b]of(o.delete(e),p.entries()))if(b.expiresAt=1e3){let a=p.keys().next().value;a&&p.delete(a)}return p.set(e,g),{accessToken:f.accessToken,casUrl:f.casUrl}})();return o.set(e,h),h}var r=class extends Blob{static async create(a,b){let c=b?.fetch??fetch,d=await c(a,{method:"HEAD",...b?.accessToken&&{headers:{Authorization:`Bearer ${b.accessToken}`}}}),e=Number(d.headers.get("content-length")),f=d.headers.get("content-type")||"";return"bytes"!==d.headers.get("accept-ranges")||e<(b?.cacheBelow??1e6)?await (await c(a)).blob():new r(a,0,e,f,!0,c,b?.accessToken)}url;start;end;contentType;full;fetch;accessToken;constructor(a,b,c,d,e,f,g){super([]),this.url=a,this.start=b,this.end=c,this.contentType=d,this.full=e,this.fetch=f,this.accessToken=g}get size(){return this.end-this.start}get type(){return this.contentType}slice(a=0,b=this.size){return(a<0||b<0)&&TypeError("Unsupported negative start/end on WebBlob.slice"),new r(this.url,this.start+a,Math.min(this.start+b,this.end),this.contentType,0===a&&b===this.size&&this.full,this.fetch,this.accessToken)}async arrayBuffer(){return(await this.fetchRange()).arrayBuffer()}async text(){return(await this.fetchRange()).text()}stream(){let a=new TransformStream;return this.fetchRange().then(b=>b.body?.pipeThrough(a)).catch(b=>a.writable.abort(b.message)),a.readable}fetchRange(){let a=this.fetch;return this.full?a(this.url,{...this.accessToken&&{headers:{Authorization:`Bearer ${this.accessToken}`}}}).then(a=>a.ok?a:e(a)):a(this.url,{headers:{Range:`bytes=${this.start}-${this.end-1}`,...this.accessToken&&{Authorization:`Bearer ${this.accessToken}`}}}).then(a=>a.ok?a:e(a))}};"ff".repeat(32);var s=class extends Blob{originalBlob;spliceOperations;constructor(a,b){super(),this.originalBlob=a,this.spliceOperations=b}static create(a,b){for(let c of b)if(c.start<0||c.end<0||c.start>a.size||c.end>a.size||c.start>c.end)throw Error("Invalid start/end positions for SplicedBlob");let c=[...b].sort((a,b)=>a.start-b.start);for(let a=0;ac[a+1].start)throw Error("Overlapping splice operations are not supported");return new s(a,c)}get size(){let a=0,b=0;for(let c of this.spliceOperations)a+=c.end-c.start,b+=c.insert.size;return this.originalBlob.size-a+b}get type(){return this.originalBlob.type}slice(a=0,b=this.size){if(a<0||b<0)throw TypeError("Unsupported negative start/end on SplicedBlob.slice");if(a=Math.min(a,this.size),b=Math.min(b,this.size),a>=b)return new Blob([]);let c=this.segments,d=[0],e=0;for(let a of c)e+=a.size,d.push(e);let f=[];for(let e=0;e=b)break;let h=Math.max(0,a-g),i=Math.min(c[e].size,b-g);ha.arrayBuffer())),c=new Uint8Array(b.map(a=>a.byteLength).reduce((a,b)=>a+b,0)),d=0;for(let a of b)c.set(new Uint8Array(a),d),d+=a.byteLength;return c.buffer}async text(){let a=await this.arrayBuffer();return new TextDecoder().decode(a)}stream(){return new ReadableStream({start:async a=>{try{for(let b of this.segments){let c=b.stream().getReader();try{for(;;){let{done:b,value:d}=await c.read();if(b)break;a.enqueue(d)}}finally{c.releaseLock()}}a.close()}catch(b){a.error(b)}}})}get segments(){let a=[],b=0;for(let c of[...this.spliceOperations].sort((a,b)=>a.start-b.start))b0&&a.push(c.insert),b=c.end;return b{try{return new URL(c).searchParams}catch(a){throw Error("Failed to parse redirected URL: "+c)}})(),[g,h]=[f.get("error"),f.get("error_description")];if(g)throw Error(`${g}: ${h}`);let i=f.get("code"),j=a?.nonce??localStorage.getItem("huggingface.co:oauth:nonce");if(!i)throw Error("Missing oauth code from query parameters in redirected URL: "+c);if(!j)throw Error("Missing oauth nonce from localStorage");let k=a?.codeVerifier??localStorage.getItem("huggingface.co:oauth:code_verifier");if(!k)throw Error("Missing oauth code_verifier from localStorage");let l=f.get("state");if(!l)throw Error("Missing oauth state from query parameters in redirected URL");try{b=JSON.parse(l)}catch{throw Error("Invalid oauth state in redirected URL, unable to parse JSON: "+l)}if(b.nonce!==j)throw Error("Invalid oauth state in redirected URL");let m=a?.hubUrl||d,n=`${new URL(m).origin}/.well-known/openid-configuration`,o=await fetch(n,{headers:{Accept:"application/json"}});if(!o.ok)throw await e(o);let p=await o.json(),q=await fetch(p.token_endpoint,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({grant_type:"authorization_code",code:i,redirect_uri:b.redirectUri,code_verifier:k}).toString()});if(a?.codeVerifier||localStorage.removeItem("huggingface.co:oauth:code_verifier"),a?.nonce||localStorage.removeItem("huggingface.co:oauth:nonce"),!q.ok)throw await e(q);let r=await q.json(),s=new Date(Date.now()+1e3*r.expires_in),t=await fetch(p.userinfo_endpoint,{headers:{Authorization:`Bearer ${r.access_token}`}});if(!t.ok)throw await e(t);let u=await t.json();return{accessToken:r.access_token,accessTokenExpiresAt:s,userInfo:u,state:b.state,scope:r.scope}}async function u(a){if("undefined"==typeof window&&!a?.redirectedUrl)throw Error("oauthHandleRedirect is only available in the browser, unless you provide redirectedUrl");if("undefined"==typeof localStorage&&(!a?.nonce||!a?.codeVerifier))throw Error("oauthHandleRedirect requires localStorage to be available, unless you provide nonce and codeVerifier");let b=new URLSearchParams(a?.redirectedUrl??window.location.search);return b.has("error")?t(a):!!b.has("code")&&(localStorage.getItem("huggingface.co:oauth:nonce")?t(a):(console.warn("Missing oauth nonce from localStorage. This can happen when the user refreshes the page after logging in, without changing the URL."),!1))}async function v(a){if("undefined"==typeof window&&(!a?.redirectUrl||!a?.clientId))throw Error("oauthLogin is only available in the browser, unless you provide clientId and redirectUrl");if("undefined"==typeof localStorage&&!a?.localStorage)throw Error("oauthLogin requires localStorage to be available in the context, unless you provide a localStorage empty object as argument");let b=a?.hubUrl||d,c=`${new URL(b).origin}/.well-known/openid-configuration`,f=await fetch(c,{headers:{Accept:"application/json"}});if(!f.ok)throw await e(f);let g=await f.json(),h=globalThis.crypto.randomUUID(),i=globalThis.crypto.randomUUID()+globalThis.crypto.randomUUID();if(a?.localStorage){if(void 0!==a.localStorage.codeVerifier&&null!==a.localStorage.codeVerifier)throw Error("localStorage.codeVerifier must be initially set to null or undefined, and will be filled by oauthLoginUrl");if(void 0!==a.localStorage.nonce&&null!==a.localStorage.nonce)throw Error("localStorage.nonce must be initially set to null or undefined, and will be filled by oauthLoginUrl");a.localStorage.codeVerifier=i,a.localStorage.nonce=h}else localStorage.setItem("huggingface.co:oauth:nonce",h),localStorage.setItem("huggingface.co:oauth:code_verifier",i);let j=a?.redirectUrl||("undefined"!=typeof window?window.location.href:void 0);if(!j)throw Error("Missing redirectUrl");let k=JSON.stringify({nonce:h,redirectUri:j,state:a?.state}),l="undefined"!=typeof window?window.huggingface?.variables??null:null,m=a?.clientId||l?.OAUTH_CLIENT_ID;if(!m){if(l)throw Error("Missing clientId, please add hf_oauth: true to the README.md's metadata in your static Space");throw Error("Missing clientId")}let n=(function(a){if(globalThis.Buffer)return globalThis.Buffer.from(a).toString("base64");{let b=[];return a.forEach(a=>{b.push(String.fromCharCode(a))}),globalThis.btoa(b.join(""))}})(new Uint8Array(await globalThis.crypto.subtle.digest("SHA-256",new TextEncoder().encode(i)))).replace(/[+]/g,"-").replace(/[/]/g,"_").replace(/=/g,"");return`${g.authorization_endpoint}?${new URLSearchParams({client_id:m,scope:a?.scopes||l?.OAUTH_SCOPES||"openid profile",response_type:"code",redirect_uri:j,state:k,code_challenge:n,code_challenge_method:"S256"}).toString()}`}"0".repeat(64),new Uint8Array([72,70,82,101,112,111,77,101,116,97,68,97,116,97,0,85,105,103,69,106,123,129,87,131,165,189,217,92,205,209,74,169]),c(96332)},45948:(a,b,c)=>{"use strict";var d,e,f=c(39265);a.exports=s;var g=c(63046);s.ReadableState=r,c(94735).EventEmitter;var h=function(a,b){return a.listeners(b).length},i=c(69720),j=c(62253).Buffer,k=("undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},l=Object.create(c(69082));l.inherits=c(48985);var m=c(28354),n=void 0;n=m&&m.debuglog?m.debuglog("stream"):function(){};var o=c(54442),p=c(15016);l.inherits(s,i);var q=["error","close","destroy","pause","resume"];function r(a,b){d=d||c(47482),a=a||{};var f=b instanceof d;this.objectMode=!!a.objectMode,f&&(this.objectMode=this.objectMode||!!a.readableObjectMode);var g=a.highWaterMark,h=a.readableHighWaterMark,i=this.objectMode?16:16384;g||0===g?this.highWaterMark=g:f&&(h||0===h)?this.highWaterMark=h:this.highWaterMark=i,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new o,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=a.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,a.encoding&&(e||(e=c(32677).I),this.decoder=new e(a.encoding),this.encoding=a.encoding)}function s(a){if(d=d||c(47482),!(this instanceof s))return new s(a);this._readableState=new r(a,this),this.readable=!0,a&&("function"==typeof a.read&&(this._read=a.read),"function"==typeof a.destroy&&(this._destroy=a.destroy)),i.call(this)}function t(a,b,c,d,e){var f,g,h,i=a._readableState;return null===b?(i.reading=!1,function(a,b){if(!b.ended){if(b.decoder){var c=b.decoder.end();c&&c.length&&(b.buffer.push(c),b.length+=b.objectMode?1:c.length)}b.ended=!0,w(a)}}(a,i)):(e||(h=function(a,b){var c;return j.isBuffer(b)||b instanceof k||"string"==typeof b||void 0===b||a.objectMode||(c=TypeError("Invalid non-string/buffer chunk")),c}(i,b)),h)?a.emit("error",h):i.objectMode||b&&b.length>0?("string"==typeof b||i.objectMode||Object.getPrototypeOf(b)===j.prototype||(g=b,b=j.from(g)),d?i.endEmitted?a.emit("error",Error("stream.unshift() after end event")):u(a,i,b,!0):i.ended?a.emit("error",Error("stream.push() after EOF")):(i.reading=!1,i.decoder&&!c?(b=i.decoder.write(b),i.objectMode||0!==b.length?u(a,i,b,!1):y(a,i)):u(a,i,b,!1))):d||(i.reading=!1),!(f=i).ended&&(f.needReadable||f.lengthb.highWaterMark&&((c=a)>=8388608?c=8388608:(c--,c|=c>>>1,c|=c>>>2,c|=c>>>4,c|=c>>>8,c|=c>>>16,c++),b.highWaterMark=c),a<=b.length)?a:b.ended?b.length:(b.needReadable=!0,0)}function w(a){var b=a._readableState;b.needReadable=!1,b.emittedReadable||(n("emitReadable",b.flowing),b.emittedReadable=!0,b.sync?f.nextTick(x,a):x(a))}function x(a){n("emit readable"),a.emit("readable"),C(a)}function y(a,b){b.readingMore||(b.readingMore=!0,f.nextTick(z,a,b))}function z(a,b){for(var c=b.length;!b.reading&&!b.flowing&&!b.ended&&b.length=b.length?(c=b.decoder?b.buffer.join(""):1===b.buffer.length?b.buffer.head.data:b.buffer.concat(b.length),b.buffer.clear()):(d=a,e=b.buffer,f=b.decoder,df.length?f.length:a;if(g===f.length?e+=f:e+=f.slice(0,a),0==(a-=g)){g===f.length?(++d,c.next?b.head=c.next:b.head=b.tail=null):(b.head=c,c.data=f.slice(g));break}++d}return b.length-=d,e}(d,e):function(a,b){var c=j.allocUnsafe(a),d=b.head,e=1;for(d.data.copy(c),a-=d.data.length;d=d.next;){var f=d.data,g=a>f.length?f.length:a;if(f.copy(c,c.length-a,0,g),0==(a-=g)){g===f.length?(++e,d.next?b.head=d.next:b.head=b.tail=null):(b.head=d,d.data=f.slice(g));break}++e}return b.length-=e,c}(d,e),c=g),c)}function E(a){var b=a._readableState;if(b.length>0)throw Error('"endReadable()" called on non-empty stream');b.endEmitted||(b.ended=!0,f.nextTick(F,b,a))}function F(a,b){a.endEmitted||0!==a.length||(a.endEmitted=!0,b.readable=!1,b.emit("end"))}function G(a,b){for(var c=0,d=a.length;c=c.highWaterMark||c.ended))return n("read: emitReadable",c.length,c.ended),0===c.length&&c.ended?E(this):w(this),null;if(0===(a=v(a,c))&&c.ended)return 0===c.length&&E(this),null;var e=c.needReadable;return n("need readable",e),(0===c.length||c.length-a0?D(a,c):null)?(c.needReadable=!0,a=0):c.length-=a,0===c.length&&(c.ended||(c.needReadable=!0),d!==a&&c.ended&&E(this)),null!==b&&this.emit("data",b),b},s.prototype._read=function(a){this.emit("error",Error("_read() is not implemented"))},s.prototype.pipe=function(a,b){var c,d=this,e=this._readableState;switch(e.pipesCount){case 0:e.pipes=a;break;case 1:e.pipes=[e.pipes,a];break;default:e.pipes.push(a)}e.pipesCount+=1,n("pipe count=%d opts=%j",e.pipesCount,b);var i=b&&!1===b.end||a===process.stdout||a===process.stderr?s:j;function j(){n("onend"),a.end()}e.endEmitted?f.nextTick(i):d.once("end",i),a.on("unpipe",function b(c,f){n("onunpipe"),c===d&&f&&!1===f.hasUnpiped&&(f.hasUnpiped=!0,n("cleanup"),a.removeListener("close",q),a.removeListener("finish",r),a.removeListener("drain",k),a.removeListener("error",p),a.removeListener("unpipe",b),d.removeListener("end",j),d.removeListener("end",s),d.removeListener("data",o),l=!0,e.awaitDrain&&(!a._writableState||a._writableState.needDrain)&&k())});var k=(c=d,function(){var a=c._readableState;n("pipeOnDrain",a.awaitDrain),a.awaitDrain&&a.awaitDrain--,0===a.awaitDrain&&h(c,"data")&&(a.flowing=!0,C(c))});a.on("drain",k);var l=!1,m=!1;function o(b){n("ondata"),m=!1,!1!==a.write(b)||m||((1===e.pipesCount&&e.pipes===a||e.pipesCount>1&&-1!==G(e.pipes,a))&&!l&&(n("false write response, pause",e.awaitDrain),e.awaitDrain++,m=!0),d.pause())}function p(b){n("onerror",b),s(),a.removeListener("error",p),0===h(a,"error")&&a.emit("error",b)}function q(){a.removeListener("finish",r),s()}function r(){n("onfinish"),a.removeListener("close",q),s()}function s(){n("unpipe"),d.unpipe(a)}return d.on("data",o),!function(a,b,c){if("function"==typeof a.prependListener)return a.prependListener(b,c);a._events&&a._events[b]?g(a._events[b])?a._events[b].unshift(c):a._events[b]=[c,a._events[b]]:a.on(b,c)}(a,"error",p),a.once("close",q),a.once("finish",r),a.emit("pipe",d),e.flowing||(n("pipe resume"),d.resume()),a},s.prototype.unpipe=function(a){var b=this._readableState,c={hasUnpiped:!1};if(0===b.pipesCount)return this;if(1===b.pipesCount)return a&&a!==b.pipes||(a||(a=b.pipes),b.pipes=null,b.pipesCount=0,b.flowing=!1,a&&a.emit("unpipe",this,c)),this;if(!a){var d=b.pipes,e=b.pipesCount;b.pipes=null,b.pipesCount=0,b.flowing=!1;for(var f=0;f{"use strict";c.d(b,{b:()=>h});var d=c(38301),e=c(6406),f=c(21124),g=d.forwardRef((a,b)=>(0,f.jsx)(e.sG.label,{...a,ref:b,onMouseDown:b=>{b.target.closest("button, input, select, textarea")||(a.onMouseDown?.(b),!b.defaultPrevented&&b.detail>1&&b.preventDefault())}}));g.displayName="Label";var h=g},46422:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]])},47089:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},47210:(a,b,c)=>{"use strict";b.__esModule=!0;var d=c(50281);b.default=function(a){a.registerDecorator("inline",function(a,b,c,e){var f=a;return b.partials||(b.partials={},f=function(e,f){var g=c.partials;c.partials=d.extend({},g,b.partials);var h=a(e,f);return c.partials=g,h}),b.partials[e.args[0]]=e.fn,f})},a.exports=b.default},47482:(a,b,c)=>{"use strict";var d=c(39265),e=Object.keys||function(a){var b=[];for(var c in a)b.push(c);return b};a.exports=l;var f=Object.create(c(69082));f.inherits=c(48985);var g=c(45948),h=c(7932);f.inherits(l,g);for(var i=e(h.prototype),j=0;j{"use strict";var d=c(36867);function e(a){d.call(this,a)}c(20452).inherits(e,d),e.prototype.readData=function(a){this.checkOffset(a);var b=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,b},a.exports=e},48985:(a,b,c)=>{try{var d=c(28354);if("function"!=typeof d.inherits)throw"";a.exports=d.inherits}catch(b){a.exports=c(53510)}},49241:(a,b,c)=>{"use strict";b.__esModule=!0;var d=function(a){return a&&a.__esModule?a:{default:a}}(c(1793));b.default=function(a){a.registerHelper("helperMissing",function(){if(1!=arguments.length)throw new d.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})},a.exports=b.default},50266:(a,b,c)=>{"use strict";var d=c(20452),e=c(9926),f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";b.encode=function(a){for(var b,c,e,g,h,i,j,k=[],l=0,m=a.length,n=m,o="string"!==d.getTypeOf(a);l>2,h=(3&b)<<4|c>>4,i=n>1?(15&c)<<2|e>>6:64,j=n>2?63&e:64,k.push(f.charAt(g)+f.charAt(h)+f.charAt(i)+f.charAt(j));return k.join("")},b.decode=function(a){var b,c,d,g,h,i,j,k,l=0,m=0,n="data:";if(a.substr(0,n.length)===n)throw Error("Invalid base64 input, it looks like a data url.");var o=3*(a=a.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(a.charAt(a.length-1)===f.charAt(64)&&o--,a.charAt(a.length-2)===f.charAt(64)&&o--,o%1!=0)throw Error("Invalid base64 input, bad content length.");for(k=e.uint8array?new Uint8Array(0|o):Array(0|o);l>4,c=(15&h)<<4|i>>2,d=(3&i)<<6|j,k[m++]=b,64!==i&&(k[m++]=c),64!==j&&(k[m++]=d);return k}},50281:(a,b)=>{"use strict";b.__esModule=!0,b.extend=g,b.indexOf=function(a,b){for(var c=0,d=a.length;c":">",'"':""","'":"'","`":"`","=":"="},d=/[&<>"'`=]/g,e=/[&<>"'`=]/;function f(a){return c[a]}function g(a){for(var b=1;b{"use strict";a.exports={Promise:"undefined"!=typeof Promise?Promise:c(55233)}},53247:(a,b,c)=>{"use strict";var d,e=c(43613),f=c(7225),g=c(90421),h=c(9251),i=c(78094),j=573;function k(a,b){return a.msg=i[b],b}function l(a){return(a<<1)-9*(a>4)}function m(a){for(var b=a.length;--b>=0;)a[b]=0}function n(a){var b=a.state,c=b.pending;c>a.avail_out&&(c=a.avail_out),0!==c&&(e.arraySet(a.output,b.pending_buf,b.pending_out,c,a.next_out),a.next_out+=c,b.pending_out+=c,a.total_out+=c,a.avail_out-=c,b.pending-=c,0===b.pending&&(b.pending_out=0))}function o(a,b){f._tr_flush_block(a,a.block_start>=0?a.block_start:-1,a.strstart-a.block_start,b),a.block_start=a.strstart,n(a.strm)}function p(a,b){a.pending_buf[a.pending++]=b}function q(a,b){a.pending_buf[a.pending++]=b>>>8&255,a.pending_buf[a.pending++]=255&b}function r(a,b){var c,d,e=a.max_chain_length,f=a.strstart,g=a.prev_length,h=a.nice_match,i=a.strstart>a.w_size-262?a.strstart-(a.w_size-262):0,j=a.window,k=a.w_mask,l=a.prev,m=a.strstart+258,n=j[f+g-1],o=j[f+g];a.prev_length>=a.good_match&&(e>>=2),h>a.lookahead&&(h=a.lookahead);do{if(j[(c=b)+g]!==o||j[c+g-1]!==n||j[c]!==j[f]||j[++c]!==j[f+1])continue;f+=2,c++;do;while(j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&fg){if(a.match_start=b,g=d,d>=h)break;n=j[f+g-1],o=j[f+g]}}while((b=l[b&k])>i&&0!=--e);return g<=a.lookahead?g:a.lookahead}function s(a){var b,c,d,f,i,j=a.w_size;do{if(f=a.window_size-a.lookahead-a.strstart,a.strstart>=j+(j-262)){e.arraySet(a.window,a.window,j,j,0),a.match_start-=j,a.strstart-=j,a.block_start-=j,b=c=a.hash_size;do d=a.head[--b],a.head[b]=d>=j?d-j:0;while(--c);b=c=j;do d=a.prev[--b],a.prev[b]=d>=j?d-j:0;while(--c);f+=j}if(0===a.strm.avail_in)break;if(c=function(a,b,c,d){var f=a.avail_in;return(f>d&&(f=d),0===f)?0:(a.avail_in-=f,e.arraySet(b,a.input,a.next_in,f,c),1===a.state.wrap?a.adler=g(a.adler,b,f,c):2===a.state.wrap&&(a.adler=h(a.adler,b,f,c)),a.next_in+=f,a.total_in+=f,f)}(a.strm,a.window,a.strstart+a.lookahead,f),a.lookahead+=c,a.lookahead+a.insert>=3)for(i=a.strstart-a.insert,a.ins_h=a.window[i],a.ins_h=(a.ins_h<=3&&(a.ins_h=(a.ins_h<=3)if(d=f._tr_tally(a,a.strstart-a.match_start,a.match_length-3),a.lookahead-=a.match_length,a.match_length<=a.max_lazy_match&&a.lookahead>=3){a.match_length--;do a.strstart++,a.ins_h=(a.ins_h<=3&&(a.ins_h=(a.ins_h<4096)&&(a.match_length=2)),a.prev_length>=3&&a.match_length<=a.prev_length){e=a.strstart+a.lookahead-3,d=f._tr_tally(a,a.strstart-1-a.prev_match,a.prev_length-3),a.lookahead-=a.prev_length-1,a.prev_length-=2;do++a.strstart<=e&&(a.ins_h=(a.ins_h<15&&(h=2,d-=16),f<1||f>9||8!==c||d<8||d>15||b<0||b>9||g<0||g>4)return k(a,-2);8===d&&(d=9);var i=new w;return a.state=i,i.strm=a,i.wrap=h,i.gzhead=null,i.w_bits=d,i.w_size=1<a.pending_buf_size-5&&(c=a.pending_buf_size-5);;){if(a.lookahead<=1){if(s(a),0===a.lookahead&&0===b)return 1;if(0===a.lookahead)break}a.strstart+=a.lookahead,a.lookahead=0;var d=a.block_start+c;if((0===a.strstart||a.strstart>=d)&&(a.lookahead=a.strstart-d,a.strstart=d,o(a,!1),0===a.strm.avail_out)||a.strstart-a.block_start>=a.w_size-262&&(o(a,!1),0===a.strm.avail_out))return 1}return(a.insert=0,4===b)?(o(a,!0),0===a.strm.avail_out)?3:4:(a.strstart>a.block_start&&(o(a,!1),a.strm.avail_out),1)}),new v(4,4,8,4,t),new v(4,5,16,8,t),new v(4,6,32,32,t),new v(4,4,16,16,u),new v(8,16,32,32,u),new v(8,16,128,128,u),new v(8,32,128,256,u),new v(32,128,258,1024,u),new v(32,258,258,4096,u)],b.deflateInit=function(a,b){return z(a,b,8,15,8,0)},b.deflateInit2=z,b.deflateReset=y,b.deflateResetKeep=x,b.deflateSetHeader=function(a,b){return a&&a.state&&2===a.state.wrap?(a.state.gzhead=b,0):-2},b.deflate=function(a,b){if(!a||!a.state||b>5||b<0)return a?k(a,-2):-2;if(e=a.state,!a.output||!a.input&&0!==a.avail_in||666===e.status&&4!==b)return k(a,0===a.avail_out?-5:-2);if(e.strm=a,c=e.last_flush,e.last_flush=b,42===e.status)if(2===e.wrap)a.adler=0,p(e,31),p(e,139),p(e,8),e.gzhead?(p(e,+!!e.gzhead.text+2*!!e.gzhead.hcrc+4*!!e.gzhead.extra+8*!!e.gzhead.name+16*!!e.gzhead.comment),p(e,255&e.gzhead.time),p(e,e.gzhead.time>>8&255),p(e,e.gzhead.time>>16&255),p(e,e.gzhead.time>>24&255),p(e,9===e.level?2:4*(e.strategy>=2||e.level<2)),p(e,255&e.gzhead.os),e.gzhead.extra&&e.gzhead.extra.length&&(p(e,255&e.gzhead.extra.length),p(e,e.gzhead.extra.length>>8&255)),e.gzhead.hcrc&&(a.adler=h(a.adler,e.pending_buf,e.pending,0)),e.gzindex=0,e.status=69):(p(e,0),p(e,0),p(e,0),p(e,0),p(e,0),p(e,9===e.level?2:4*(e.strategy>=2||e.level<2)),p(e,3),e.status=113);else{var c,e,g,i,j=8+(e.w_bits-8<<4)<<8;j|=(e.strategy>=2||e.level<2?0:e.level<6?1:6===e.level?2:3)<<6,0!==e.strstart&&(j|=32),j+=31-j%31,e.status=113,q(e,j),0!==e.strstart&&(q(e,a.adler>>>16),q(e,65535&a.adler)),a.adler=1}if(69===e.status)if(e.gzhead.extra){for(g=e.pending;e.gzindex<(65535&e.gzhead.extra.length)&&(e.pending!==e.pending_buf_size||(e.gzhead.hcrc&&e.pending>g&&(a.adler=h(a.adler,e.pending_buf,e.pending-g,g)),n(a),g=e.pending,e.pending!==e.pending_buf_size));)p(e,255&e.gzhead.extra[e.gzindex]),e.gzindex++;e.gzhead.hcrc&&e.pending>g&&(a.adler=h(a.adler,e.pending_buf,e.pending-g,g)),e.gzindex===e.gzhead.extra.length&&(e.gzindex=0,e.status=73)}else e.status=73;if(73===e.status)if(e.gzhead.name){g=e.pending;do{if(e.pending===e.pending_buf_size&&(e.gzhead.hcrc&&e.pending>g&&(a.adler=h(a.adler,e.pending_buf,e.pending-g,g)),n(a),g=e.pending,e.pending===e.pending_buf_size)){i=1;break}i=e.gzindexg&&(a.adler=h(a.adler,e.pending_buf,e.pending-g,g)),0===i&&(e.gzindex=0,e.status=91)}else e.status=91;if(91===e.status)if(e.gzhead.comment){g=e.pending;do{if(e.pending===e.pending_buf_size&&(e.gzhead.hcrc&&e.pending>g&&(a.adler=h(a.adler,e.pending_buf,e.pending-g,g)),n(a),g=e.pending,e.pending===e.pending_buf_size)){i=1;break}i=e.gzindexg&&(a.adler=h(a.adler,e.pending_buf,e.pending-g,g)),0===i&&(e.status=103)}else e.status=103;if(103===e.status&&(e.gzhead.hcrc?(e.pending+2>e.pending_buf_size&&n(a),e.pending+2<=e.pending_buf_size&&(p(e,255&a.adler),p(e,a.adler>>8&255),a.adler=0,e.status=113)):e.status=113),0!==e.pending){if(n(a),0===a.avail_out)return e.last_flush=-1,0}else if(0===a.avail_in&&l(b)<=l(c)&&4!==b)return k(a,-5);if(666===e.status&&0!==a.avail_in)return k(a,-5);if(0!==a.avail_in||0!==e.lookahead||0!==b&&666!==e.status){var r=2===e.strategy?function(a,b){for(var c;;){if(0===a.lookahead&&(s(a),0===a.lookahead)){if(0===b)return 1;break}if(a.match_length=0,c=f._tr_tally(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++,c&&(o(a,!1),0===a.strm.avail_out))return 1}return(a.insert=0,4===b)?(o(a,!0),0===a.strm.avail_out)?3:4:a.last_lit&&(o(a,!1),0===a.strm.avail_out)?1:2}(e,b):3===e.strategy?function(a,b){for(var c,d,e,g,h=a.window;;){if(a.lookahead<=258){if(s(a),a.lookahead<=258&&0===b)return 1;if(0===a.lookahead)break}if(a.match_length=0,a.lookahead>=3&&a.strstart>0&&(d=h[e=a.strstart-1])===h[++e]&&d===h[++e]&&d===h[++e]){g=a.strstart+258;do;while(d===h[++e]&&d===h[++e]&&d===h[++e]&&d===h[++e]&&d===h[++e]&&d===h[++e]&&d===h[++e]&&d===h[++e]&&ea.lookahead&&(a.match_length=a.lookahead)}if(a.match_length>=3?(c=f._tr_tally(a,1,a.match_length-3),a.lookahead-=a.match_length,a.strstart+=a.match_length,a.match_length=0):(c=f._tr_tally(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++),c&&(o(a,!1),0===a.strm.avail_out))return 1}return(a.insert=0,4===b)?(o(a,!0),0===a.strm.avail_out)?3:4:a.last_lit&&(o(a,!1),0===a.strm.avail_out)?1:2}(e,b):d[e.level].func(e,b);if((3===r||4===r)&&(e.status=666),1===r||3===r)return 0===a.avail_out&&(e.last_flush=-1),0;if(2===r&&(1===b?f._tr_align(e):5!==b&&(f._tr_stored_block(e,0,0,!1),3===b&&(m(e.head),0===e.lookahead&&(e.strstart=0,e.block_start=0,e.insert=0))),n(a),0===a.avail_out))return e.last_flush=-1,0}return 4!==b?0:e.wrap<=0?1:(2===e.wrap?(p(e,255&a.adler),p(e,a.adler>>8&255),p(e,a.adler>>16&255),p(e,a.adler>>24&255),p(e,255&a.total_in),p(e,a.total_in>>8&255),p(e,a.total_in>>16&255),p(e,a.total_in>>24&255)):(q(e,a.adler>>>16),q(e,65535&a.adler)),n(a),e.wrap>0&&(e.wrap=-e.wrap),+(0===e.pending))},b.deflateEnd=function(a){var b;return a&&a.state?42!==(b=a.state.status)&&69!==b&&73!==b&&91!==b&&103!==b&&113!==b&&666!==b?k(a,-2):(a.state=null,113===b?k(a,-3):0):-2},b.deflateSetDictionary=function(a,b){var c,d,f,h,i,j,k,l,n=b.length;if(!a||!a.state||2===(h=(c=a.state).wrap)||1===h&&42!==c.status||c.lookahead)return -2;for(1===h&&(a.adler=g(a.adler,b,n,0)),c.wrap=0,n>=c.w_size&&(0===h&&(m(c.head),c.strstart=0,c.block_start=0,c.insert=0),l=new e.Buf8(c.w_size),e.arraySet(l,b,n-c.w_size,c.w_size,0),b=l,n=c.w_size),i=a.avail_in,j=a.next_in,k=a.input,a.avail_in=n,a.next_in=0,a.input=b,s(c);c.lookahead>=3;){d=c.strstart,f=c.lookahead-2;do c.ins_h=(c.ins_h<{"function"==typeof Object.create?a.exports=function(a,b){b&&(a.super_=b,a.prototype=Object.create(b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}))}:a.exports=function(a,b){if(b){a.super_=b;var c=function(){};c.prototype=b.prototype,a.prototype=new c,a.prototype.constructor=a}}},54442:(a,b,c)=>{"use strict";var d=c(62253).Buffer,e=c(28354);a.exports=function(){function a(){if(!(this instanceof a))throw TypeError("Cannot call a class as a function");this.head=null,this.tail=null,this.length=0}return a.prototype.push=function(a){var b={data:a,next:null};this.length>0?this.tail.next=b:this.head=b,this.tail=b,++this.length},a.prototype.unshift=function(a){var b={data:a,next:this.head};0===this.length&&(this.tail=b),this.head=b,++this.length},a.prototype.shift=function(){if(0!==this.length){var a=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,a}},a.prototype.clear=function(){this.head=this.tail=null,this.length=0},a.prototype.join=function(a){if(0===this.length)return"";for(var b=this.head,c=""+b.data;b=b.next;)c+=a+b.data;return c},a.prototype.concat=function(a){if(0===this.length)return d.alloc(0);for(var b,c,e=d.allocUnsafe(a>>>0),f=this.head,g=0;f;)b=f.data,c=g,b.copy(e,c),g+=f.data.length,f=f.next;return e},a}(),e&&e.inspect&&e.inspect.custom&&(a.exports.prototype[e.inspect.custom]=function(){var a=e.inspect({length:this.length});return this.constructor.name+" "+a})},54453:(a,b,c)=>{"use strict";var d=c(30298),e=c(93918),f=function(a,b){var c=a||b,e=d[c];if(!e)throw Error(c+" is not a valid compression method !");return e};b.generateWorker=function(a,b,c){var d=new e(b.streamFiles,c,b.platform,b.encodeFileName),g=0;try{a.forEach(function(a,c){g++;var e=f(c.options.compression,b.compression),h=c.options.compressionOptions||b.compressionOptions||{},i=c.dir,j=c.date;c._compressWorker(e,h).withStreamInfo("file",{name:a,dir:i,date:j,comment:c.comment||"",unixPermissions:c.unixPermissions,dosPermissions:c.dosPermissions}).pipe(d)}),d.entriesCount=g}catch(a){d.error(a)}return d}},55233:(a,b,c)=>{"use strict";var d=c(78406);function e(){}var f={},g=["REJECTED"],h=["FULFILLED"],i=["PENDING"],j=["UNHANDLED"];function k(a){if("function"!=typeof a)throw TypeError("resolver must be a function");this.state=i,this.queue=[],this.outcome=void 0,this.handled=j,a!==e&&o(this,a)}function l(a,b,c){this.promise=a,"function"==typeof b&&(this.onFulfilled=b,this.callFulfilled=this.otherCallFulfilled),"function"==typeof c&&(this.onRejected=c,this.callRejected=this.otherCallRejected)}function m(a,b,c){d(function(){var d;try{d=b(c)}catch(b){return f.reject(a,b)}d===a?f.reject(a,TypeError("Cannot resolve promise with itself")):f.resolve(a,d)})}function n(a){var b=a&&a.then;if(a&&("object"==typeof a||"function"==typeof a)&&"function"==typeof b)return function(){b.apply(a,arguments)}}function o(a,b){var c=!1;function d(b){c||(c=!0,f.reject(a,b))}function e(b){c||(c=!0,f.resolve(a,b))}var g=p(function(){b(e,d)});"error"===g.status&&d(g.value)}function p(a,b){var c={};try{c.value=a(b),c.status="success"}catch(a){c.status="error",c.value=a}return c}a.exports=k,k.prototype.finally=function(a){if("function"!=typeof a)return this;var b=this.constructor;return this.then(function(c){return b.resolve(a()).then(function(){return c})},function(c){return b.resolve(a()).then(function(){throw c})})},k.prototype.catch=function(a){return this.then(null,a)},k.prototype.then=function(a,b){if("function"!=typeof a&&this.state===h||"function"!=typeof b&&this.state===g)return this;var c=new this.constructor(e);return this.handled===j&&(this.handled=null),this.state!==i?m(c,this.state===h?a:b,this.outcome):this.queue.push(new l(c,a,b)),c},l.prototype.callFulfilled=function(a){f.resolve(this.promise,a)},l.prototype.otherCallFulfilled=function(a){m(this.promise,this.onFulfilled,a)},l.prototype.callRejected=function(a){f.reject(this.promise,a)},l.prototype.otherCallRejected=function(a){m(this.promise,this.onRejected,a)},f.resolve=function(a,b){var c=p(n,b);if("error"===c.status)return f.reject(a,c.value);var d=c.value;if(d)o(a,d);else{a.state=h,a.outcome=b;for(var e=-1,g=a.queue.length;++e{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("cpu",[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]])},56780:(a,b,c)=>{"use strict";var d=c(43613).assign,e=c(27139),f=c(58815),g=c(76137),h={};d(h,e,f,g),a.exports=h},56898:(a,b,c)=>{"use strict";b.__esModule=!0,b.createNewLookupObject=function(){for(var a=arguments.length,b=Array(a),c=0;c{var d,e=function(){var a=String.fromCharCode,b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",d={};function e(a,b){if(!d[a]){d[a]={};for(var c=0;c>>8,c[2*d+1]=g%256}return c},decompressFromUint8Array:function(b){if(null==b)return f.decompress(b);for(var c=Array(b.length/2),d=0,e=c.length;dk.charCodeAt(0)){for(d=0;d>=1}else{for(d=0,e=1;d>=1}0==--l&&(l=Math.pow(2,n),n++),delete h[k]}else for(d=0,e=g[k];d>=1;0==--l&&(l=Math.pow(2,n),n++),g[j]=m++,k=String(i)}if(""!==k){if(Object.prototype.hasOwnProperty.call(h,k)){if(256>k.charCodeAt(0)){for(d=0;d>=1}else{for(d=0,e=1;d>=1}0==--l&&(l=Math.pow(2,n),n++),delete h[k]}else for(d=0,e=g[k];d>=1;0==--l&&(l=Math.pow(2,n),n++)}for(d=0,e=2;d>=1;for(;;){if(p<<=1,q==b-1){o.push(c(p));break}q++}return o.join("")},decompress:function(a){return null==a?"":""==a?null:f._decompress(a.length,32768,function(b){return a.charCodeAt(b)})},_decompress:function(b,c,d){var e,f,g,h,i,j,k,l=[],m=4,n=4,o=3,p="",q=[],r={val:d(0),position:c,index:1};for(e=0;e<3;e+=1)l[e]=e;for(g=0,i=4,j=1;j!=i;)h=r.val&r.position,r.position>>=1,0==r.position&&(r.position=c,r.val=d(r.index++)),g|=(h>0)*j,j<<=1;switch(g){case 0:for(g=0,i=256,j=1;j!=i;)h=r.val&r.position,r.position>>=1,0==r.position&&(r.position=c,r.val=d(r.index++)),g|=(h>0)*j,j<<=1;k=a(g);break;case 1:for(g=0,i=65536,j=1;j!=i;)h=r.val&r.position,r.position>>=1,0==r.position&&(r.position=c,r.val=d(r.index++)),g|=(h>0)*j,j<<=1;k=a(g);break;case 2:return""}for(l[3]=k,f=k,q.push(k);;){if(r.index>b)return"";for(g=0,i=Math.pow(2,o),j=1;j!=i;)h=r.val&r.position,r.position>>=1,0==r.position&&(r.position=c,r.val=d(r.index++)),g|=(h>0)*j,j<<=1;switch(k=g){case 0:for(g=0,i=256,j=1;j!=i;)h=r.val&r.position,r.position>>=1,0==r.position&&(r.position=c,r.val=d(r.index++)),g|=(h>0)*j,j<<=1;l[n++]=a(g),k=n-1,m--;break;case 1:for(g=0,i=65536,j=1;j!=i;)h=r.val&r.position,r.position>>=1,0==r.position&&(r.position=c,r.val=d(r.index++)),g|=(h>0)*j,j<<=1;l[n++]=a(g),k=n-1,m--;break;case 2:return q.join("")}if(0==m&&(m=Math.pow(2,o),o++),l[k])p=l[k];else{if(k!==n)return null;p=f+f.charAt(0)}q.push(p),l[n++]=f+p.charAt(0),m--,f=p,0==m&&(m=Math.pow(2,o),o++)}}};return f}();void 0===(d=(function(){return e}).call(b,c,b,a))||(a.exports=d)},57623:(a,b,c)=>{"use strict";b.__esModule=!0;var d=c(50281),e=function(a){return a&&a.__esModule?a:{default:a}}(c(1793));b.default=function(a){a.registerHelper("if",function(a,b){if(2!=arguments.length)throw new e.default("#if requires exactly one argument");return(d.isFunction(a)&&(a=a.call(this)),!b.hash.includeZero&&!a||d.isEmpty(a))?b.inverse(this):b.fn(this)}),a.registerHelper("unless",function(b,c){if(2!=arguments.length)throw new e.default("#unless requires exactly one argument");return a.helpers.if.call(this,b,{fn:c.inverse,inverse:c.fn,hash:c.hash})})},a.exports=b.default},58815:(a,b,c)=>{"use strict";var d=c(11251),e=c(43613),f=c(98164),g=c(76137),h=c(78094),i=c(1094),j=c(33018),k=Object.prototype.toString;function l(a){if(!(this instanceof l))return new l(a);this.options=e.assign({chunkSize:16384,windowBits:0,to:""},a||{});var b=this.options;b.raw&&b.windowBits>=0&&b.windowBits<16&&(b.windowBits=-b.windowBits,0===b.windowBits&&(b.windowBits=-15)),b.windowBits>=0&&b.windowBits<16&&!(a&&a.windowBits)&&(b.windowBits+=32),b.windowBits>15&&b.windowBits<48&&(15&b.windowBits)==0&&(b.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new i,this.strm.avail_out=0;var c=d.inflateInit2(this.strm,b.windowBits);if(c!==g.Z_OK||(this.header=new j,d.inflateGetHeader(this.strm,this.header),b.dictionary&&("string"==typeof b.dictionary?b.dictionary=f.string2buf(b.dictionary):"[object ArrayBuffer]"===k.call(b.dictionary)&&(b.dictionary=new Uint8Array(b.dictionary)),b.raw)&&(c=d.inflateSetDictionary(this.strm,b.dictionary))!==g.Z_OK))throw Error(h[c])}function m(a,b){var c=new l(b);if(c.push(a,!0),c.err)throw c.msg||h[c.err];return c.result}l.prototype.push=function(a,b){var c,h,i,j,l,m=this.strm,n=this.options.chunkSize,o=this.options.dictionary,p=!1;if(this.ended)return!1;h=b===~~b?b:!0===b?g.Z_FINISH:g.Z_NO_FLUSH,"string"==typeof a?m.input=f.binstring2buf(a):"[object ArrayBuffer]"===k.call(a)?m.input=new Uint8Array(a):m.input=a,m.next_in=0,m.avail_in=m.input.length;do{if(0===m.avail_out&&(m.output=new e.Buf8(n),m.next_out=0,m.avail_out=n),(c=d.inflate(m,g.Z_NO_FLUSH))===g.Z_NEED_DICT&&o&&(c=d.inflateSetDictionary(this.strm,o)),c===g.Z_BUF_ERROR&&!0===p&&(c=g.Z_OK,p=!1),c!==g.Z_STREAM_END&&c!==g.Z_OK)return this.onEnd(c),this.ended=!0,!1;m.next_out&&(0===m.avail_out||c===g.Z_STREAM_END||0===m.avail_in&&(h===g.Z_FINISH||h===g.Z_SYNC_FLUSH))&&("string"===this.options.to?(i=f.utf8border(m.output,m.next_out),j=m.next_out-i,l=f.buf2string(m.output,i),m.next_out=j,m.avail_out=n-j,j&&e.arraySet(m.output,m.output,i,j,0),this.onData(l)):this.onData(e.shrinkBuf(m.output,m.next_out))),0===m.avail_in&&0===m.avail_out&&(p=!0)}while((m.avail_in>0||0===m.avail_out)&&c!==g.Z_STREAM_END);return(c===g.Z_STREAM_END&&(h=g.Z_FINISH),h===g.Z_FINISH)?(c=d.inflateEnd(this.strm),this.onEnd(c),this.ended=!0,c===g.Z_OK):(h===g.Z_SYNC_FLUSH&&(this.onEnd(g.Z_OK),m.avail_out=0),!0)},l.prototype.onData=function(a){this.chunks.push(a)},l.prototype.onEnd=function(a){a===g.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=e.flattenChunks(this.chunks)),this.chunks=[],this.err=a,this.msg=this.strm.msg},b.Inflate=l,b.inflate=m,b.inflateRaw=function(a,b){return(b=b||{}).raw=!0,m(a,b)},b.ungzip=m},58829:(a,b,c)=>{"use strict";c.d(b,{QP:()=>aa});let d=(a,b)=>{if(0===a.length)return b.classGroupId;let c=a[0],e=b.nextPart.get(c),f=e?d(a.slice(1),e):void 0;if(f)return f;if(0===b.validators.length)return;let g=a.join("-");return b.validators.find(({validator:a})=>a(g))?.classGroupId},e=/^\[(.+)\]$/,f=(a,b,c,d)=>{a.forEach(a=>{if("string"==typeof a){(""===a?b:g(b,a)).classGroupId=c;return}if("function"==typeof a)return h(a)?void f(a(d),b,c,d):void b.validators.push({validator:a,classGroupId:c});Object.entries(a).forEach(([a,e])=>{f(e,g(b,a),c,d)})})},g=(a,b)=>{let c=a;return b.split("-").forEach(a=>{c.nextPart.has(a)||c.nextPart.set(a,{nextPart:new Map,validators:[]}),c=c.nextPart.get(a)}),c},h=a=>a.isThemeGetter,i=/\s+/;function j(){let a,b,c=0,d="";for(;c{let b;if("string"==typeof a)return a;let c="";for(let d=0;d{let b=b=>b[a]||[];return b.isThemeGetter=!0,b},m=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,n=/^\((?:(\w[\w-]*):)?(.+)\)$/i,o=/^\d+\/\d+$/,p=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,q=/\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$/,r=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,s=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,t=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,u=a=>o.test(a),v=a=>!!a&&!Number.isNaN(Number(a)),w=a=>!!a&&Number.isInteger(Number(a)),x=a=>a.endsWith("%")&&v(a.slice(0,-1)),y=a=>p.test(a),z=()=>!0,A=a=>q.test(a)&&!r.test(a),B=()=>!1,C=a=>s.test(a),D=a=>t.test(a),E=a=>!G(a)&&!M(a),F=a=>T(a,X,B),G=a=>m.test(a),H=a=>T(a,Y,A),I=a=>T(a,Z,v),J=a=>T(a,V,B),K=a=>T(a,W,D),L=a=>T(a,_,C),M=a=>n.test(a),N=a=>U(a,Y),O=a=>U(a,$),P=a=>U(a,V),Q=a=>U(a,X),R=a=>U(a,W),S=a=>U(a,_,!0),T=(a,b,c)=>{let d=m.exec(a);return!!d&&(d[1]?b(d[1]):c(d[2]))},U=(a,b,c=!1)=>{let d=n.exec(a);return!!d&&(d[1]?b(d[1]):c)},V=a=>"position"===a||"percentage"===a,W=a=>"image"===a||"url"===a,X=a=>"length"===a||"size"===a||"bg-size"===a,Y=a=>"length"===a,Z=a=>"number"===a,$=a=>"family-name"===a,_=a=>"shadow"===a;Symbol.toStringTag;let aa=function(a,...b){let c,g,h,k=function(i){let j;return g=(c={cache:(a=>{if(a<1)return{get:()=>void 0,set:()=>{}};let b=0,c=new Map,d=new Map,e=(e,f)=>{c.set(e,f),++b>a&&(b=0,d=c,c=new Map)};return{get(a){let b=c.get(a);return void 0!==b?b:void 0!==(b=d.get(a))?(e(a,b),b):void 0},set(a,b){c.has(a)?c.set(a,b):e(a,b)}}})((j=b.reduce((a,b)=>b(a),a())).cacheSize),parseClassName:(a=>{let{prefix:b,experimentalParseClassName:c}=a,d=a=>{let b,c,d=[],e=0,f=0,g=0;for(let c=0;cg?b-g:void 0}};if(b){let a=b+":",c=d;d=b=>b.startsWith(a)?c(b.substring(a.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:b,maybePostfixModifierPosition:void 0}}if(c){let a=d;d=b=>c({className:b,parseClassName:a})}return d})(j),sortModifiers:(a=>{let b=Object.fromEntries(a.orderSensitiveModifiers.map(a=>[a,!0]));return a=>{if(a.length<=1)return a;let c=[],d=[];return a.forEach(a=>{"["===a[0]||b[a]?(c.push(...d.sort(),a),d=[]):d.push(a)}),c.push(...d.sort()),c}})(j),...(a=>{let b=(a=>{let{theme:b,classGroups:c}=a,d={nextPart:new Map,validators:[]};for(let a in c)f(c[a],d,a,b);return d})(a),{conflictingClassGroups:c,conflictingClassGroupModifiers:g}=a;return{getClassGroupId:a=>{let c=a.split("-");return""===c[0]&&1!==c.length&&c.shift(),d(c,b)||(a=>{if(e.test(a)){let b=e.exec(a)[1],c=b?.substring(0,b.indexOf(":"));if(c)return"arbitrary.."+c}})(a)},getConflictingClassGroupIds:(a,b)=>{let d=c[a]||[];return b&&g[a]?[...d,...g[a]]:d}}})(j)}).cache.get,h=c.cache.set,k=l,l(i)};function l(a){let b=g(a);if(b)return b;let d=((a,b)=>{let{parseClassName:c,getClassGroupId:d,getConflictingClassGroupIds:e,sortModifiers:f}=b,g=[],h=a.trim().split(i),j="";for(let a=h.length-1;a>=0;a-=1){let b=h[a],{isExternal:i,modifiers:k,hasImportantModifier:l,baseClassName:m,maybePostfixModifierPosition:n}=c(b);if(i){j=b+(j.length>0?" "+j:j);continue}let o=!!n,p=d(o?m.substring(0,n):m);if(!p){if(!o||!(p=d(m))){j=b+(j.length>0?" "+j:j);continue}o=!1}let q=f(k).join(":"),r=l?q+"!":q,s=r+p;if(g.includes(s))continue;g.push(s);let t=e(p,o);for(let a=0;a0?" "+j:j)}return j})(a,c);return h(a,d),d}return function(){return k(j.apply(null,arguments))}}(()=>{let a=l("color"),b=l("font"),c=l("text"),d=l("font-weight"),e=l("tracking"),f=l("leading"),g=l("breakpoint"),h=l("container"),i=l("spacing"),j=l("radius"),k=l("shadow"),m=l("inset-shadow"),n=l("text-shadow"),o=l("drop-shadow"),p=l("blur"),q=l("perspective"),r=l("aspect"),s=l("ease"),t=l("animate"),A=()=>["auto","avoid","all","avoid-page","page","left","right","column"],B=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],C=()=>[...B(),M,G],D=()=>["auto","hidden","clip","visible","scroll"],T=()=>["auto","contain","none"],U=()=>[M,G,i],V=()=>[u,"full","auto",...U()],W=()=>[w,"none","subgrid",M,G],X=()=>["auto",{span:["full",w,M,G]},w,M,G],Y=()=>[w,"auto",M,G],Z=()=>["auto","min","max","fr",M,G],$=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],_=()=>["start","end","center","stretch","center-safe","end-safe"],aa=()=>["auto",...U()],ab=()=>[u,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...U()],ac=()=>[a,M,G],ad=()=>[...B(),P,J,{position:[M,G]}],ae=()=>["no-repeat",{repeat:["","x","y","space","round"]}],af=()=>["auto","cover","contain",Q,F,{size:[M,G]}],ag=()=>[x,N,H],ah=()=>["","none","full",j,M,G],ai=()=>["",v,N,H],aj=()=>["solid","dashed","dotted","double"],ak=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],al=()=>[v,x,P,J],am=()=>["","none",p,M,G],an=()=>["none",v,M,G],ao=()=>["none",v,M,G],ap=()=>[v,M,G],aq=()=>[u,"full",...U()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[y],breakpoint:[y],color:[z],container:[y],"drop-shadow":[y],ease:["in","out","in-out"],font:[E],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[y],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[y],shadow:[y],spacing:["px",v],text:[y],"text-shadow":[y],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",u,G,M,r]}],container:["container"],columns:[{columns:[v,G,M,h]}],"break-after":[{"break-after":A()}],"break-before":[{"break-before":A()}],"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"],sr:["sr-only","not-sr-only"],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:C()}],overflow:[{overflow:D()}],"overflow-x":[{"overflow-x":D()}],"overflow-y":[{"overflow-y":D()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:V()}],"inset-x":[{"inset-x":V()}],"inset-y":[{"inset-y":V()}],start:[{start:V()}],end:[{end:V()}],top:[{top:V()}],right:[{right:V()}],bottom:[{bottom:V()}],left:[{left:V()}],visibility:["visible","invisible","collapse"],z:[{z:[w,"auto",M,G]}],basis:[{basis:[u,"full","auto",h,...U()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[v,u,"auto","initial","none",G]}],grow:[{grow:["",v,M,G]}],shrink:[{shrink:["",v,M,G]}],order:[{order:[w,"first","last","none",M,G]}],"grid-cols":[{"grid-cols":W()}],"col-start-end":[{col:X()}],"col-start":[{"col-start":Y()}],"col-end":[{"col-end":Y()}],"grid-rows":[{"grid-rows":W()}],"row-start-end":[{row:X()}],"row-start":[{"row-start":Y()}],"row-end":[{"row-end":Y()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Z()}],"auto-rows":[{"auto-rows":Z()}],gap:[{gap:U()}],"gap-x":[{"gap-x":U()}],"gap-y":[{"gap-y":U()}],"justify-content":[{justify:[...$(),"normal"]}],"justify-items":[{"justify-items":[..._(),"normal"]}],"justify-self":[{"justify-self":["auto",..._()]}],"align-content":[{content:["normal",...$()]}],"align-items":[{items:[..._(),{baseline:["","last"]}]}],"align-self":[{self:["auto",..._(),{baseline:["","last"]}]}],"place-content":[{"place-content":$()}],"place-items":[{"place-items":[..._(),"baseline"]}],"place-self":[{"place-self":["auto",..._()]}],p:[{p:U()}],px:[{px:U()}],py:[{py:U()}],ps:[{ps:U()}],pe:[{pe:U()}],pt:[{pt:U()}],pr:[{pr:U()}],pb:[{pb:U()}],pl:[{pl:U()}],m:[{m:aa()}],mx:[{mx:aa()}],my:[{my:aa()}],ms:[{ms:aa()}],me:[{me:aa()}],mt:[{mt:aa()}],mr:[{mr:aa()}],mb:[{mb:aa()}],ml:[{ml:aa()}],"space-x":[{"space-x":U()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":U()}],"space-y-reverse":["space-y-reverse"],size:[{size:ab()}],w:[{w:[h,"screen",...ab()]}],"min-w":[{"min-w":[h,"screen","none",...ab()]}],"max-w":[{"max-w":[h,"screen","none","prose",{screen:[g]},...ab()]}],h:[{h:["screen","lh",...ab()]}],"min-h":[{"min-h":["screen","lh","none",...ab()]}],"max-h":[{"max-h":["screen","lh",...ab()]}],"font-size":[{text:["base",c,N,H]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[d,M,I]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",x,G]}],"font-family":[{font:[O,G,b]}],"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:[e,M,G]}],"line-clamp":[{"line-clamp":[v,"none",M,I]}],leading:[{leading:[f,...U()]}],"list-image":[{"list-image":["none",M,G]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",M,G]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:ac()}],"text-color":[{text:ac()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...aj(),"wavy"]}],"text-decoration-thickness":[{decoration:[v,"from-font","auto",M,H]}],"text-decoration-color":[{decoration:ac()}],"underline-offset":[{"underline-offset":[v,"auto",M,G]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:U()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",M,G]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",M,G]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ad()}],"bg-repeat":[{bg:ae()}],"bg-size":[{bg:af()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},w,M,G],radial:["",M,G],conic:[w,M,G]},R,K]}],"bg-color":[{bg:ac()}],"gradient-from-pos":[{from:ag()}],"gradient-via-pos":[{via:ag()}],"gradient-to-pos":[{to:ag()}],"gradient-from":[{from:ac()}],"gradient-via":[{via:ac()}],"gradient-to":[{to:ac()}],rounded:[{rounded:ah()}],"rounded-s":[{"rounded-s":ah()}],"rounded-e":[{"rounded-e":ah()}],"rounded-t":[{"rounded-t":ah()}],"rounded-r":[{"rounded-r":ah()}],"rounded-b":[{"rounded-b":ah()}],"rounded-l":[{"rounded-l":ah()}],"rounded-ss":[{"rounded-ss":ah()}],"rounded-se":[{"rounded-se":ah()}],"rounded-ee":[{"rounded-ee":ah()}],"rounded-es":[{"rounded-es":ah()}],"rounded-tl":[{"rounded-tl":ah()}],"rounded-tr":[{"rounded-tr":ah()}],"rounded-br":[{"rounded-br":ah()}],"rounded-bl":[{"rounded-bl":ah()}],"border-w":[{border:ai()}],"border-w-x":[{"border-x":ai()}],"border-w-y":[{"border-y":ai()}],"border-w-s":[{"border-s":ai()}],"border-w-e":[{"border-e":ai()}],"border-w-t":[{"border-t":ai()}],"border-w-r":[{"border-r":ai()}],"border-w-b":[{"border-b":ai()}],"border-w-l":[{"border-l":ai()}],"divide-x":[{"divide-x":ai()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ai()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...aj(),"hidden","none"]}],"divide-style":[{divide:[...aj(),"hidden","none"]}],"border-color":[{border:ac()}],"border-color-x":[{"border-x":ac()}],"border-color-y":[{"border-y":ac()}],"border-color-s":[{"border-s":ac()}],"border-color-e":[{"border-e":ac()}],"border-color-t":[{"border-t":ac()}],"border-color-r":[{"border-r":ac()}],"border-color-b":[{"border-b":ac()}],"border-color-l":[{"border-l":ac()}],"divide-color":[{divide:ac()}],"outline-style":[{outline:[...aj(),"none","hidden"]}],"outline-offset":[{"outline-offset":[v,M,G]}],"outline-w":[{outline:["",v,N,H]}],"outline-color":[{outline:ac()}],shadow:[{shadow:["","none",k,S,L]}],"shadow-color":[{shadow:ac()}],"inset-shadow":[{"inset-shadow":["none",m,S,L]}],"inset-shadow-color":[{"inset-shadow":ac()}],"ring-w":[{ring:ai()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:ac()}],"ring-offset-w":[{"ring-offset":[v,H]}],"ring-offset-color":[{"ring-offset":ac()}],"inset-ring-w":[{"inset-ring":ai()}],"inset-ring-color":[{"inset-ring":ac()}],"text-shadow":[{"text-shadow":["none",n,S,L]}],"text-shadow-color":[{"text-shadow":ac()}],opacity:[{opacity:[v,M,G]}],"mix-blend":[{"mix-blend":[...ak(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ak()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[v]}],"mask-image-linear-from-pos":[{"mask-linear-from":al()}],"mask-image-linear-to-pos":[{"mask-linear-to":al()}],"mask-image-linear-from-color":[{"mask-linear-from":ac()}],"mask-image-linear-to-color":[{"mask-linear-to":ac()}],"mask-image-t-from-pos":[{"mask-t-from":al()}],"mask-image-t-to-pos":[{"mask-t-to":al()}],"mask-image-t-from-color":[{"mask-t-from":ac()}],"mask-image-t-to-color":[{"mask-t-to":ac()}],"mask-image-r-from-pos":[{"mask-r-from":al()}],"mask-image-r-to-pos":[{"mask-r-to":al()}],"mask-image-r-from-color":[{"mask-r-from":ac()}],"mask-image-r-to-color":[{"mask-r-to":ac()}],"mask-image-b-from-pos":[{"mask-b-from":al()}],"mask-image-b-to-pos":[{"mask-b-to":al()}],"mask-image-b-from-color":[{"mask-b-from":ac()}],"mask-image-b-to-color":[{"mask-b-to":ac()}],"mask-image-l-from-pos":[{"mask-l-from":al()}],"mask-image-l-to-pos":[{"mask-l-to":al()}],"mask-image-l-from-color":[{"mask-l-from":ac()}],"mask-image-l-to-color":[{"mask-l-to":ac()}],"mask-image-x-from-pos":[{"mask-x-from":al()}],"mask-image-x-to-pos":[{"mask-x-to":al()}],"mask-image-x-from-color":[{"mask-x-from":ac()}],"mask-image-x-to-color":[{"mask-x-to":ac()}],"mask-image-y-from-pos":[{"mask-y-from":al()}],"mask-image-y-to-pos":[{"mask-y-to":al()}],"mask-image-y-from-color":[{"mask-y-from":ac()}],"mask-image-y-to-color":[{"mask-y-to":ac()}],"mask-image-radial":[{"mask-radial":[M,G]}],"mask-image-radial-from-pos":[{"mask-radial-from":al()}],"mask-image-radial-to-pos":[{"mask-radial-to":al()}],"mask-image-radial-from-color":[{"mask-radial-from":ac()}],"mask-image-radial-to-color":[{"mask-radial-to":ac()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":B()}],"mask-image-conic-pos":[{"mask-conic":[v]}],"mask-image-conic-from-pos":[{"mask-conic-from":al()}],"mask-image-conic-to-pos":[{"mask-conic-to":al()}],"mask-image-conic-from-color":[{"mask-conic-from":ac()}],"mask-image-conic-to-color":[{"mask-conic-to":ac()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ad()}],"mask-repeat":[{mask:ae()}],"mask-size":[{mask:af()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",M,G]}],filter:[{filter:["","none",M,G]}],blur:[{blur:am()}],brightness:[{brightness:[v,M,G]}],contrast:[{contrast:[v,M,G]}],"drop-shadow":[{"drop-shadow":["","none",o,S,L]}],"drop-shadow-color":[{"drop-shadow":ac()}],grayscale:[{grayscale:["",v,M,G]}],"hue-rotate":[{"hue-rotate":[v,M,G]}],invert:[{invert:["",v,M,G]}],saturate:[{saturate:[v,M,G]}],sepia:[{sepia:["",v,M,G]}],"backdrop-filter":[{"backdrop-filter":["","none",M,G]}],"backdrop-blur":[{"backdrop-blur":am()}],"backdrop-brightness":[{"backdrop-brightness":[v,M,G]}],"backdrop-contrast":[{"backdrop-contrast":[v,M,G]}],"backdrop-grayscale":[{"backdrop-grayscale":["",v,M,G]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[v,M,G]}],"backdrop-invert":[{"backdrop-invert":["",v,M,G]}],"backdrop-opacity":[{"backdrop-opacity":[v,M,G]}],"backdrop-saturate":[{"backdrop-saturate":[v,M,G]}],"backdrop-sepia":[{"backdrop-sepia":["",v,M,G]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":U()}],"border-spacing-x":[{"border-spacing-x":U()}],"border-spacing-y":[{"border-spacing-y":U()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",M,G]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[v,"initial",M,G]}],ease:[{ease:["linear","initial",s,M,G]}],delay:[{delay:[v,M,G]}],animate:[{animate:["none",t,M,G]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[q,M,G]}],"perspective-origin":[{"perspective-origin":C()}],rotate:[{rotate:an()}],"rotate-x":[{"rotate-x":an()}],"rotate-y":[{"rotate-y":an()}],"rotate-z":[{"rotate-z":an()}],scale:[{scale:ao()}],"scale-x":[{"scale-x":ao()}],"scale-y":[{"scale-y":ao()}],"scale-z":[{"scale-z":ao()}],"scale-3d":["scale-3d"],skew:[{skew:ap()}],"skew-x":[{"skew-x":ap()}],"skew-y":[{"skew-y":ap()}],transform:[{transform:[M,G,"","none","gpu","cpu"]}],"transform-origin":[{origin:C()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:aq()}],"translate-x":[{"translate-x":aq()}],"translate-y":[{"translate-y":aq()}],"translate-z":[{"translate-z":aq()}],"translate-none":["translate-none"],accent:[{accent:ac()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:ac()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",M,G]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-me":[{"scroll-me":U()}],"scroll-mt":[{"scroll-mt":U()}],"scroll-mr":[{"scroll-mr":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-ml":[{"scroll-ml":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-ps":[{"scroll-ps":U()}],"scroll-pe":[{"scroll-pe":U()}],"scroll-pt":[{"scroll-pt":U()}],"scroll-pr":[{"scroll-pr":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-pl":[{"scroll-pl":U()}],"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",M,G]}],fill:[{fill:["none",...ac()]}],"stroke-w":[{stroke:[v,N,H,I]}],stroke:[{stroke:["none",...ac()]}],"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-x","border-w-y","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-x","border-color-y","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}})},59156:(a,b)=>{"use strict";b.__esModule=!0,b.default=function(a){"object"!=typeof globalThis&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__);var b=globalThis.Handlebars;a.noConflict=function(){return globalThis.Handlebars===a&&(globalThis.Handlebars=b),a}},a.exports=b.default},60073:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]])},61225:(a,b,c)=>{"use strict";c.d(b,{Eq:()=>j});var d=new WeakMap,e=new WeakMap,f={},g=0,h=function(a){return a&&(a.host||h(a.parentNode))},i=function(a,b,c,i){var j=(Array.isArray(a)?a:[a]).map(function(a){if(b.contains(a))return a;var c=h(a);return c&&b.contains(c)?c:(console.error("aria-hidden",a,"in not contained inside",b,". Doing nothing"),null)}).filter(function(a){return!!a});f[c]||(f[c]=new WeakMap);var k=f[c],l=[],m=new Set,n=new Set(j),o=function(a){!a||m.has(a)||(m.add(a),o(a.parentNode))};j.forEach(o);var p=function(a){!a||n.has(a)||Array.prototype.forEach.call(a.children,function(a){if(m.has(a))p(a);else try{var b=a.getAttribute(i),f=null!==b&&"false"!==b,g=(d.get(a)||0)+1,h=(k.get(a)||0)+1;d.set(a,g),k.set(a,h),l.push(a),1===g&&f&&e.set(a,!0),1===h&&a.setAttribute(c,"true"),f||a.setAttribute(i,"true")}catch(b){console.error("aria-hidden: cannot operate on ",a,b)}})};return p(b),m.clear(),g++,function(){l.forEach(function(a){var b=d.get(a)-1,f=k.get(a)-1;d.set(a,b),k.set(a,f),b||(e.has(a)||a.removeAttribute(i),e.delete(a)),f||a.removeAttribute(c)}),--g||(d=new WeakMap,d=new WeakMap,e=new WeakMap,f={})}},j=function(a,b,c){void 0===c&&(c="data-aria-hidden");var d=Array.from(Array.isArray(a)?a:[a]),e=b||("undefined"==typeof document?null:(Array.isArray(a)?a[0]:a).ownerDocument.body);return e?(d.push.apply(d,Array.from(e.querySelectorAll("[aria-live], script"))),i(d,e,c,"aria-hidden")):function(){return null}}},61494:(a,b,c)=>{"use strict";var d=c(75074),e=c(20452),f=c(65353),g=c(34072),h=c(5887),i=c(21843),j=c(82601),k=c(54453),l=c(8153),m=c(6401),n=function(a,b,c){var d,g=e.getTypeOf(b),k=e.extend(c||{},h);k.date=k.date||new Date,null!==k.compression&&(k.compression=k.compression.toUpperCase()),"string"==typeof k.unixPermissions&&(k.unixPermissions=parseInt(k.unixPermissions,8)),k.unixPermissions&&16384&k.unixPermissions&&(k.dir=!0),k.dosPermissions&&16&k.dosPermissions&&(k.dir=!0),k.dir&&(a=p(a)),k.createFolders&&(d=o(a))&&q.call(this,d,!0);var n="string"===g&&!1===k.binary&&!1===k.base64;c&&void 0!==c.binary||(k.binary=!n),(b instanceof i&&0===b.uncompressedSize||k.dir||!b||0===b.length)&&(k.base64=!1,k.binary=!0,b="",k.compression="STORE",g="string");var r=null;r=b instanceof i||b instanceof f?b:l.isNode&&l.isStream(b)?new m(a,b):e.prepareContent(a,b,k.binary,k.optimizedBinaryString,k.base64);var s=new j(a,r,k);this.files[a]=s},o=function(a){"/"===a.slice(-1)&&(a=a.substring(0,a.length-1));var b=a.lastIndexOf("/");return b>0?a.substring(0,b):""},p=function(a){return"/"!==a.slice(-1)&&(a+="/"),a},q=function(a,b){return b=void 0!==b?b:h.createFolders,a=p(a),this.files[a]||n.call(this,a,null,{dir:!0,createFolders:b}),this.files[a]};function r(a){return"[object RegExp]"===Object.prototype.toString.call(a)}a.exports={load:function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(a){var b,c,d;for(b in this.files)d=this.files[b],(c=b.slice(this.root.length,b.length))&&b.slice(0,this.root.length)===this.root&&a(c,d)},filter:function(a){var b=[];return this.forEach(function(c,d){a(c,d)&&b.push(d)}),b},file:function(a,b,c){if(1==arguments.length)if(r(a)){var d=a;return this.filter(function(a,b){return!b.dir&&d.test(a)})}else{var e=this.files[this.root+a];return e&&!e.dir?e:null}return a=this.root+a,n.call(this,a,b,c),this},folder:function(a){if(!a)return this;if(r(a))return this.filter(function(b,c){return c.dir&&a.test(b)});var b=this.root+a,c=q.call(this,b),d=this.clone();return d.root=c.name,d},remove:function(a){a=this.root+a;var b=this.files[a];if(b||("/"!==a.slice(-1)&&(a+="/"),b=this.files[a]),b&&!b.dir)delete this.files[a];else for(var c=this.filter(function(b,c){return c.name.slice(0,a.length)===a}),d=0;d{"use strict";c.d(b,{Z:()=>i});var d=c(38301),e=c(23312),f=c(6406),g=c(68829),h=c(21124),i=d.forwardRef((a,b)=>{let{container:c,...i}=a,[j,k]=d.useState(!1);(0,g.N)(()=>k(!0),[]);let l=c||j&&globalThis?.document?.body;return l?e.createPortal((0,h.jsx)(f.sG.div,{...i,ref:b}),l):null});i.displayName="Portal"},62253:(a,b,c)=>{var d=c(79428),e=d.Buffer;function f(a,b){for(var c in a)b[c]=a[c]}function g(a,b,c){return e(a,b,c)}e.from&&e.alloc&&e.allocUnsafe&&e.allocUnsafeSlow?a.exports=d:(f(d,b),b.Buffer=g),f(e,g),g.from=function(a,b,c){if("number"==typeof a)throw TypeError("Argument must not be a number");return e(a,b,c)},g.alloc=function(a,b,c){if("number"!=typeof a)throw TypeError("Argument must be a number");var d=e(a);return void 0!==b?"string"==typeof c?d.fill(b,c):d.fill(b):d.fill(0),d},g.allocUnsafe=function(a){if("number"!=typeof a)throw TypeError("Argument must be a number");return e(a)},g.allocUnsafeSlow=function(a){if("number"!=typeof a)throw TypeError("Argument must be a number");return d.SlowBuffer(a)}},63046:a=>{var b={}.toString;a.exports=Array.isArray||function(a){return"[object Array]"==b.call(a)}},64685:(a,b)=>{"use strict";function c(a){this.string=a}b.__esModule=!0,c.prototype.toString=c.prototype.toHTML=function(){return""+this.string},b.default=c,a.exports=b.default},65353:a=>{"use strict";function b(a){this.name=a||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}b.prototype={push:function(a){this.emit("data",a)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(a){this.emit("error",a)}return!0},error:function(a){return!this.isFinished&&(this.isPaused?this.generatedError=a:(this.isFinished=!0,this.emit("error",a),this.previous&&this.previous.error(a),this.cleanUp()),!0)},on:function(a,b){return this._listeners[a].push(b),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(a,b){if(this._listeners[a])for(var c=0;c "+a:a}},a.exports=b},67025:(a,b)=>{"use strict";b.__esModule=!0,b.default=function(){var a,b={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:function(a,b,c,d,e,f,g){var h=f.length-1;switch(e){case 1:return f[h-1];case 2:this.$=d.prepareProgram(f[h]);break;case 3:case 4:case 5:case 6:case 7:case 8:case 20:case 27:case 28:case 33:case 34:case 40:case 41:this.$=f[h];break;case 9:this.$={type:"CommentStatement",value:d.stripComment(f[h]),strip:d.stripFlags(f[h],f[h]),loc:d.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:f[h],value:f[h],loc:d.locInfo(this._$)};break;case 11:this.$=d.prepareRawBlock(f[h-2],f[h-1],f[h],this._$);break;case 12:this.$={path:f[h-3],params:f[h-2],hash:f[h-1]};break;case 13:this.$=d.prepareBlock(f[h-3],f[h-2],f[h-1],f[h],!1,this._$);break;case 14:this.$=d.prepareBlock(f[h-3],f[h-2],f[h-1],f[h],!0,this._$);break;case 15:this.$={open:f[h-5],path:f[h-4],params:f[h-3],hash:f[h-2],blockParams:f[h-1],strip:d.stripFlags(f[h-5],f[h])};break;case 16:case 17:this.$={path:f[h-4],params:f[h-3],hash:f[h-2],blockParams:f[h-1],strip:d.stripFlags(f[h-5],f[h])};break;case 18:this.$={strip:d.stripFlags(f[h-1],f[h-1]),program:f[h]};break;case 19:var i=d.prepareBlock(f[h-2],f[h-1],f[h],f[h],!1,this._$),j=d.prepareProgram([i],f[h-1].loc);j.chained=!0,this.$={strip:f[h-2].strip,program:j,chain:!0};break;case 21:this.$={path:f[h-1],strip:d.stripFlags(f[h-2],f[h])};break;case 22:case 23:this.$=d.prepareMustache(f[h-3],f[h-2],f[h-1],f[h-4],d.stripFlags(f[h-4],f[h]),this._$);break;case 24:this.$={type:"PartialStatement",name:f[h-3],params:f[h-2],hash:f[h-1],indent:"",strip:d.stripFlags(f[h-4],f[h]),loc:d.locInfo(this._$)};break;case 25:this.$=d.preparePartialBlock(f[h-2],f[h-1],f[h],this._$);break;case 26:this.$={path:f[h-3],params:f[h-2],hash:f[h-1],strip:d.stripFlags(f[h-4],f[h])};break;case 29:this.$={type:"SubExpression",path:f[h-3],params:f[h-2],hash:f[h-1],loc:d.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:f[h],loc:d.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:d.id(f[h-2]),value:f[h],loc:d.locInfo(this._$)};break;case 32:this.$=d.id(f[h-1]);break;case 35:this.$={type:"StringLiteral",value:f[h],original:f[h],loc:d.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(f[h]),original:Number(f[h]),loc:d.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:"true"===f[h],original:"true"===f[h],loc:d.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:d.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:d.locInfo(this._$)};break;case 42:this.$=d.preparePath(!0,f[h],this._$);break;case 43:this.$=d.preparePath(!1,f[h],this._$);break;case 44:f[h-2].push({part:d.id(f[h]),original:f[h],separator:f[h-1]}),this.$=f[h-2];break;case 45:this.$=[{part:d.id(f[h]),original:f[h]}];break;case 46:case 48:case 50:case 58:case 64:case 70:case 78:case 82:case 86:case 90:case 94:this.$=[];break;case 47:case 49:case 51:case 59:case 65:case 71:case 79:case 83:case 87:case 91:case 95:case 99:case 101:f[h-1].push(f[h]);break;case 98:case 100:this.$=[f[h]]}},table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:function(a,b){throw Error(a)},parse:function(a){var b=this,c=[0],d=[null],e=[],f=this.table,g="",h=0,i=0,j=0;this.lexer.setInput(a),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,void 0===this.lexer.yylloc&&(this.lexer.yylloc={});var k=this.lexer.yylloc;e.push(k);var l=this.lexer.options&&this.lexer.options.ranges;"function"==typeof this.yy.parseError&&(this.parseError=this.yy.parseError);for(var m,n,o,p,q,r,s,t,u,v={};;){if(o=c[c.length-1],this.defaultActions[o]?p=this.defaultActions[o]:(null==m&&(m=function(){var a;return"number"!=typeof(a=b.lexer.lex()||1)&&(a=b.symbols_[a]||a),a}()),p=f[o]&&f[o][m]),void 0===p||!p.length||!p[0]){var w="";if(!j){for(r in u=[],f[o])this.terminals_[r]&&r>2&&u.push("'"+this.terminals_[r]+"'");w=this.lexer.showPosition?"Parse error on line "+(h+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+u.join(", ")+", got '"+(this.terminals_[m]||m)+"'":"Parse error on line "+(h+1)+": Unexpected "+(1==m?"end of input":"'"+(this.terminals_[m]||m)+"'"),this.parseError(w,{text:this.lexer.match,token:this.terminals_[m]||m,line:this.lexer.yylineno,loc:k,expected:u})}}if(p[0]instanceof Array&&p.length>1)throw Error("Parse Error: multiple actions possible at state: "+o+", token: "+m);switch(p[0]){case 1:c.push(m),d.push(this.lexer.yytext),e.push(this.lexer.yylloc),c.push(p[1]),m=null,n?(m=n,n=null):(i=this.lexer.yyleng,g=this.lexer.yytext,h=this.lexer.yylineno,k=this.lexer.yylloc,j>0&&j--);break;case 2:if(s=this.productions_[p[1]][1],v.$=d[d.length-s],v._$={first_line:e[e.length-(s||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(s||1)].first_column,last_column:e[e.length-1].last_column},l&&(v._$.range=[e[e.length-(s||1)].range[0],e[e.length-1].range[1]]),void 0!==(q=this.performAction.call(v,g,i,h,this.yy,p[1],d,e)))return q;s&&(c=c.slice(0,-1*s*2),d=d.slice(0,-1*s),e=e.slice(0,-1*s)),c.push(this.productions_[p[1]][0]),d.push(v.$),e.push(v._$),t=f[c[c.length-2]][c[c.length-1]],c.push(t);break;case 3:return!0}}return!0}};function c(){this.yy={}}return(a={EOF:1,parseError:function(a,b){if(this.yy.parser)this.yy.parser.parseError(a,b);else throw Error(a)},setInput:function(a){return this._input=a,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var a=this._input[0];return this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a,a.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},unput:function(a){var b=a.length,c=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-b-1),this.offset-=b;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var e=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===d.length?this.yylloc.first_column:0)+d[d.length-c.length].length-c[0].length:this.yylloc.first_column-b},this.options.ranges&&(this.yylloc.range=[e[0],e[0]+this.yyleng-b]),this},more:function(){return this._more=!0,this},less:function(a){this.unput(this.match.slice(a))},pastInput:function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var a=this.pastInput(),b=Array(a.length+1).join("-");return a+this.upcomingInput()+"\n"+b+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var a,b,c,d,e,f=this._currentRules(),g=0;gb[0].length)||(b=c,d=g,this.options.flex));g++);return b?((e=b[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=e.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:e?e[e.length-1].length-e[e.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+b[0].length},this.yytext+=b[0],this.match+=b[0],this.matches=b,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(b[0].length),this.matched+=b[0],a=this.performAction.call(this,this.yy,this,f[d],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a)?a:void 0:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var a=this.next();return void 0!==a?a:this.lex()},begin:function(a){this.conditionStack.push(a)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(a){this.begin(a)}}).options={},a.performAction=function(a,b,c,d){function e(a,c){return b.yytext=b.yytext.substring(a,b.yyleng-c+a)}switch(c){case 0:if("\\\\"===b.yytext.slice(-2)?(e(0,1),this.begin("mu")):"\\"===b.yytext.slice(-1)?(e(0,1),this.begin("emu")):this.begin("mu"),b.yytext)return 15;break;case 1:case 5:return 15;case 2:return this.popState(),15;case 3:return this.begin("raw"),15;case 4:if(this.popState(),"raw"===this.conditionStack[this.conditionStack.length-1])return 15;return e(5,9),"END_RAW_BLOCK";case 6:case 22:return this.popState(),14;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:case 16:return this.popState(),44;case 17:return 34;case 18:return 39;case 19:return 51;case 20:case 23:return 48;case 21:this.unput(b.yytext),this.popState(),this.begin("com");break;case 24:return 73;case 25:case 26:case 41:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;case 30:return this.popState(),33;case 31:return b.yytext=e(1,2).replace(/\\"/g,'"'),80;case 32:return b.yytext=e(1,2).replace(/\\'/g,"'"),80;case 33:return 85;case 34:case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 42:return b.yytext=b.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},a.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],a.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},b.lexer=a,c.prototype=b,b.Parser=c,new c}(),a.exports=b.default},67055:(a,b,c)=>{"use strict";var d=c(65353),e=c(20452);function f(a){d.call(this,"ConvertWorker to "+a),this.destType=a}e.inherits(f,d),f.prototype.processChunk=function(a){this.push({data:e.transformTo(this.destType,a.data),meta:a.meta})},a.exports=f},68829:(a,b,c)=>{"use strict";c.d(b,{N:()=>e});var d=c(38301),e=globalThis?.document?d.useLayoutEffect:()=>{}},69082:(a,b,c)=>{function d(a){return Object.prototype.toString.call(a)}b.isArray=function(a){return Array.isArray?Array.isArray(a):"[object Array]"===d(a)},b.isBoolean=function(a){return"boolean"==typeof a},b.isNull=function(a){return null===a},b.isNullOrUndefined=function(a){return null==a},b.isNumber=function(a){return"number"==typeof a},b.isString=function(a){return"string"==typeof a},b.isSymbol=function(a){return"symbol"==typeof a},b.isUndefined=function(a){return void 0===a},b.isRegExp=function(a){return"[object RegExp]"===d(a)},b.isObject=function(a){return"object"==typeof a&&null!==a},b.isDate=function(a){return"[object Date]"===d(a)},b.isError=function(a){return"[object Error]"===d(a)||a instanceof Error},b.isFunction=function(a){return"function"==typeof a},b.isPrimitive=function(a){return null===a||"boolean"==typeof a||"number"==typeof a||"string"==typeof a||"symbol"==typeof a||void 0===a},b.isBuffer=c(79428).Buffer.isBuffer},69720:(a,b,c)=>{a.exports=c(27910)},69998:(a,b,c)=>{"use strict";c.d(b,{n:()=>l});var d=c(38301),e=c(92808),f=c(6406),g=c(71700),h=c(21124),i="focusScope.autoFocusOnMount",j="focusScope.autoFocusOnUnmount",k={bubbles:!1,cancelable:!0},l=d.forwardRef((a,b)=>{let{loop:c=!1,trapped:l=!1,onMountAutoFocus:q,onUnmountAutoFocus:r,...s}=a,[t,u]=d.useState(null),v=(0,g.c)(q),w=(0,g.c)(r),x=d.useRef(null),y=(0,e.s)(b,a=>u(a)),z=d.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;d.useEffect(()=>{if(l){let a=function(a){if(z.paused||!t)return;let b=a.target;t.contains(b)?x.current=b:o(x.current,{select:!0})},b=function(a){if(z.paused||!t)return;let b=a.relatedTarget;null!==b&&(t.contains(b)||o(x.current,{select:!0}))};document.addEventListener("focusin",a),document.addEventListener("focusout",b);let c=new MutationObserver(function(a){if(document.activeElement===document.body)for(let b of a)b.removedNodes.length>0&&o(t)});return t&&c.observe(t,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",a),document.removeEventListener("focusout",b),c.disconnect()}}},[l,t,z.paused]),d.useEffect(()=>{if(t){p.add(z);let a=document.activeElement;if(!t.contains(a)){let b=new CustomEvent(i,k);t.addEventListener(i,v),t.dispatchEvent(b),b.defaultPrevented||(function(a,{select:b=!1}={}){let c=document.activeElement;for(let d of a)if(o(d,{select:b}),document.activeElement!==c)return}(m(t).filter(a=>"A"!==a.tagName),{select:!0}),document.activeElement===a&&o(t))}return()=>{t.removeEventListener(i,v),setTimeout(()=>{let b=new CustomEvent(j,k);t.addEventListener(j,w),t.dispatchEvent(b),b.defaultPrevented||o(a??document.body,{select:!0}),t.removeEventListener(j,w),p.remove(z)},0)}}},[t,v,w,z]);let A=d.useCallback(a=>{if(!c&&!l||z.paused)return;let b="Tab"===a.key&&!a.altKey&&!a.ctrlKey&&!a.metaKey,d=document.activeElement;if(b&&d){let b=a.currentTarget,[e,f]=function(a){let b=m(a);return[n(b,a),n(b.reverse(),a)]}(b);e&&f?a.shiftKey||d!==f?a.shiftKey&&d===e&&(a.preventDefault(),c&&o(f,{select:!0})):(a.preventDefault(),c&&o(e,{select:!0})):d===b&&a.preventDefault()}},[c,l,z.paused]);return(0,h.jsx)(f.sG.div,{tabIndex:-1,...s,ref:y,onKeyDown:A})});function m(a){let b=[],c=document.createTreeWalker(a,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{let b="INPUT"===a.tagName&&"hidden"===a.type;return a.disabled||a.hidden||b?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;c.nextNode();)b.push(c.currentNode);return b}function n(a,b){for(let c of a)if(!function(a,{upTo:b}){if("hidden"===getComputedStyle(a).visibility)return!0;for(;a&&(void 0===b||a!==b);){if("none"===getComputedStyle(a).display)return!0;a=a.parentElement}return!1}(c,{upTo:b}))return c}function o(a,{select:b=!1}={}){if(a&&a.focus){var c;let d=document.activeElement;a.focus({preventScroll:!0}),a!==d&&(c=a)instanceof HTMLInputElement&&"select"in c&&b&&a.select()}}l.displayName="FocusScope";var p=function(){let a=[];return{add(b){let c=a[0];b!==c&&c?.pause(),(a=q(a,b)).unshift(b)},remove(b){a=q(a,b),a[0]?.resume()}}}();function q(a,b){let c=[...a],d=c.indexOf(b);return -1!==d&&c.splice(d,1),c}},70211:(a,b,c)=>{"use strict";var d=c(20452),e=c(65353);function f(a){e.call(this,"DataLengthProbe for "+a),this.propName=a,this.withStreamInfo(a,0)}d.inherits(f,e),f.prototype.processChunk=function(a){if(a){var b=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=b+a.data.length}e.prototype.processChunk.call(this,a)},a.exports=f},70904:(a,b,c)=>{"use strict";c.d(b,{Oh:()=>f});var d=c(38301),e=0;function f(){d.useEffect(()=>{let a=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",a[0]??g()),document.body.insertAdjacentElement("beforeend",a[1]??g()),e++,()=>{1===e&&document.querySelectorAll("[data-radix-focus-guard]").forEach(a=>a.remove()),e--}},[])}function g(){let a=document.createElement("span");return a.setAttribute("data-radix-focus-guard",""),a.tabIndex=0,a.style.outline="none",a.style.opacity="0",a.style.position="fixed",a.style.pointerEvents="none",a}},71613:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},71700:(a,b,c)=>{"use strict";c.d(b,{c:()=>e});var d=c(38301);function e(a){let b=d.useRef(a);return d.useEffect(()=>{b.current=a}),d.useMemo(()=>(...a)=>b.current?.(...a),[])}},72380:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]])},74758:(a,b)=>{"use strict";b.__esModule=!0,b.default=function(a){a.registerHelper("lookup",function(a,b,c){return a?c.lookupProperty(a,b):a})},a.exports=b.default},75074:(a,b,c)=>{"use strict";for(var d=c(20452),e=c(9926),f=c(8153),g=c(65353),h=Array(256),i=0;i<256;i++)h[i]=i>=252?6:i>=248?5:i>=240?4:i>=224?3:i>=192?2:1;h[254]=h[254]=1;var j=function(a){var b,c,d,f,g,h=a.length,i=0;for(f=0;f>>6:(c<65536?b[g++]=224|c>>>12:(b[g++]=240|c>>>18,b[g++]=128|c>>>12&63),b[g++]=128|c>>>6&63),b[g++]=128|63&c);return b},k=function(a,b){var c;for((b=b||a.length)>a.length&&(b=a.length),c=b-1;c>=0&&(192&a[c])==128;)c--;return c<0||0===c?b:c+h[a[c]]>b?c:b},l=function(a){var b,c,e,f,g=a.length,i=Array(2*g);for(c=0,b=0;b4){i[c++]=65533,b+=f-1;continue}for(e&=2===f?31:3===f?15:7;f>1&&b1){i[c++]=65533;continue}e<65536?i[c++]=e:(e-=65536,i[c++]=55296|e>>10&1023,i[c++]=56320|1023&e)}return i.length!==c&&(i.subarray?i=i.subarray(0,c):i.length=c),d.applyFromCharCode(i)};function m(){g.call(this,"utf-8 decode"),this.leftOver=null}function n(){g.call(this,"utf-8 encode")}b.utf8encode=function(a){return e.nodebuffer?f.newBufferFrom(a,"utf-8"):j(a)},b.utf8decode=function(a){return e.nodebuffer?d.transformTo("nodebuffer",a).toString("utf-8"):l(a=d.transformTo(e.uint8array?"uint8array":"array",a))},d.inherits(m,g),m.prototype.processChunk=function(a){var c=d.transformTo(e.uint8array?"uint8array":"array",a.data);if(this.leftOver&&this.leftOver.length){if(e.uint8array){var f=c;(c=new Uint8Array(f.length+this.leftOver.length)).set(this.leftOver,0),c.set(f,this.leftOver.length)}else c=this.leftOver.concat(c);this.leftOver=null}var g=k(c),h=c;g!==c.length&&(e.uint8array?(h=c.subarray(0,g),this.leftOver=c.subarray(g,c.length)):(h=c.slice(0,g),this.leftOver=c.slice(g,c.length))),this.push({data:b.utf8decode(h),meta:a.meta})},m.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:b.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},b.Utf8DecodeWorker=m,d.inherits(n,g),n.prototype.processChunk=function(a){this.push({data:b.utf8encode(a.data),meta:a.meta})},b.Utf8EncodeWorker=n},75219:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},75234:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]])},75441:(a,b,c)=>{"use strict";c.d(b,{bL:()=>w,zi:()=>x});var d=c(38301),e=c(87868),f=c(92808),g=c(2332),h=c(11720),i=c(10350),j=c(96386),k=c(6406),l=c(21124),m="Switch",[n,o]=(0,g.A)(m),[p,q]=n(m),r=d.forwardRef((a,b)=>{let{__scopeSwitch:c,name:g,checked:i,defaultChecked:j,required:n,disabled:o,value:q="on",onCheckedChange:r,form:s,...t}=a,[w,x]=d.useState(null),y=(0,f.s)(b,a=>x(a)),z=d.useRef(!1),A=!w||s||!!w.closest("form"),[B,C]=(0,h.i)({prop:i,defaultProp:j??!1,onChange:r,caller:m});return(0,l.jsxs)(p,{scope:c,checked:B,disabled:o,children:[(0,l.jsx)(k.sG.button,{type:"button",role:"switch","aria-checked":B,"aria-required":n,"data-state":v(B),"data-disabled":o?"":void 0,disabled:o,value:q,...t,ref:y,onClick:(0,e.mK)(a.onClick,a=>{C(a=>!a),A&&(z.current=a.isPropagationStopped(),z.current||a.stopPropagation())})}),A&&(0,l.jsx)(u,{control:w,bubbles:!z.current,name:g,value:q,checked:B,required:n,disabled:o,form:s,style:{transform:"translateX(-100%)"}})]})});r.displayName=m;var s="SwitchThumb",t=d.forwardRef((a,b)=>{let{__scopeSwitch:c,...d}=a,e=q(s,c);return(0,l.jsx)(k.sG.span,{"data-state":v(e.checked),"data-disabled":e.disabled?"":void 0,...d,ref:b})});t.displayName=s;var u=d.forwardRef(({__scopeSwitch:a,control:b,checked:c,bubbles:e=!0,...g},h)=>{let k=d.useRef(null),m=(0,f.s)(k,h),n=(0,i.Z)(c),o=(0,j.X)(b);return d.useEffect(()=>{let a=k.current;if(!a)return;let b=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(n!==c&&b){let d=new Event("click",{bubbles:e});b.call(a,c),a.dispatchEvent(d)}},[n,c,e]),(0,l.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:c,...g,tabIndex:-1,ref:m,style:{...g.style,...o,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function v(a){return a?"checked":"unchecked"}u.displayName="SwitchBubbleInput";var w=r,x=t},75465:(a,b,c)=>{"use strict";b.__esModule=!0;var d=c(50281),e=function(a){return a&&a.__esModule?a:{default:a}}(c(1793));b.default=function(a){a.registerHelper("each",function(a,b){if(!b)throw new e.default("Must pass iterator to #each");var c,f=b.fn,g=b.inverse,h=0,i="",j=void 0,k=void 0;function l(b,c,e){j&&(j.key=b,j.index=c,j.first=0===c,j.last=!!e,k&&(j.contextPath=k+b)),i+=f(a[b],{data:j,blockParams:d.blockParams([a[b],b],[k+b,null])})}if(b.data&&b.ids&&(k=d.appendContextPath(b.data.contextPath,b.ids[0])+"."),d.isFunction(a)&&(a=a.call(this)),b.data&&(j=d.createFrame(b.data)),a&&"object"==typeof a)if(d.isArray(a))for(var m=a.length;h{"use strict";c.d(b,{B:()=>i});var d,e=c(38301),f=c(68829),g=(d||(d=c.t(e,2)))[" useId ".trim().toString()]||(()=>void 0),h=0;function i(a){let[b,c]=e.useState(g());return(0,f.N)(()=>{a||c(a=>a??String(h++))},[a]),a||(b?`radix-${b}`:"")}},76137:a=>{"use strict";a.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},76824:(a,b,c)=>{"use strict";b.__esModule=!0,b.checkRevision=function(a){var b=a&&a[0]||1,c=f.COMPILER_REVISION;if(!(b>=f.LAST_COMPATIBLE_COMPILER_REVISION)||!(b<=f.COMPILER_REVISION))if(b{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]])},78094:a=>{"use strict";a.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},78406:a=>{"use strict";global.MutationObserver||global.WebKitMutationObserver;var b,c=function(){process.nextTick(e)},d=[];function e(){b=!0;for(var a,c,e=d.length;e;){for(c=d,d=[],a=-1;++a{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]])},79944:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},80451:(a,b)=>{"use strict";b.LOCAL_FILE_HEADER="PK\x03\x04",b.CENTRAL_FILE_HEADER="PK\x01\x02",b.CENTRAL_DIRECTORY_END="PK\x05\x06",b.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07",b.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06",b.DATA_DESCRIPTOR="PK\x07\b"},82042:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},82601:(a,b,c)=>{"use strict";var d=c(34072),e=c(32970),f=c(75074),g=c(21843),h=c(65353),i=function(a,b,c){this.name=a,this.dir=c.dir,this.date=c.date,this.comment=c.comment,this.unixPermissions=c.unixPermissions,this.dosPermissions=c.dosPermissions,this._data=b,this._dataBinary=c.binary,this.options={compression:c.compression,compressionOptions:c.compressionOptions}};i.prototype={internalStream:function(a){var b=null,c="string";try{if(!a)throw Error("No output type specified.");c=a.toLowerCase();var e="string"===c||"text"===c;("binarystring"===c||"text"===c)&&(c="string"),b=this._decompressWorker();var g=!this._dataBinary;g&&!e&&(b=b.pipe(new f.Utf8EncodeWorker)),!g&&e&&(b=b.pipe(new f.Utf8DecodeWorker))}catch(a){(b=new h("error")).error(a)}return new d(b,c,"")},async:function(a,b){return this.internalStream(a).accumulate(b)},nodeStream:function(a,b){return this.internalStream(a||"nodebuffer").toNodejsStream(b)},_compressWorker:function(a,b){if(this._data instanceof g&&this._data.compression.magic===a.magic)return this._data.getCompressedWorker();var c=this._decompressWorker();return this._dataBinary||(c=c.pipe(new f.Utf8EncodeWorker)),g.createWorkerFrom(c,a,b)},_decompressWorker:function(){return this._data instanceof g?this._data.getContentWorker():this._data instanceof h?this._data:new e(this._data)}};for(var j=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],k=function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},l=0;l{"use strict";var d=c(38590);function e(a){d.call(this,a)}c(20452).inherits(e,d),e.prototype.byteAt=function(a){return this.data.charCodeAt(this.zero+a)},e.prototype.lastIndexOfSignature=function(a){return this.data.lastIndexOf(a)-this.zero},e.prototype.readAndCheckSignature=function(a){return a===this.readData(4)},e.prototype.readData=function(a){this.checkOffset(a);var b=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,b},a.exports=e},84220:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("cloud",[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]])},85009:(a,b,c)=>{"use strict";c.d(b,{Qg:()=>g,bL:()=>i});var d=c(38301),e=c(6406),f=c(21124),g=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),h=d.forwardRef((a,b)=>(0,f.jsx)(e.sG.span,{...a,ref:b,style:{...g,...a.style}}));h.displayName="VisuallyHidden";var i=h},85351:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},87732:(a,b)=>{"use strict";b.__esModule=!0;var c={helpers:{helperExpression:function(a){return"SubExpression"===a.type||("MustacheStatement"===a.type||"BlockStatement"===a.type)&&!!(a.params&&a.params.length||a.hash)},scopedId:function(a){return/^\.|this\b/.test(a.original)},simpleId:function(a){return 1===a.parts.length&&!c.helpers.scopedId(a)&&!a.depth}}};b.default=c,a.exports=b.default},87868:(a,b,c)=>{"use strict";function d(a,b,{checkForDefaultPrevented:c=!0}={}){return function(d){if(a?.(d),!1===c||!d.defaultPrevented)return b?.(d)}}c.d(b,{mK:()=>d}),"undefined"!=typeof window&&window.document&&window.document.createElement},88285:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]])},88293:(a,b,c)=>{"use strict";function d(a){return a&&a.__esModule?a:{default:a}}b.__esModule=!0,b.registerDefaultHelpers=function(a){e.default(a),f.default(a),g.default(a),h.default(a),i.default(a),j.default(a),k.default(a)},b.moveHelperToHooks=function(a,b,c){a.helpers[b]&&(a.hooks[b]=a.helpers[b],c||delete a.helpers[b])};var e=d(c(89113)),f=d(c(75465)),g=d(c(49241)),h=d(c(57623)),i=d(c(89580)),j=d(c(74758)),k=d(c(93540))},89113:(a,b,c)=>{"use strict";b.__esModule=!0;var d=c(50281);b.default=function(a){a.registerHelper("blockHelperMissing",function(b,c){var e=c.inverse,f=c.fn;if(!0===b)return f(this);if(!1===b||null==b)return e(this);if(d.isArray(b))if(b.length>0)return c.ids&&(c.ids=[c.name]),a.helpers.each(b,c);else return e(this);if(c.data&&c.ids){var g=d.createFrame(c.data);g.contextPath=d.appendContextPath(c.data.contextPath,c.name),c={data:g}}return f(b,c)})},a.exports=b.default},89580:(a,b)=>{"use strict";b.__esModule=!0,b.default=function(a){a.registerHelper("log",function(){for(var b=[void 0],c=arguments[arguments.length-1],d=0;d{"use strict";b.__esModule=!0,b.createProtoAccessControl=function(a){var b=Object.create(null);b.constructor=!1,b.__defineGetter__=!1,b.__defineSetter__=!1,b.__lookupGetter__=!1;var c=Object.create(null);return c.__proto__=!1,{properties:{whitelist:d.createNewLookupObject(c,a.allowedProtoProperties),defaultValue:a.allowProtoPropertiesByDefault},methods:{whitelist:d.createNewLookupObject(b,a.allowedProtoMethods),defaultValue:a.allowProtoMethodsByDefault}}},b.resultIsAllowed=function(a,b,c){return"function"==typeof a?g(b.methods,c):g(b.properties,c)},b.resetLoggedProperties=function(){Object.keys(f).forEach(function(a){delete f[a]})};var d=c(56898),e=function(a){return a&&a.__esModule?a:{default:a}}(c(95050)),f=Object.create(null);function g(a,b){var c;return void 0!==a.whitelist[b]?!0===a.whitelist[b]:void 0!==a.defaultValue?a.defaultValue:(!0!==f[c=b]&&(f[c]=!0,e.default.log("error",'Handlebars: Access has been denied to resolve the property "'+c+'" because it is not an "own property" of its parent.\nYou can add a runtime option to disable the check or this warning:\nSee https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details')),!1)}},89872:(a,b,c)=>{"use strict";b.__esModule=!0;var d=c(50281),e=void 0;function f(a,b,c){if(d.isArray(a)){for(var e=[],f=0,g=a.length;f{"use strict";a.exports=function(a,b,c,d){for(var e=65535&a,f=a>>>16&65535,g=0;0!==c;){g=c>2e3?2e3:c,c-=g;do f=f+(e=e+b[d++]|0)|0;while(--g);e%=65521,f%=65521}return e|f<<16}},91292:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]])},92808:(a,b,c)=>{"use strict";c.d(b,{s:()=>g,t:()=>f});var d=c(38301);function e(a,b){if("function"==typeof a)return a(b);null!=a&&(a.current=b)}function f(...a){return b=>{let c=!1,d=a.map(a=>{let d=e(a,b);return c||"function"!=typeof d||(c=!0),d});if(c)return()=>{for(let b=0;b{"use strict";b.__esModule=!0;var d=c(50281),e=function(a){return a&&a.__esModule?a:{default:a}}(c(1793));b.default=function(a){a.registerHelper("with",function(a,b){if(2!=arguments.length)throw new e.default("#with requires exactly one argument");d.isFunction(a)&&(a=a.call(this));var c=b.fn;if(d.isEmpty(a))return b.inverse(this);var f=b.data;return b.data&&b.ids&&((f=d.createFrame(b.data)).contextPath=d.appendContextPath(b.data.contextPath,b.ids[0])),c(a,{data:f,blockParams:d.blockParams([a],[f&&f.contextPath])})})},a.exports=b.default},93872:(a,b,c)=>{"use strict";a.exports=f;var d=c(99438),e=Object.create(c(69082));function f(a){if(!(this instanceof f))return new f(a);d.call(this,a)}e.inherits=c(48985),e.inherits(f,d),f.prototype._transform=function(a,b,c){c(null,a)}},93918:(a,b,c)=>{"use strict";var d=c(20452),e=c(65353),f=c(75074),g=c(35310),h=c(80451),i=function(a,b){var c,d="";for(c=0;c>>=8;return d},j=function(a,b){var c=a;return a||(c=b?16893:33204),(65535&c)<<16},k=function(a,b,c,e,k,l){var m,n,o=a.file,p=a.compression,q=l!==f.utf8encode,r=d.transformTo("string",l(o.name)),s=d.transformTo("string",f.utf8encode(o.name)),t=o.comment,u=d.transformTo("string",l(t)),v=d.transformTo("string",f.utf8encode(t)),w=s.length!==o.name.length,x=v.length!==t.length,y="",z="",A="",B=o.dir,C=o.date,D={crc32:0,compressedSize:0,uncompressedSize:0};(!b||c)&&(D.crc32=a.crc32,D.compressedSize=a.compressedSize,D.uncompressedSize=a.uncompressedSize);var E=0;b&&(E|=8),!q&&(w||x)&&(E|=2048);var F=0,G=0;(B&&(F|=16),"UNIX"===k)?(G=798,F|=j(o.unixPermissions,B)):(G=20,F|=63&(o.dosPermissions||0)),m=(C.getUTCHours()<<6|C.getUTCMinutes())<<5|C.getUTCSeconds()/2,n=(C.getUTCFullYear()-1980<<4|C.getUTCMonth()+1)<<5|C.getUTCDate(),w&&(z=i(1,1)+i(g(r),4)+s,y+="up"+i(z.length,2)+z),x&&(A=i(1,1)+i(g(u),4)+v,y+="uc"+i(A.length,2)+A);var H="";return H+="\n\0",H+=i(E,2),H+=p.magic,H+=i(m,2),H+=i(n,2),H+=i(D.crc32,4),H+=i(D.compressedSize,4),H+=i(D.uncompressedSize,4),H+=i(r.length,2),H+=i(y.length,2),{fileRecord:h.LOCAL_FILE_HEADER+H+r+y,dirRecord:h.CENTRAL_FILE_HEADER+i(G,2)+H+i(u.length,2)+"\0\0\0\0"+i(F,4)+i(e,4)+r+y+u}},l=function(a,b,c,e,f){var g=d.transformTo("string",f(e));return h.CENTRAL_DIRECTORY_END+"\0\0\0\0"+i(a,2)+i(a,2)+i(b,4)+i(c,4)+i(g.length,2)+g},m=function(a){return h.DATA_DESCRIPTOR+i(a.crc32,4)+i(a.compressedSize,4)+i(a.uncompressedSize,4)};function n(a,b,c,d){e.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=b,this.zipPlatform=c,this.encodeFileName=d,this.streamFiles=a,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}d.inherits(n,e),n.prototype.push=function(a){var b=a.meta.percent||0,c=this.entriesCount,d=this._sources.length;this.accumulate?this.contentBuffer.push(a):(this.bytesWritten+=a.data.length,e.prototype.push.call(this,{data:a.data,meta:{currentFile:this.currentFile,percent:c?(b+100*(c-d-1))/c:100}}))},n.prototype.openedSource=function(a){this.currentSourceOffset=this.bytesWritten,this.currentFile=a.file.name;var b=this.streamFiles&&!a.file.dir;if(b){var c=k(a,b,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:c.fileRecord,meta:{percent:0}})}else this.accumulate=!0},n.prototype.closedSource=function(a){this.accumulate=!1;var b=this.streamFiles&&!a.file.dir,c=k(a,b,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(c.dirRecord),b)this.push({data:m(a),meta:{percent:100}});else for(this.push({data:c.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},n.prototype.flush=function(){for(var a=this.bytesWritten,b=0;b{"use strict";b.__esModule=!0;var d=c(50281),e={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(a){if("string"==typeof a){var b=d.indexOf(e.methodMap,a.toLowerCase());a=b>=0?b:parseInt(a,10)}return a},log:function(a){if(a=e.lookupLevel(a),"undefined"!=typeof console&&e.lookupLevel(e.level)<=a){var b=e.methodMap[a];console[b]||(b="log");for(var c=arguments.length,d=Array(c>1?c-1:0),f=1;f{"use strict";var d=c(12778).Readable;function e(a,b,c){d.call(this,b),this._helper=a;var e=this;a.on("data",function(a,b){e.push(a)||e._helper.pause(),c&&c(b)}).on("error",function(a){e.emit("error",a)}).on("end",function(){e.push(null)})}c(20452).inherits(e,d),e.prototype._read=function(){this._helper.resume()},a.exports=e},96332:(a,b,c)=>{"use strict";c.d(b,{VA:()=>e});var d=Object.defineProperty;Object.getOwnPropertyNames;var e=(a,b)=>{for(var c in b)d(a,c,{get:b[c],enumerable:!0})}},96386:(a,b,c)=>{"use strict";c.d(b,{X:()=>f});var d=c(38301),e=c(68829);function f(a){let[b,c]=d.useState(void 0);return(0,e.N)(()=>{if(a){c({width:a.offsetWidth,height:a.offsetHeight});let b=new ResizeObserver(b=>{let d,e;if(!Array.isArray(b)||!b.length)return;let f=b[0];if("borderBoxSize"in f){let a=f.borderBoxSize,b=Array.isArray(a)?a[0]:a;d=b.inlineSize,e=b.blockSize}else d=a.offsetWidth,e=a.offsetHeight;c({width:d,height:e})});return b.observe(a,{box:"border-box"}),()=>b.unobserve(a)}c(void 0)},[a]),b}},96425:(a,b,c)=>{"use strict";c.d(b,{DX:()=>h,Dc:()=>j,TL:()=>g});var d=c(38301),e=c(92808),f=c(21124);function g(a){let b=function(a){let b=d.forwardRef((a,b)=>{let{children:c,...f}=a;if(d.isValidElement(c)){var g;let a,h,i=(g=c,(h=(a=Object.getOwnPropertyDescriptor(g.props,"ref")?.get)&&"isReactWarning"in a&&a.isReactWarning)?g.ref:(h=(a=Object.getOwnPropertyDescriptor(g,"ref")?.get)&&"isReactWarning"in a&&a.isReactWarning)?g.props.ref:g.props.ref||g.ref),j=function(a,b){let c={...b};for(let d in b){let e=a[d],f=b[d];/^on[A-Z]/.test(d)?e&&f?c[d]=(...a)=>{let b=f(...a);return e(...a),b}:e&&(c[d]=e):"style"===d?c[d]={...e,...f}:"className"===d&&(c[d]=[e,f].filter(Boolean).join(" "))}return{...a,...c}}(f,c.props);return c.type!==d.Fragment&&(j.ref=b?(0,e.t)(b,i):i),d.cloneElement(c,j)}return d.Children.count(c)>1?d.Children.only(null):null});return b.displayName=`${a}.SlotClone`,b}(a),c=d.forwardRef((a,c)=>{let{children:e,...g}=a,h=d.Children.toArray(e),i=h.find(k);if(i){let a=i.props.children,e=h.map(b=>b!==i?b:d.Children.count(a)>1?d.Children.only(null):d.isValidElement(a)?a.props.children:null);return(0,f.jsx)(b,{...g,ref:c,children:d.isValidElement(a)?d.cloneElement(a,void 0,e):null})}return(0,f.jsx)(b,{...g,ref:c,children:e})});return c.displayName=`${a}.Slot`,c}var h=g("Slot"),i=Symbol("radix.slottable");function j(a){let b=({children:a})=>(0,f.jsx)(f.Fragment,{children:a});return b.displayName=`${a}.Slottable`,b.__radixId=i,b}function k(a){return d.isValidElement(a)&&"function"==typeof a.type&&"__radixId"in a.type&&a.type.__radixId===i}},98164:(a,b,c)=>{"use strict";var d=c(43613),e=!0,f=!0;try{String.fromCharCode.apply(null,[0])}catch(a){e=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(a){f=!1}for(var g=new d.Buf8(256),h=0;h<256;h++)g[h]=h>=252?6:h>=248?5:h>=240?4:h>=224?3:h>=192?2:1;function i(a,b){if(b<65534&&(a.subarray&&f||!a.subarray&&e))return String.fromCharCode.apply(null,d.shrinkBuf(a,b));for(var c="",g=0;g>>6:(c<65536?b[g++]=224|c>>>12:(b[g++]=240|c>>>18,b[g++]=128|c>>>12&63),b[g++]=128|c>>>6&63),b[g++]=128|63&c);return b},b.buf2binstring=function(a){return i(a,a.length)},b.binstring2buf=function(a){for(var b=new d.Buf8(a.length),c=0,e=b.length;c4){j[d++]=65533,c+=f-1;continue}for(e&=2===f?31:3===f?15:7;f>1&&c1){j[d++]=65533;continue}e<65536?j[d++]=e:(e-=65536,j[d++]=55296|e>>10&1023,j[d++]=56320|1023&e)}return i(j,d)},b.utf8border=function(a,b){var c;for((b=b||a.length)>a.length&&(b=a.length),c=b-1;c>=0&&(192&a[c])==128;)c--;return c<0||0===c?b:c+g[a[c]]>b?c:b}},99438:(a,b,c)=>{"use strict";a.exports=g;var d=c(47482),e=Object.create(c(69082));function f(a,b){var c=this._transformState;c.transforming=!1;var d=c.writecb;if(!d)return this.emit("error",Error("write callback called multiple times"));c.writechunk=null,c.writecb=null,null!=b&&this.push(b),d(a);var e=this._readableState;e.reading=!1,(e.needReadable||e.length{"use strict";c.d(b,{UC:()=>T,ZL:()=>S,bL:()=>Q,l9:()=>R});var d=c(38301),e=c(87868),f=c(92808),g=c(2332),h=c(7412),i=c(70904),j=c(69998),k=c(75656),l=c(25122),m=c(61611),n=c(29988),o=c(6406),p=c(96425),q=c(11720),r=c(61225),s=c(36409),t=c(21124),u="Popover",[v,w]=(0,g.A)(u,[l.Bk]),x=(0,l.Bk)(),[y,z]=v(u),A=a=>{let{__scopePopover:b,children:c,open:e,defaultOpen:f,onOpenChange:g,modal:h=!1}=a,i=x(b),j=d.useRef(null),[m,n]=d.useState(!1),[o,p]=(0,q.i)({prop:e,defaultProp:f??!1,onChange:g,caller:u});return(0,t.jsx)(l.bL,{...i,children:(0,t.jsx)(y,{scope:b,contentId:(0,k.B)(),triggerRef:j,open:o,onOpenChange:p,onOpenToggle:d.useCallback(()=>p(a=>!a),[p]),hasCustomAnchor:m,onCustomAnchorAdd:d.useCallback(()=>n(!0),[]),onCustomAnchorRemove:d.useCallback(()=>n(!1),[]),modal:h,children:c})})};A.displayName=u;var B="PopoverAnchor";d.forwardRef((a,b)=>{let{__scopePopover:c,...e}=a,f=z(B,c),g=x(c),{onCustomAnchorAdd:h,onCustomAnchorRemove:i}=f;return d.useEffect(()=>(h(),()=>i()),[h,i]),(0,t.jsx)(l.Mz,{...g,...e,ref:b})}).displayName=B;var C="PopoverTrigger",D=d.forwardRef((a,b)=>{let{__scopePopover:c,...d}=a,g=z(C,c),h=x(c),i=(0,f.s)(b,g.triggerRef),j=(0,t.jsx)(o.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":g.open,"aria-controls":g.contentId,"data-state":P(g.open),...d,ref:i,onClick:(0,e.mK)(a.onClick,g.onOpenToggle)});return g.hasCustomAnchor?j:(0,t.jsx)(l.Mz,{asChild:!0,...h,children:j})});D.displayName=C;var E="PopoverPortal",[F,G]=v(E,{forceMount:void 0}),H=a=>{let{__scopePopover:b,forceMount:c,children:d,container:e}=a,f=z(E,b);return(0,t.jsx)(F,{scope:b,forceMount:c,children:(0,t.jsx)(n.C,{present:c||f.open,children:(0,t.jsx)(m.Z,{asChild:!0,container:e,children:d})})})};H.displayName=E;var I="PopoverContent",J=d.forwardRef((a,b)=>{let c=G(I,a.__scopePopover),{forceMount:d=c.forceMount,...e}=a,f=z(I,a.__scopePopover);return(0,t.jsx)(n.C,{present:d||f.open,children:f.modal?(0,t.jsx)(L,{...e,ref:b}):(0,t.jsx)(M,{...e,ref:b})})});J.displayName=I;var K=(0,p.TL)("PopoverContent.RemoveScroll"),L=d.forwardRef((a,b)=>{let c=z(I,a.__scopePopover),g=d.useRef(null),h=(0,f.s)(b,g),i=d.useRef(!1);return d.useEffect(()=>{let a=g.current;if(a)return(0,r.Eq)(a)},[]),(0,t.jsx)(s.A,{as:K,allowPinchZoom:!0,children:(0,t.jsx)(N,{...a,ref:h,trapFocus:c.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,e.mK)(a.onCloseAutoFocus,a=>{a.preventDefault(),i.current||c.triggerRef.current?.focus()}),onPointerDownOutside:(0,e.mK)(a.onPointerDownOutside,a=>{let b=a.detail.originalEvent,c=0===b.button&&!0===b.ctrlKey;i.current=2===b.button||c},{checkForDefaultPrevented:!1}),onFocusOutside:(0,e.mK)(a.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),M=d.forwardRef((a,b)=>{let c=z(I,a.__scopePopover),e=d.useRef(!1),f=d.useRef(!1);return(0,t.jsx)(N,{...a,ref:b,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:b=>{a.onCloseAutoFocus?.(b),b.defaultPrevented||(e.current||c.triggerRef.current?.focus(),b.preventDefault()),e.current=!1,f.current=!1},onInteractOutside:b=>{a.onInteractOutside?.(b),b.defaultPrevented||(e.current=!0,"pointerdown"===b.detail.originalEvent.type&&(f.current=!0));let d=b.target;c.triggerRef.current?.contains(d)&&b.preventDefault(),"focusin"===b.detail.originalEvent.type&&f.current&&b.preventDefault()}})}),N=d.forwardRef((a,b)=>{let{__scopePopover:c,trapFocus:d,onOpenAutoFocus:e,onCloseAutoFocus:f,disableOutsidePointerEvents:g,onEscapeKeyDown:k,onPointerDownOutside:m,onFocusOutside:n,onInteractOutside:o,...p}=a,q=z(I,c),r=x(c);return(0,i.Oh)(),(0,t.jsx)(j.n,{asChild:!0,loop:!0,trapped:d,onMountAutoFocus:e,onUnmountAutoFocus:f,children:(0,t.jsx)(h.qW,{asChild:!0,disableOutsidePointerEvents:g,onInteractOutside:o,onEscapeKeyDown:k,onPointerDownOutside:m,onFocusOutside:n,onDismiss:()=>q.onOpenChange(!1),children:(0,t.jsx)(l.UC,{"data-state":P(q.open),role:"dialog",id:q.contentId,...r,...p,ref:b,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),O="PopoverClose";function P(a){return a?"open":"closed"}d.forwardRef((a,b)=>{let{__scopePopover:c,...d}=a,f=z(O,c);return(0,t.jsx)(o.sG.button,{type:"button",...d,ref:b,onClick:(0,e.mK)(a.onClick,()=>f.onOpenChange(!1))})}).displayName=O,d.forwardRef((a,b)=>{let{__scopePopover:c,...d}=a,e=x(c);return(0,t.jsx)(l.i3,{...e,...d,ref:b})}).displayName="PopoverArrow";var Q=A,R=D,S=H,T=J},825:(a,b,c)=>{"use strict";c.d(b,{N:()=>i});var d=c(38301),e=c(2332),f=c(92808),g=c(96425),h=c(21124);function i(a){let b=a+"CollectionProvider",[c,i]=(0,e.A)(b),[j,k]=c(b,{collectionRef:{current:null},itemMap:new Map}),l=a=>{let{scope:b,children:c}=a,e=d.useRef(null),f=d.useRef(new Map).current;return(0,h.jsx)(j,{scope:b,itemMap:f,collectionRef:e,children:c})};l.displayName=b;let m=a+"CollectionSlot",n=(0,g.TL)(m),o=d.forwardRef((a,b)=>{let{scope:c,children:d}=a,e=k(m,c),g=(0,f.s)(b,e.collectionRef);return(0,h.jsx)(n,{ref:g,children:d})});o.displayName=m;let p=a+"CollectionItemSlot",q="data-radix-collection-item",r=(0,g.TL)(p),s=d.forwardRef((a,b)=>{let{scope:c,children:e,...g}=a,i=d.useRef(null),j=(0,f.s)(b,i),l=k(p,c);return d.useEffect(()=>(l.itemMap.set(i,{ref:i,...g}),()=>void l.itemMap.delete(i))),(0,h.jsx)(r,{...{[q]:""},ref:j,children:e})});return s.displayName=p,[{Provider:l,Slot:o,ItemSlot:s},function(b){let c=k(a+"CollectionConsumer",b);return d.useCallback(()=>{let a=c.collectionRef.current;if(!a)return[];let b=Array.from(a.querySelectorAll(`[${q}]`));return Array.from(c.itemMap.values()).sort((a,c)=>b.indexOf(a.ref.current)-b.indexOf(c.ref.current))},[c.collectionRef,c.itemMap])},i]}var j=new WeakMap;function k(a,b){if("at"in Array.prototype)return Array.prototype.at.call(a,b);let c=function(a,b){let c=a.length,d=l(b),e=d>=0?d:c+d;return e<0||e>=c?-1:e}(a,b);return -1===c?void 0:a[c]}function l(a){return a!=a||0===a?0:Math.trunc(a)}(class a extends Map{#a;constructor(a){super(a),this.#a=[...super.keys()],j.set(this,!0)}set(a,b){return j.get(this)&&(this.has(a)?this.#a[this.#a.indexOf(a)]=a:this.#a.push(a)),super.set(a,b),this}insert(a,b,c){let d,e=this.has(b),f=this.#a.length,g=l(a),h=g>=0?g:f+g,i=h<0||h>=f?-1:h;if(i===this.size||e&&i===this.size-1||-1===i)return this.set(b,c),this;let j=this.size+ +!e;g<0&&h++;let k=[...this.#a],m=!1;for(let a=h;a=this.size&&(d=this.size-1),this.at(d)}keyFrom(a,b){let c=this.indexOf(a);if(-1===c)return;let d=c+b;return d<0&&(d=0),d>=this.size&&(d=this.size-1),this.keyAt(d)}find(a,b){let c=0;for(let d of this){if(Reflect.apply(a,b,[d,c,this]))return d;c++}}findIndex(a,b){let c=0;for(let d of this){if(Reflect.apply(a,b,[d,c,this]))return c;c++}return -1}filter(b,c){let d=[],e=0;for(let a of this)Reflect.apply(b,c,[a,e,this])&&d.push(a),e++;return new a(d)}map(b,c){let d=[],e=0;for(let a of this)d.push([a[0],Reflect.apply(b,c,[a,e,this])]),e++;return new a(d)}reduce(...a){let[b,c]=a,d=0,e=c??this.at(0);for(let c of this)e=0===d&&1===a.length?c:Reflect.apply(b,this,[e,c,d,this]),d++;return e}reduceRight(...a){let[b,c]=a,d=c??this.at(-1);for(let c=this.size-1;c>=0;c--){let e=this.at(c);d=c===this.size-1&&1===a.length?e:Reflect.apply(b,this,[d,e,c,this])}return d}toSorted(b){return new a([...this.entries()].sort(b))}toReversed(){let b=new a;for(let a=this.size-1;a>=0;a--){let c=this.keyAt(a),d=this.get(c);b.set(c,d)}return b}toSpliced(...b){let c=[...this.entries()];return c.splice(...b),new a(c)}slice(b,c){let d=new a,e=this.size-1;if(void 0===b)return d;b<0&&(b+=this.size),void 0!==c&&c>0&&(e=c-1);for(let a=b;a<=e;a++){let b=this.keyAt(a),c=this.get(b);d.set(b,c)}return d}every(a,b){let c=0;for(let d of this){if(!Reflect.apply(a,b,[d,c,this]))return!1;c++}return!0}some(a,b){let c=0;for(let d of this){if(Reflect.apply(a,b,[d,c,this]))return!0;c++}return!1}})},1094:a=>{"use strict";a.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},1793:(a,b)=>{"use strict";b.__esModule=!0;var c=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function d(a,b){var e=b&&b.loc,f=void 0,g=void 0,h=void 0,i=void 0;e&&(f=e.start.line,g=e.end.line,h=e.start.column,i=e.end.column,a+=" - "+f+":"+h);for(var j=Error.prototype.constructor.call(this,a),k=0;k{"use strict";c.d(b,{A:()=>i});var d=c(55511);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length,h=[];for(let a=0;a<256;++a)h.push((a+256).toString(16).slice(1));let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();let i=(a=a||{}).random??a.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=i[a];return b}return function(a,b=0){return(h[a[b+0]]+h[a[b+1]]+h[a[b+2]]+h[a[b+3]]+"-"+h[a[b+4]]+h[a[b+5]]+"-"+h[a[b+6]]+h[a[b+7]]+"-"+h[a[b+8]]+h[a[b+9]]+"-"+h[a[b+10]]+h[a[b+11]]+h[a[b+12]]+h[a[b+13]]+h[a[b+14]]+h[a[b+15]]).toLowerCase()}(i)}},2229:(a,b,c)=>{"use strict";var d=c(20452),e=c(51238),f=c(75074),g=c(2276),h=c(4699),i=c(8153);a.exports=function(a,b){var c=this;return(b=d.extend(b||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:f.utf8decode}),i.isNode&&i.isStream(a))?e.Promise.reject(Error("JSZip can't accept a stream when loading a zip file.")):d.prepareContent("the loaded zip file",a,!0,b.optimizedBinaryString,b.base64).then(function(a){var c=new g(b);return c.load(a),c}).then(function(a){var c=[e.Promise.resolve(a)],d=a.files;if(b.checkCRC32)for(var f=0;f{"use strict";var d=c(38111),e=c(20452),f=c(80451),g=c(35652),h=c(9926);function i(a){this.files=[],this.loadOptions=a}i.prototype={checkSignature:function(a){if(!this.reader.readAndCheckSignature(a)){this.reader.index-=4;var b=this.reader.readString(4);throw Error("Corrupted zip or bug: unexpected signature ("+e.pretty(b)+", expected "+e.pretty(a)+")")}},isSignature:function(a,b){var c=this.reader.index;this.reader.setIndex(a);var d=this.reader.readString(4);return this.reader.setIndex(c),d===b},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var a=this.reader.readData(this.zipCommentLength),b=h.uint8array?"uint8array":"array",c=e.transformTo(b,a);this.zipComment=this.loadOptions.decodeFileName(c)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var a,b,c,d=this.zip64EndOfCentralSize-44;01)throw Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var a,b;for(a=0;a0)this.isSignature(b,f.CENTRAL_FILE_HEADER)||(this.reader.zero=d);else if(d<0)throw Error("Corrupted zip: missing "+Math.abs(d)+" bytes.")},prepareReader:function(a){this.reader=d(a)},load:function(a){this.prepareReader(a),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},a.exports=i},2332:(a,b,c)=>{"use strict";c.d(b,{A:()=>g,q:()=>f});var d=c(38301),e=c(21124);function f(a,b){let c=d.createContext(b),f=a=>{let{children:b,...f}=a,g=d.useMemo(()=>f,Object.values(f));return(0,e.jsx)(c.Provider,{value:g,children:b})};return f.displayName=a+"Provider",[f,function(e){let f=d.useContext(c);if(f)return f;if(void 0!==b)return b;throw Error(`\`${e}\` must be used within \`${a}\``)}]}function g(a,b=[]){let c=[],f=()=>{let b=c.map(a=>d.createContext(a));return function(c){let e=c?.[a]||b;return d.useMemo(()=>({[`__scope${a}`]:{...c,[a]:e}}),[c,e])}};return f.scopeName=a,[function(b,f){let g=d.createContext(f),h=c.length;c=[...c,f];let i=b=>{let{scope:c,children:f,...i}=b,j=c?.[a]?.[h]||g,k=d.useMemo(()=>i,Object.values(i));return(0,e.jsx)(j.Provider,{value:k,children:f})};return i.displayName=b+"Provider",[i,function(c,e){let i=e?.[a]?.[h]||g,j=d.useContext(i);if(j)return j;if(void 0!==f)return f;throw Error(`\`${c}\` must be used within \`${b}\``)}]},function(...a){let b=a[0];if(1===a.length)return b;let c=()=>{let c=a.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(a){let e=c.reduce((b,{useScope:c,scopeName:d})=>{let e=c(a)[`__scope${d}`];return{...b,...e}},{});return d.useMemo(()=>({[`__scope${b.scopeName}`]:e}),[e])}};return c.scopeName=b.scopeName,c}(f,...b)]}},2733:(a,b,c)=>{var d=c(30923).default,e=c(13544);d.PrintVisitor=e.PrintVisitor,d.print=e.print,a.exports=d},3368:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},4699:(a,b,c)=>{"use strict";var d=c(65353),e=c(35310);function f(){d.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}c(20452).inherits(f,d),f.prototype.processChunk=function(a){this.streamInfo.crc32=e(a.data,this.streamInfo.crc32||0),this.push(a)},a.exports=f},5887:(a,b)=>{"use strict";b.base64=!1,b.binary=!1,b.dir=!1,b.createFolders=!0,b.date=null,b.compression=null,b.compressionOptions=null,b.comment=null,b.unixPermissions=null,b.dosPermissions=null},5987:(a,b,c)=>{"use strict";var d=c(38590);function e(a){d.call(this,a);for(var b=0;b=0;--f)if(this.data[f]===b&&this.data[f+1]===c&&this.data[f+2]===d&&this.data[f+3]===e)return f-this.zero;return -1},e.prototype.readAndCheckSignature=function(a){var b=a.charCodeAt(0),c=a.charCodeAt(1),d=a.charCodeAt(2),e=a.charCodeAt(3),f=this.readData(4);return b===f[0]&&c===f[1]&&d===f[2]&&e===f[3]},e.prototype.readData=function(a){if(this.checkOffset(a),0===a)return[];var b=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,b},a.exports=e},6130:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("menu",[["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 18h16",key:"19g7jn"}],["path",{d:"M4 6h16",key:"1o0s65"}]])},6401:(a,b,c)=>{"use strict";var d=c(20452),e=c(65353);function f(a,b){e.call(this,"Nodejs stream input adapter for "+a),this._upstreamEnded=!1,this._bindStream(b)}d.inherits(f,e),f.prototype._bindStream=function(a){var b=this;this._stream=a,a.pause(),a.on("data",function(a){b.push({data:a,meta:{percent:0}})}).on("error",function(a){b.isPaused?this.generatedError=a:b.error(a)}).on("end",function(){b.isPaused?b._upstreamEnded=!0:b.end()})},f.prototype.pause=function(){return!!e.prototype.pause.call(this)&&(this._stream.pause(),!0)},f.prototype.resume=function(){return!!e.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},a.exports=f},6406:(a,b,c)=>{"use strict";c.d(b,{hO:()=>i,sG:()=>h});var d=c(38301),e=c(23312),f=c(96425),g=c(21124),h=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((a,b)=>{let c=(0,f.TL)(`Primitive.${b}`),e=d.forwardRef((a,d)=>{let{asChild:e,...f}=a;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,g.jsx)(e?c:b,{...f,ref:d})});return e.displayName=`Primitive.${b}`,{...a,[b]:e}},{});function i(a,b){a&&e.flushSync(()=>a.dispatchEvent(b))}},6725:(a,b,c)=>{"use strict";function d(a){return a&&a.__esModule?a:{default:a}}function e(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}b.__esModule=!0;var f=e(c(25139)),g=d(c(64685)),h=d(c(1793)),i=e(c(50281)),j=e(c(76824)),k=d(c(59156));function l(){var a=new f.HandlebarsEnvironment;return i.extend(a,f),a.SafeString=g.default,a.Exception=h.default,a.Utils=i,a.escapeExpression=i.escapeExpression,a.VM=j,a.template=function(b){return j.template(b,a)},a}var m=l();m.create=l,k.default(m),m.default=m,b.default=m,a.exports=b.default},7225:(a,b,c)=>{"use strict";var d,e,f,g=c(43613);function h(a){for(var b=a.length;--b>=0;)a[b]=0}var i=573,j=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],k=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],l=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],m=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],n=Array(576);h(n);var o=Array(60);h(o);var p=Array(512);h(p);var q=Array(256);h(q);var r=Array(29);h(r);var s=Array(30);function t(a,b,c,d,e){this.static_tree=a,this.extra_bits=b,this.extra_base=c,this.elems=d,this.max_length=e,this.has_stree=a&&a.length}function u(a,b){this.dyn_tree=a,this.max_code=0,this.stat_desc=b}function v(a){return a<256?p[a]:p[256+(a>>>7)]}function w(a,b){a.pending_buf[a.pending++]=255&b,a.pending_buf[a.pending++]=b>>>8&255}function x(a,b,c){a.bi_valid>16-c?(a.bi_buf|=b<>16-a.bi_valid,a.bi_valid+=c-16):(a.bi_buf|=b<>>=1,c<<=1;while(--b>0);return c>>>1}function A(a,b,c){var d,e,f=Array(16),g=0;for(d=1;d<=15;d++)f[d]=g=g+c[d-1]<<1;for(e=0;e<=b;e++){var h=a[2*e+1];0!==h&&(a[2*e]=z(f[h]++,h))}}function B(a){var b;for(b=0;b<286;b++)a.dyn_ltree[2*b]=0;for(b=0;b<30;b++)a.dyn_dtree[2*b]=0;for(b=0;b<19;b++)a.bl_tree[2*b]=0;a.dyn_ltree[512]=1,a.opt_len=a.static_len=0,a.last_lit=a.matches=0}function C(a){a.bi_valid>8?w(a,a.bi_buf):a.bi_valid>0&&(a.pending_buf[a.pending++]=a.bi_buf),a.bi_buf=0,a.bi_valid=0}function D(a,b,c,d){var e=2*b,f=2*c;return a[e]>1;c>=1;c--)E(a,f,c);e=j;do c=a.heap[1],a.heap[1]=a.heap[a.heap_len--],E(a,f,1),d=a.heap[1],a.heap[--a.heap_max]=c,a.heap[--a.heap_max]=d,f[2*e]=f[2*c]+f[2*d],a.depth[e]=(a.depth[c]>=a.depth[d]?a.depth[c]:a.depth[d])+1,f[2*c+1]=f[2*d+1]=e,a.heap[1]=e++,E(a,f,1);while(a.heap_len>=2);a.heap[--a.heap_max]=a.heap[1],function(a,b){var c,d,e,f,g,h,j=b.dyn_tree,k=b.max_code,l=b.stat_desc.static_tree,m=b.stat_desc.has_stree,n=b.stat_desc.extra_bits,o=b.stat_desc.extra_base,p=b.stat_desc.max_length,q=0;for(f=0;f<=15;f++)a.bl_count[f]=0;for(j[2*a.heap[a.heap_max]+1]=0,c=a.heap_max+1;cp&&(f=p,q++),j[2*d+1]=f,!(d>k)&&(a.bl_count[f]++,g=0,d>=o&&(g=n[d-o]),h=j[2*d],a.opt_len+=h*(f+g),m&&(a.static_len+=h*(l[2*d+1]+g)));if(0!==q){do{for(f=p-1;0===a.bl_count[f];)f--;a.bl_count[f]--,a.bl_count[f+1]+=2,a.bl_count[p]--,q-=2}while(q>0);for(f=p;0!==f;f--)for(d=a.bl_count[f];0!==d;)!((e=a.heap[--c])>k)&&(j[2*e+1]!==f&&(a.opt_len+=(f-j[2*e+1])*j[2*e],j[2*e+1]=f),d--)}}(a,b),A(f,k,a.bl_count)}function H(a,b,c){var d,e,f=-1,g=b[1],h=0,i=7,j=4;for(0===g&&(i=138,j=3),b[(c+1)*2+1]=65535,d=0;d<=c;d++)e=g,g=b[(d+1)*2+1],++h>=7;g<30;g++)for(a=0,s[g]=h<<7;a<1<0?(2===a.strm.data_type&&(a.strm.data_type=function(a){var b,c=0xf3ffc07f;for(b=0;b<=31;b++,c>>>=1)if(1&c&&0!==a.dyn_ltree[2*b])return 0;if(0!==a.dyn_ltree[18]||0!==a.dyn_ltree[20]||0!==a.dyn_ltree[26])return 1;for(b=32;b<256;b++)if(0!==a.dyn_ltree[2*b])return 1;return 0}(a)),G(a,a.l_desc),G(a,a.d_desc),g=function(a){var b;for(H(a,a.dyn_ltree,a.l_desc.max_code),H(a,a.dyn_dtree,a.d_desc.max_code),G(a,a.bl_desc),b=18;b>=3&&0===a.bl_tree[2*m[b]+1];b--);return a.opt_len+=3*(b+1)+5+5+4,b}(a),e=a.opt_len+3+7>>>3,(f=a.static_len+3+7>>>3)<=e&&(e=f)):e=f=c+5,c+4<=e&&-1!==b?K(a,b,c,d):4===a.strategy||f===e?(x(a,2+ +!!d,3),F(a,n,o)):(x(a,4+ +!!d,3),function(a,b,c,d){var e;for(x(a,b-257,5),x(a,c-1,5),x(a,d-4,4),e=0;e>>8&255,a.pending_buf[a.d_buf+2*a.last_lit+1]=255&b,a.pending_buf[a.l_buf+a.last_lit]=255&c,a.last_lit++,0===b?a.dyn_ltree[2*c]++:(a.matches++,b--,a.dyn_ltree[(q[c]+256+1)*2]++,a.dyn_dtree[2*v(b)]++),a.last_lit===a.lit_bufsize-1},b._tr_align=function(a){x(a,2,3),y(a,256,n),16===a.bi_valid?(w(a,a.bi_buf),a.bi_buf=0,a.bi_valid=0):a.bi_valid>=8&&(a.pending_buf[a.pending++]=255&a.bi_buf,a.bi_buf>>=8,a.bi_valid-=8)}},7412:(a,b,c)=>{"use strict";c.d(b,{qW:()=>m});var d,e=c(38301),f=c(87868),g=c(6406),h=c(92808),i=c(71700),j=c(21124),k="dismissableLayer.update",l=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),m=e.forwardRef((a,b)=>{let{disableOutsidePointerEvents:c=!1,onEscapeKeyDown:m,onPointerDownOutside:p,onFocusOutside:q,onInteractOutside:r,onDismiss:s,...t}=a,u=e.useContext(l),[v,w]=e.useState(null),x=v?.ownerDocument??globalThis?.document,[,y]=e.useState({}),z=(0,h.s)(b,a=>w(a)),A=Array.from(u.layers),[B]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),C=A.indexOf(B),D=v?A.indexOf(v):-1,E=u.layersWithOutsidePointerEventsDisabled.size>0,F=D>=C,G=function(a,b=globalThis?.document){let c=(0,i.c)(a),d=e.useRef(!1),f=e.useRef(()=>{});return e.useEffect(()=>{let a=a=>{if(a.target&&!d.current){let d=function(){o("dismissableLayer.pointerDownOutside",c,e,{discrete:!0})},e={originalEvent:a};"touch"===a.pointerType?(b.removeEventListener("click",f.current),f.current=d,b.addEventListener("click",f.current,{once:!0})):d()}else b.removeEventListener("click",f.current);d.current=!1},e=window.setTimeout(()=>{b.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(e),b.removeEventListener("pointerdown",a),b.removeEventListener("click",f.current)}},[b,c]),{onPointerDownCapture:()=>d.current=!0}}(a=>{let b=a.target,c=[...u.branches].some(a=>a.contains(b));F&&!c&&(p?.(a),r?.(a),a.defaultPrevented||s?.())},x),H=function(a,b=globalThis?.document){let c=(0,i.c)(a),d=e.useRef(!1);return e.useEffect(()=>{let a=a=>{a.target&&!d.current&&o("dismissableLayer.focusOutside",c,{originalEvent:a},{discrete:!1})};return b.addEventListener("focusin",a),()=>b.removeEventListener("focusin",a)},[b,c]),{onFocusCapture:()=>d.current=!0,onBlurCapture:()=>d.current=!1}}(a=>{let b=a.target;![...u.branches].some(a=>a.contains(b))&&(q?.(a),r?.(a),a.defaultPrevented||s?.())},x);return!function(a,b=globalThis?.document){let c=(0,i.c)(a);e.useEffect(()=>{let a=a=>{"Escape"===a.key&&c(a)};return b.addEventListener("keydown",a,{capture:!0}),()=>b.removeEventListener("keydown",a,{capture:!0})},[c,b])}(a=>{D===u.layers.size-1&&(m?.(a),!a.defaultPrevented&&s&&(a.preventDefault(),s()))},x),e.useEffect(()=>{if(v)return c&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(d=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(v)),u.layers.add(v),n(),()=>{c&&1===u.layersWithOutsidePointerEventsDisabled.size&&(x.body.style.pointerEvents=d)}},[v,x,c,u]),e.useEffect(()=>()=>{v&&(u.layers.delete(v),u.layersWithOutsidePointerEventsDisabled.delete(v),n())},[v,u]),e.useEffect(()=>{let a=()=>y({});return document.addEventListener(k,a),()=>document.removeEventListener(k,a)},[]),(0,j.jsx)(g.sG.div,{...t,ref:z,style:{pointerEvents:E?F?"auto":"none":void 0,...a.style},onFocusCapture:(0,f.mK)(a.onFocusCapture,H.onFocusCapture),onBlurCapture:(0,f.mK)(a.onBlurCapture,H.onBlurCapture),onPointerDownCapture:(0,f.mK)(a.onPointerDownCapture,G.onPointerDownCapture)})});function n(){let a=new CustomEvent(k);document.dispatchEvent(a)}function o(a,b,c,{discrete:d}){let e=c.originalEvent.target,f=new CustomEvent(a,{bubbles:!1,cancelable:!0,detail:c});b&&e.addEventListener(a,b,{once:!0}),d?(0,g.hO)(e,f):e.dispatchEvent(f)}m.displayName="DismissableLayer",e.forwardRef((a,b)=>{let c=e.useContext(l),d=e.useRef(null),f=(0,h.s)(b,d);return e.useEffect(()=>{let a=d.current;if(a)return c.branches.add(a),()=>{c.branches.delete(a)}},[c.branches]),(0,j.jsx)(g.sG.div,{...a,ref:f})}).displayName="DismissableLayerBranch"},7932:(a,b,c)=>{"use strict";var d,e,f=c(39265);function g(a){var b=this;this.next=null,this.entry=null,this.finish=function(){var c=b,d=a,e=c.entry;for(c.entry=null;e;){var f=e.callback;d.pendingcb--,f(void 0),e=e.next}d.corkedRequestsFree.next=c}}a.exports=q;var h=["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:f.nextTick;q.WritableState=p;var i=Object.create(c(69082));i.inherits=c(48985);var j={deprecate:c(33403)},k=c(69720),l=c(62253).Buffer,m=("undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},n=c(15016);function o(){}function p(a,b){d=d||c(47482),a=a||{};var e=b instanceof d;this.objectMode=!!a.objectMode,e&&(this.objectMode=this.objectMode||!!a.writableObjectMode);var i=a.highWaterMark,j=a.writableHighWaterMark,k=this.objectMode?16:16384;i||0===i?this.highWaterMark=i:e&&(j||0===j)?this.highWaterMark=j:this.highWaterMark=k,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var l=!1===a.decodeStrings;this.decodeStrings=!l,this.defaultEncoding=a.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(a){!function(a,b){var c=a._writableState,d=c.sync,e=c.writecb;if(c.writing=!1,c.writecb=null,c.length-=c.writelen,c.writelen=0,b)--c.pendingcb,d?(f.nextTick(e,b),f.nextTick(w,a,c),a._writableState.errorEmitted=!0,a.emit("error",b)):(e(b),a._writableState.errorEmitted=!0,a.emit("error",b),w(a,c));else{var g=u(c);g||c.corked||c.bufferProcessing||!c.bufferedRequest||t(a,c),d?h(s,a,c,g,e):s(a,c,g,e)}}(b,a)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new g(this)}i.inherits(q,k),p.prototype.getBuffer=function(){for(var a=this.bufferedRequest,b=[];a;)b.push(a),a=a.next;return b};try{Object.defineProperty(p.prototype,"buffer",{get:j.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(a){}function q(a){if(d=d||c(47482),!e.call(q,this)&&!(this instanceof d))return new q(a);this._writableState=new p(a,this),this.writable=!0,a&&("function"==typeof a.write&&(this._write=a.write),"function"==typeof a.writev&&(this._writev=a.writev),"function"==typeof a.destroy&&(this._destroy=a.destroy),"function"==typeof a.final&&(this._final=a.final)),k.call(this)}function r(a,b,c,d,e,f,g){b.writelen=d,b.writecb=g,b.writing=!0,b.sync=!0,c?a._writev(e,b.onwrite):a._write(e,f,b.onwrite),b.sync=!1}function s(a,b,c,d){var e,f;c||(e=a,0===(f=b).length&&f.needDrain&&(f.needDrain=!1,e.emit("drain"))),b.pendingcb--,d(),w(a,b)}function t(a,b){b.bufferProcessing=!0;var c=b.bufferedRequest;if(a._writev&&c&&c.next){var d=Array(b.bufferedRequestCount),e=b.corkedRequestsFree;e.entry=c;for(var f=0,h=!0;c;)d[f]=c,c.isBuf||(h=!1),c=c.next,f+=1;d.allBuffers=h,r(a,b,!0,b.length,d,"",e.finish),b.pendingcb++,b.lastBufferedRequest=null,e.next?(b.corkedRequestsFree=e.next,e.next=null):b.corkedRequestsFree=new g(b),b.bufferedRequestCount=0}else{for(;c;){var i=c.chunk,j=c.encoding,k=c.callback,l=b.objectMode?1:i.length;if(r(a,b,!1,l,i,j,k),c=c.next,b.bufferedRequestCount--,b.writing)break}null===c&&(b.lastBufferedRequest=null)}b.bufferedRequest=c,b.bufferProcessing=!1}function u(a){return a.ending&&0===a.length&&null===a.bufferedRequest&&!a.finished&&!a.writing}function v(a,b){a._final(function(c){b.pendingcb--,c&&a.emit("error",c),b.prefinished=!0,a.emit("prefinish"),w(a,b)})}function w(a,b){var c=u(b);return c&&(b.prefinished||b.finalCalled||("function"==typeof a._final?(b.pendingcb++,b.finalCalled=!0,f.nextTick(v,a,b)):(b.prefinished=!0,a.emit("prefinish"))),0===b.pendingcb&&(b.finished=!0,a.emit("finish"))),c}"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(e=Function.prototype[Symbol.hasInstance],Object.defineProperty(q,Symbol.hasInstance,{value:function(a){return!!e.call(this,a)||this===q&&a&&a._writableState instanceof p}})):e=function(a){return a instanceof this},q.prototype.pipe=function(){this.emit("error",Error("Cannot pipe, not readable"))},q.prototype.write=function(a,b,c){var d,e,g,h,i,j,k,n,p=this._writableState,q=!1,s=!p.objectMode&&(d=a,l.isBuffer(d)||d instanceof m);return(s&&!l.isBuffer(a)&&(e=a,a=l.from(e)),"function"==typeof b&&(c=b,b=null),s?b="buffer":b||(b=p.defaultEncoding),"function"!=typeof c&&(c=o),p.ended)?(g=c,h=Error("write after end"),this.emit("error",h),f.nextTick(g,h)):(s||(i=a,j=c,k=!0,n=!1,null===i?n=TypeError("May not write null values to stream"):"string"==typeof i||void 0===i||p.objectMode||(n=TypeError("Invalid non-string/buffer chunk")),n&&(this.emit("error",n),f.nextTick(j,n),k=!1),k))&&(p.pendingcb++,q=function(a,b,c,d,e,f){if(!c){var g,h,i=(g=d,h=e,b.objectMode||!1===b.decodeStrings||"string"!=typeof g||(g=l.from(g,h)),g);d!==i&&(c=!0,e="buffer",d=i)}var j=b.objectMode?1:d.length;b.length+=j;var k=b.length-1))throw TypeError("Unknown encoding: "+a);return this._writableState.defaultEncoding=a,this},Object.defineProperty(q.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),q.prototype._write=function(a,b,c){c(Error("_write() is not implemented"))},q.prototype._writev=null,q.prototype.end=function(a,b,c){var d,e,g,h=this._writableState;"function"==typeof a?(c=a,a=null,b=null):"function"==typeof b&&(c=b,b=null),null!=a&&this.write(a,b),h.corked&&(h.corked=1,this.uncork()),h.ending||(d=this,e=h,g=c,e.ending=!0,w(d,e),g&&(e.finished?f.nextTick(g):d.once("finish",g)),e.ended=!0,d.writable=!1)},Object.defineProperty(q.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(a){this._writableState&&(this._writableState.destroyed=a)}}),q.prototype.destroy=n.destroy,q.prototype._undestroy=n.undestroy,q.prototype._destroy=function(a,b){this.end(),b(a)}},7975:(a,b,c)=>{"use strict";function d(){var a=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];this.options=a}function e(a,b,c){void 0===b&&(b=a.length);var d=a[b-1],e=a[b-2];return d?"ContentStatement"===d.type?(e||!c?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(d.original):void 0:c}function f(a,b,c){void 0===b&&(b=-1);var d=a[b+1],e=a[b+2];return d?"ContentStatement"===d.type?(e||!c?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(d.original):void 0:c}function g(a,b,c){var d=a[null==b?0:b+1];if(d&&"ContentStatement"===d.type&&(c||!d.rightStripped)){var e=d.value;d.value=d.value.replace(c?/^\s+/:/^[ \t]*\r?\n?/,""),d.rightStripped=d.value!==e}}function h(a,b,c){var d=a[null==b?a.length-1:b-1];if(d&&"ContentStatement"===d.type&&(c||!d.leftStripped)){var e=d.value;return d.value=d.value.replace(c?/\s+$/:/[ \t]+$/,""),d.leftStripped=d.value!==e,d.leftStripped}}b.__esModule=!0,d.prototype=new(function(a){return a&&a.__esModule?a:{default:a}}(c(25258))).default,d.prototype.Program=function(a){var b=!this.options.ignoreStandalone,c=!this.isRootSeen;this.isRootSeen=!0;for(var d=a.body,i=0,j=d.length;i{"use strict";a.exports={isNode:"undefined"!=typeof Buffer,newBufferFrom:function(a,b){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(a,b);if("number"==typeof a)throw Error('The "data" argument must not be a number');return new Buffer(a,b)},allocBuffer:function(a){if(Buffer.alloc)return Buffer.alloc(a);var b=new Buffer(a);return b.fill(0),b},isBuffer:function(a){return Buffer.isBuffer(a)},isStream:function(a){return a&&"function"==typeof a.on&&"function"==typeof a.pause&&"function"==typeof a.resume}}},9251:a=>{"use strict";var b=function(){for(var a,b=[],c=0;c<256;c++){a=c;for(var d=0;d<8;d++)a=1&a?0xedb88320^a>>>1:a>>>1;b[c]=a}return b}();a.exports=function(a,c,d,e){var f=e+d;a^=-1;for(var g=e;g>>8^b[(a^c[g])&255];return -1^a}},9926:(a,b,c)=>{"use strict";if(b.base64=!0,b.array=!0,b.string=!0,b.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,b.nodebuffer="undefined"!=typeof Buffer,b.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)b.blob=!1;else{var d=new ArrayBuffer(0);try{b.blob=0===new Blob([d],{type:"application/zip"}).size}catch(a){try{var e=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);e.append(d),b.blob=0===e.getBlob("application/zip").size}catch(a){b.blob=!1}}}try{b.nodestream=!!c(12778).Readable}catch(a){b.nodestream=!1}},9991:(a,b,c)=>{"use strict";function d(a){return a&&a.__esModule?a:{default:a}}b.__esModule=!0,b.parseWithoutProcessing=j,b.parse=function(a,b){var c=j(a,b);return new f.default(b).accept(c)};var e=d(c(67025)),f=d(c(7975)),g=function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b.default=a,b}(c(33585)),h=c(50281);b.parser=e.default;var i={};function j(a,b){return"Program"===a.type?a:(e.default.yy=i,i.locInfo=function(a){return new i.SourceLocation(b&&b.srcName,a)},e.default.parse(a))}h.extend(i,g)},10350:(a,b,c)=>{"use strict";c.d(b,{Z:()=>e});var d=c(38301);function e(a){let b=d.useRef({value:a,previous:a});return d.useMemo(()=>(b.current.value!==a&&(b.current.previous=b.current.value,b.current.value=a),b.current.previous),[a])}},10498:(a,b,c)=>{"use strict";c.d(b,{jH:()=>f});var d=c(38301);c(21124);var e=d.createContext(void 0);function f(a){let b=d.useContext(e);return a||b||"ltr"}},11082:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]])},11251:(a,b,c)=>{"use strict";var d,e,f=c(43613),g=c(90421),h=c(9251),i=c(36365),j=c(16466);function k(a){return(a>>>24&255)+(a>>>8&65280)+((65280&a)<<8)+((255&a)<<24)}function l(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new f.Buf16(320),this.work=new f.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function m(a){var b;return a&&a.state?(b=a.state,a.total_in=a.total_out=b.total=0,a.msg="",b.wrap&&(a.adler=1&b.wrap),b.mode=1,b.last=0,b.havedict=0,b.dmax=32768,b.head=null,b.hold=0,b.bits=0,b.lencode=b.lendyn=new f.Buf32(852),b.distcode=b.distdyn=new f.Buf32(592),b.sane=1,b.back=-1,0):-2}function n(a){var b;return a&&a.state?((b=a.state).wsize=0,b.whave=0,b.wnext=0,m(a)):-2}function o(a,b){var c,d;return a&&a.state?(d=a.state,b<0?(c=0,b=-b):(c=(b>>4)+1,b<48&&(b&=15)),b&&(b<8||b>15))?-2:(null!==d.window&&d.wbits!==b&&(d.window=null),d.wrap=c,d.wbits=b,n(a)):-2}function p(a,b){var c,d;return a?(a.state=d=new l,d.window=null,0!==(c=o(a,b))&&(a.state=null),c):-2}var q=!0;function r(a,b,c,d){var e,g=a.state;return null===g.window&&(g.wsize=1<=g.wsize?(f.arraySet(g.window,b,c-g.wsize,g.wsize,0),g.wnext=0,g.whave=g.wsize):((e=g.wsize-g.wnext)>d&&(e=d),f.arraySet(g.window,b,c-d,e,g.wnext),(d-=e)?(f.arraySet(g.window,b,c-d,d,0),g.wnext=d,g.whave=g.wsize):(g.wnext+=e,g.wnext===g.wsize&&(g.wnext=0),g.whave>>8&255,c.check=h(c.check,L,2,0),t=0,u=0,c.mode=2;break}if(c.flags=0,c.head&&(c.head.done=!1),!(1&c.wrap)||(((255&t)<<8)+(t>>8))%31){a.msg="incorrect header check",c.mode=30;break}if((15&t)!=8){a.msg="unknown compression method",c.mode=30;break}if(t>>>=4,u-=4,G=(15&t)+8,0===c.wbits)c.wbits=G;else if(G>c.wbits){a.msg="invalid window size",c.mode=30;break}c.dmax=1<>8&1),512&c.flags&&(L[0]=255&t,L[1]=t>>>8&255,c.check=h(c.check,L,2,0)),t=0,u=0,c.mode=3;case 3:for(;u<32;){if(0===p)break a;p--,t+=l[n++]<>>8&255,L[2]=t>>>16&255,L[3]=t>>>24&255,c.check=h(c.check,L,4,0)),t=0,u=0,c.mode=4;case 4:for(;u<16;){if(0===p)break a;p--,t+=l[n++]<>8),512&c.flags&&(L[0]=255&t,L[1]=t>>>8&255,c.check=h(c.check,L,2,0)),t=0,u=0,c.mode=5;case 5:if(1024&c.flags){for(;u<16;){if(0===p)break a;p--,t+=l[n++]<>>8&255,c.check=h(c.check,L,2,0)),t=0,u=0}else c.head&&(c.head.extra=null);c.mode=6;case 6:if(1024&c.flags&&((x=c.length)>p&&(x=p),x&&(c.head&&(G=c.head.extra_len-c.length,c.head.extra||(c.head.extra=Array(c.head.extra_len)),f.arraySet(c.head.extra,l,n,x,G)),512&c.flags&&(c.check=h(c.check,l,x,n)),p-=x,n+=x,c.length-=x),c.length))break a;c.length=0,c.mode=7;case 7:if(2048&c.flags){if(0===p)break a;x=0;do G=l[n+x++],c.head&&G&&c.length<65536&&(c.head.name+=String.fromCharCode(G));while(G&&x>9&1,c.head.done=!0),a.adler=c.check=0,c.mode=12;break;case 10:for(;u<32;){if(0===p)break a;p--,t+=l[n++]<>>=7&u,u-=7&u,c.mode=27;break}for(;u<3;){if(0===p)break a;p--,t+=l[n++]<>>=1)){case 0:c.mode=14;break;case 1:if(!function(a){if(q){var b;for(d=new f.Buf32(512),e=new f.Buf32(32),b=0;b<144;)a.lens[b++]=8;for(;b<256;)a.lens[b++]=9;for(;b<280;)a.lens[b++]=7;for(;b<288;)a.lens[b++]=8;for(j(1,a.lens,0,288,d,0,a.work,{bits:9}),b=0;b<32;)a.lens[b++]=5;j(2,a.lens,0,32,e,0,a.work,{bits:5}),q=!1}a.lencode=d,a.lenbits=9,a.distcode=e,a.distbits=5}(c),c.mode=20,6===b){t>>>=2,u-=2;break a}break;case 2:c.mode=17;break;case 3:a.msg="invalid block type",c.mode=30}t>>>=2,u-=2;break;case 14:for(t>>>=7&u,u-=7&u;u<32;){if(0===p)break a;p--,t+=l[n++]<>>16^65535)){a.msg="invalid stored block lengths",c.mode=30;break}if(c.length=65535&t,t=0,u=0,c.mode=15,6===b)break a;case 15:c.mode=16;case 16:if(x=c.length){if(x>p&&(x=p),x>s&&(x=s),0===x)break a;f.arraySet(m,l,n,x,o),p-=x,n+=x,s-=x,o+=x,c.length-=x;break}c.mode=12;break;case 17:for(;u<14;){if(0===p)break a;p--,t+=l[n++]<>>=5))+1,u-=5,c.ncode=(15&(t>>>=5))+4,t>>>=4,u-=4,c.nlen>286||c.ndist>30){a.msg="too many length or distance symbols",c.mode=30;break}c.have=0,c.mode=18;case 18:for(;c.have>>=3,u-=3}for(;c.have<19;)c.lens[M[c.have++]]=0;if(c.lencode=c.lendyn,c.lenbits=7,I={bits:c.lenbits},H=j(0,c.lens,0,19,c.lencode,0,c.work,I),c.lenbits=I.bits,H){a.msg="invalid code lengths set",c.mode=30;break}c.have=0,c.mode=19;case 19:for(;c.have>>24,B=K>>>16&255,C=65535&K,!(A<=u);){if(0===p)break a;p--,t+=l[n++]<>>=A,u-=A,c.lens[c.have++]=C;else{if(16===C){for(J=A+2;u>>=A,u-=A,0===c.have){a.msg="invalid bit length repeat",c.mode=30;break}G=c.lens[c.have-1],x=3+(3&t),t>>>=2,u-=2}else if(17===C){for(J=A+3;u>>=A,u-=A,G=0,x=3+(7&t),t>>>=3,u-=3}else{for(J=A+7;u>>=A,u-=A,G=0,x=11+(127&t),t>>>=7,u-=7}if(c.have+x>c.nlen+c.ndist){a.msg="invalid bit length repeat",c.mode=30;break}for(;x--;)c.lens[c.have++]=G}}if(30===c.mode)break;if(0===c.lens[256]){a.msg="invalid code -- missing end-of-block",c.mode=30;break}if(c.lenbits=9,I={bits:c.lenbits},H=j(1,c.lens,0,c.nlen,c.lencode,0,c.work,I),c.lenbits=I.bits,H){a.msg="invalid literal/lengths set",c.mode=30;break}if(c.distbits=6,c.distcode=c.distdyn,I={bits:c.distbits},H=j(2,c.lens,c.nlen,c.ndist,c.distcode,0,c.work,I),c.distbits=I.bits,H){a.msg="invalid distances set",c.mode=30;break}if(c.mode=20,6===b)break a;case 20:c.mode=21;case 21:if(p>=6&&s>=258){a.next_out=o,a.avail_out=s,a.next_in=n,a.avail_in=p,c.hold=t,c.bits=u,i(a,w),o=a.next_out,m=a.output,s=a.avail_out,n=a.next_in,l=a.input,p=a.avail_in,t=c.hold,u=c.bits,12===c.mode&&(c.back=-1);break}for(c.back=0;A=(K=c.lencode[t&(1<>>24,B=K>>>16&255,C=65535&K,!(A<=u);){if(0===p)break a;p--,t+=l[n++]<>D)])>>>24,B=K>>>16&255,C=65535&K,!(D+A<=u);){if(0===p)break a;p--,t+=l[n++]<>>=D,u-=D,c.back+=D}if(t>>>=A,u-=A,c.back+=A,c.length=C,0===B){c.mode=26;break}if(32&B){c.back=-1,c.mode=12;break}if(64&B){a.msg="invalid literal/length code",c.mode=30;break}c.extra=15&B,c.mode=22;case 22:if(c.extra){for(J=c.extra;u>>=c.extra,u-=c.extra,c.back+=c.extra}c.was=c.length,c.mode=23;case 23:for(;A=(K=c.distcode[t&(1<>>24,B=K>>>16&255,C=65535&K,!(A<=u);){if(0===p)break a;p--,t+=l[n++]<>D)])>>>24,B=K>>>16&255,C=65535&K,!(D+A<=u);){if(0===p)break a;p--,t+=l[n++]<>>=D,u-=D,c.back+=D}if(t>>>=A,u-=A,c.back+=A,64&B){a.msg="invalid distance code",c.mode=30;break}c.offset=C,c.extra=15&B,c.mode=24;case 24:if(c.extra){for(J=c.extra;u>>=c.extra,u-=c.extra,c.back+=c.extra}if(c.offset>c.dmax){a.msg="invalid distance too far back",c.mode=30;break}c.mode=25;case 25:if(0===s)break a;if(x=w-s,c.offset>x){if((x=c.offset-x)>c.whave&&c.sane){a.msg="invalid distance too far back",c.mode=30;break}x>c.wnext?(x-=c.wnext,y=c.wsize-x):y=c.wnext-x,x>c.length&&(x=c.length),z=c.window}else z=m,y=o-c.offset,x=c.length;x>s&&(x=s),s-=x,c.length-=x;do m[o++]=z[y++];while(--x);0===c.length&&(c.mode=21);break;case 26:if(0===s)break a;m[o++]=c.length,s--,c.mode=21;break;case 27:if(c.wrap){for(;u<32;){if(0===p)break a;p--,t|=l[n++]<{"use strict";c.d(b,{i:()=>h});var d,e=c(38301),f=c(68829),g=(d||(d=c.t(e,2)))[" useInsertionEffect ".trim().toString()]||f.N;function h({prop:a,defaultProp:b,onChange:c=()=>{},caller:d}){let[f,h,i]=function({defaultProp:a,onChange:b}){let[c,d]=e.useState(a),f=e.useRef(c),h=e.useRef(b);return g(()=>{h.current=b},[b]),e.useEffect(()=>{f.current!==c&&(h.current?.(c),f.current=c)},[c,f]),[c,d,h]}({defaultProp:b,onChange:c}),j=void 0!==a,k=j?a:f;{let b=e.useRef(void 0!==a);e.useEffect(()=>{let a=b.current;if(a!==j){let b=j?"controlled":"uncontrolled";console.warn(`${d} is changing from ${a?"controlled":"uncontrolled"} to ${b}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}b.current=j},[j,d])}return[k,e.useCallback(b=>{if(j){let c="function"==typeof b?b(a):b;c!==a&&i.current?.(c)}else h(b)},[j,a,h,i])]}Symbol("RADIX:SYNC_STATE")},12778:(a,b,c)=>{var d=c(27910);"disable"===process.env.READABLE_STREAM&&d?(a.exports=d,(b=a.exports=d.Readable).Readable=d.Readable,b.Writable=d.Writable,b.Duplex=d.Duplex,b.Transform=d.Transform,b.PassThrough=d.PassThrough,b.Stream=d):((b=a.exports=c(45948)).Stream=d||b,b.Readable=b,b.Writable=c(7932),b.Duplex=c(47482),b.Transform=c(99438),b.PassThrough=c(93872))},12803:(a,b,c)=>{"use strict";function d(a){return a&&a.__esModule?a:{default:a}}b.__esModule=!0;var e=c(25139),f=d(c(1793)),g=c(50281),h=d(c(89872));function i(a){this.value=a}function j(){}j.prototype={nameLookup:function(a,b){return this.internalNameLookup(a,b)},depthedLookup:function(a){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(a),")"]},compilerInfo:function(){var a=e.COMPILER_REVISION,b=e.REVISION_CHANGES[a];return[a,b]},appendToBuffer:function(a,b,c){return(g.isArray(a)||(a=[a]),a=this.source.wrap(a,b),this.environment.isSimple)?["return ",a,";"]:c?["buffer += ",a,";"]:(a.appendToBuffer=!0,a)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(a,b){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",a,",",JSON.stringify(b),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(a,b,c,d){this.environment=a,this.options=b,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!d,this.name=this.environment.name,this.isChild=!!c,this.context=c||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(a,b),this.useDepths=this.useDepths||a.useDepths||a.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||a.useBlockParams;var e=a.opcodes,g=void 0,h=void 0,i=void 0,j=void 0;for(i=0,j=e.length;i0&&(c+=", "+d.join(", "));var e=0;Object.keys(this.aliases).forEach(function(a){var d=b.aliases[a];d.children&&d.referenceCount>1&&(c+=", alias"+ ++e+"="+a,d.children[0]="alias"+e)}),this.lookupPropertyFunctionIsUsed&&(c+=", "+this.lookupPropertyFunctionVarDeclaration());var f=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&f.push("blockParams"),this.useDepths&&f.push("depths");var g=this.mergeSource(c);return a?(f.push(g),Function.apply(this,f)):this.source.wrap(["function(",f.join(","),") {\n ",g,"}"])},mergeSource:function(a){var b=this.environment.isSimple,c=!this.forceBuffer,d=void 0,e=void 0,f=void 0,g=void 0;return this.source.each(function(a){a.appendToBuffer?(f?a.prepend(" + "):f=a,g=a):(f&&(e?f.prepend("buffer += "):d=!0,g.add(";"),f=g=void 0),e=!0,b||(c=!1))}),c?f?(f.prepend("return "),g.add(";")):e||this.source.push('return "";'):(a+=", buffer = "+(d?"":this.initializeBuffer()),f?(f.prepend("return buffer + "),g.add(";")):this.source.push("return buffer;")),a&&this.source.prepend("var "+a.substring(2)+(d?"":";\n")),this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return"\n lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n }\n ".trim()},blockValue:function(a){var b=this.aliasable("container.hooks.blockHelperMissing"),c=[this.contextName(0)];this.setupHelperArgs(a,0,c);var d=this.popStack();c.splice(1,0,d),this.push(this.source.functionCall(b,"call",c))},ambiguousBlockValue:function(){var a=this.aliasable("container.hooks.blockHelperMissing"),b=[this.contextName(0)];this.setupHelperArgs("",0,b,!0),this.flushInline();var c=this.topStack();b.splice(1,0,c),this.pushSource(["if (!",this.lastHelper,") { ",c," = ",this.source.functionCall(a,"call",b),"}"])},appendContent:function(a){this.pendingContent?a=this.pendingContent+a:this.pendingLocation=this.source.currentLocation,this.pendingContent=a},append:function(){if(this.isInline())this.replaceStack(function(a){return[" != null ? ",a,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var a=this.popStack();this.pushSource(["if (",a," != null) { ",this.appendToBuffer(a,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(a){this.lastContext=a},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(a,b,c,d){var e=0;d||!this.options.compat||this.lastContext?this.pushContext():this.push(this.depthedLookup(a[e++])),this.resolvePath("context",a,e,b,c)},lookupBlockParam:function(a,b){this.useBlockParams=!0,this.push(["blockParams[",a[0],"][",a[1],"]"]),this.resolvePath("context",b,1)},lookupData:function(a,b,c){a?this.pushStackLiteral("container.data(data, "+a+")"):this.pushStackLiteral("data"),this.resolvePath("data",b,0,!0,c)},resolvePath:function(a,b,c,d,e){var f=this;if(this.options.strict||this.options.assumeObjects)return void this.push(function(a,b,c,d,e){var f=b.popStack(),g=c.length;for(a&&g--;dthis.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var a=this.inlineStack;this.inlineStack=[];for(var b=0,c=a.length;b{"use strict";function d(){this.padding=0}b.__esModule=!0,b.print=function(a){return new d().accept(a)},b.PrintVisitor=d,d.prototype=new(function(a){return a&&a.__esModule?a:{default:a}}(c(25258))).default,d.prototype.pad=function(a){for(var b="",c=0,d=this.padding;c "+b+" }}")},d.prototype.PartialBlockStatement=function(a){var b="PARTIAL BLOCK:"+a.name.original;return a.params[0]&&(b+=" "+this.accept(a.params[0])),a.hash&&(b+=" "+this.accept(a.hash)),b+=" "+this.pad("PROGRAM:"),this.padding++,b+=this.accept(a.program),this.padding--,this.pad("{{> "+b+" }}")},d.prototype.ContentStatement=function(a){return this.pad("CONTENT[ '"+a.value+"' ]")},d.prototype.CommentStatement=function(a){return this.pad("{{! '"+a.value+"' }}")},d.prototype.SubExpression=function(a){for(var b=a.params,c=[],d=void 0,e=0,f=b.length;ed});let d=(0,c(23339).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},15016:(a,b,c)=>{"use strict";var d=c(39265);function e(a,b){a.emit("error",b)}a.exports={destroy:function(a,b){var c=this,f=this._readableState&&this._readableState.destroyed,g=this._writableState&&this._writableState.destroyed;return f||g?b?b(a):a&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,d.nextTick(e,this,a)):d.nextTick(e,this,a)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(a){!b&&a?c._writableState?c._writableState.errorEmitted||(c._writableState.errorEmitted=!0,d.nextTick(e,c,a)):d.nextTick(e,c,a):b&&b(a)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},15303:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]])},16466:(a,b,c)=>{"use strict";var d=c(43613),e=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],f=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],g=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],h=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];a.exports=function(a,b,c,i,j,k,l,m){var n,o,p,q,r,s,t,u,v,w=m.bits,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=null,I=0,J=new d.Buf16(16),K=new d.Buf16(16),L=null,M=0;for(x=0;x<=15;x++)J[x]=0;for(y=0;y=1&&0===J[A];A--);if(B>A&&(B=A),0===A)return j[k++]=0x1400000,j[k++]=0x1400000,m.bits=1,0;for(z=1;z0&&(0===a||1!==A))return -1;for(x=1,K[1]=0;x<15;x++)K[x+1]=K[x]+J[x];for(y=0;y852||2===a&&F>592)return 1;for(;;){t=x-D,l[y]s?(u=L[M+l[y]],v=H[I+l[y]]):(u=96,v=0),n=1<>D)+(o-=n)]=t<<24|u<<16|v;while(0!==o);for(n=1<>=1;if(0!==n?(G&=n-1,G+=n):G=0,y++,0==--J[x]){if(x===A)break;x=b[c+l[y]]}if(x>B&&(G&q)!==p){for(0===D&&(D=B),r+=z,E=1<<(C=x-D);C+D852||2===a&&F>592)return 1;j[p=G&q]=B<<24|C<<16|r-k}}return 0!==G&&(j[r+G]=x-D<<24|4194304),m.bits=B,0}},16945:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},18310:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},18659:(a,b,c)=>{"use strict";function d(a){return a&&a.__esModule?a:{default:a}}b.__esModule=!0,b.Compiler=i,b.precompile=function(a,b,c){if(null==a||"string"!=typeof a&&"Program"!==a.type)throw new e.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+a);"data"in(b=b||{})||(b.data=!0),b.compat&&(b.useDepths=!0);var d=c.parse(a,b),f=new c.Compiler().compile(d,b);return new c.JavaScriptCompiler().compile(f,b)},b.compile=function(a,b,c){if(void 0===b&&(b={}),null==a||"string"!=typeof a&&"Program"!==a.type)throw new e.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+a);"data"in(b=f.extend({},b))||(b.data=!0),b.compat&&(b.useDepths=!0);var d=void 0;function g(){var d=c.parse(a,b),e=new c.Compiler().compile(d,b),f=new c.JavaScriptCompiler().compile(e,b,void 0,!0);return c.template(f)}function h(a,b){return d||(d=g()),d.call(this,a,b)}return h._setup=function(a){return d||(d=g()),d._setup(a)},h._child=function(a,b,c,e){return d||(d=g()),d._child(a,b,c,e)},h};var e=d(c(1793)),f=c(50281),g=d(c(87732)),h=[].slice;function i(){}function j(a){if(!a.path.parts){var b=a.path;a.path={type:"PathExpression",data:!1,depth:0,parts:[b.original+""],original:b.original+"",loc:b.loc}}}i.prototype={compiler:i,equals:function(a){var b=this.opcodes.length;if(a.opcodes.length!==b)return!1;for(var c=0;c1)throw new e.default("Unsupported number of partial arguments: "+c.length,a);c.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):c.push({type:"PathExpression",parts:[],depth:0}));var d=a.name.original,f="SubExpression"===a.name.type;f&&this.accept(a.name),this.setupFullMustacheParams(a,b,void 0,!0);var g=a.indent||"";this.options.preventIndent&&g&&(this.opcode("appendContent",g),g=""),this.opcode("invokePartial",f,d,g),this.opcode("append")},PartialBlockStatement:function(a){this.PartialStatement(a)},MustacheStatement:function(a){this.SubExpression(a),a.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(a){this.DecoratorBlock(a)},ContentStatement:function(a){a.value&&this.opcode("appendContent",a.value)},CommentStatement:function(){},SubExpression:function(a){j(a);var b=this.classifySexpr(a);"simple"===b?this.simpleSexpr(a):"helper"===b?this.helperSexpr(a):this.ambiguousSexpr(a)},ambiguousSexpr:function(a,b,c){var d=a.path,e=d.parts[0];this.opcode("getContext",d.depth),this.opcode("pushProgram",b),this.opcode("pushProgram",c),d.strict=!0,this.accept(d),this.opcode("invokeAmbiguous",e,null!=b||null!=c)},simpleSexpr:function(a){var b=a.path;b.strict=!0,this.accept(b),this.opcode("resolvePossibleLambda")},helperSexpr:function(a,b,c){var d=this.setupFullMustacheParams(a,b,c),f=a.path,h=f.parts[0];if(this.options.knownHelpers[h])this.opcode("invokeKnownHelper",d.length,h);else if(this.options.knownHelpersOnly)throw new e.default("You specified knownHelpersOnly, but used the unknown helper "+h,a);else f.strict=!0,f.falsy=!0,this.accept(f),this.opcode("invokeHelper",d.length,f.original,g.default.helpers.simpleId(f))},PathExpression:function(a){this.addDepth(a.depth),this.opcode("getContext",a.depth);var b=a.parts[0],c=g.default.helpers.scopedId(a),d=!a.depth&&!c&&this.blockParamIndex(b);d?this.opcode("lookupBlockParam",d,a.parts):b?a.data?(this.options.data=!0,this.opcode("lookupData",a.depth,a.parts,a.strict)):this.opcode("lookupOnContext",a.parts,a.falsy,a.strict,c):this.opcode("pushContext")},StringLiteral:function(a){this.opcode("pushString",a.value)},NumberLiteral:function(a){this.opcode("pushLiteral",a.value)},BooleanLiteral:function(a){this.opcode("pushLiteral",a.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(a){var b=a.pairs,c=0,d=b.length;for(this.opcode("pushHash");c=0)return[b,e]}}}},19710:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]])},19802:a=>{"undefined"!=typeof __nccwpck_require__&&(__nccwpck_require__.ab=__dirname+"/"),({189:function(){!function(a,b){"use strict";if(!a.setImmediate){var c,d,e,f,g,h=1,i={},j=!1,k=a.document,l=Object.getPrototypeOf&&Object.getPrototypeOf(a);l=l&&l.setTimeout?l:a,"[object process]"===({}).toString.call(a.process)?g=function(a){process.nextTick(function(){n(a)})}:function(){if(a.postMessage&&!a.importScripts){var b=!0,c=a.onmessage;return a.onmessage=function(){b=!1},a.postMessage("","*"),a.onmessage=c,b}}()?(c="setImmediate$"+Math.random()+"$",d=function(b){b.source===a&&"string"==typeof b.data&&0===b.data.indexOf(c)&&n(+b.data.slice(c.length))},a.addEventListener?a.addEventListener("message",d,!1):a.attachEvent("onmessage",d),g=function(b){a.postMessage(c+b,"*")}):a.MessageChannel?((e=new MessageChannel).port1.onmessage=function(a){n(a.data)},g=function(a){e.port2.postMessage(a)}):k&&"onreadystatechange"in k.createElement("script")?(f=k.documentElement,g=function(a){var b=k.createElement("script");b.onreadystatechange=function(){n(a),b.onreadystatechange=null,f.removeChild(b),b=null},f.appendChild(b)}):g=function(a){setTimeout(n,0,a)},l.setImmediate=function(a){"function"!=typeof a&&(a=Function(""+a));for(var b=Array(arguments.length-1),c=0;c{"use strict";var d=c(9926),e=c(50266),f=c(8153),g=c(51238);function h(a){return a}function i(a,b){for(var c=0;c1;)try{return j.stringifyByChunk(a,d,c)}catch(a){c=Math.floor(c/2)}return j.stringifyByChar(a)}function l(a,b){for(var c=0;c{"use strict";var d="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,e=c(56780),f=c(20452),g=c(65353),h=d?"uint8array":"array";function i(a,b){g.call(this,"FlateWorker/"+a),this._pako=null,this._pakoAction=a,this._pakoOptions=b,this.meta={}}b.magic="\b\0",f.inherits(i,g),i.prototype.processChunk=function(a){this.meta=a.meta,null===this._pako&&this._createPako(),this._pako.push(f.transformTo(h,a.data),!1)},i.prototype.flush=function(){g.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},i.prototype.cleanUp=function(){g.prototype.cleanUp.call(this),this._pako=null},i.prototype._createPako=function(){this._pako=new e[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var a=this;this._pako.onData=function(b){a.push({data:b,meta:a.meta})}},b.compressWorker=function(a){return new i("Deflate",a)},b.uncompressWorker=function(){return new i("Inflate",{})}},21843:(a,b,c)=>{"use strict";var d=c(51238),e=c(32970),f=c(4699),g=c(92592);function h(a,b,c,d,e){this.compressedSize=a,this.uncompressedSize=b,this.crc32=c,this.compression=d,this.compressedContent=e}h.prototype={getContentWorker:function(){var a=new e(d.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new g("data_length")),b=this;return a.on("end",function(){if(this.streamInfo.data_length!==b.uncompressedSize)throw Error("Bug : uncompressed data size mismatch")}),a},getCompressedWorker:function(){return new e(d.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},h.createWorkerFrom=function(a,b,c){return a.pipe(new f).pipe(new g("uncompressedSize")).pipe(b.compressWorker(c)).pipe(new g("compressedSize")).withStreamInfo("compression",b)},a.exports=h},23339:(a,b,c)=>{"use strict";c.d(b,{A:()=>i});var d=c(38301);let e=a=>{let b=a.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,b,c)=>c?c.toUpperCase():b.toLowerCase());return b.charAt(0).toUpperCase()+b.slice(1)},f=(...a)=>a.filter((a,b,c)=>!!a&&""!==a.trim()&&c.indexOf(a)===b).join(" ").trim();var g={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 h=(0,d.forwardRef)(({color:a="currentColor",size:b=24,strokeWidth:c=2,absoluteStrokeWidth:e,className:h="",children:i,iconNode:j,...k},l)=>(0,d.createElement)("svg",{ref:l,...g,width:b,height:b,stroke:a,strokeWidth:e?24*Number(c)/Number(b):c,className:f("lucide",h),...!i&&!(a=>{for(let b in a)if(b.startsWith("aria-")||"role"===b||"title"===b)return!0})(k)&&{"aria-hidden":"true"},...k},[...j.map(([a,b])=>(0,d.createElement)(a,b)),...Array.isArray(i)?i:[i]])),i=(a,b)=>{let c=(0,d.forwardRef)(({className:c,...g},i)=>(0,d.createElement)(h,{ref:i,iconNode:b,className:f(`lucide-${e(a).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${a}`,c),...g}));return c.displayName=e(a),c}},25122:(a,b,c)=>{"use strict";c.d(b,{Mz:()=>a1,i3:()=>a3,UC:()=>a2,bL:()=>a0,Bk:()=>aM});var d=c(38301);let e=["top","right","bottom","left"],f=Math.min,g=Math.max,h=Math.round,i=Math.floor,j=a=>({x:a,y:a}),k={left:"right",right:"left",bottom:"top",top:"bottom"},l={start:"end",end:"start"};function m(a,b){return"function"==typeof a?a(b):a}function n(a){return a.split("-")[0]}function o(a){return a.split("-")[1]}function p(a){return"x"===a?"y":"x"}function q(a){return"y"===a?"height":"width"}let r=new Set(["top","bottom"]);function s(a){return r.has(n(a))?"y":"x"}function t(a){return a.replace(/start|end/g,a=>l[a])}let u=["left","right"],v=["right","left"],w=["top","bottom"],x=["bottom","top"];function y(a){return a.replace(/left|right|bottom|top/g,a=>k[a])}function z(a){return"number"!=typeof a?{top:0,right:0,bottom:0,left:0,...a}:{top:a,right:a,bottom:a,left:a}}function A(a){let{x:b,y:c,width:d,height:e}=a;return{width:d,height:e,top:c,left:b,right:b+d,bottom:c+e,x:b,y:c}}function B(a,b,c){let d,{reference:e,floating:f}=a,g=s(b),h=p(s(b)),i=q(h),j=n(b),k="y"===g,l=e.x+e.width/2-f.width/2,m=e.y+e.height/2-f.height/2,r=e[i]/2-f[i]/2;switch(j){case"top":d={x:l,y:e.y-f.height};break;case"bottom":d={x:l,y:e.y+e.height};break;case"right":d={x:e.x+e.width,y:m};break;case"left":d={x:e.x-f.width,y:m};break;default:d={x:e.x,y:e.y}}switch(o(b)){case"start":d[h]-=r*(c&&k?-1:1);break;case"end":d[h]+=r*(c&&k?-1:1)}return d}let C=async(a,b,c)=>{let{placement:d="bottom",strategy:e="absolute",middleware:f=[],platform:g}=c,h=f.filter(Boolean),i=await (null==g.isRTL?void 0:g.isRTL(b)),j=await g.getElementRects({reference:a,floating:b,strategy:e}),{x:k,y:l}=B(j,d,i),m=d,n={},o=0;for(let c=0;ca[b]>=0)}let G=new Set(["left","top"]);async function H(a,b){let{placement:c,platform:d,elements:e}=a,f=await (null==d.isRTL?void 0:d.isRTL(e.floating)),g=n(c),h=o(c),i="y"===s(c),j=G.has(g)?-1:1,k=f&&i?-1:1,l=m(b,a),{mainAxis:p,crossAxis:q,alignmentAxis:r}="number"==typeof l?{mainAxis:l,crossAxis:0,alignmentAxis:null}:{mainAxis:l.mainAxis||0,crossAxis:l.crossAxis||0,alignmentAxis:l.alignmentAxis};return h&&"number"==typeof r&&(q="end"===h?-1*r:r),i?{x:q*k,y:p*j}:{x:p*j,y:q*k}}function I(){return"undefined"!=typeof window}function J(a){return M(a)?(a.nodeName||"").toLowerCase():"#document"}function K(a){var b;return(null==a||null==(b=a.ownerDocument)?void 0:b.defaultView)||window}function L(a){var b;return null==(b=(M(a)?a.ownerDocument:a.document)||window.document)?void 0:b.documentElement}function M(a){return!!I()&&(a instanceof Node||a instanceof K(a).Node)}function N(a){return!!I()&&(a instanceof Element||a instanceof K(a).Element)}function O(a){return!!I()&&(a instanceof HTMLElement||a instanceof K(a).HTMLElement)}function P(a){return!!I()&&"undefined"!=typeof ShadowRoot&&(a instanceof ShadowRoot||a instanceof K(a).ShadowRoot)}let Q=new Set(["inline","contents"]);function R(a){let{overflow:b,overflowX:c,overflowY:d,display:e}=aa(a);return/auto|scroll|overlay|hidden|clip/.test(b+d+c)&&!Q.has(e)}let S=new Set(["table","td","th"]),T=[":popover-open",":modal"];function U(a){return T.some(b=>{try{return a.matches(b)}catch(a){return!1}})}let V=["transform","translate","scale","rotate","perspective"],W=["transform","translate","scale","rotate","perspective","filter"],X=["paint","layout","strict","content"];function Y(a){let b=Z(),c=N(a)?aa(a):a;return V.some(a=>!!c[a]&&"none"!==c[a])||!!c.containerType&&"normal"!==c.containerType||!b&&!!c.backdropFilter&&"none"!==c.backdropFilter||!b&&!!c.filter&&"none"!==c.filter||W.some(a=>(c.willChange||"").includes(a))||X.some(a=>(c.contain||"").includes(a))}function Z(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let $=new Set(["html","body","#document"]);function _(a){return $.has(J(a))}function aa(a){return K(a).getComputedStyle(a)}function ab(a){return N(a)?{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}:{scrollLeft:a.scrollX,scrollTop:a.scrollY}}function ac(a){if("html"===J(a))return a;let b=a.assignedSlot||a.parentNode||P(a)&&a.host||L(a);return P(b)?b.host:b}function ad(a,b,c){var d;void 0===b&&(b=[]),void 0===c&&(c=!0);let e=function a(b){let c=ac(b);return _(c)?b.ownerDocument?b.ownerDocument.body:b.body:O(c)&&R(c)?c:a(c)}(a),f=e===(null==(d=a.ownerDocument)?void 0:d.body),g=K(e);if(f){let a=ae(g);return b.concat(g,g.visualViewport||[],R(e)?e:[],a&&c?ad(a):[])}return b.concat(e,ad(e,[],c))}function ae(a){return a.parent&&Object.getPrototypeOf(a.parent)?a.frameElement:null}function af(a){let b=aa(a),c=parseFloat(b.width)||0,d=parseFloat(b.height)||0,e=O(a),f=e?a.offsetWidth:c,g=e?a.offsetHeight:d,i=h(c)!==f||h(d)!==g;return i&&(c=f,d=g),{width:c,height:d,$:i}}function ag(a){return N(a)?a:a.contextElement}function ah(a){let b=ag(a);if(!O(b))return j(1);let c=b.getBoundingClientRect(),{width:d,height:e,$:f}=af(b),g=(f?h(c.width):c.width)/d,i=(f?h(c.height):c.height)/e;return g&&Number.isFinite(g)||(g=1),i&&Number.isFinite(i)||(i=1),{x:g,y:i}}let ai=j(0);function aj(a){let b=K(a);return Z()&&b.visualViewport?{x:b.visualViewport.offsetLeft,y:b.visualViewport.offsetTop}:ai}function ak(a,b,c,d){var e;void 0===b&&(b=!1),void 0===c&&(c=!1);let f=a.getBoundingClientRect(),g=ag(a),h=j(1);b&&(d?N(d)&&(h=ah(d)):h=ah(a));let i=(void 0===(e=c)&&(e=!1),d&&(!e||d===K(g))&&e)?aj(g):j(0),k=(f.left+i.x)/h.x,l=(f.top+i.y)/h.y,m=f.width/h.x,n=f.height/h.y;if(g){let a=K(g),b=d&&N(d)?K(d):d,c=a,e=ae(c);for(;e&&d&&b!==c;){let a=ah(e),b=e.getBoundingClientRect(),d=aa(e),f=b.left+(e.clientLeft+parseFloat(d.paddingLeft))*a.x,g=b.top+(e.clientTop+parseFloat(d.paddingTop))*a.y;k*=a.x,l*=a.y,m*=a.x,n*=a.y,k+=f,l+=g,e=ae(c=K(e))}}return A({width:m,height:n,x:k,y:l})}function al(a,b){let c=ab(a).scrollLeft;return b?b.left+c:ak(L(a)).left+c}function am(a,b){let c=a.getBoundingClientRect();return{x:c.left+b.scrollLeft-al(a,c),y:c.top+b.scrollTop}}let an=new Set(["absolute","fixed"]);function ao(a,b,c){let d;if("viewport"===b)d=function(a,b){let c=K(a),d=L(a),e=c.visualViewport,f=d.clientWidth,g=d.clientHeight,h=0,i=0;if(e){f=e.width,g=e.height;let a=Z();(!a||a&&"fixed"===b)&&(h=e.offsetLeft,i=e.offsetTop)}let j=al(d);if(j<=0){let a=d.ownerDocument,b=a.body,c=getComputedStyle(b),e="CSS1Compat"===a.compatMode&&parseFloat(c.marginLeft)+parseFloat(c.marginRight)||0,g=Math.abs(d.clientWidth-b.clientWidth-e);g<=25&&(f-=g)}else j<=25&&(f+=j);return{width:f,height:g,x:h,y:i}}(a,c);else if("document"===b)d=function(a){let b=L(a),c=ab(a),d=a.ownerDocument.body,e=g(b.scrollWidth,b.clientWidth,d.scrollWidth,d.clientWidth),f=g(b.scrollHeight,b.clientHeight,d.scrollHeight,d.clientHeight),h=-c.scrollLeft+al(a),i=-c.scrollTop;return"rtl"===aa(d).direction&&(h+=g(b.clientWidth,d.clientWidth)-e),{width:e,height:f,x:h,y:i}}(L(a));else if(N(b))d=function(a,b){let c=ak(a,!0,"fixed"===b),d=c.top+a.clientTop,e=c.left+a.clientLeft,f=O(a)?ah(a):j(1),g=a.clientWidth*f.x,h=a.clientHeight*f.y;return{width:g,height:h,x:e*f.x,y:d*f.y}}(b,c);else{let c=aj(a);d={x:b.x-c.x,y:b.y-c.y,width:b.width,height:b.height}}return A(d)}function ap(a){return"static"===aa(a).position}function aq(a,b){if(!O(a)||"fixed"===aa(a).position)return null;if(b)return b(a);let c=a.offsetParent;return L(a)===c&&(c=c.ownerDocument.body),c}function ar(a,b){var c;let d=K(a);if(U(a))return d;if(!O(a)){let b=ac(a);for(;b&&!_(b);){if(N(b)&&!ap(b))return b;b=ac(b)}return d}let e=aq(a,b);for(;e&&(c=e,S.has(J(c)))&&ap(e);)e=aq(e,b);return e&&_(e)&&ap(e)&&!Y(e)?d:e||function(a){let b=ac(a);for(;O(b)&&!_(b);){if(Y(b))return b;if(U(b))break;b=ac(b)}return null}(a)||d}let as=async function(a){let b=this.getOffsetParent||ar,c=this.getDimensions,d=await c(a.floating);return{reference:function(a,b,c){let d=O(b),e=L(b),f="fixed"===c,g=ak(a,!0,f,b),h={scrollLeft:0,scrollTop:0},i=j(0);if(d||!d&&!f)if(("body"!==J(b)||R(e))&&(h=ab(b)),d){let a=ak(b,!0,f,b);i.x=a.x+b.clientLeft,i.y=a.y+b.clientTop}else e&&(i.x=al(e));f&&!d&&e&&(i.x=al(e));let k=!e||d||f?j(0):am(e,h);return{x:g.left+h.scrollLeft-i.x-k.x,y:g.top+h.scrollTop-i.y-k.y,width:g.width,height:g.height}}(a.reference,await b(a.floating),a.strategy),floating:{x:0,y:0,width:d.width,height:d.height}}},at={convertOffsetParentRelativeRectToViewportRelativeRect:function(a){let{elements:b,rect:c,offsetParent:d,strategy:e}=a,f="fixed"===e,g=L(d),h=!!b&&U(b.floating);if(d===g||h&&f)return c;let i={scrollLeft:0,scrollTop:0},k=j(1),l=j(0),m=O(d);if((m||!m&&!f)&&(("body"!==J(d)||R(g))&&(i=ab(d)),O(d))){let a=ak(d);k=ah(d),l.x=a.x+d.clientLeft,l.y=a.y+d.clientTop}let n=!g||m||f?j(0):am(g,i);return{width:c.width*k.x,height:c.height*k.y,x:c.x*k.x-i.scrollLeft*k.x+l.x+n.x,y:c.y*k.y-i.scrollTop*k.y+l.y+n.y}},getDocumentElement:L,getClippingRect:function(a){let{element:b,boundary:c,rootBoundary:d,strategy:e}=a,h=[..."clippingAncestors"===c?U(b)?[]:function(a,b){let c=b.get(a);if(c)return c;let d=ad(a,[],!1).filter(a=>N(a)&&"body"!==J(a)),e=null,f="fixed"===aa(a).position,g=f?ac(a):a;for(;N(g)&&!_(g);){let b=aa(g),c=Y(g);c||"fixed"!==b.position||(e=null),(f?!c&&!e:!c&&"static"===b.position&&!!e&&an.has(e.position)||R(g)&&!c&&function a(b,c){let d=ac(b);return!(d===c||!N(d)||_(d))&&("fixed"===aa(d).position||a(d,c))}(a,g))?d=d.filter(a=>a!==g):e=b,g=ac(g)}return b.set(a,d),d}(b,this._c):[].concat(c),d],i=h[0],j=h.reduce((a,c)=>{let d=ao(b,c,e);return a.top=g(d.top,a.top),a.right=f(d.right,a.right),a.bottom=f(d.bottom,a.bottom),a.left=g(d.left,a.left),a},ao(b,i,e));return{width:j.right-j.left,height:j.bottom-j.top,x:j.left,y:j.top}},getOffsetParent:ar,getElementRects:as,getClientRects:function(a){return Array.from(a.getClientRects())},getDimensions:function(a){let{width:b,height:c}=af(a);return{width:b,height:c}},getScale:ah,isElement:N,isRTL:function(a){return"rtl"===aa(a).direction}};function au(a,b){return a.x===b.x&&a.y===b.y&&a.width===b.width&&a.height===b.height}let av=a=>({name:"arrow",options:a,async fn(b){let{x:c,y:d,placement:e,rects:h,platform:i,elements:j,middlewareData:k}=b,{element:l,padding:n=0}=m(a,b)||{};if(null==l)return{};let r=z(n),t={x:c,y:d},u=p(s(e)),v=q(u),w=await i.getDimensions(l),x="y"===u,y=x?"clientHeight":"clientWidth",A=h.reference[v]+h.reference[u]-t[u]-h.floating[v],B=t[u]-h.reference[u],C=await (null==i.getOffsetParent?void 0:i.getOffsetParent(l)),D=C?C[y]:0;D&&await (null==i.isElement?void 0:i.isElement(C))||(D=j.floating[y]||h.floating[v]);let E=D/2-w[v]/2-1,F=f(r[x?"top":"left"],E),G=f(r[x?"bottom":"right"],E),H=D-w[v]-G,I=D/2-w[v]/2+(A/2-B/2),J=g(F,f(I,H)),K=!k.arrow&&null!=o(e)&&I!==J&&h.reference[v]/2-(I{b.current=a}),b}var aC=c(6406),aD=c(21124),aE=d.forwardRef((a,b)=>{let{children:c,width:d=10,height:e=5,...f}=a;return(0,aD.jsx)(aC.sG.svg,{...f,ref:b,width:d,height:e,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:a.asChild?c:(0,aD.jsx)("polygon",{points:"0,0 30,0 15,10"})})});aE.displayName="Arrow";var aF=c(92808),aG=c(2332),aH=c(71700),aI=c(68829),aJ=c(96386),aK="Popper",[aL,aM]=(0,aG.A)(aK),[aN,aO]=aL(aK),aP=a=>{let{__scopePopper:b,children:c}=a,[e,f]=d.useState(null);return(0,aD.jsx)(aN,{scope:b,anchor:e,onAnchorChange:f,children:c})};aP.displayName=aK;var aQ="PopperAnchor",aR=d.forwardRef((a,b)=>{let{__scopePopper:c,virtualRef:e,...f}=a,g=aO(aQ,c),h=d.useRef(null),i=(0,aF.s)(b,h),j=d.useRef(null);return d.useEffect(()=>{let a=j.current;j.current=e?.current||h.current,a!==j.current&&g.onAnchorChange(j.current)}),e?null:(0,aD.jsx)(aC.sG.div,{...f,ref:i})});aR.displayName=aQ;var aS="PopperContent",[aT,aU]=aL(aS),aV=d.forwardRef((a,b)=>{let{__scopePopper:c,side:e="bottom",sideOffset:h=0,align:j="center",alignOffset:k=0,arrowPadding:l=0,avoidCollisions:r=!0,collisionBoundary:z=[],collisionPadding:A=0,sticky:B="partial",hideWhenDetached:I=!1,updatePositionStrategy:J="optimized",onPlaced:K,...M}=a,N=aO(aS,c),[O,P]=d.useState(null),Q=(0,aF.s)(b,a=>P(a)),[R,S]=d.useState(null),T=(0,aJ.X)(R),U=T?.width??0,V=T?.height??0,W="number"==typeof A?A:{top:0,right:0,bottom:0,left:0,...A},X=Array.isArray(z)?z:[z],Y=X.length>0,Z={padding:W,boundary:X.filter(aZ),altBoundary:Y},{refs:$,floatingStyles:_,placement:aa,isPositioned:ab,middlewareData:ac}=function(a){void 0===a&&(a={});let{placement:b="bottom",strategy:c="absolute",middleware:e=[],platform:f,elements:{reference:g,floating:h}={},transform:i=!0,whileElementsMounted:j,open:k}=a,[l,m]=d.useState({x:0,y:0,strategy:c,placement:b,middlewareData:{},isPositioned:!1}),[n,o]=d.useState(e);ay(n,e)||o(e);let[p,q]=d.useState(null),[r,s]=d.useState(null),t=d.useCallback(a=>{a!==x.current&&(x.current=a,q(a))},[]),u=d.useCallback(a=>{a!==y.current&&(y.current=a,s(a))},[]),v=g||p,w=h||r,x=d.useRef(null),y=d.useRef(null),z=d.useRef(l),A=null!=j,B=aB(j),D=aB(f),E=aB(k),F=d.useCallback(()=>{if(!x.current||!y.current)return;let a={placement:b,strategy:c,middleware:n};D.current&&(a.platform=D.current),((a,b,c)=>{let d=new Map,e={platform:at,...c},f={...e.platform,_c:d};return C(a,b,{...e,platform:f})})(x.current,y.current,a).then(a=>{let b={...a,isPositioned:!1!==E.current};G.current&&!ay(z.current,b)&&(z.current=b,aw.flushSync(()=>{m(b)}))})},[n,b,c,D,E]);ax(()=>{!1===k&&z.current.isPositioned&&(z.current.isPositioned=!1,m(a=>({...a,isPositioned:!1})))},[k]);let G=d.useRef(!1);ax(()=>(G.current=!0,()=>{G.current=!1}),[]),ax(()=>{if(v&&(x.current=v),w&&(y.current=w),v&&w){if(B.current)return B.current(v,w,F);F()}},[v,w,F,B,A]);let H=d.useMemo(()=>({reference:x,floating:y,setReference:t,setFloating:u}),[t,u]),I=d.useMemo(()=>({reference:v,floating:w}),[v,w]),J=d.useMemo(()=>{let a={position:c,left:0,top:0};if(!I.floating)return a;let b=aA(I.floating,l.x),d=aA(I.floating,l.y);return i?{...a,transform:"translate("+b+"px, "+d+"px)",...az(I.floating)>=1.5&&{willChange:"transform"}}:{position:c,left:b,top:d}},[c,i,I.floating,l.x,l.y]);return d.useMemo(()=>({...l,update:F,refs:H,elements:I,floatingStyles:J}),[l,F,H,I,J])}({strategy:"fixed",placement:e+("center"!==j?"-"+j:""),whileElementsMounted:(...a)=>(function(a,b,c,d){let e;void 0===d&&(d={});let{ancestorScroll:h=!0,ancestorResize:j=!0,elementResize:k="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:m=!1}=d,n=ag(a),o=h||j?[...n?ad(n):[],...ad(b)]:[];o.forEach(a=>{h&&a.addEventListener("scroll",c,{passive:!0}),j&&a.addEventListener("resize",c)});let p=n&&l?function(a,b){let c,d=null,e=L(a);function h(){var a;clearTimeout(c),null==(a=d)||a.disconnect(),d=null}return!function j(k,l){void 0===k&&(k=!1),void 0===l&&(l=1),h();let m=a.getBoundingClientRect(),{left:n,top:o,width:p,height:q}=m;if(k||b(),!p||!q)return;let r=i(o),s=i(e.clientWidth-(n+p)),t={rootMargin:-r+"px "+-s+"px "+-i(e.clientHeight-(o+q))+"px "+-i(n)+"px",threshold:g(0,f(1,l))||1},u=!0;function v(b){let d=b[0].intersectionRatio;if(d!==l){if(!u)return j();d?j(!1,d):c=setTimeout(()=>{j(!1,1e-7)},1e3)}1!==d||au(m,a.getBoundingClientRect())||j(),u=!1}try{d=new IntersectionObserver(v,{...t,root:e.ownerDocument})}catch(a){d=new IntersectionObserver(v,t)}d.observe(a)}(!0),h}(n,c):null,q=-1,r=null;k&&(r=new ResizeObserver(a=>{let[d]=a;d&&d.target===n&&r&&(r.unobserve(b),cancelAnimationFrame(q),q=requestAnimationFrame(()=>{var a;null==(a=r)||a.observe(b)})),c()}),n&&!m&&r.observe(n),r.observe(b));let s=m?ak(a):null;return m&&function b(){let d=ak(a);s&&!au(s,d)&&c(),s=d,e=requestAnimationFrame(b)}(),c(),()=>{var a;o.forEach(a=>{h&&a.removeEventListener("scroll",c),j&&a.removeEventListener("resize",c)}),null==p||p(),null==(a=r)||a.disconnect(),r=null,m&&cancelAnimationFrame(e)}})(...a,{animationFrame:"always"===J}),elements:{reference:N.anchor},middleware:[((a,b)=>({...function(a){return void 0===a&&(a=0),{name:"offset",options:a,async fn(b){var c,d;let{x:e,y:f,placement:g,middlewareData:h}=b,i=await H(b,a);return g===(null==(c=h.offset)?void 0:c.placement)&&null!=(d=h.arrow)&&d.alignmentOffset?{}:{x:e+i.x,y:f+i.y,data:{...i,placement:g}}}}}(a),options:[a,b]}))({mainAxis:h+V,alignmentAxis:k}),r&&((a,b)=>({...function(a){return void 0===a&&(a={}),{name:"shift",options:a,async fn(b){let{x:c,y:d,placement:e}=b,{mainAxis:h=!0,crossAxis:i=!1,limiter:j={fn:a=>{let{x:b,y:c}=a;return{x:b,y:c}}},...k}=m(a,b),l={x:c,y:d},o=await D(b,k),q=s(n(e)),r=p(q),t=l[r],u=l[q];if(h){let a="y"===r?"top":"left",b="y"===r?"bottom":"right",c=t+o[a],d=t-o[b];t=g(c,f(t,d))}if(i){let a="y"===q?"top":"left",b="y"===q?"bottom":"right",c=u+o[a],d=u-o[b];u=g(c,f(u,d))}let v=j.fn({...b,[r]:t,[q]:u});return{...v,data:{x:v.x-c,y:v.y-d,enabled:{[r]:h,[q]:i}}}}}}(a),options:[a,b]}))({mainAxis:!0,crossAxis:!1,limiter:"partial"===B?((a,b)=>({...function(a){return void 0===a&&(a={}),{options:a,fn(b){let{x:c,y:d,placement:e,rects:f,middlewareData:g}=b,{offset:h=0,mainAxis:i=!0,crossAxis:j=!0}=m(a,b),k={x:c,y:d},l=s(e),o=p(l),q=k[o],r=k[l],t=m(h,b),u="number"==typeof t?{mainAxis:t,crossAxis:0}:{mainAxis:0,crossAxis:0,...t};if(i){let a="y"===o?"height":"width",b=f.reference[o]-f.floating[a]+u.mainAxis,c=f.reference[o]+f.reference[a]-u.mainAxis;qc&&(q=c)}if(j){var v,w;let a="y"===o?"width":"height",b=G.has(n(e)),c=f.reference[l]-f.floating[a]+(b&&(null==(v=g.offset)?void 0:v[l])||0)+(b?0:u.crossAxis),d=f.reference[l]+f.reference[a]+(b?0:(null==(w=g.offset)?void 0:w[l])||0)-(b?u.crossAxis:0);rd&&(r=d)}return{[o]:q,[l]:r}}}}(a),options:[a,b]}))():void 0,...Z}),r&&((a,b)=>({...function(a){return void 0===a&&(a={}),{name:"flip",options:a,async fn(b){var c,d,e,f,g;let{placement:h,middlewareData:i,rects:j,initialPlacement:k,platform:l,elements:r}=b,{mainAxis:z=!0,crossAxis:A=!0,fallbackPlacements:B,fallbackStrategy:C="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:F=!0,...G}=m(a,b);if(null!=(c=i.arrow)&&c.alignmentOffset)return{};let H=n(h),I=s(k),J=n(k)===k,K=await (null==l.isRTL?void 0:l.isRTL(r.floating)),L=B||(J||!F?[y(k)]:function(a){let b=y(a);return[t(a),b,t(b)]}(k)),M="none"!==E;!B&&M&&L.push(...function(a,b,c,d){let e=o(a),f=function(a,b,c){switch(a){case"top":case"bottom":if(c)return b?v:u;return b?u:v;case"left":case"right":return b?w:x;default:return[]}}(n(a),"start"===c,d);return e&&(f=f.map(a=>a+"-"+e),b&&(f=f.concat(f.map(t)))),f}(k,F,E,K));let N=[k,...L],O=await D(b,G),P=[],Q=(null==(d=i.flip)?void 0:d.overflows)||[];if(z&&P.push(O[H]),A){let a=function(a,b,c){void 0===c&&(c=!1);let d=o(a),e=p(s(a)),f=q(e),g="x"===e?d===(c?"end":"start")?"right":"left":"start"===d?"bottom":"top";return b.reference[f]>b.floating[f]&&(g=y(g)),[g,y(g)]}(h,j,K);P.push(O[a[0]],O[a[1]])}if(Q=[...Q,{placement:h,overflows:P}],!P.every(a=>a<=0)){let a=((null==(e=i.flip)?void 0:e.index)||0)+1,b=N[a];if(b&&("alignment"!==A||I===s(b)||Q.every(a=>s(a.placement)!==I||a.overflows[0]>0)))return{data:{index:a,overflows:Q},reset:{placement:b}};let c=null==(f=Q.filter(a=>a.overflows[0]<=0).sort((a,b)=>a.overflows[1]-b.overflows[1])[0])?void 0:f.placement;if(!c)switch(C){case"bestFit":{let a=null==(g=Q.filter(a=>{if(M){let b=s(a.placement);return b===I||"y"===b}return!0}).map(a=>[a.placement,a.overflows.filter(a=>a>0).reduce((a,b)=>a+b,0)]).sort((a,b)=>a[1]-b[1])[0])?void 0:g[0];a&&(c=a);break}case"initialPlacement":c=k}if(h!==c)return{reset:{placement:c}}}return{}}}}(a),options:[a,b]}))({...Z}),((a,b)=>({...function(a){return void 0===a&&(a={}),{name:"size",options:a,async fn(b){var c,d;let e,h,{placement:i,rects:j,platform:k,elements:l}=b,{apply:p=()=>{},...q}=m(a,b),r=await D(b,q),t=n(i),u=o(i),v="y"===s(i),{width:w,height:x}=j.floating;"top"===t||"bottom"===t?(e=t,h=u===(await (null==k.isRTL?void 0:k.isRTL(l.floating))?"start":"end")?"left":"right"):(h=t,e="end"===u?"top":"bottom");let y=x-r.top-r.bottom,z=w-r.left-r.right,A=f(x-r[e],y),B=f(w-r[h],z),C=!b.middlewareData.shift,E=A,F=B;if(null!=(c=b.middlewareData.shift)&&c.enabled.x&&(F=z),null!=(d=b.middlewareData.shift)&&d.enabled.y&&(E=y),C&&!u){let a=g(r.left,0),b=g(r.right,0),c=g(r.top,0),d=g(r.bottom,0);v?F=w-2*(0!==a||0!==b?a+b:g(r.left,r.right)):E=x-2*(0!==c||0!==d?c+d:g(r.top,r.bottom))}await p({...b,availableWidth:F,availableHeight:E});let G=await k.getDimensions(l.floating);return w!==G.width||x!==G.height?{reset:{rects:!0}}:{}}}}(a),options:[a,b]}))({...Z,apply:({elements:a,rects:b,availableWidth:c,availableHeight:d})=>{let{width:e,height:f}=b.reference,g=a.floating.style;g.setProperty("--radix-popper-available-width",`${c}px`),g.setProperty("--radix-popper-available-height",`${d}px`),g.setProperty("--radix-popper-anchor-width",`${e}px`),g.setProperty("--radix-popper-anchor-height",`${f}px`)}}),R&&((a,b)=>({...(a=>({name:"arrow",options:a,fn(b){let{element:c,padding:d}="function"==typeof a?a(b):a;return c&&({}).hasOwnProperty.call(c,"current")?null!=c.current?av({element:c.current,padding:d}).fn(b):{}:c?av({element:c,padding:d}).fn(b):{}}}))(a),options:[a,b]}))({element:R,padding:l}),a$({arrowWidth:U,arrowHeight:V}),I&&((a,b)=>({...function(a){return void 0===a&&(a={}),{name:"hide",options:a,async fn(b){let{rects:c}=b,{strategy:d="referenceHidden",...e}=m(a,b);switch(d){case"referenceHidden":{let a=E(await D(b,{...e,elementContext:"reference"}),c.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:F(a)}}}case"escaped":{let a=E(await D(b,{...e,altBoundary:!0}),c.floating);return{data:{escapedOffsets:a,escaped:F(a)}}}default:return{}}}}}(a),options:[a,b]}))({strategy:"referenceHidden",...Z})]}),[ae,af]=a_(aa),ah=(0,aH.c)(K);(0,aI.N)(()=>{ab&&ah?.()},[ab,ah]);let ai=ac.arrow?.x,aj=ac.arrow?.y,al=ac.arrow?.centerOffset!==0,[am,an]=d.useState();return(0,aI.N)(()=>{O&&an(window.getComputedStyle(O).zIndex)},[O]),(0,aD.jsx)("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{..._,transform:ab?_.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:am,"--radix-popper-transform-origin":[ac.transformOrigin?.x,ac.transformOrigin?.y].join(" "),...ac.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:a.dir,children:(0,aD.jsx)(aT,{scope:c,placedSide:ae,onArrowChange:S,arrowX:ai,arrowY:aj,shouldHideArrow:al,children:(0,aD.jsx)(aC.sG.div,{"data-side":ae,"data-align":af,...M,ref:Q,style:{...M.style,animation:ab?void 0:"none"}})})})});aV.displayName=aS;var aW="PopperArrow",aX={top:"bottom",right:"left",bottom:"top",left:"right"},aY=d.forwardRef(function(a,b){let{__scopePopper:c,...d}=a,e=aU(aW,c),f=aX[e.placedSide];return(0,aD.jsx)("span",{ref:e.onArrowChange,style:{position:"absolute",left:e.arrowX,top:e.arrowY,[f]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[e.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[e.placedSide],visibility:e.shouldHideArrow?"hidden":void 0},children:(0,aD.jsx)(aE,{...d,ref:b,style:{...d.style,display:"block"}})})});function aZ(a){return null!==a}aY.displayName=aW;var a$=a=>({name:"transformOrigin",options:a,fn(b){let{placement:c,rects:d,middlewareData:e}=b,f=e.arrow?.centerOffset!==0,g=f?0:a.arrowWidth,h=f?0:a.arrowHeight,[i,j]=a_(c),k={start:"0%",center:"50%",end:"100%"}[j],l=(e.arrow?.x??0)+g/2,m=(e.arrow?.y??0)+h/2,n="",o="";return"bottom"===i?(n=f?k:`${l}px`,o=`${-h}px`):"top"===i?(n=f?k:`${l}px`,o=`${d.floating.height+h}px`):"right"===i?(n=`${-h}px`,o=f?k:`${m}px`):"left"===i&&(n=`${d.floating.width+h}px`,o=f?k:`${m}px`),{data:{x:n,y:o}}}});function a_(a){let[b,c="center"]=a.split("-");return[b,c]}var a0=aP,a1=aR,a2=aV,a3=aY},25139:(a,b,c)=>{"use strict";function d(a){return a&&a.__esModule?a:{default:a}}b.__esModule=!0,b.HandlebarsEnvironment=l;var e=c(50281),f=d(c(1793)),g=c(88293),h=c(32860),i=d(c(95050)),j=c(89777);b.VERSION="4.7.8",b.COMPILER_REVISION=8,b.LAST_COMPATIBLE_COMPILER_REVISION=7,b.REVISION_CHANGES={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};var k="[object Object]";function l(a,b,c){this.helpers=a||{},this.partials=b||{},this.decorators=c||{},g.registerDefaultHelpers(this),h.registerDefaultDecorators(this)}l.prototype={constructor:l,logger:i.default,log:i.default.log,registerHelper:function(a,b){if(e.toString.call(a)===k){if(b)throw new f.default("Arg not supported with multiple helpers");e.extend(this.helpers,a)}else this.helpers[a]=b},unregisterHelper:function(a){delete this.helpers[a]},registerPartial:function(a,b){if(e.toString.call(a)===k)e.extend(this.partials,a);else{if(void 0===b)throw new f.default('Attempting to register a partial called "'+a+'" as undefined');this.partials[a]=b}},unregisterPartial:function(a){delete this.partials[a]},registerDecorator:function(a,b){if(e.toString.call(a)===k){if(b)throw new f.default("Arg not supported with multiple decorators");e.extend(this.decorators,a)}else this.decorators[a]=b},unregisterDecorator:function(a){delete this.decorators[a]},resetLoggedPropertyAccesses:function(){j.resetLoggedProperties()}},b.log=i.default.log,b.createFrame=e.createFrame,b.logger=i.default},25258:(a,b,c)=>{"use strict";b.__esModule=!0;var d=function(a){return a&&a.__esModule?a:{default:a}}(c(1793));function e(){this.parents=[]}function f(a){this.acceptRequired(a,"path"),this.acceptArray(a.params),this.acceptKey(a,"hash")}function g(a){f.call(this,a),this.acceptKey(a,"program"),this.acceptKey(a,"inverse")}function h(a){this.acceptRequired(a,"name"),this.acceptArray(a.params),this.acceptKey(a,"hash")}e.prototype={constructor:e,mutating:!1,acceptKey:function(a,b){var c=this.accept(a[b]);if(this.mutating){if(c&&!e.prototype[c.type])throw new d.default('Unexpected node type "'+c.type+'" found when accepting '+b+" on "+a.type);a[b]=c}},acceptRequired:function(a,b){if(this.acceptKey(a,b),!a[b])throw new d.default(a.type+" requires "+b)},acceptArray:function(a){for(var b=0,c=a.length;b{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},26691:(a,b,c)=>{"use strict";c.d(b,{F:()=>g});var d=c(43249);let e=a=>"boolean"==typeof a?`${a}`:0===a?"0":a,f=d.$,g=(a,b)=>c=>{var d;if((null==b?void 0:b.variants)==null)return f(a,null==c?void 0:c.class,null==c?void 0:c.className);let{variants:g,defaultVariants:h}=b,i=Object.keys(g).map(a=>{let b=null==c?void 0:c[a],d=null==h?void 0:h[a];if(null===b)return null;let f=e(b)||e(d);return g[a][f]}),j=c&&Object.entries(c).reduce((a,b)=>{let[c,d]=b;return void 0===d||(a[c]=d),a},{});return f(a,i,null==b||null==(d=b.compoundVariants)?void 0:d.reduce((a,b)=>{let{class:c,className:d,...e}=b;return Object.entries(e).every(a=>{let[b,c]=a;return Array.isArray(c)?c.includes({...h,...j}[b]):({...h,...j})[b]===c})?[...a,c,d]:a},[]),null==c?void 0:c.class,null==c?void 0:c.className)}},27139:(a,b,c)=>{"use strict";var d=c(53247),e=c(43613),f=c(98164),g=c(78094),h=c(1094),i=Object.prototype.toString;function j(a){if(!(this instanceof j))return new j(a);this.options=e.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},a||{});var b,c=this.options;c.raw&&c.windowBits>0?c.windowBits=-c.windowBits:c.gzip&&c.windowBits>0&&c.windowBits<16&&(c.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new h,this.strm.avail_out=0;var k=d.deflateInit2(this.strm,c.level,c.method,c.windowBits,c.memLevel,c.strategy);if(0!==k)throw Error(g[k]);if(c.header&&d.deflateSetHeader(this.strm,c.header),c.dictionary){if(b="string"==typeof c.dictionary?f.string2buf(c.dictionary):"[object ArrayBuffer]"===i.call(c.dictionary)?new Uint8Array(c.dictionary):c.dictionary,0!==(k=d.deflateSetDictionary(this.strm,b)))throw Error(g[k]);this._dict_set=!0}}function k(a,b){var c=new j(b);if(c.push(a,!0),c.err)throw c.msg||g[c.err];return c.result}j.prototype.push=function(a,b){var c,g,h=this.strm,j=this.options.chunkSize;if(this.ended)return!1;g=b===~~b?b:4*(!0===b),"string"==typeof a?h.input=f.string2buf(a):"[object ArrayBuffer]"===i.call(a)?h.input=new Uint8Array(a):h.input=a,h.next_in=0,h.avail_in=h.input.length;do{if(0===h.avail_out&&(h.output=new e.Buf8(j),h.next_out=0,h.avail_out=j),1!==(c=d.deflate(h,g))&&0!==c)return this.onEnd(c),this.ended=!0,!1;(0===h.avail_out||0===h.avail_in&&(4===g||2===g))&&("string"===this.options.to?this.onData(f.buf2binstring(e.shrinkBuf(h.output,h.next_out))):this.onData(e.shrinkBuf(h.output,h.next_out)))}while((h.avail_in>0||0===h.avail_out)&&1!==c);return 4===g?(c=d.deflateEnd(this.strm),this.onEnd(c),this.ended=!0,0===c):(2===g&&(this.onEnd(0),h.avail_out=0),!0)},j.prototype.onData=function(a){this.chunks.push(a)},j.prototype.onEnd=function(a){0===a&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=e.flattenChunks(this.chunks)),this.chunks=[],this.err=a,this.msg=this.strm.msg},b.Deflate=j,b.deflate=k,b.deflateRaw=function(a,b){return(b=b||{}).raw=!0,k(a,b)},b.gzip=function(a,b){return(b=b||{}).gzip=!0,k(a,b)}},29562:(a,b)=>{"use strict";b.__esModule=!0,b.wrapHelper=function(a,b){return"function"!=typeof a?a:function(){var c=arguments[arguments.length-1];return arguments[arguments.length-1]=b(c),a.apply(this,arguments)}}},29988:(a,b,c)=>{"use strict";c.d(b,{C:()=>g});var d=c(38301),e=c(92808),f=c(68829),g=a=>{let{present:b,children:c}=a,g=function(a){var b,c;let[e,g]=d.useState(),i=d.useRef(null),j=d.useRef(a),k=d.useRef("none"),[l,m]=(b=a?"mounted":"unmounted",c={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},d.useReducer((a,b)=>c[a][b]??a,b));return d.useEffect(()=>{let a=h(i.current);k.current="mounted"===l?a:"none"},[l]),(0,f.N)(()=>{let b=i.current,c=j.current;if(c!==a){let d=k.current,e=h(b);a?m("MOUNT"):"none"===e||b?.display==="none"?m("UNMOUNT"):c&&d!==e?m("ANIMATION_OUT"):m("UNMOUNT"),j.current=a}},[a,m]),(0,f.N)(()=>{if(e){let a,b=e.ownerDocument.defaultView??window,c=c=>{let d=h(i.current).includes(CSS.escape(c.animationName));if(c.target===e&&d&&(m("ANIMATION_END"),!j.current)){let c=e.style.animationFillMode;e.style.animationFillMode="forwards",a=b.setTimeout(()=>{"forwards"===e.style.animationFillMode&&(e.style.animationFillMode=c)})}},d=a=>{a.target===e&&(k.current=h(i.current))};return e.addEventListener("animationstart",d),e.addEventListener("animationcancel",c),e.addEventListener("animationend",c),()=>{b.clearTimeout(a),e.removeEventListener("animationstart",d),e.removeEventListener("animationcancel",c),e.removeEventListener("animationend",c)}}m("ANIMATION_END")},[e,m]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:d.useCallback(a=>{i.current=a?getComputedStyle(a):null,g(a)},[])}}(b),i="function"==typeof c?c({present:g.isPresent}):d.Children.only(c),j=(0,e.s)(g.ref,function(a){let b=Object.getOwnPropertyDescriptor(a.props,"ref")?.get,c=b&&"isReactWarning"in b&&b.isReactWarning;return c?a.ref:(c=(b=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in b&&b.isReactWarning)?a.props.ref:a.props.ref||a.ref}(i));return"function"==typeof c||g.isPresent?d.cloneElement(i,{ref:j}):null};function h(a){return a?.animationName||"none"}g.displayName="Presence"},30298:(a,b,c)=>{"use strict";var d=c(65353);b.STORE={magic:"\0\0",compressWorker:function(){return new d("STORE compression")},uncompressWorker:function(){return new d("STORE decompression")}},b.DEFLATE=c(21379)},30887:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]])},30923:(a,b,c)=>{"use strict";function d(a){return a&&a.__esModule?a:{default:a}}b.__esModule=!0;var e=d(c(6725)),f=d(c(87732)),g=c(9991),h=c(18659),i=d(c(12803)),j=d(c(25258)),k=d(c(59156)),l=e.default.create;function m(){var a=l();return a.compile=function(b,c){return h.compile(b,c,a)},a.precompile=function(b,c){return h.precompile(b,c,a)},a.AST=f.default,a.Compiler=h.Compiler,a.JavaScriptCompiler=i.default,a.Parser=g.parser,a.parse=g.parse,a.parseWithoutProcessing=g.parseWithoutProcessing,a}var n=m();n.create=m,k.default(n),n.Visitor=j.default,n.default=n,b.default=n,a.exports=b.default},31506:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]])},32677:(a,b,c)=>{"use strict";var d=c(62253).Buffer,e=d.isEncoding||function(a){switch((a=""+a)&&a.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function f(a){var b;switch(this.encoding=function(a){var b=function(a){var b;if(!a)return"utf8";for(;;)switch(a){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return a;default:if(b)return;a=(""+a).toLowerCase(),b=!0}}(a);if("string"!=typeof b&&(d.isEncoding===e||!e(a)))throw Error("Unknown encoding: "+a);return b||a}(a),this.encoding){case"utf16le":this.text=i,this.end=j,b=4;break;case"utf8":this.fillLast=h,b=4;break;case"base64":this.text=k,this.end=l,b=3;break;default:this.write=m,this.end=n;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=d.allocUnsafe(b)}function g(a){return a<=127?0:a>>5==6?2:a>>4==14?3:a>>3==30?4:a>>6==2?-1:-2}function h(a){var b=this.lastTotal-this.lastNeed,c=function(a,b,c){if((192&b[0])!=128)return a.lastNeed=0,"�";if(a.lastNeed>1&&b.length>1){if((192&b[1])!=128)return a.lastNeed=1,"�";if(a.lastNeed>2&&b.length>2&&(192&b[2])!=128)return a.lastNeed=2,"�"}}(this,a,0);return void 0!==c?c:this.lastNeed<=a.length?(a.copy(this.lastChar,b,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(a.copy(this.lastChar,b,0,a.length),this.lastNeed-=a.length)}function i(a,b){if((a.length-b)%2==0){var c=a.toString("utf16le",b);if(c){var d=c.charCodeAt(c.length-1);if(d>=55296&&d<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=a[a.length-2],this.lastChar[1]=a[a.length-1],c.slice(0,-1)}return c}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=a[a.length-1],a.toString("utf16le",b,a.length-1)}function j(a){var b=a&&a.length?this.write(a):"";if(this.lastNeed){var c=this.lastTotal-this.lastNeed;return b+this.lastChar.toString("utf16le",0,c)}return b}function k(a,b){var c=(a.length-b)%3;return 0===c?a.toString("base64",b):(this.lastNeed=3-c,this.lastTotal=3,1===c?this.lastChar[0]=a[a.length-1]:(this.lastChar[0]=a[a.length-2],this.lastChar[1]=a[a.length-1]),a.toString("base64",b,a.length-c))}function l(a){var b=a&&a.length?this.write(a):"";return this.lastNeed?b+this.lastChar.toString("base64",0,3-this.lastNeed):b}function m(a){return a.toString(this.encoding)}function n(a){return a&&a.length?this.write(a):""}b.I=f,f.prototype.write=function(a){var b,c;if(0===a.length)return"";if(this.lastNeed){if(void 0===(b=this.fillLast(a)))return"";c=this.lastNeed,this.lastNeed=0}else c=0;return c=0?(e>0&&(a.lastNeed=e-1),e):--d=0?(e>0&&(a.lastNeed=e-2),e):--d=0?(e>0&&(2===e?e=0:a.lastNeed=e-3),e):0}(this,a,b);if(!this.lastNeed)return a.toString("utf8",b);this.lastTotal=c;var d=a.length-(c-this.lastNeed);return a.copy(this.lastChar,0,d),a.toString("utf8",b,d)},f.prototype.fillLast=function(a){if(this.lastNeed<=a.length)return a.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);a.copy(this.lastChar,this.lastTotal-this.lastNeed,0,a.length),this.lastNeed-=a.length}},32860:(a,b,c)=>{"use strict";b.__esModule=!0,b.registerDefaultDecorators=function(a){d.default(a)};var d=function(a){return a&&a.__esModule?a:{default:a}}(c(47210))},32970:(a,b,c)=>{"use strict";var d=c(20452),e=c(65353);function f(a){e.call(this,"DataWorker");var b=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,a.then(function(a){b.dataIsReady=!0,b.data=a,b.max=a&&a.length||0,b.type=d.getTypeOf(a),b.isPaused||b._tickAndRepeat()},function(a){b.error(a)})}d.inherits(f,e),f.prototype.cleanUp=function(){e.prototype.cleanUp.call(this),this.data=null},f.prototype.resume=function(){return!!e.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,d.delay(this._tickAndRepeat,[],this)),!0)},f.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(d.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},f.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var a=null,b=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":a=this.data.substring(this.index,b);break;case"uint8array":a=this.data.subarray(this.index,b);break;case"array":case"nodebuffer":a=this.data.slice(this.index,b)}return this.index=b,this.push({data:a,meta:{percent:this.max?this.index/this.max*100:0}})},a.exports=f},33018:a=>{"use strict";a.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},33403:(a,b,c)=>{a.exports=c(28354).deprecate},33585:(a,b,c)=>{"use strict";b.__esModule=!0,b.SourceLocation=function(a,b){this.source=a,this.start={line:b.first_line,column:b.first_column},this.end={line:b.last_line,column:b.last_column}},b.id=function(a){return/^\[.*\]$/.test(a)?a.substring(1,a.length-1):a},b.stripFlags=function(a,b){return{open:"~"===a.charAt(2),close:"~"===b.charAt(b.length-3)}},b.stripComment=function(a){return a.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")},b.preparePath=function(a,b,c){c=this.locInfo(c);for(var e=a?"@":"",f=[],g=0,h=0,i=b.length;h0)throw new d.default("Invalid path: "+e,{loc:c});else".."===j&&g++}return{type:"PathExpression",data:a,depth:g,parts:f,original:e,loc:c}},b.prepareMustache=function(a,b,c,d,e,f){var g=d.charAt(3)||d.charAt(2);return{type:/\*/.test(d)?"Decorator":"MustacheStatement",path:a,params:b,hash:c,escaped:"{"!==g&&"&"!==g,strip:e,loc:this.locInfo(f)}},b.prepareRawBlock=function(a,b,c,d){e(a,c);var f={type:"Program",body:b,strip:{},loc:d=this.locInfo(d)};return{type:"BlockStatement",path:a.path,params:a.params,hash:a.hash,program:f,openStrip:{},inverseStrip:{},closeStrip:{},loc:d}},b.prepareBlock=function(a,b,c,f,g,h){f&&f.path&&e(a,f);var i=/\*/.test(a.open);b.blockParams=a.blockParams;var j=void 0,k=void 0;if(c){if(i)throw new d.default("Unexpected inverse block on decorator",c);c.chain&&(c.program.body[0].closeStrip=f.strip),k=c.strip,j=c.program}return g&&(g=j,j=b,b=g),{type:i?"DecoratorBlock":"BlockStatement",path:a.path,params:a.params,hash:a.hash,program:b,inverse:j,openStrip:a.strip,inverseStrip:k,closeStrip:f&&f.strip,loc:this.locInfo(h)}},b.prepareProgram=function(a,b){if(!b&&a.length){var c=a[0].loc,d=a[a.length-1].loc;c&&d&&(b={source:c.source,start:{line:c.start.line,column:c.start.column},end:{line:d.end.line,column:d.end.column}})}return{type:"Program",body:a,strip:{},loc:b}},b.preparePartialBlock=function(a,b,c,d){return e(a,c),{type:"PartialBlockStatement",name:a.path,params:a.params,hash:a.hash,program:b,openStrip:a.strip,closeStrip:c&&c.strip,loc:this.locInfo(d)}};var d=function(a){return a&&a.__esModule?a:{default:a}}(c(1793));function e(a,b){if(b=b.path?b.path.original:b,a.path.original!==b){var c={loc:a.path.loc};throw new d.default(a.path.original+" doesn't match "+b,c)}}},34072:(a,b,c)=>{"use strict";var d=c(20452),e=c(67055),f=c(65353),g=c(50266),h=c(9926),i=c(51238),j=null;if(h.nodestream)try{j=c(96172)}catch(a){}function k(a,b,c){var g=b;switch(b){case"blob":case"arraybuffer":g="uint8array";break;case"base64":g="string"}try{this._internalType=g,this._outputType=b,this._mimeType=c,d.checkSupport(g),this._worker=a.pipe(new e(g)),a.lock()}catch(a){this._worker=new f("error"),this._worker.error(a)}}k.prototype={accumulate:function(a){var b;return b=this,new i.Promise(function(c,e){var f=[],h=b._internalType,i=b._outputType,j=b._mimeType;b.on("data",function(b,c){f.push(b),a&&a(c)}).on("error",function(a){f=[],e(a)}).on("end",function(){try{var a=function(a,b,c){switch(a){case"blob":return d.newBlob(d.transformTo("arraybuffer",b),c);case"base64":return g.encode(b);default:return d.transformTo(a,b)}}(i,function(a,b){var c,d=0,e=null,f=0;for(c=0;c{"use strict";var d=c(20452),e=function(){for(var a,b=[],c=0;c<256;c++){a=c;for(var d=0;d<8;d++)a=1&a?0xedb88320^a>>>1:a>>>1;b[c]=a}return b}();a.exports=function(a,b){return void 0!==a&&a.length?"string"!==d.getTypeOf(a)?function(a,b,c,d){var f=0+c;a^=-1;for(var g=0;g>>8^e[(a^b[g])&255];return -1^a}(0|b,a,a.length,0):function(a,b,c,d){var f=0+c;a^=-1;for(var g=0;g>>8^e[(a^b.charCodeAt(g))&255];return -1^a}(0|b,a,a.length,0):0}},35652:(a,b,c)=>{"use strict";var d=c(38111),e=c(20452),f=c(21843),g=c(35310),h=c(75074),i=c(30298),j=c(9926),k=function(a){for(var b in i)if(Object.prototype.hasOwnProperty.call(i,b)&&i[b].magic===a)return i[b];return null};function l(a,b){this.options=a,this.loadOptions=b}l.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(a){var b,c;if(a.skip(22),this.fileNameLength=a.readInt(2),c=a.readInt(2),this.fileName=a.readData(this.fileNameLength),a.skip(c),-1===this.compressedSize||-1===this.uncompressedSize)throw Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(b=k(this.compressionMethod)))throw Error("Corrupted zip : compression "+e.pretty(this.compressionMethod)+" unknown (inner file : "+e.transformTo("string",this.fileName)+")");this.decompressed=new f(this.compressedSize,this.uncompressedSize,this.crc32,b,a.readData(this.compressedSize))},readCentralPart:function(a){this.versionMadeBy=a.readInt(2),a.skip(2),this.bitFlag=a.readInt(2),this.compressionMethod=a.readString(2),this.date=a.readDate(),this.crc32=a.readInt(4),this.compressedSize=a.readInt(4),this.uncompressedSize=a.readInt(4);var b=a.readInt(2);if(this.extraFieldsLength=a.readInt(2),this.fileCommentLength=a.readInt(2),this.diskNumberStart=a.readInt(2),this.internalFileAttributes=a.readInt(2),this.externalFileAttributes=a.readInt(4),this.localHeaderOffset=a.readInt(4),this.isEncrypted())throw Error("Encrypted zip are not supported");a.skip(b),this.readExtraFields(a),this.parseZIP64ExtraField(a),this.fileComment=a.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var a=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0===a&&(this.dosPermissions=63&this.externalFileAttributes),3===a&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var a=d(this.extraFields[1].value);this.uncompressedSize===e.MAX_VALUE_32BITS&&(this.uncompressedSize=a.readInt(8)),this.compressedSize===e.MAX_VALUE_32BITS&&(this.compressedSize=a.readInt(8)),this.localHeaderOffset===e.MAX_VALUE_32BITS&&(this.localHeaderOffset=a.readInt(8)),this.diskNumberStart===e.MAX_VALUE_32BITS&&(this.diskNumberStart=a.readInt(4))}},readExtraFields:function(a){var b,c,d,e=a.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});a.index+4{"use strict";a.exports=function(a,b){var c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A;c=a.state,d=a.next_in,z=a.input,e=d+(a.avail_in-5),f=a.next_out,A=a.output,g=f-(b-a.avail_out),h=f+(a.avail_out-257),i=c.dmax,j=c.wsize,k=c.whave,l=c.wnext,m=c.window,n=c.hold,o=c.bits,p=c.lencode,q=c.distcode,r=(1<>>=u=t>>>24,o-=u,0==(u=t>>>16&255))A[f++]=65535&t;else if(16&u)for(v=65535&t,(u&=15)&&(o>>=u,o-=u),o<15&&(n+=z[d++]<>>=u=t>>>24,o-=u,16&(u=t>>>16&255)){if(w=65535&t,o<(u&=15)&&(n+=z[d++]<i){a.msg="invalid distance too far back",c.mode=30;break b}if(n>>>=u,o-=u,w>(u=f-g)){if((u=w-u)>k&&c.sane){a.msg="invalid distance too far back",c.mode=30;break b}if(x=0,y=m,0===l){if(x+=j-u,u2;)A[f++]=y[x++],A[f++]=y[x++],A[f++]=y[x++],v-=3;v&&(A[f++]=y[x++],v>1&&(A[f++]=y[x++]))}else{x=f-w;do A[f++]=A[x++],A[f++]=A[x++],A[f++]=A[x++],v-=3;while(v>2);v&&(A[f++]=A[x++],v>1&&(A[f++]=A[x++]))}}else if((64&u)==0){t=q[(65535&t)+(n&(1<>3,o-=v<<3,n&=(1<{"use strict";c.d(b,{A:()=>U});var d,e,f=function(){return(f=Object.assign||function(a){for(var b,c=1,d=arguments.length;cb.indexOf(d)&&(c[d]=a[d]);if(null!=a&&"function"==typeof Object.getOwnPropertySymbols)for(var e=0,d=Object.getOwnPropertySymbols(a);eb.indexOf(d[e])&&Object.prototype.propertyIsEnumerable.call(a,d[e])&&(c[d[e]]=a[d[e]]);return c}Object.create;Object.create;var h=("function"==typeof SuppressedError&&SuppressedError,c(38301)),i="right-scroll-bar-position",j="width-before-scroll-bar";function k(a,b){return"function"==typeof a?a(b):a&&(a.current=b),a}var l="undefined"!=typeof window?h.useLayoutEffect:h.useEffect,m=new WeakMap;function n(a){return a}var o=function(a){void 0===a&&(a={});var b,c,d,e=(void 0===b&&(b=n),c=[],d=!1,{read:function(){if(d)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return c.length?c[c.length-1]:null},useMedium:function(a){var e=b(a,d);return c.push(e),function(){c=c.filter(function(a){return a!==e})}},assignSyncMedium:function(a){for(d=!0;c.length;){var b=c;c=[],b.forEach(a)}c={push:function(b){return a(b)},filter:function(){return c}}},assignMedium:function(a){d=!0;var b=[];if(c.length){var e=c;c=[],e.forEach(a),b=c}var f=function(){var c=b;b=[],c.forEach(a)},g=function(){return Promise.resolve().then(f)};g(),c={push:function(a){b.push(a),g()},filter:function(a){return b=b.filter(a),c}}}});return e.options=f({async:!0,ssr:!1},a),e}(),p=function(){},q=h.forwardRef(function(a,b){var c,d,e,i,j=h.useRef(null),n=h.useState({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:p}),q=n[0],r=n[1],s=a.forwardProps,t=a.children,u=a.className,v=a.removeScrollBar,w=a.enabled,x=a.shards,y=a.sideCar,z=a.noRelative,A=a.noIsolation,B=a.inert,C=a.allowPinchZoom,D=a.as,E=a.gapMode,F=g(a,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),G=(c=[j,b],d=function(a){return c.forEach(function(b){return k(b,a)})},(e=(0,h.useState)(function(){return{value:null,callback:d,facade:{get current(){return e.value},set current(value){var a=e.value;a!==value&&(e.value=value,e.callback(value,a))}}}})[0]).callback=d,i=e.facade,l(function(){var a=m.get(i);if(a){var b=new Set(a),d=new Set(c),e=i.current;b.forEach(function(a){d.has(a)||k(a,null)}),d.forEach(function(a){b.has(a)||k(a,e)})}m.set(i,c)},[c]),i),H=f(f({},F),q);return h.createElement(h.Fragment,null,w&&h.createElement(y,{sideCar:o,removeScrollBar:v,shards:x,noRelative:z,noIsolation:A,inert:B,setCallbacks:r,allowPinchZoom:!!C,lockRef:j,gapMode:E}),s?h.cloneElement(h.Children.only(t),f(f({},H),{ref:G})):h.createElement(void 0===D?"div":D,f({},H,{className:u,ref:G}),t))});q.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},q.classNames={fullWidth:j,zeroRight:i};var r=function(a){var b=a.sideCar,c=g(a,["sideCar"]);if(!b)throw Error("Sidecar: please provide `sideCar` property to import the right car");var d=b.read();if(!d)throw Error("Sidecar medium not found");return h.createElement(d,f({},c))};r.isSideCarExport=!0;var s=function(){var a=0,b=null;return{add:function(d){if(0==a&&(b=function(){if(!document)return null;var a=document.createElement("style");a.type="text/css";var b=e||c.nc;return b&&a.setAttribute("nonce",b),a}())){var f,g;(f=b).styleSheet?f.styleSheet.cssText=d:f.appendChild(document.createTextNode(d)),g=b,(document.head||document.getElementsByTagName("head")[0]).appendChild(g)}a++},remove:function(){--a||!b||(b.parentNode&&b.parentNode.removeChild(b),b=null)}}},t=function(){var a=s();return function(b,c){h.useEffect(function(){return a.add(b),function(){a.remove()}},[b&&c])}},u=function(){var a=t();return function(b){return a(b.styles,b.dynamic),null}},v={left:0,top:0,right:0,gap:0},w=function(a){return parseInt(a||"",10)||0},x=function(a){var b=window.getComputedStyle(document.body),c=b["padding"===a?"paddingLeft":"marginLeft"],d=b["padding"===a?"paddingTop":"marginTop"],e=b["padding"===a?"paddingRight":"marginRight"];return[w(c),w(d),w(e)]},y=function(a){if(void 0===a&&(a="margin"),"undefined"==typeof window)return v;var b=x(a),c=document.documentElement.clientWidth,d=window.innerWidth;return{left:b[0],top:b[1],right:b[2],gap:Math.max(0,d-c+b[2]-b[0])}},z=u(),A="data-scroll-locked",B=function(a,b,c,d){var e=a.left,f=a.top,g=a.right,h=a.gap;return void 0===c&&(c="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(d,";\n padding-right: ").concat(h,"px ").concat(d,";\n }\n body[").concat(A,"] {\n overflow: hidden ").concat(d,";\n overscroll-behavior: contain;\n ").concat([b&&"position: relative ".concat(d,";"),"margin"===c&&"\n padding-left: ".concat(e,"px;\n padding-top: ").concat(f,"px;\n padding-right: ").concat(g,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(h,"px ").concat(d,";\n "),"padding"===c&&"padding-right: ".concat(h,"px ").concat(d,";")].filter(Boolean).join(""),"\n }\n \n .").concat(i," {\n right: ").concat(h,"px ").concat(d,";\n }\n \n .").concat(j," {\n margin-right: ").concat(h,"px ").concat(d,";\n }\n \n .").concat(i," .").concat(i," {\n right: 0 ").concat(d,";\n }\n \n .").concat(j," .").concat(j," {\n margin-right: 0 ").concat(d,";\n }\n \n body[").concat(A,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(h,"px;\n }\n")},C=function(){var a=parseInt(document.body.getAttribute(A)||"0",10);return isFinite(a)?a:0},D=function(){h.useEffect(function(){return document.body.setAttribute(A,(C()+1).toString()),function(){var a=C()-1;a<=0?document.body.removeAttribute(A):document.body.setAttribute(A,a.toString())}},[])},E=function(a){var b=a.noRelative,c=a.noImportant,d=a.gapMode,e=void 0===d?"margin":d;D();var f=h.useMemo(function(){return y(e)},[e]);return h.createElement(z,{styles:B(f,!b,e,c?"":"!important")})},F=!1;if("undefined"!=typeof window)try{var G=Object.defineProperty({},"passive",{get:function(){return F=!0,!0}});window.addEventListener("test",G,G),window.removeEventListener("test",G,G)}catch(a){F=!1}var H=!!F&&{passive:!1},I=function(a,b){if(!(a instanceof Element))return!1;var c=window.getComputedStyle(a);return"hidden"!==c[b]&&(c.overflowY!==c.overflowX||"TEXTAREA"===a.tagName||"visible"!==c[b])},J=function(a,b){var c=b.ownerDocument,d=b;do{if("undefined"!=typeof ShadowRoot&&d instanceof ShadowRoot&&(d=d.host),K(a,d)){var e=L(a,d);if(e[1]>e[2])return!0}d=d.parentNode}while(d&&d!==c.body);return!1},K=function(a,b){return"v"===a?I(b,"overflowY"):I(b,"overflowX")},L=function(a,b){return"v"===a?[b.scrollTop,b.scrollHeight,b.clientHeight]:[b.scrollLeft,b.scrollWidth,b.clientWidth]},M=function(a,b,c,d,e){var f,g=(f=window.getComputedStyle(b).direction,"h"===a&&"rtl"===f?-1:1),h=g*d,i=c.target,j=b.contains(i),k=!1,l=h>0,m=0,n=0;do{if(!i)break;var o=L(a,i),p=o[0],q=o[1]-o[2]-g*p;(p||q)&&K(a,i)&&(m+=q,n+=p);var r=i.parentNode;i=r&&r.nodeType===Node.DOCUMENT_FRAGMENT_NODE?r.host:r}while(!j&&i!==document.body||j&&(b.contains(i)||b===i));return l&&(e&&1>Math.abs(m)||!e&&h>m)?k=!0:!l&&(e&&1>Math.abs(n)||!e&&-h>n)&&(k=!0),k},N=function(a){return"changedTouches"in a?[a.changedTouches[0].clientX,a.changedTouches[0].clientY]:[0,0]},O=function(a){return[a.deltaX,a.deltaY]},P=function(a){return a&&"current"in a?a.current:a},Q=0,R=[];let S=(d=function(a){var b=h.useRef([]),c=h.useRef([0,0]),d=h.useRef(),e=h.useState(Q++)[0],f=h.useState(u)[0],g=h.useRef(a);h.useEffect(function(){g.current=a},[a]),h.useEffect(function(){if(a.inert){document.body.classList.add("block-interactivity-".concat(e));var b=(function(a,b,c){if(c||2==arguments.length)for(var d,e=0,f=b.length;eMath.abs(j)?"h":"v";if("touches"in a&&"h"===l&&"range"===k.type)return!1;var m=J(l,k);if(!m)return!0;if(m?e=l:(e="v"===l?"h":"v",m=J(l,k)),!m)return!1;if(!d.current&&"changedTouches"in a&&(i||j)&&(d.current=e),!e)return!0;var n=d.current||e;return M(n,b,a,"h"===n?i:j,!0)},[]),j=h.useCallback(function(a){if(R.length&&R[R.length-1]===f){var c="deltaY"in a?O(a):N(a),d=b.current.filter(function(b){var d;return b.name===a.type&&(b.target===a.target||a.target===b.shadowParent)&&(d=b.delta,d[0]===c[0]&&d[1]===c[1])})[0];if(d&&d.should){a.cancelable&&a.preventDefault();return}if(!d){var e=(g.current.shards||[]).map(P).filter(Boolean).filter(function(b){return b.contains(a.target)});(e.length>0?i(a,e[0]):!g.current.noIsolation)&&a.cancelable&&a.preventDefault()}}},[]),k=h.useCallback(function(a,c,d,e){var f={name:a,delta:c,target:d,should:e,shadowParent:function(a){for(var b=null;null!==a;)a instanceof ShadowRoot&&(b=a.host,a=a.host),a=a.parentNode;return b}(d)};b.current.push(f),setTimeout(function(){b.current=b.current.filter(function(a){return a!==f})},1)},[]),l=h.useCallback(function(a){c.current=N(a),d.current=void 0},[]),m=h.useCallback(function(b){k(b.type,O(b),b.target,i(b,a.lockRef.current))},[]),n=h.useCallback(function(b){k(b.type,N(b),b.target,i(b,a.lockRef.current))},[]);h.useEffect(function(){return R.push(f),a.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:n}),document.addEventListener("wheel",j,H),document.addEventListener("touchmove",j,H),document.addEventListener("touchstart",l,H),function(){R=R.filter(function(a){return a!==f}),document.removeEventListener("wheel",j,H),document.removeEventListener("touchmove",j,H),document.removeEventListener("touchstart",l,H)}},[]);var o=a.removeScrollBar,p=a.inert;return h.createElement(h.Fragment,null,p?h.createElement(f,{styles:"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")}):null,o?h.createElement(E,{noRelative:a.noRelative,gapMode:a.gapMode}):null)},o.useMedium(d),r);var T=h.forwardRef(function(a,b){return h.createElement(q,f({},a,{ref:b,sideCar:S}))});T.classNames=q.classNames;let U=T},36867:(a,b,c)=>{"use strict";var d=c(5987);function e(a){d.call(this,a)}c(20452).inherits(e,d),e.prototype.readData=function(a){if(this.checkOffset(a),0===a)return new Uint8Array(0);var b=this.data.subarray(this.zero+this.index,this.zero+this.index+a);return this.index+=a,b},a.exports=e},38111:(a,b,c)=>{"use strict";var d=c(20452),e=c(9926),f=c(5987),g=c(82955),h=c(48204),i=c(36867);a.exports=function(a){var b=d.getTypeOf(a);return(d.checkSupport(b),"string"!==b||e.uint8array)?"nodebuffer"===b?new h(a):e.uint8array?new i(d.transformTo("uint8array",a)):new f(d.transformTo("array",a)):new g(a)}},38590:(a,b,c)=>{"use strict";var d=c(20452);function e(a){this.data=a,this.length=a.length,this.index=0,this.zero=0}e.prototype={checkOffset:function(a){this.checkIndex(this.index+a)},checkIndex:function(a){if(this.length=this.index;b--)c=(c<<8)+this.byteAt(b);return this.index+=a,c},readString:function(a){return d.transformTo("string",this.readData(a))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var a=this.readInt(4);return new Date(Date.UTC((a>>25&127)+1980,(a>>21&15)-1,a>>16&31,a>>11&31,a>>5&63,(31&a)<<1))}},a.exports=e},39193:(a,b,c)=>{"use strict";function d(){if(!(this instanceof d))return new d;if(arguments.length)throw Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var a=new d;for(var b in this)"function"!=typeof this[b]&&(a[b]=this[b]);return a}}d.prototype=c(61494),d.prototype.loadAsync=c(2229),d.support=c(9926),d.defaults=c(5887),d.version="3.10.1",d.loadAsync=function(a,b){return new d().loadAsync(a,b)},d.external=c(51238),a.exports=d},39265:a=>{"use strict";"undefined"!=typeof process&&process.version&&0!==process.version.indexOf("v0.")&&(0!==process.version.indexOf("v1.")||0===process.version.indexOf("v1.8."))?a.exports=process:a.exports={nextTick:function(a,b,c,d){if("function"!=typeof a)throw TypeError('"callback" argument must be a function');var e,f,g=arguments.length;switch(g){case 0:case 1:return process.nextTick(a);case 2:return process.nextTick(function(){a.call(null,b)});case 3:return process.nextTick(function(){a.call(null,b,c)});case 4:return process.nextTick(function(){a.call(null,b,c,d)});default:for(e=Array(g-1),f=0;f{"use strict";c.d(b,{UC:()=>aI,YJ:()=>aK,In:()=>aG,q7:()=>aM,VF:()=>aO,p4:()=>aN,JU:()=>aL,ZL:()=>aH,bL:()=>aD,wn:()=>aQ,PP:()=>aP,l9:()=>aE,WT:()=>aF,LM:()=>aJ});var d=c(38301),e=c(23312);function f(a,[b,c]){return Math.min(c,Math.max(b,a))}var g=c(87868),h=c(825),i=c(92808),j=c(2332),k=c(10498),l=c(7412),m=c(70904),n=c(69998),o=c(75656),p=c(25122),q=c(61611),r=c(6406),s=c(96425),t=c(71700),u=c(11720),v=c(68829),w=c(10350),x=c(85009),y=c(61225),z=c(36409),A=c(21124),B=[" ","Enter","ArrowUp","ArrowDown"],C=[" ","Enter"],D="Select",[E,F,G]=(0,h.N)(D),[H,I]=(0,j.A)(D,[G,p.Bk]),J=(0,p.Bk)(),[K,L]=H(D),[M,N]=H(D),O=a=>{let{__scopeSelect:b,children:c,open:e,defaultOpen:f,onOpenChange:g,value:h,defaultValue:i,onValueChange:j,dir:l,name:m,autoComplete:n,disabled:q,required:r,form:s}=a,t=J(b),[v,w]=d.useState(null),[x,y]=d.useState(null),[z,B]=d.useState(!1),C=(0,k.jH)(l),[F,G]=(0,u.i)({prop:e,defaultProp:f??!1,onChange:g,caller:D}),[H,I]=(0,u.i)({prop:h,defaultProp:i,onChange:j,caller:D}),L=d.useRef(null),N=!v||s||!!v.closest("form"),[O,P]=d.useState(new Set),Q=Array.from(O).map(a=>a.props.value).join(";");return(0,A.jsx)(p.bL,{...t,children:(0,A.jsxs)(K,{required:r,scope:b,trigger:v,onTriggerChange:w,valueNode:x,onValueNodeChange:y,valueNodeHasChildren:z,onValueNodeHasChildrenChange:B,contentId:(0,o.B)(),value:H,onValueChange:I,open:F,onOpenChange:G,dir:C,triggerPointerDownPosRef:L,disabled:q,children:[(0,A.jsx)(E.Provider,{scope:b,children:(0,A.jsx)(M,{scope:a.__scopeSelect,onNativeOptionAdd:d.useCallback(a=>{P(b=>new Set(b).add(a))},[]),onNativeOptionRemove:d.useCallback(a=>{P(b=>{let c=new Set(b);return c.delete(a),c})},[]),children:c})}),N?(0,A.jsxs)(az,{"aria-hidden":!0,required:r,tabIndex:-1,name:m,autoComplete:n,value:H,onChange:a=>I(a.target.value),disabled:q,form:s,children:[void 0===H?(0,A.jsx)("option",{value:""}):null,Array.from(O)]},Q):null]})})};O.displayName=D;var P="SelectTrigger",Q=d.forwardRef((a,b)=>{let{__scopeSelect:c,disabled:e=!1,...f}=a,h=J(c),j=L(P,c),k=j.disabled||e,l=(0,i.s)(b,j.onTriggerChange),m=F(c),n=d.useRef("touch"),[o,q,s]=aB(a=>{let b=m().filter(a=>!a.disabled),c=b.find(a=>a.value===j.value),d=aC(b,a,c);void 0!==d&&j.onValueChange(d.value)}),t=a=>{k||(j.onOpenChange(!0),s()),a&&(j.triggerPointerDownPosRef.current={x:Math.round(a.pageX),y:Math.round(a.pageY)})};return(0,A.jsx)(p.Mz,{asChild:!0,...h,children:(0,A.jsx)(r.sG.button,{type:"button",role:"combobox","aria-controls":j.contentId,"aria-expanded":j.open,"aria-required":j.required,"aria-autocomplete":"none",dir:j.dir,"data-state":j.open?"open":"closed",disabled:k,"data-disabled":k?"":void 0,"data-placeholder":aA(j.value)?"":void 0,...f,ref:l,onClick:(0,g.mK)(f.onClick,a=>{a.currentTarget.focus(),"mouse"!==n.current&&t(a)}),onPointerDown:(0,g.mK)(f.onPointerDown,a=>{n.current=a.pointerType;let b=a.target;b.hasPointerCapture(a.pointerId)&&b.releasePointerCapture(a.pointerId),0===a.button&&!1===a.ctrlKey&&"mouse"===a.pointerType&&(t(a),a.preventDefault())}),onKeyDown:(0,g.mK)(f.onKeyDown,a=>{let b=""!==o.current;a.ctrlKey||a.altKey||a.metaKey||1!==a.key.length||q(a.key),(!b||" "!==a.key)&&B.includes(a.key)&&(t(),a.preventDefault())})})})});Q.displayName=P;var R="SelectValue",S=d.forwardRef((a,b)=>{let{__scopeSelect:c,className:d,style:e,children:f,placeholder:g="",...h}=a,j=L(R,c),{onValueNodeHasChildrenChange:k}=j,l=void 0!==f,m=(0,i.s)(b,j.onValueNodeChange);return(0,v.N)(()=>{k(l)},[k,l]),(0,A.jsx)(r.sG.span,{...h,ref:m,style:{pointerEvents:"none"},children:aA(j.value)?(0,A.jsx)(A.Fragment,{children:g}):f})});S.displayName=R;var T=d.forwardRef((a,b)=>{let{__scopeSelect:c,children:d,...e}=a;return(0,A.jsx)(r.sG.span,{"aria-hidden":!0,...e,ref:b,children:d||"▼"})});T.displayName="SelectIcon";var U=a=>(0,A.jsx)(q.Z,{asChild:!0,...a});U.displayName="SelectPortal";var V="SelectContent",W=d.forwardRef((a,b)=>{let c=L(V,a.__scopeSelect),[f,g]=d.useState();return((0,v.N)(()=>{g(new DocumentFragment)},[]),c.open)?(0,A.jsx)($,{...a,ref:b}):f?e.createPortal((0,A.jsx)(X,{scope:a.__scopeSelect,children:(0,A.jsx)(E.Slot,{scope:a.__scopeSelect,children:(0,A.jsx)("div",{children:a.children})})}),f):null});W.displayName=V;var[X,Y]=H(V),Z=(0,s.TL)("SelectContent.RemoveScroll"),$=d.forwardRef((a,b)=>{let{__scopeSelect:c,position:e="item-aligned",onCloseAutoFocus:f,onEscapeKeyDown:h,onPointerDownOutside:j,side:k,sideOffset:o,align:p,alignOffset:q,arrowPadding:r,collisionBoundary:s,collisionPadding:t,sticky:u,hideWhenDetached:v,avoidCollisions:w,...x}=a,B=L(V,c),[C,D]=d.useState(null),[E,G]=d.useState(null),H=(0,i.s)(b,a=>D(a)),[I,J]=d.useState(null),[K,M]=d.useState(null),N=F(c),[O,P]=d.useState(!1),Q=d.useRef(!1);d.useEffect(()=>{if(C)return(0,y.Eq)(C)},[C]),(0,m.Oh)();let R=d.useCallback(a=>{let[b,...c]=N().map(a=>a.ref.current),[d]=c.slice(-1),e=document.activeElement;for(let c of a)if(c===e||(c?.scrollIntoView({block:"nearest"}),c===b&&E&&(E.scrollTop=0),c===d&&E&&(E.scrollTop=E.scrollHeight),c?.focus(),document.activeElement!==e))return},[N,E]),S=d.useCallback(()=>R([I,C]),[R,I,C]);d.useEffect(()=>{O&&S()},[O,S]);let{onOpenChange:T,triggerPointerDownPosRef:U}=B;d.useEffect(()=>{if(C){let a={x:0,y:0},b=b=>{a={x:Math.abs(Math.round(b.pageX)-(U.current?.x??0)),y:Math.abs(Math.round(b.pageY)-(U.current?.y??0))}},c=c=>{a.x<=10&&a.y<=10?c.preventDefault():C.contains(c.target)||T(!1),document.removeEventListener("pointermove",b),U.current=null};return null!==U.current&&(document.addEventListener("pointermove",b),document.addEventListener("pointerup",c,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",b),document.removeEventListener("pointerup",c,{capture:!0})}}},[C,T,U]),d.useEffect(()=>{let a=()=>T(!1);return window.addEventListener("blur",a),window.addEventListener("resize",a),()=>{window.removeEventListener("blur",a),window.removeEventListener("resize",a)}},[T]);let[W,Y]=aB(a=>{let b=N().filter(a=>!a.disabled),c=b.find(a=>a.ref.current===document.activeElement),d=aC(b,a,c);d&&setTimeout(()=>d.ref.current.focus())}),$=d.useCallback((a,b,c)=>{let d=!Q.current&&!c;(void 0!==B.value&&B.value===b||d)&&(J(a),d&&(Q.current=!0))},[B.value]),ab=d.useCallback(()=>C?.focus(),[C]),ac=d.useCallback((a,b,c)=>{let d=!Q.current&&!c;(void 0!==B.value&&B.value===b||d)&&M(a)},[B.value]),ad="popper"===e?aa:_,ae=ad===aa?{side:k,sideOffset:o,align:p,alignOffset:q,arrowPadding:r,collisionBoundary:s,collisionPadding:t,sticky:u,hideWhenDetached:v,avoidCollisions:w}:{};return(0,A.jsx)(X,{scope:c,content:C,viewport:E,onViewportChange:G,itemRefCallback:$,selectedItem:I,onItemLeave:ab,itemTextRefCallback:ac,focusSelectedItem:S,selectedItemText:K,position:e,isPositioned:O,searchRef:W,children:(0,A.jsx)(z.A,{as:Z,allowPinchZoom:!0,children:(0,A.jsx)(n.n,{asChild:!0,trapped:B.open,onMountAutoFocus:a=>{a.preventDefault()},onUnmountAutoFocus:(0,g.mK)(f,a=>{B.trigger?.focus({preventScroll:!0}),a.preventDefault()}),children:(0,A.jsx)(l.qW,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:h,onPointerDownOutside:j,onFocusOutside:a=>a.preventDefault(),onDismiss:()=>B.onOpenChange(!1),children:(0,A.jsx)(ad,{role:"listbox",id:B.contentId,"data-state":B.open?"open":"closed",dir:B.dir,onContextMenu:a=>a.preventDefault(),...x,...ae,onPlaced:()=>P(!0),ref:H,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:(0,g.mK)(x.onKeyDown,a=>{let b=a.ctrlKey||a.altKey||a.metaKey;if("Tab"===a.key&&a.preventDefault(),b||1!==a.key.length||Y(a.key),["ArrowUp","ArrowDown","Home","End"].includes(a.key)){let b=N().filter(a=>!a.disabled).map(a=>a.ref.current);if(["ArrowUp","End"].includes(a.key)&&(b=b.slice().reverse()),["ArrowUp","ArrowDown"].includes(a.key)){let c=a.target,d=b.indexOf(c);b=b.slice(d+1)}setTimeout(()=>R(b)),a.preventDefault()}})})})})})})});$.displayName="SelectContentImpl";var _=d.forwardRef((a,b)=>{let{__scopeSelect:c,onPlaced:e,...g}=a,h=L(V,c),j=Y(V,c),[k,l]=d.useState(null),[m,n]=d.useState(null),o=(0,i.s)(b,a=>n(a)),p=F(c),q=d.useRef(!1),s=d.useRef(!0),{viewport:t,selectedItem:u,selectedItemText:w,focusSelectedItem:x}=j,y=d.useCallback(()=>{if(h.trigger&&h.valueNode&&k&&m&&t&&u&&w){let a=h.trigger.getBoundingClientRect(),b=m.getBoundingClientRect(),c=h.valueNode.getBoundingClientRect(),d=w.getBoundingClientRect();if("rtl"!==h.dir){let e=d.left-b.left,g=c.left-e,h=a.left-g,i=a.width+h,j=Math.max(i,b.width),l=f(g,[10,Math.max(10,window.innerWidth-10-j)]);k.style.minWidth=i+"px",k.style.left=l+"px"}else{let e=b.right-d.right,g=window.innerWidth-c.right-e,h=window.innerWidth-a.right-g,i=a.width+h,j=Math.max(i,b.width),l=f(g,[10,Math.max(10,window.innerWidth-10-j)]);k.style.minWidth=i+"px",k.style.right=l+"px"}let g=p(),i=window.innerHeight-20,j=t.scrollHeight,l=window.getComputedStyle(m),n=parseInt(l.borderTopWidth,10),o=parseInt(l.paddingTop,10),r=parseInt(l.borderBottomWidth,10),s=n+o+j+parseInt(l.paddingBottom,10)+r,v=Math.min(5*u.offsetHeight,s),x=window.getComputedStyle(t),y=parseInt(x.paddingTop,10),z=parseInt(x.paddingBottom,10),A=a.top+a.height/2-10,B=u.offsetHeight/2,C=n+o+(u.offsetTop+B);if(C<=A){let a=g.length>0&&u===g[g.length-1].ref.current;k.style.bottom="0px";let b=Math.max(i-A,B+(a?z:0)+(m.clientHeight-t.offsetTop-t.offsetHeight)+r);k.style.height=C+b+"px"}else{let a=g.length>0&&u===g[0].ref.current;k.style.top="0px";let b=Math.max(A,n+t.offsetTop+(a?y:0)+B);k.style.height=b+(s-C)+"px",t.scrollTop=C-A+t.offsetTop}k.style.margin="10px 0",k.style.minHeight=v+"px",k.style.maxHeight=i+"px",e?.(),requestAnimationFrame(()=>q.current=!0)}},[p,h.trigger,h.valueNode,k,m,t,u,w,h.dir,e]);(0,v.N)(()=>y(),[y]);let[z,B]=d.useState();(0,v.N)(()=>{m&&B(window.getComputedStyle(m).zIndex)},[m]);let C=d.useCallback(a=>{a&&!0===s.current&&(y(),x?.(),s.current=!1)},[y,x]);return(0,A.jsx)(ab,{scope:c,contentWrapper:k,shouldExpandOnScrollRef:q,onScrollButtonChange:C,children:(0,A.jsx)("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:z},children:(0,A.jsx)(r.sG.div,{...g,ref:o,style:{boxSizing:"border-box",maxHeight:"100%",...g.style}})})})});_.displayName="SelectItemAlignedPosition";var aa=d.forwardRef((a,b)=>{let{__scopeSelect:c,align:d="start",collisionPadding:e=10,...f}=a,g=J(c);return(0,A.jsx)(p.UC,{...g,...f,ref:b,align:d,collisionPadding:e,style:{boxSizing:"border-box",...f.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});aa.displayName="SelectPopperPosition";var[ab,ac]=H(V,{}),ad="SelectViewport",ae=d.forwardRef((a,b)=>{let{__scopeSelect:c,nonce:e,...f}=a,h=Y(ad,c),j=ac(ad,c),k=(0,i.s)(b,h.onViewportChange),l=d.useRef(0);return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:e}),(0,A.jsx)(E.Slot,{scope:c,children:(0,A.jsx)(r.sG.div,{"data-radix-select-viewport":"",role:"presentation",...f,ref:k,style:{position:"relative",flex:1,overflow:"hidden auto",...f.style},onScroll:(0,g.mK)(f.onScroll,a=>{let b=a.currentTarget,{contentWrapper:c,shouldExpandOnScrollRef:d}=j;if(d?.current&&c){let a=Math.abs(l.current-b.scrollTop);if(a>0){let d=window.innerHeight-20,e=Math.max(parseFloat(c.style.minHeight),parseFloat(c.style.height));if(e0?h:0,c.style.justifyContent="flex-end")}}}l.current=b.scrollTop})})})]})});ae.displayName=ad;var af="SelectGroup",[ag,ah]=H(af),ai=d.forwardRef((a,b)=>{let{__scopeSelect:c,...d}=a,e=(0,o.B)();return(0,A.jsx)(ag,{scope:c,id:e,children:(0,A.jsx)(r.sG.div,{role:"group","aria-labelledby":e,...d,ref:b})})});ai.displayName=af;var aj="SelectLabel",ak=d.forwardRef((a,b)=>{let{__scopeSelect:c,...d}=a,e=ah(aj,c);return(0,A.jsx)(r.sG.div,{id:e.id,...d,ref:b})});ak.displayName=aj;var al="SelectItem",[am,an]=H(al),ao=d.forwardRef((a,b)=>{let{__scopeSelect:c,value:e,disabled:f=!1,textValue:h,...j}=a,k=L(al,c),l=Y(al,c),m=k.value===e,[n,p]=d.useState(h??""),[q,s]=d.useState(!1),t=(0,i.s)(b,a=>l.itemRefCallback?.(a,e,f)),u=(0,o.B)(),v=d.useRef("touch"),w=()=>{f||(k.onValueChange(e),k.onOpenChange(!1))};if(""===e)throw Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,A.jsx)(am,{scope:c,value:e,disabled:f,textId:u,isSelected:m,onItemTextChange:d.useCallback(a=>{p(b=>b||(a?.textContent??"").trim())},[]),children:(0,A.jsx)(E.ItemSlot,{scope:c,value:e,disabled:f,textValue:n,children:(0,A.jsx)(r.sG.div,{role:"option","aria-labelledby":u,"data-highlighted":q?"":void 0,"aria-selected":m&&q,"data-state":m?"checked":"unchecked","aria-disabled":f||void 0,"data-disabled":f?"":void 0,tabIndex:f?void 0:-1,...j,ref:t,onFocus:(0,g.mK)(j.onFocus,()=>s(!0)),onBlur:(0,g.mK)(j.onBlur,()=>s(!1)),onClick:(0,g.mK)(j.onClick,()=>{"mouse"!==v.current&&w()}),onPointerUp:(0,g.mK)(j.onPointerUp,()=>{"mouse"===v.current&&w()}),onPointerDown:(0,g.mK)(j.onPointerDown,a=>{v.current=a.pointerType}),onPointerMove:(0,g.mK)(j.onPointerMove,a=>{v.current=a.pointerType,f?l.onItemLeave?.():"mouse"===v.current&&a.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,g.mK)(j.onPointerLeave,a=>{a.currentTarget===document.activeElement&&l.onItemLeave?.()}),onKeyDown:(0,g.mK)(j.onKeyDown,a=>{(l.searchRef?.current===""||" "!==a.key)&&(C.includes(a.key)&&w()," "===a.key&&a.preventDefault())})})})})});ao.displayName=al;var ap="SelectItemText",aq=d.forwardRef((a,b)=>{let{__scopeSelect:c,className:f,style:g,...h}=a,j=L(ap,c),k=Y(ap,c),l=an(ap,c),m=N(ap,c),[n,o]=d.useState(null),p=(0,i.s)(b,a=>o(a),l.onItemTextChange,a=>k.itemTextRefCallback?.(a,l.value,l.disabled)),q=n?.textContent,s=d.useMemo(()=>(0,A.jsx)("option",{value:l.value,disabled:l.disabled,children:q},l.value),[l.disabled,l.value,q]),{onNativeOptionAdd:t,onNativeOptionRemove:u}=m;return(0,v.N)(()=>(t(s),()=>u(s)),[t,u,s]),(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(r.sG.span,{id:l.textId,...h,ref:p}),l.isSelected&&j.valueNode&&!j.valueNodeHasChildren?e.createPortal(h.children,j.valueNode):null]})});aq.displayName=ap;var ar="SelectItemIndicator",as=d.forwardRef((a,b)=>{let{__scopeSelect:c,...d}=a;return an(ar,c).isSelected?(0,A.jsx)(r.sG.span,{"aria-hidden":!0,...d,ref:b}):null});as.displayName=ar;var at="SelectScrollUpButton",au=d.forwardRef((a,b)=>{let c=Y(at,a.__scopeSelect),e=ac(at,a.__scopeSelect),[f,g]=d.useState(!1),h=(0,i.s)(b,e.onScrollButtonChange);return(0,v.N)(()=>{if(c.viewport&&c.isPositioned){let a=function(){g(b.scrollTop>0)},b=c.viewport;return a(),b.addEventListener("scroll",a),()=>b.removeEventListener("scroll",a)}},[c.viewport,c.isPositioned]),f?(0,A.jsx)(ax,{...a,ref:h,onAutoScroll:()=>{let{viewport:a,selectedItem:b}=c;a&&b&&(a.scrollTop=a.scrollTop-b.offsetHeight)}}):null});au.displayName=at;var av="SelectScrollDownButton",aw=d.forwardRef((a,b)=>{let c=Y(av,a.__scopeSelect),e=ac(av,a.__scopeSelect),[f,g]=d.useState(!1),h=(0,i.s)(b,e.onScrollButtonChange);return(0,v.N)(()=>{if(c.viewport&&c.isPositioned){let a=function(){let a=b.scrollHeight-b.clientHeight;g(Math.ceil(b.scrollTop)b.removeEventListener("scroll",a)}},[c.viewport,c.isPositioned]),f?(0,A.jsx)(ax,{...a,ref:h,onAutoScroll:()=>{let{viewport:a,selectedItem:b}=c;a&&b&&(a.scrollTop=a.scrollTop+b.offsetHeight)}}):null});aw.displayName=av;var ax=d.forwardRef((a,b)=>{let{__scopeSelect:c,onAutoScroll:e,...f}=a,h=Y("SelectScrollButton",c),i=d.useRef(null),j=F(c),k=d.useCallback(()=>{null!==i.current&&(window.clearInterval(i.current),i.current=null)},[]);return d.useEffect(()=>()=>k(),[k]),(0,v.N)(()=>{let a=j().find(a=>a.ref.current===document.activeElement);a?.ref.current?.scrollIntoView({block:"nearest"})},[j]),(0,A.jsx)(r.sG.div,{"aria-hidden":!0,...f,ref:b,style:{flexShrink:0,...f.style},onPointerDown:(0,g.mK)(f.onPointerDown,()=>{null===i.current&&(i.current=window.setInterval(e,50))}),onPointerMove:(0,g.mK)(f.onPointerMove,()=>{h.onItemLeave?.(),null===i.current&&(i.current=window.setInterval(e,50))}),onPointerLeave:(0,g.mK)(f.onPointerLeave,()=>{k()})})});d.forwardRef((a,b)=>{let{__scopeSelect:c,...d}=a;return(0,A.jsx)(r.sG.div,{"aria-hidden":!0,...d,ref:b})}).displayName="SelectSeparator";var ay="SelectArrow";d.forwardRef((a,b)=>{let{__scopeSelect:c,...d}=a,e=J(c),f=L(ay,c),g=Y(ay,c);return f.open&&"popper"===g.position?(0,A.jsx)(p.i3,{...e,...d,ref:b}):null}).displayName=ay;var az=d.forwardRef(({__scopeSelect:a,value:b,...c},e)=>{let f=d.useRef(null),g=(0,i.s)(e,f),h=(0,w.Z)(b);return d.useEffect(()=>{let a=f.current;if(!a)return;let c=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(h!==b&&c){let d=new Event("change",{bubbles:!0});c.call(a,b),a.dispatchEvent(d)}},[h,b]),(0,A.jsx)(r.sG.select,{...c,style:{...x.Qg,...c.style},ref:g,defaultValue:b})});function aA(a){return""===a||void 0===a}function aB(a){let b=(0,t.c)(a),c=d.useRef(""),e=d.useRef(0),f=d.useCallback(a=>{let d=c.current+a;b(d),function a(b){c.current=b,window.clearTimeout(e.current),""!==b&&(e.current=window.setTimeout(()=>a(""),1e3))}(d)},[b]),g=d.useCallback(()=>{c.current="",window.clearTimeout(e.current)},[]);return d.useEffect(()=>()=>window.clearTimeout(e.current),[]),[c,f,g]}function aC(a,b,c){var d,e;let f=b.length>1&&Array.from(b).every(a=>a===b[0])?b[0]:b,g=c?a.indexOf(c):-1,h=(d=a,e=Math.max(g,0),d.map((a,b)=>d[(e+b)%d.length]));1===f.length&&(h=h.filter(a=>a!==c));let i=h.find(a=>a.textValue.toLowerCase().startsWith(f.toLowerCase()));return i!==c?i:void 0}az.displayName="SelectBubbleInput";var aD=O,aE=Q,aF=S,aG=T,aH=U,aI=W,aJ=ae,aK=ai,aL=ak,aM=ao,aN=aq,aO=as,aP=au,aQ=aw},42378:(a,b,c)=>{"use strict";var d=c(91330);c.o(d,"useRouter")&&c.d(b,{useRouter:function(){return d.useRouter}}),c.o(d,"useSearchParams")&&c.d(b,{useSearchParams:function(){return d.useSearchParams}})},43249:(a,b,c)=>{"use strict";function d(){for(var a,b,c=0,d="",e=arguments.length;cd})},43613:(a,b)=>{"use strict";var c="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;b.assign=function(a){for(var b=Array.prototype.slice.call(arguments,1);b.length;){var c=b.shift();if(c){if("object"!=typeof c)throw TypeError(c+"must be non-object");for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])}}return a},b.shrinkBuf=function(a,b){return a.length===b?a:a.subarray?a.subarray(0,b):(a.length=b,a)};var d={arraySet:function(a,b,c,d,e){if(b.subarray&&a.subarray)return void a.set(b.subarray(c,c+d),e);for(var f=0;f{"use strict";c.d(b,{ox:()=>u,ir:()=>v}),c(21820),c(33873),c(79748),c(27910),c(77725),c(29021);var d="https://huggingface.co";async function e(a,b){let c=new f(a.url,a.status,a.headers.get("X-Request-Id")??b?.requestId);c.message=`Api error with status ${c.statusCode}${b?.message?`. ${b.message}`:""}`;let d=[`URL: ${c.url}`,c.requestId?`Request ID: ${c.requestId}`:void 0].filter(Boolean).join(". ");if(a.headers.get("Content-Type")?.startsWith("application/json")){let b=await a.json();c.message=b.error||b.message||c.message,b.error_description&&(c.message=c.message?c.message+`: ${b.error_description}`:b.error_description),c.data=b}else c.data={message:await a.text()};throw c.message+=`. ${d}`,c}var f=class extends Error{statusCode;url;requestId;data;constructor(a,b,c,d){super(d),this.statusCode=b,this.requestId=c,this.url=a}};function g(a){if(!a.startsWith("hf_"))throw TypeError("Your access token must start with 'hf_'")}function h(a,b){return 0|a[b++]|a[b++]<<8|a[b++]<<16|a[b++]<<24}"undefined"!=typeof window&&window.document,"object"==typeof self&&self.constructor&&self.constructor.name,new Promise(a=>{}),j(5242880),function(){try{new Uint32Array(65536)}catch(b){let a=Array(65536);for(let b=0;b<65536;b++)a[b]=0;return a}}();var i={4:65536,5:262144,6:1048576,7:4194304};function j(a){return new Uint8Array(a)}function k(a,b){let c,d;return void 0===b&&(b=function(a){let b=0;if(0x184d2204!==h(a,0))throw Error("invalid magic number");b+=4;let c=a[b++];if((192&c)!=64)throw Error("incompatible descriptor version "+(192&c));let d=(16&c)!=0,e=a[b++]>>4&7;if(void 0===i[e])throw Error("invalid block size "+e);let f=i[e];if((8&c)!=0){var g;return g=b,0|a[g++]|a[g++]<<8|a[g++]<<16|a[g++]<<24|a[g++]<<32|a[g++]<<40|a[g++]<<48|a[g++]<<56}b++;let j=0;for(;;){let c=h(a,b);if(b+=4,0x80000000&c?(c&=0x7fffffff,j+=c):c>0&&(j+=f),0===c)return j;d&&(b+=4),b+=c}}(a)),(d=function(a,b){let c,d,e=0,f=0;if(0x184d2204!==h(a,0))throw Error("invalid magic number");if(e+=4,(192&(d=a[e++]))!=64)throw Error("incompatible descriptor version");if(c=(16&d)!=0,void 0===i[a[e++]>>4&7])throw Error("invalid block size");for((8&d)!=0&&(e+=8),e++;;){var g;if(g=h(a,e),e+=4,0===g)break;if(c&&(e+=4),(0x80000000&g)!=0){g&=0x7fffffff;for(let c=0;c>4;if(l>0){if(15===l)for(;l+=a[c],255===a[c++];);for(i=c+l;c=h)break;if(f=15&d,g=a[c++]|a[c++]<<8,15===f)for(;f+=a[c],255===a[c++];);if(f+=4,k&&1===g)b.fill(0|b[e-1],e,e+f),e+=f;else if(k&&g>f&&f>31)b.copyWithin(e,e-g,e-g+f),e+=f;else for(i=(j=e-g)+f;je.start&&c.push({index:d,range:e}),null!==e.data)throw Error("Overlapping range already has data")}if(0===c.length){this.ranges.push({start:a,end:b,refCount:1,data:null}),this.ranges.sort((a,b)=>a.start-b.start);return}let d=[],e=a;for(let a=0;ab&&d.push({start:b,end:f.end,refCount:f.refCount,data:null}),e=Math.max(e,f.end)}ea.start-b.start)}remove(a,b){if(b<=a)throw TypeError("End must be greater than start");let c=[];for(let d=0;de.start&&c.push({index:d,range:e})}if(0===c.length)throw Error("No ranges found to remove");if(a!==c[0].range.start||b!==c[c.length-1].range.end)throw Error("Range boundaries must match existing boundaries");for(let a=0;aa.refCount>0)}getRanges(a,b){if(b<=a)throw TypeError("End must be greater than start");return this.ranges.filter(c=>ac.start)}getAllRanges(){return[...this.ranges]}},m={0:"None",1:"LZ4",2:"ByteGroupingLZ4"},n=class extends Blob{fetch;accessToken;refreshUrl;reconstructionUrl;hash;start=0;end=0;internalLogging=!1;reconstructionInfo;listener;constructor(a){super([]),this.fetch=a.fetch??fetch.bind(globalThis),this.accessToken=function(a){return a.accessToken?(g(a.accessToken),a.accessToken):a.credentials?.accessToken?(g(a.credentials.accessToken),a.credentials.accessToken):void 0}(a),this.refreshUrl=a.refreshUrl,this.end=a.size,this.reconstructionUrl=a.reconstructionUrl,this.hash=a.hash,this.listener=a.listener,this.internalLogging=a.internalLogging??!1,this.refreshUrl}get size(){return this.end-this.start}#b(){let a=new n({fetch:this.fetch,hash:this.hash,refreshUrl:this.refreshUrl,reconstructionUrl:this.reconstructionUrl,size:this.size});return a.accessToken=this.accessToken,a.start=this.start,a.end=this.end,a.reconstructionInfo=this.reconstructionInfo,a.listener=this.listener,a.internalLogging=this.internalLogging,a}slice(a=0,b=this.size){(a<0||b<0)&&TypeError("Unsupported negative start/end on XetBlob.slice");let c=this.#b();return c.start=this.start+a,c.end=Math.min(this.start+b,this.end),(c.start!==this.start||c.end!==this.end)&&(c.reconstructionInfo=void 0),c}#c;#d(){return this.#c||(this.#c=(async()=>{let a=await q(this.accessToken,this.fetch,this.refreshUrl),b=await this.fetch(this.reconstructionUrl??`${a.casUrl}/v1/reconstructions/${this.hash}`,{headers:{Authorization:`Bearer ${a.accessToken}`,Range:`bytes=${this.start}-${this.end-1}`}});if(!b.ok)throw await e(b);return this.reconstructionInfo=await b.json(),this.reconstructionInfo})().finally(()=>this.#c=void 0)),this.#c}async #e(){this.reconstructionInfo||await this.#d();let a=new Map;if(!this.reconstructionInfo)throw Error("Failed to load reconstruction info");for(let b of this.reconstructionInfo.terms){let c=a.get(b.hash);c||(c=new l,a.set(b.hash,c)),c.add(b.range.start,b.range.end)}let b=this.listener,c=this.internalLogging?(...a)=>console.log(...a):()=>{},d=async function*(d,f,g,h){let i=0,j=d.offset_into_first_range;for(let l of d.terms){let n;if(i>=g)break;let o=a.get(l.hash);if(!o)throw Error(`Failed to find range list for term ${l.hash}`);{let a=o.getRanges(l.range.start,l.range.end);if(a.every(a=>a.data)){c("all data available for term",l.hash,j);c:for(let c of a)for(let a of c.data){if(j){let b=Math.min(j,a.byteLength);if(a=a.slice(b),j-=b,!a.byteLength)continue}if(a.byteLength>g-i&&(a=a.slice(0,g-i)),i+=a.byteLength,yield c.refCount>1?a.slice():a,b?.({event:"progress",progress:{read:i,total:g}}),i>=g)break c}o.remove(l.range.start,l.range.end);continue}}let p=d.fetch_info[l.hash].find(a=>a.range.start<=l.range.start&&a.range.end>=l.range.end);if(!p)throw Error(`Failed to find fetch info for term ${l.hash} and range ${l.range.start}-${l.range.end}`);c("term",l),c("fetchinfo",p),c("readBytesToSkip",j);let q=await f(p.url,{headers:{Range:`bytes=${p.url_range.start}-${p.url_range.end}`}});if(403===q.status&&(d=await h(),q=await f(p.url,{headers:{Range:`bytes=${p.url_range.start}-${p.url_range.end}`}})),!q.ok)throw await e(q);c("expected content length",q.headers.get("content-length"),"range",p.url_range,q.headers.get("content-range"));let r=q.body?.getReader();if(!r)throw Error("Failed to get reader from response body");let s=!1,t=p.range.start,u=o.getRanges(p.range.start,p.range.end),v=0;d:for(;!s&&i=1),e=d+b+ +(c>=2),f=e+b+ +(3==c),g=new Uint8Array(a.byteLength);for(let b=0,c=0;bt>=a.start&&t=l.range.start&&t=p&&(h.data??=[],h.data.push(f),q=!0),o){if(j){let a=Math.min(j,f.byteLength);f=f.slice(j),j-=a}f.byteLength>g-i&&(f=f.slice(0,g-i)),f.byteLength&&(c("yield",f.byteLength,"bytes",a.value.byteLength,"total read",i,q),i+=f.byteLength,yield q?f.slice():f,b?.({event:"progress",progress:{read:i,total:g}}))}t++,a.value=a.value.slice(e.compressed_length)}}if(s&&ib.pipeThrough(a)).catch(b=>a.writable.abort(b.message)),a.readable}},o=new Map,p=new Map;async function q(a,b,c){var d;let e=JSON.stringify([(d={refreshUrl:c,initialAccessToken:a}).refreshUrl,d.initialAccessToken]),f=p.get(e);if(f&&f.expiresAt>new Date(Date.now()+6e4))return{accessToken:f.accessToken,casUrl:f.casUrl};let g=o.get(e);if(g)return g;let h=(async()=>{let d=await b(c,{headers:{...a?{Authorization:`Bearer ${a}`}:{}}});if(!d.ok)throw Error(`Failed to get JWT token: ${d.status} ${await d.text()}`);let f=await d.json(),g={accessToken:f.accessToken,expiresAt:new Date(1e3*f.exp),casUrl:f.casUrl};for(let[a,b]of(o.delete(e),p.entries()))if(b.expiresAt=1e3){let a=p.keys().next().value;a&&p.delete(a)}return p.set(e,g),{accessToken:f.accessToken,casUrl:f.casUrl}})();return o.set(e,h),h}var r=class extends Blob{static async create(a,b){let c=b?.fetch??fetch,d=await c(a,{method:"HEAD",...b?.accessToken&&{headers:{Authorization:`Bearer ${b.accessToken}`}}}),e=Number(d.headers.get("content-length")),f=d.headers.get("content-type")||"";return"bytes"!==d.headers.get("accept-ranges")||e<(b?.cacheBelow??1e6)?await (await c(a)).blob():new r(a,0,e,f,!0,c,b?.accessToken)}url;start;end;contentType;full;fetch;accessToken;constructor(a,b,c,d,e,f,g){super([]),this.url=a,this.start=b,this.end=c,this.contentType=d,this.full=e,this.fetch=f,this.accessToken=g}get size(){return this.end-this.start}get type(){return this.contentType}slice(a=0,b=this.size){return(a<0||b<0)&&TypeError("Unsupported negative start/end on WebBlob.slice"),new r(this.url,this.start+a,Math.min(this.start+b,this.end),this.contentType,0===a&&b===this.size&&this.full,this.fetch,this.accessToken)}async arrayBuffer(){return(await this.fetchRange()).arrayBuffer()}async text(){return(await this.fetchRange()).text()}stream(){let a=new TransformStream;return this.fetchRange().then(b=>b.body?.pipeThrough(a)).catch(b=>a.writable.abort(b.message)),a.readable}fetchRange(){let a=this.fetch;return this.full?a(this.url,{...this.accessToken&&{headers:{Authorization:`Bearer ${this.accessToken}`}}}).then(a=>a.ok?a:e(a)):a(this.url,{headers:{Range:`bytes=${this.start}-${this.end-1}`,...this.accessToken&&{Authorization:`Bearer ${this.accessToken}`}}}).then(a=>a.ok?a:e(a))}};"ff".repeat(32);var s=class extends Blob{originalBlob;spliceOperations;constructor(a,b){super(),this.originalBlob=a,this.spliceOperations=b}static create(a,b){for(let c of b)if(c.start<0||c.end<0||c.start>a.size||c.end>a.size||c.start>c.end)throw Error("Invalid start/end positions for SplicedBlob");let c=[...b].sort((a,b)=>a.start-b.start);for(let a=0;ac[a+1].start)throw Error("Overlapping splice operations are not supported");return new s(a,c)}get size(){let a=0,b=0;for(let c of this.spliceOperations)a+=c.end-c.start,b+=c.insert.size;return this.originalBlob.size-a+b}get type(){return this.originalBlob.type}slice(a=0,b=this.size){if(a<0||b<0)throw TypeError("Unsupported negative start/end on SplicedBlob.slice");if(a=Math.min(a,this.size),b=Math.min(b,this.size),a>=b)return new Blob([]);let c=this.segments,d=[0],e=0;for(let a of c)e+=a.size,d.push(e);let f=[];for(let e=0;e=b)break;let h=Math.max(0,a-g),i=Math.min(c[e].size,b-g);ha.arrayBuffer())),c=new Uint8Array(b.map(a=>a.byteLength).reduce((a,b)=>a+b,0)),d=0;for(let a of b)c.set(new Uint8Array(a),d),d+=a.byteLength;return c.buffer}async text(){let a=await this.arrayBuffer();return new TextDecoder().decode(a)}stream(){return new ReadableStream({start:async a=>{try{for(let b of this.segments){let c=b.stream().getReader();try{for(;;){let{done:b,value:d}=await c.read();if(b)break;a.enqueue(d)}}finally{c.releaseLock()}}a.close()}catch(b){a.error(b)}}})}get segments(){let a=[],b=0;for(let c of[...this.spliceOperations].sort((a,b)=>a.start-b.start))b0&&a.push(c.insert),b=c.end;return b{try{return new URL(c).searchParams}catch(a){throw Error("Failed to parse redirected URL: "+c)}})(),[g,h]=[f.get("error"),f.get("error_description")];if(g)throw Error(`${g}: ${h}`);let i=f.get("code"),j=a?.nonce??localStorage.getItem("huggingface.co:oauth:nonce");if(!i)throw Error("Missing oauth code from query parameters in redirected URL: "+c);if(!j)throw Error("Missing oauth nonce from localStorage");let k=a?.codeVerifier??localStorage.getItem("huggingface.co:oauth:code_verifier");if(!k)throw Error("Missing oauth code_verifier from localStorage");let l=f.get("state");if(!l)throw Error("Missing oauth state from query parameters in redirected URL");try{b=JSON.parse(l)}catch{throw Error("Invalid oauth state in redirected URL, unable to parse JSON: "+l)}if(b.nonce!==j)throw Error("Invalid oauth state in redirected URL");let m=a?.hubUrl||d,n=`${new URL(m).origin}/.well-known/openid-configuration`,o=await fetch(n,{headers:{Accept:"application/json"}});if(!o.ok)throw await e(o);let p=await o.json(),q=await fetch(p.token_endpoint,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({grant_type:"authorization_code",code:i,redirect_uri:b.redirectUri,code_verifier:k}).toString()});if(a?.codeVerifier||localStorage.removeItem("huggingface.co:oauth:code_verifier"),a?.nonce||localStorage.removeItem("huggingface.co:oauth:nonce"),!q.ok)throw await e(q);let r=await q.json(),s=new Date(Date.now()+1e3*r.expires_in),t=await fetch(p.userinfo_endpoint,{headers:{Authorization:`Bearer ${r.access_token}`}});if(!t.ok)throw await e(t);let u=await t.json();return{accessToken:r.access_token,accessTokenExpiresAt:s,userInfo:u,state:b.state,scope:r.scope}}async function u(a){if("undefined"==typeof window&&!a?.redirectedUrl)throw Error("oauthHandleRedirect is only available in the browser, unless you provide redirectedUrl");if("undefined"==typeof localStorage&&(!a?.nonce||!a?.codeVerifier))throw Error("oauthHandleRedirect requires localStorage to be available, unless you provide nonce and codeVerifier");let b=new URLSearchParams(a?.redirectedUrl??window.location.search);return b.has("error")?t(a):!!b.has("code")&&(localStorage.getItem("huggingface.co:oauth:nonce")?t(a):(console.warn("Missing oauth nonce from localStorage. This can happen when the user refreshes the page after logging in, without changing the URL."),!1))}async function v(a){if("undefined"==typeof window&&(!a?.redirectUrl||!a?.clientId))throw Error("oauthLogin is only available in the browser, unless you provide clientId and redirectUrl");if("undefined"==typeof localStorage&&!a?.localStorage)throw Error("oauthLogin requires localStorage to be available in the context, unless you provide a localStorage empty object as argument");let b=a?.hubUrl||d,c=`${new URL(b).origin}/.well-known/openid-configuration`,f=await fetch(c,{headers:{Accept:"application/json"}});if(!f.ok)throw await e(f);let g=await f.json(),h=globalThis.crypto.randomUUID(),i=globalThis.crypto.randomUUID()+globalThis.crypto.randomUUID();if(a?.localStorage){if(void 0!==a.localStorage.codeVerifier&&null!==a.localStorage.codeVerifier)throw Error("localStorage.codeVerifier must be initially set to null or undefined, and will be filled by oauthLoginUrl");if(void 0!==a.localStorage.nonce&&null!==a.localStorage.nonce)throw Error("localStorage.nonce must be initially set to null or undefined, and will be filled by oauthLoginUrl");a.localStorage.codeVerifier=i,a.localStorage.nonce=h}else localStorage.setItem("huggingface.co:oauth:nonce",h),localStorage.setItem("huggingface.co:oauth:code_verifier",i);let j=a?.redirectUrl||("undefined"!=typeof window?window.location.href:void 0);if(!j)throw Error("Missing redirectUrl");let k=JSON.stringify({nonce:h,redirectUri:j,state:a?.state}),l="undefined"!=typeof window?window.huggingface?.variables??null:null,m=a?.clientId||l?.OAUTH_CLIENT_ID;if(!m){if(l)throw Error("Missing clientId, please add hf_oauth: true to the README.md's metadata in your static Space");throw Error("Missing clientId")}let n=(function(a){if(globalThis.Buffer)return globalThis.Buffer.from(a).toString("base64");{let b=[];return a.forEach(a=>{b.push(String.fromCharCode(a))}),globalThis.btoa(b.join(""))}})(new Uint8Array(await globalThis.crypto.subtle.digest("SHA-256",new TextEncoder().encode(i)))).replace(/[+]/g,"-").replace(/[/]/g,"_").replace(/=/g,"");return`${g.authorization_endpoint}?${new URLSearchParams({client_id:m,scope:a?.scopes||l?.OAUTH_SCOPES||"openid profile",response_type:"code",redirect_uri:j,state:k,code_challenge:n,code_challenge_method:"S256"}).toString()}`}"0".repeat(64),new Uint8Array([72,70,82,101,112,111,77,101,116,97,68,97,116,97,0,85,105,103,69,106,123,129,87,131,165,189,217,92,205,209,74,169]),c(96332)},45948:(a,b,c)=>{"use strict";var d,e,f=c(39265);a.exports=s;var g=c(63046);s.ReadableState=r,c(94735).EventEmitter;var h=function(a,b){return a.listeners(b).length},i=c(69720),j=c(62253).Buffer,k=("undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},l=Object.create(c(69082));l.inherits=c(48985);var m=c(28354),n=void 0;n=m&&m.debuglog?m.debuglog("stream"):function(){};var o=c(54442),p=c(15016);l.inherits(s,i);var q=["error","close","destroy","pause","resume"];function r(a,b){d=d||c(47482),a=a||{};var f=b instanceof d;this.objectMode=!!a.objectMode,f&&(this.objectMode=this.objectMode||!!a.readableObjectMode);var g=a.highWaterMark,h=a.readableHighWaterMark,i=this.objectMode?16:16384;g||0===g?this.highWaterMark=g:f&&(h||0===h)?this.highWaterMark=h:this.highWaterMark=i,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new o,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=a.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,a.encoding&&(e||(e=c(32677).I),this.decoder=new e(a.encoding),this.encoding=a.encoding)}function s(a){if(d=d||c(47482),!(this instanceof s))return new s(a);this._readableState=new r(a,this),this.readable=!0,a&&("function"==typeof a.read&&(this._read=a.read),"function"==typeof a.destroy&&(this._destroy=a.destroy)),i.call(this)}function t(a,b,c,d,e){var f,g,h,i=a._readableState;return null===b?(i.reading=!1,function(a,b){if(!b.ended){if(b.decoder){var c=b.decoder.end();c&&c.length&&(b.buffer.push(c),b.length+=b.objectMode?1:c.length)}b.ended=!0,w(a)}}(a,i)):(e||(h=function(a,b){var c;return j.isBuffer(b)||b instanceof k||"string"==typeof b||void 0===b||a.objectMode||(c=TypeError("Invalid non-string/buffer chunk")),c}(i,b)),h)?a.emit("error",h):i.objectMode||b&&b.length>0?("string"==typeof b||i.objectMode||Object.getPrototypeOf(b)===j.prototype||(g=b,b=j.from(g)),d?i.endEmitted?a.emit("error",Error("stream.unshift() after end event")):u(a,i,b,!0):i.ended?a.emit("error",Error("stream.push() after EOF")):(i.reading=!1,i.decoder&&!c?(b=i.decoder.write(b),i.objectMode||0!==b.length?u(a,i,b,!1):y(a,i)):u(a,i,b,!1))):d||(i.reading=!1),!(f=i).ended&&(f.needReadable||f.lengthb.highWaterMark&&((c=a)>=8388608?c=8388608:(c--,c|=c>>>1,c|=c>>>2,c|=c>>>4,c|=c>>>8,c|=c>>>16,c++),b.highWaterMark=c),a<=b.length)?a:b.ended?b.length:(b.needReadable=!0,0)}function w(a){var b=a._readableState;b.needReadable=!1,b.emittedReadable||(n("emitReadable",b.flowing),b.emittedReadable=!0,b.sync?f.nextTick(x,a):x(a))}function x(a){n("emit readable"),a.emit("readable"),C(a)}function y(a,b){b.readingMore||(b.readingMore=!0,f.nextTick(z,a,b))}function z(a,b){for(var c=b.length;!b.reading&&!b.flowing&&!b.ended&&b.length=b.length?(c=b.decoder?b.buffer.join(""):1===b.buffer.length?b.buffer.head.data:b.buffer.concat(b.length),b.buffer.clear()):(d=a,e=b.buffer,f=b.decoder,df.length?f.length:a;if(g===f.length?e+=f:e+=f.slice(0,a),0==(a-=g)){g===f.length?(++d,c.next?b.head=c.next:b.head=b.tail=null):(b.head=c,c.data=f.slice(g));break}++d}return b.length-=d,e}(d,e):function(a,b){var c=j.allocUnsafe(a),d=b.head,e=1;for(d.data.copy(c),a-=d.data.length;d=d.next;){var f=d.data,g=a>f.length?f.length:a;if(f.copy(c,c.length-a,0,g),0==(a-=g)){g===f.length?(++e,d.next?b.head=d.next:b.head=b.tail=null):(b.head=d,d.data=f.slice(g));break}++e}return b.length-=e,c}(d,e),c=g),c)}function E(a){var b=a._readableState;if(b.length>0)throw Error('"endReadable()" called on non-empty stream');b.endEmitted||(b.ended=!0,f.nextTick(F,b,a))}function F(a,b){a.endEmitted||0!==a.length||(a.endEmitted=!0,b.readable=!1,b.emit("end"))}function G(a,b){for(var c=0,d=a.length;c=c.highWaterMark||c.ended))return n("read: emitReadable",c.length,c.ended),0===c.length&&c.ended?E(this):w(this),null;if(0===(a=v(a,c))&&c.ended)return 0===c.length&&E(this),null;var e=c.needReadable;return n("need readable",e),(0===c.length||c.length-a0?D(a,c):null)?(c.needReadable=!0,a=0):c.length-=a,0===c.length&&(c.ended||(c.needReadable=!0),d!==a&&c.ended&&E(this)),null!==b&&this.emit("data",b),b},s.prototype._read=function(a){this.emit("error",Error("_read() is not implemented"))},s.prototype.pipe=function(a,b){var c,d=this,e=this._readableState;switch(e.pipesCount){case 0:e.pipes=a;break;case 1:e.pipes=[e.pipes,a];break;default:e.pipes.push(a)}e.pipesCount+=1,n("pipe count=%d opts=%j",e.pipesCount,b);var i=b&&!1===b.end||a===process.stdout||a===process.stderr?s:j;function j(){n("onend"),a.end()}e.endEmitted?f.nextTick(i):d.once("end",i),a.on("unpipe",function b(c,f){n("onunpipe"),c===d&&f&&!1===f.hasUnpiped&&(f.hasUnpiped=!0,n("cleanup"),a.removeListener("close",q),a.removeListener("finish",r),a.removeListener("drain",k),a.removeListener("error",p),a.removeListener("unpipe",b),d.removeListener("end",j),d.removeListener("end",s),d.removeListener("data",o),l=!0,e.awaitDrain&&(!a._writableState||a._writableState.needDrain)&&k())});var k=(c=d,function(){var a=c._readableState;n("pipeOnDrain",a.awaitDrain),a.awaitDrain&&a.awaitDrain--,0===a.awaitDrain&&h(c,"data")&&(a.flowing=!0,C(c))});a.on("drain",k);var l=!1,m=!1;function o(b){n("ondata"),m=!1,!1!==a.write(b)||m||((1===e.pipesCount&&e.pipes===a||e.pipesCount>1&&-1!==G(e.pipes,a))&&!l&&(n("false write response, pause",e.awaitDrain),e.awaitDrain++,m=!0),d.pause())}function p(b){n("onerror",b),s(),a.removeListener("error",p),0===h(a,"error")&&a.emit("error",b)}function q(){a.removeListener("finish",r),s()}function r(){n("onfinish"),a.removeListener("close",q),s()}function s(){n("unpipe"),d.unpipe(a)}return d.on("data",o),!function(a,b,c){if("function"==typeof a.prependListener)return a.prependListener(b,c);a._events&&a._events[b]?g(a._events[b])?a._events[b].unshift(c):a._events[b]=[c,a._events[b]]:a.on(b,c)}(a,"error",p),a.once("close",q),a.once("finish",r),a.emit("pipe",d),e.flowing||(n("pipe resume"),d.resume()),a},s.prototype.unpipe=function(a){var b=this._readableState,c={hasUnpiped:!1};if(0===b.pipesCount)return this;if(1===b.pipesCount)return a&&a!==b.pipes||(a||(a=b.pipes),b.pipes=null,b.pipesCount=0,b.flowing=!1,a&&a.emit("unpipe",this,c)),this;if(!a){var d=b.pipes,e=b.pipesCount;b.pipes=null,b.pipesCount=0,b.flowing=!1;for(var f=0;f{"use strict";c.d(b,{b:()=>h});var d=c(38301),e=c(6406),f=c(21124),g=d.forwardRef((a,b)=>(0,f.jsx)(e.sG.label,{...a,ref:b,onMouseDown:b=>{b.target.closest("button, input, select, textarea")||(a.onMouseDown?.(b),!b.defaultPrevented&&b.detail>1&&b.preventDefault())}}));g.displayName="Label";var h=g},46422:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]])},47089:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},47210:(a,b,c)=>{"use strict";b.__esModule=!0;var d=c(50281);b.default=function(a){a.registerDecorator("inline",function(a,b,c,e){var f=a;return b.partials||(b.partials={},f=function(e,f){var g=c.partials;c.partials=d.extend({},g,b.partials);var h=a(e,f);return c.partials=g,h}),b.partials[e.args[0]]=e.fn,f})},a.exports=b.default},47482:(a,b,c)=>{"use strict";var d=c(39265),e=Object.keys||function(a){var b=[];for(var c in a)b.push(c);return b};a.exports=l;var f=Object.create(c(69082));f.inherits=c(48985);var g=c(45948),h=c(7932);f.inherits(l,g);for(var i=e(h.prototype),j=0;j{"use strict";var d=c(36867);function e(a){d.call(this,a)}c(20452).inherits(e,d),e.prototype.readData=function(a){this.checkOffset(a);var b=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,b},a.exports=e},48985:(a,b,c)=>{try{var d=c(28354);if("function"!=typeof d.inherits)throw"";a.exports=d.inherits}catch(b){a.exports=c(53510)}},49241:(a,b,c)=>{"use strict";b.__esModule=!0;var d=function(a){return a&&a.__esModule?a:{default:a}}(c(1793));b.default=function(a){a.registerHelper("helperMissing",function(){if(1!=arguments.length)throw new d.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})},a.exports=b.default},50266:(a,b,c)=>{"use strict";var d=c(20452),e=c(9926),f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";b.encode=function(a){for(var b,c,e,g,h,i,j,k=[],l=0,m=a.length,n=m,o="string"!==d.getTypeOf(a);l>2,h=(3&b)<<4|c>>4,i=n>1?(15&c)<<2|e>>6:64,j=n>2?63&e:64,k.push(f.charAt(g)+f.charAt(h)+f.charAt(i)+f.charAt(j));return k.join("")},b.decode=function(a){var b,c,d,g,h,i,j,k,l=0,m=0,n="data:";if(a.substr(0,n.length)===n)throw Error("Invalid base64 input, it looks like a data url.");var o=3*(a=a.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(a.charAt(a.length-1)===f.charAt(64)&&o--,a.charAt(a.length-2)===f.charAt(64)&&o--,o%1!=0)throw Error("Invalid base64 input, bad content length.");for(k=e.uint8array?new Uint8Array(0|o):Array(0|o);l>4,c=(15&h)<<4|i>>2,d=(3&i)<<6|j,k[m++]=b,64!==i&&(k[m++]=c),64!==j&&(k[m++]=d);return k}},50281:(a,b)=>{"use strict";b.__esModule=!0,b.extend=g,b.indexOf=function(a,b){for(var c=0,d=a.length;c":">",'"':""","'":"'","`":"`","=":"="},d=/[&<>"'`=]/g,e=/[&<>"'`=]/;function f(a){return c[a]}function g(a){for(var b=1;b{"use strict";a.exports={Promise:"undefined"!=typeof Promise?Promise:c(55233)}},53247:(a,b,c)=>{"use strict";var d,e=c(43613),f=c(7225),g=c(90421),h=c(9251),i=c(78094),j=573;function k(a,b){return a.msg=i[b],b}function l(a){return(a<<1)-9*(a>4)}function m(a){for(var b=a.length;--b>=0;)a[b]=0}function n(a){var b=a.state,c=b.pending;c>a.avail_out&&(c=a.avail_out),0!==c&&(e.arraySet(a.output,b.pending_buf,b.pending_out,c,a.next_out),a.next_out+=c,b.pending_out+=c,a.total_out+=c,a.avail_out-=c,b.pending-=c,0===b.pending&&(b.pending_out=0))}function o(a,b){f._tr_flush_block(a,a.block_start>=0?a.block_start:-1,a.strstart-a.block_start,b),a.block_start=a.strstart,n(a.strm)}function p(a,b){a.pending_buf[a.pending++]=b}function q(a,b){a.pending_buf[a.pending++]=b>>>8&255,a.pending_buf[a.pending++]=255&b}function r(a,b){var c,d,e=a.max_chain_length,f=a.strstart,g=a.prev_length,h=a.nice_match,i=a.strstart>a.w_size-262?a.strstart-(a.w_size-262):0,j=a.window,k=a.w_mask,l=a.prev,m=a.strstart+258,n=j[f+g-1],o=j[f+g];a.prev_length>=a.good_match&&(e>>=2),h>a.lookahead&&(h=a.lookahead);do{if(j[(c=b)+g]!==o||j[c+g-1]!==n||j[c]!==j[f]||j[++c]!==j[f+1])continue;f+=2,c++;do;while(j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&j[++f]===j[++c]&&fg){if(a.match_start=b,g=d,d>=h)break;n=j[f+g-1],o=j[f+g]}}while((b=l[b&k])>i&&0!=--e);return g<=a.lookahead?g:a.lookahead}function s(a){var b,c,d,f,i,j=a.w_size;do{if(f=a.window_size-a.lookahead-a.strstart,a.strstart>=j+(j-262)){e.arraySet(a.window,a.window,j,j,0),a.match_start-=j,a.strstart-=j,a.block_start-=j,b=c=a.hash_size;do d=a.head[--b],a.head[b]=d>=j?d-j:0;while(--c);b=c=j;do d=a.prev[--b],a.prev[b]=d>=j?d-j:0;while(--c);f+=j}if(0===a.strm.avail_in)break;if(c=function(a,b,c,d){var f=a.avail_in;return(f>d&&(f=d),0===f)?0:(a.avail_in-=f,e.arraySet(b,a.input,a.next_in,f,c),1===a.state.wrap?a.adler=g(a.adler,b,f,c):2===a.state.wrap&&(a.adler=h(a.adler,b,f,c)),a.next_in+=f,a.total_in+=f,f)}(a.strm,a.window,a.strstart+a.lookahead,f),a.lookahead+=c,a.lookahead+a.insert>=3)for(i=a.strstart-a.insert,a.ins_h=a.window[i],a.ins_h=(a.ins_h<=3&&(a.ins_h=(a.ins_h<=3)if(d=f._tr_tally(a,a.strstart-a.match_start,a.match_length-3),a.lookahead-=a.match_length,a.match_length<=a.max_lazy_match&&a.lookahead>=3){a.match_length--;do a.strstart++,a.ins_h=(a.ins_h<=3&&(a.ins_h=(a.ins_h<4096)&&(a.match_length=2)),a.prev_length>=3&&a.match_length<=a.prev_length){e=a.strstart+a.lookahead-3,d=f._tr_tally(a,a.strstart-1-a.prev_match,a.prev_length-3),a.lookahead-=a.prev_length-1,a.prev_length-=2;do++a.strstart<=e&&(a.ins_h=(a.ins_h<15&&(h=2,d-=16),f<1||f>9||8!==c||d<8||d>15||b<0||b>9||g<0||g>4)return k(a,-2);8===d&&(d=9);var i=new w;return a.state=i,i.strm=a,i.wrap=h,i.gzhead=null,i.w_bits=d,i.w_size=1<a.pending_buf_size-5&&(c=a.pending_buf_size-5);;){if(a.lookahead<=1){if(s(a),0===a.lookahead&&0===b)return 1;if(0===a.lookahead)break}a.strstart+=a.lookahead,a.lookahead=0;var d=a.block_start+c;if((0===a.strstart||a.strstart>=d)&&(a.lookahead=a.strstart-d,a.strstart=d,o(a,!1),0===a.strm.avail_out)||a.strstart-a.block_start>=a.w_size-262&&(o(a,!1),0===a.strm.avail_out))return 1}return(a.insert=0,4===b)?(o(a,!0),0===a.strm.avail_out)?3:4:(a.strstart>a.block_start&&(o(a,!1),a.strm.avail_out),1)}),new v(4,4,8,4,t),new v(4,5,16,8,t),new v(4,6,32,32,t),new v(4,4,16,16,u),new v(8,16,32,32,u),new v(8,16,128,128,u),new v(8,32,128,256,u),new v(32,128,258,1024,u),new v(32,258,258,4096,u)],b.deflateInit=function(a,b){return z(a,b,8,15,8,0)},b.deflateInit2=z,b.deflateReset=y,b.deflateResetKeep=x,b.deflateSetHeader=function(a,b){return a&&a.state&&2===a.state.wrap?(a.state.gzhead=b,0):-2},b.deflate=function(a,b){if(!a||!a.state||b>5||b<0)return a?k(a,-2):-2;if(e=a.state,!a.output||!a.input&&0!==a.avail_in||666===e.status&&4!==b)return k(a,0===a.avail_out?-5:-2);if(e.strm=a,c=e.last_flush,e.last_flush=b,42===e.status)if(2===e.wrap)a.adler=0,p(e,31),p(e,139),p(e,8),e.gzhead?(p(e,+!!e.gzhead.text+2*!!e.gzhead.hcrc+4*!!e.gzhead.extra+8*!!e.gzhead.name+16*!!e.gzhead.comment),p(e,255&e.gzhead.time),p(e,e.gzhead.time>>8&255),p(e,e.gzhead.time>>16&255),p(e,e.gzhead.time>>24&255),p(e,9===e.level?2:4*(e.strategy>=2||e.level<2)),p(e,255&e.gzhead.os),e.gzhead.extra&&e.gzhead.extra.length&&(p(e,255&e.gzhead.extra.length),p(e,e.gzhead.extra.length>>8&255)),e.gzhead.hcrc&&(a.adler=h(a.adler,e.pending_buf,e.pending,0)),e.gzindex=0,e.status=69):(p(e,0),p(e,0),p(e,0),p(e,0),p(e,0),p(e,9===e.level?2:4*(e.strategy>=2||e.level<2)),p(e,3),e.status=113);else{var c,e,g,i,j=8+(e.w_bits-8<<4)<<8;j|=(e.strategy>=2||e.level<2?0:e.level<6?1:6===e.level?2:3)<<6,0!==e.strstart&&(j|=32),j+=31-j%31,e.status=113,q(e,j),0!==e.strstart&&(q(e,a.adler>>>16),q(e,65535&a.adler)),a.adler=1}if(69===e.status)if(e.gzhead.extra){for(g=e.pending;e.gzindex<(65535&e.gzhead.extra.length)&&(e.pending!==e.pending_buf_size||(e.gzhead.hcrc&&e.pending>g&&(a.adler=h(a.adler,e.pending_buf,e.pending-g,g)),n(a),g=e.pending,e.pending!==e.pending_buf_size));)p(e,255&e.gzhead.extra[e.gzindex]),e.gzindex++;e.gzhead.hcrc&&e.pending>g&&(a.adler=h(a.adler,e.pending_buf,e.pending-g,g)),e.gzindex===e.gzhead.extra.length&&(e.gzindex=0,e.status=73)}else e.status=73;if(73===e.status)if(e.gzhead.name){g=e.pending;do{if(e.pending===e.pending_buf_size&&(e.gzhead.hcrc&&e.pending>g&&(a.adler=h(a.adler,e.pending_buf,e.pending-g,g)),n(a),g=e.pending,e.pending===e.pending_buf_size)){i=1;break}i=e.gzindexg&&(a.adler=h(a.adler,e.pending_buf,e.pending-g,g)),0===i&&(e.gzindex=0,e.status=91)}else e.status=91;if(91===e.status)if(e.gzhead.comment){g=e.pending;do{if(e.pending===e.pending_buf_size&&(e.gzhead.hcrc&&e.pending>g&&(a.adler=h(a.adler,e.pending_buf,e.pending-g,g)),n(a),g=e.pending,e.pending===e.pending_buf_size)){i=1;break}i=e.gzindexg&&(a.adler=h(a.adler,e.pending_buf,e.pending-g,g)),0===i&&(e.status=103)}else e.status=103;if(103===e.status&&(e.gzhead.hcrc?(e.pending+2>e.pending_buf_size&&n(a),e.pending+2<=e.pending_buf_size&&(p(e,255&a.adler),p(e,a.adler>>8&255),a.adler=0,e.status=113)):e.status=113),0!==e.pending){if(n(a),0===a.avail_out)return e.last_flush=-1,0}else if(0===a.avail_in&&l(b)<=l(c)&&4!==b)return k(a,-5);if(666===e.status&&0!==a.avail_in)return k(a,-5);if(0!==a.avail_in||0!==e.lookahead||0!==b&&666!==e.status){var r=2===e.strategy?function(a,b){for(var c;;){if(0===a.lookahead&&(s(a),0===a.lookahead)){if(0===b)return 1;break}if(a.match_length=0,c=f._tr_tally(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++,c&&(o(a,!1),0===a.strm.avail_out))return 1}return(a.insert=0,4===b)?(o(a,!0),0===a.strm.avail_out)?3:4:a.last_lit&&(o(a,!1),0===a.strm.avail_out)?1:2}(e,b):3===e.strategy?function(a,b){for(var c,d,e,g,h=a.window;;){if(a.lookahead<=258){if(s(a),a.lookahead<=258&&0===b)return 1;if(0===a.lookahead)break}if(a.match_length=0,a.lookahead>=3&&a.strstart>0&&(d=h[e=a.strstart-1])===h[++e]&&d===h[++e]&&d===h[++e]){g=a.strstart+258;do;while(d===h[++e]&&d===h[++e]&&d===h[++e]&&d===h[++e]&&d===h[++e]&&d===h[++e]&&d===h[++e]&&d===h[++e]&&ea.lookahead&&(a.match_length=a.lookahead)}if(a.match_length>=3?(c=f._tr_tally(a,1,a.match_length-3),a.lookahead-=a.match_length,a.strstart+=a.match_length,a.match_length=0):(c=f._tr_tally(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++),c&&(o(a,!1),0===a.strm.avail_out))return 1}return(a.insert=0,4===b)?(o(a,!0),0===a.strm.avail_out)?3:4:a.last_lit&&(o(a,!1),0===a.strm.avail_out)?1:2}(e,b):d[e.level].func(e,b);if((3===r||4===r)&&(e.status=666),1===r||3===r)return 0===a.avail_out&&(e.last_flush=-1),0;if(2===r&&(1===b?f._tr_align(e):5!==b&&(f._tr_stored_block(e,0,0,!1),3===b&&(m(e.head),0===e.lookahead&&(e.strstart=0,e.block_start=0,e.insert=0))),n(a),0===a.avail_out))return e.last_flush=-1,0}return 4!==b?0:e.wrap<=0?1:(2===e.wrap?(p(e,255&a.adler),p(e,a.adler>>8&255),p(e,a.adler>>16&255),p(e,a.adler>>24&255),p(e,255&a.total_in),p(e,a.total_in>>8&255),p(e,a.total_in>>16&255),p(e,a.total_in>>24&255)):(q(e,a.adler>>>16),q(e,65535&a.adler)),n(a),e.wrap>0&&(e.wrap=-e.wrap),+(0===e.pending))},b.deflateEnd=function(a){var b;return a&&a.state?42!==(b=a.state.status)&&69!==b&&73!==b&&91!==b&&103!==b&&113!==b&&666!==b?k(a,-2):(a.state=null,113===b?k(a,-3):0):-2},b.deflateSetDictionary=function(a,b){var c,d,f,h,i,j,k,l,n=b.length;if(!a||!a.state||2===(h=(c=a.state).wrap)||1===h&&42!==c.status||c.lookahead)return -2;for(1===h&&(a.adler=g(a.adler,b,n,0)),c.wrap=0,n>=c.w_size&&(0===h&&(m(c.head),c.strstart=0,c.block_start=0,c.insert=0),l=new e.Buf8(c.w_size),e.arraySet(l,b,n-c.w_size,c.w_size,0),b=l,n=c.w_size),i=a.avail_in,j=a.next_in,k=a.input,a.avail_in=n,a.next_in=0,a.input=b,s(c);c.lookahead>=3;){d=c.strstart,f=c.lookahead-2;do c.ins_h=(c.ins_h<{"function"==typeof Object.create?a.exports=function(a,b){b&&(a.super_=b,a.prototype=Object.create(b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}))}:a.exports=function(a,b){if(b){a.super_=b;var c=function(){};c.prototype=b.prototype,a.prototype=new c,a.prototype.constructor=a}}},54442:(a,b,c)=>{"use strict";var d=c(62253).Buffer,e=c(28354);a.exports=function(){function a(){if(!(this instanceof a))throw TypeError("Cannot call a class as a function");this.head=null,this.tail=null,this.length=0}return a.prototype.push=function(a){var b={data:a,next:null};this.length>0?this.tail.next=b:this.head=b,this.tail=b,++this.length},a.prototype.unshift=function(a){var b={data:a,next:this.head};0===this.length&&(this.tail=b),this.head=b,++this.length},a.prototype.shift=function(){if(0!==this.length){var a=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,a}},a.prototype.clear=function(){this.head=this.tail=null,this.length=0},a.prototype.join=function(a){if(0===this.length)return"";for(var b=this.head,c=""+b.data;b=b.next;)c+=a+b.data;return c},a.prototype.concat=function(a){if(0===this.length)return d.alloc(0);for(var b,c,e=d.allocUnsafe(a>>>0),f=this.head,g=0;f;)b=f.data,c=g,b.copy(e,c),g+=f.data.length,f=f.next;return e},a}(),e&&e.inspect&&e.inspect.custom&&(a.exports.prototype[e.inspect.custom]=function(){var a=e.inspect({length:this.length});return this.constructor.name+" "+a})},54453:(a,b,c)=>{"use strict";var d=c(30298),e=c(93918),f=function(a,b){var c=a||b,e=d[c];if(!e)throw Error(c+" is not a valid compression method !");return e};b.generateWorker=function(a,b,c){var d=new e(b.streamFiles,c,b.platform,b.encodeFileName),g=0;try{a.forEach(function(a,c){g++;var e=f(c.options.compression,b.compression),h=c.options.compressionOptions||b.compressionOptions||{},i=c.dir,j=c.date;c._compressWorker(e,h).withStreamInfo("file",{name:a,dir:i,date:j,comment:c.comment||"",unixPermissions:c.unixPermissions,dosPermissions:c.dosPermissions}).pipe(d)}),d.entriesCount=g}catch(a){d.error(a)}return d}},55233:(a,b,c)=>{"use strict";var d=c(78406);function e(){}var f={},g=["REJECTED"],h=["FULFILLED"],i=["PENDING"],j=["UNHANDLED"];function k(a){if("function"!=typeof a)throw TypeError("resolver must be a function");this.state=i,this.queue=[],this.outcome=void 0,this.handled=j,a!==e&&o(this,a)}function l(a,b,c){this.promise=a,"function"==typeof b&&(this.onFulfilled=b,this.callFulfilled=this.otherCallFulfilled),"function"==typeof c&&(this.onRejected=c,this.callRejected=this.otherCallRejected)}function m(a,b,c){d(function(){var d;try{d=b(c)}catch(b){return f.reject(a,b)}d===a?f.reject(a,TypeError("Cannot resolve promise with itself")):f.resolve(a,d)})}function n(a){var b=a&&a.then;if(a&&("object"==typeof a||"function"==typeof a)&&"function"==typeof b)return function(){b.apply(a,arguments)}}function o(a,b){var c=!1;function d(b){c||(c=!0,f.reject(a,b))}function e(b){c||(c=!0,f.resolve(a,b))}var g=p(function(){b(e,d)});"error"===g.status&&d(g.value)}function p(a,b){var c={};try{c.value=a(b),c.status="success"}catch(a){c.status="error",c.value=a}return c}a.exports=k,k.prototype.finally=function(a){if("function"!=typeof a)return this;var b=this.constructor;return this.then(function(c){return b.resolve(a()).then(function(){return c})},function(c){return b.resolve(a()).then(function(){throw c})})},k.prototype.catch=function(a){return this.then(null,a)},k.prototype.then=function(a,b){if("function"!=typeof a&&this.state===h||"function"!=typeof b&&this.state===g)return this;var c=new this.constructor(e);return this.handled===j&&(this.handled=null),this.state!==i?m(c,this.state===h?a:b,this.outcome):this.queue.push(new l(c,a,b)),c},l.prototype.callFulfilled=function(a){f.resolve(this.promise,a)},l.prototype.otherCallFulfilled=function(a){m(this.promise,this.onFulfilled,a)},l.prototype.callRejected=function(a){f.reject(this.promise,a)},l.prototype.otherCallRejected=function(a){m(this.promise,this.onRejected,a)},f.resolve=function(a,b){var c=p(n,b);if("error"===c.status)return f.reject(a,c.value);var d=c.value;if(d)o(a,d);else{a.state=h,a.outcome=b;for(var e=-1,g=a.queue.length;++e{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("cpu",[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]])},56780:(a,b,c)=>{"use strict";var d=c(43613).assign,e=c(27139),f=c(58815),g=c(76137),h={};d(h,e,f,g),a.exports=h},56898:(a,b,c)=>{"use strict";b.__esModule=!0,b.createNewLookupObject=function(){for(var a=arguments.length,b=Array(a),c=0;c{var d,e=function(){var a=String.fromCharCode,b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",d={};function e(a,b){if(!d[a]){d[a]={};for(var c=0;c>>8,c[2*d+1]=g%256}return c},decompressFromUint8Array:function(b){if(null==b)return f.decompress(b);for(var c=Array(b.length/2),d=0,e=c.length;dk.charCodeAt(0)){for(d=0;d>=1}else{for(d=0,e=1;d>=1}0==--l&&(l=Math.pow(2,n),n++),delete h[k]}else for(d=0,e=g[k];d>=1;0==--l&&(l=Math.pow(2,n),n++),g[j]=m++,k=String(i)}if(""!==k){if(Object.prototype.hasOwnProperty.call(h,k)){if(256>k.charCodeAt(0)){for(d=0;d>=1}else{for(d=0,e=1;d>=1}0==--l&&(l=Math.pow(2,n),n++),delete h[k]}else for(d=0,e=g[k];d>=1;0==--l&&(l=Math.pow(2,n),n++)}for(d=0,e=2;d>=1;for(;;){if(p<<=1,q==b-1){o.push(c(p));break}q++}return o.join("")},decompress:function(a){return null==a?"":""==a?null:f._decompress(a.length,32768,function(b){return a.charCodeAt(b)})},_decompress:function(b,c,d){var e,f,g,h,i,j,k,l=[],m=4,n=4,o=3,p="",q=[],r={val:d(0),position:c,index:1};for(e=0;e<3;e+=1)l[e]=e;for(g=0,i=4,j=1;j!=i;)h=r.val&r.position,r.position>>=1,0==r.position&&(r.position=c,r.val=d(r.index++)),g|=(h>0)*j,j<<=1;switch(g){case 0:for(g=0,i=256,j=1;j!=i;)h=r.val&r.position,r.position>>=1,0==r.position&&(r.position=c,r.val=d(r.index++)),g|=(h>0)*j,j<<=1;k=a(g);break;case 1:for(g=0,i=65536,j=1;j!=i;)h=r.val&r.position,r.position>>=1,0==r.position&&(r.position=c,r.val=d(r.index++)),g|=(h>0)*j,j<<=1;k=a(g);break;case 2:return""}for(l[3]=k,f=k,q.push(k);;){if(r.index>b)return"";for(g=0,i=Math.pow(2,o),j=1;j!=i;)h=r.val&r.position,r.position>>=1,0==r.position&&(r.position=c,r.val=d(r.index++)),g|=(h>0)*j,j<<=1;switch(k=g){case 0:for(g=0,i=256,j=1;j!=i;)h=r.val&r.position,r.position>>=1,0==r.position&&(r.position=c,r.val=d(r.index++)),g|=(h>0)*j,j<<=1;l[n++]=a(g),k=n-1,m--;break;case 1:for(g=0,i=65536,j=1;j!=i;)h=r.val&r.position,r.position>>=1,0==r.position&&(r.position=c,r.val=d(r.index++)),g|=(h>0)*j,j<<=1;l[n++]=a(g),k=n-1,m--;break;case 2:return q.join("")}if(0==m&&(m=Math.pow(2,o),o++),l[k])p=l[k];else{if(k!==n)return null;p=f+f.charAt(0)}q.push(p),l[n++]=f+p.charAt(0),m--,f=p,0==m&&(m=Math.pow(2,o),o++)}}};return f}();void 0===(d=(function(){return e}).call(b,c,b,a))||(a.exports=d)},57623:(a,b,c)=>{"use strict";b.__esModule=!0;var d=c(50281),e=function(a){return a&&a.__esModule?a:{default:a}}(c(1793));b.default=function(a){a.registerHelper("if",function(a,b){if(2!=arguments.length)throw new e.default("#if requires exactly one argument");return(d.isFunction(a)&&(a=a.call(this)),!b.hash.includeZero&&!a||d.isEmpty(a))?b.inverse(this):b.fn(this)}),a.registerHelper("unless",function(b,c){if(2!=arguments.length)throw new e.default("#unless requires exactly one argument");return a.helpers.if.call(this,b,{fn:c.inverse,inverse:c.fn,hash:c.hash})})},a.exports=b.default},58815:(a,b,c)=>{"use strict";var d=c(11251),e=c(43613),f=c(98164),g=c(76137),h=c(78094),i=c(1094),j=c(33018),k=Object.prototype.toString;function l(a){if(!(this instanceof l))return new l(a);this.options=e.assign({chunkSize:16384,windowBits:0,to:""},a||{});var b=this.options;b.raw&&b.windowBits>=0&&b.windowBits<16&&(b.windowBits=-b.windowBits,0===b.windowBits&&(b.windowBits=-15)),b.windowBits>=0&&b.windowBits<16&&!(a&&a.windowBits)&&(b.windowBits+=32),b.windowBits>15&&b.windowBits<48&&(15&b.windowBits)==0&&(b.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new i,this.strm.avail_out=0;var c=d.inflateInit2(this.strm,b.windowBits);if(c!==g.Z_OK||(this.header=new j,d.inflateGetHeader(this.strm,this.header),b.dictionary&&("string"==typeof b.dictionary?b.dictionary=f.string2buf(b.dictionary):"[object ArrayBuffer]"===k.call(b.dictionary)&&(b.dictionary=new Uint8Array(b.dictionary)),b.raw)&&(c=d.inflateSetDictionary(this.strm,b.dictionary))!==g.Z_OK))throw Error(h[c])}function m(a,b){var c=new l(b);if(c.push(a,!0),c.err)throw c.msg||h[c.err];return c.result}l.prototype.push=function(a,b){var c,h,i,j,l,m=this.strm,n=this.options.chunkSize,o=this.options.dictionary,p=!1;if(this.ended)return!1;h=b===~~b?b:!0===b?g.Z_FINISH:g.Z_NO_FLUSH,"string"==typeof a?m.input=f.binstring2buf(a):"[object ArrayBuffer]"===k.call(a)?m.input=new Uint8Array(a):m.input=a,m.next_in=0,m.avail_in=m.input.length;do{if(0===m.avail_out&&(m.output=new e.Buf8(n),m.next_out=0,m.avail_out=n),(c=d.inflate(m,g.Z_NO_FLUSH))===g.Z_NEED_DICT&&o&&(c=d.inflateSetDictionary(this.strm,o)),c===g.Z_BUF_ERROR&&!0===p&&(c=g.Z_OK,p=!1),c!==g.Z_STREAM_END&&c!==g.Z_OK)return this.onEnd(c),this.ended=!0,!1;m.next_out&&(0===m.avail_out||c===g.Z_STREAM_END||0===m.avail_in&&(h===g.Z_FINISH||h===g.Z_SYNC_FLUSH))&&("string"===this.options.to?(i=f.utf8border(m.output,m.next_out),j=m.next_out-i,l=f.buf2string(m.output,i),m.next_out=j,m.avail_out=n-j,j&&e.arraySet(m.output,m.output,i,j,0),this.onData(l)):this.onData(e.shrinkBuf(m.output,m.next_out))),0===m.avail_in&&0===m.avail_out&&(p=!0)}while((m.avail_in>0||0===m.avail_out)&&c!==g.Z_STREAM_END);return(c===g.Z_STREAM_END&&(h=g.Z_FINISH),h===g.Z_FINISH)?(c=d.inflateEnd(this.strm),this.onEnd(c),this.ended=!0,c===g.Z_OK):(h===g.Z_SYNC_FLUSH&&(this.onEnd(g.Z_OK),m.avail_out=0),!0)},l.prototype.onData=function(a){this.chunks.push(a)},l.prototype.onEnd=function(a){a===g.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=e.flattenChunks(this.chunks)),this.chunks=[],this.err=a,this.msg=this.strm.msg},b.Inflate=l,b.inflate=m,b.inflateRaw=function(a,b){return(b=b||{}).raw=!0,m(a,b)},b.ungzip=m},58829:(a,b,c)=>{"use strict";c.d(b,{QP:()=>aa});let d=(a,b)=>{if(0===a.length)return b.classGroupId;let c=a[0],e=b.nextPart.get(c),f=e?d(a.slice(1),e):void 0;if(f)return f;if(0===b.validators.length)return;let g=a.join("-");return b.validators.find(({validator:a})=>a(g))?.classGroupId},e=/^\[(.+)\]$/,f=(a,b,c,d)=>{a.forEach(a=>{if("string"==typeof a){(""===a?b:g(b,a)).classGroupId=c;return}if("function"==typeof a)return h(a)?void f(a(d),b,c,d):void b.validators.push({validator:a,classGroupId:c});Object.entries(a).forEach(([a,e])=>{f(e,g(b,a),c,d)})})},g=(a,b)=>{let c=a;return b.split("-").forEach(a=>{c.nextPart.has(a)||c.nextPart.set(a,{nextPart:new Map,validators:[]}),c=c.nextPart.get(a)}),c},h=a=>a.isThemeGetter,i=/\s+/;function j(){let a,b,c=0,d="";for(;c{let b;if("string"==typeof a)return a;let c="";for(let d=0;d{let b=b=>b[a]||[];return b.isThemeGetter=!0,b},m=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,n=/^\((?:(\w[\w-]*):)?(.+)\)$/i,o=/^\d+\/\d+$/,p=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,q=/\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$/,r=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,s=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,t=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,u=a=>o.test(a),v=a=>!!a&&!Number.isNaN(Number(a)),w=a=>!!a&&Number.isInteger(Number(a)),x=a=>a.endsWith("%")&&v(a.slice(0,-1)),y=a=>p.test(a),z=()=>!0,A=a=>q.test(a)&&!r.test(a),B=()=>!1,C=a=>s.test(a),D=a=>t.test(a),E=a=>!G(a)&&!M(a),F=a=>T(a,X,B),G=a=>m.test(a),H=a=>T(a,Y,A),I=a=>T(a,Z,v),J=a=>T(a,V,B),K=a=>T(a,W,D),L=a=>T(a,_,C),M=a=>n.test(a),N=a=>U(a,Y),O=a=>U(a,$),P=a=>U(a,V),Q=a=>U(a,X),R=a=>U(a,W),S=a=>U(a,_,!0),T=(a,b,c)=>{let d=m.exec(a);return!!d&&(d[1]?b(d[1]):c(d[2]))},U=(a,b,c=!1)=>{let d=n.exec(a);return!!d&&(d[1]?b(d[1]):c)},V=a=>"position"===a||"percentage"===a,W=a=>"image"===a||"url"===a,X=a=>"length"===a||"size"===a||"bg-size"===a,Y=a=>"length"===a,Z=a=>"number"===a,$=a=>"family-name"===a,_=a=>"shadow"===a;Symbol.toStringTag;let aa=function(a,...b){let c,g,h,k=function(i){let j;return g=(c={cache:(a=>{if(a<1)return{get:()=>void 0,set:()=>{}};let b=0,c=new Map,d=new Map,e=(e,f)=>{c.set(e,f),++b>a&&(b=0,d=c,c=new Map)};return{get(a){let b=c.get(a);return void 0!==b?b:void 0!==(b=d.get(a))?(e(a,b),b):void 0},set(a,b){c.has(a)?c.set(a,b):e(a,b)}}})((j=b.reduce((a,b)=>b(a),a())).cacheSize),parseClassName:(a=>{let{prefix:b,experimentalParseClassName:c}=a,d=a=>{let b,c,d=[],e=0,f=0,g=0;for(let c=0;cg?b-g:void 0}};if(b){let a=b+":",c=d;d=b=>b.startsWith(a)?c(b.substring(a.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:b,maybePostfixModifierPosition:void 0}}if(c){let a=d;d=b=>c({className:b,parseClassName:a})}return d})(j),sortModifiers:(a=>{let b=Object.fromEntries(a.orderSensitiveModifiers.map(a=>[a,!0]));return a=>{if(a.length<=1)return a;let c=[],d=[];return a.forEach(a=>{"["===a[0]||b[a]?(c.push(...d.sort(),a),d=[]):d.push(a)}),c.push(...d.sort()),c}})(j),...(a=>{let b=(a=>{let{theme:b,classGroups:c}=a,d={nextPart:new Map,validators:[]};for(let a in c)f(c[a],d,a,b);return d})(a),{conflictingClassGroups:c,conflictingClassGroupModifiers:g}=a;return{getClassGroupId:a=>{let c=a.split("-");return""===c[0]&&1!==c.length&&c.shift(),d(c,b)||(a=>{if(e.test(a)){let b=e.exec(a)[1],c=b?.substring(0,b.indexOf(":"));if(c)return"arbitrary.."+c}})(a)},getConflictingClassGroupIds:(a,b)=>{let d=c[a]||[];return b&&g[a]?[...d,...g[a]]:d}}})(j)}).cache.get,h=c.cache.set,k=l,l(i)};function l(a){let b=g(a);if(b)return b;let d=((a,b)=>{let{parseClassName:c,getClassGroupId:d,getConflictingClassGroupIds:e,sortModifiers:f}=b,g=[],h=a.trim().split(i),j="";for(let a=h.length-1;a>=0;a-=1){let b=h[a],{isExternal:i,modifiers:k,hasImportantModifier:l,baseClassName:m,maybePostfixModifierPosition:n}=c(b);if(i){j=b+(j.length>0?" "+j:j);continue}let o=!!n,p=d(o?m.substring(0,n):m);if(!p){if(!o||!(p=d(m))){j=b+(j.length>0?" "+j:j);continue}o=!1}let q=f(k).join(":"),r=l?q+"!":q,s=r+p;if(g.includes(s))continue;g.push(s);let t=e(p,o);for(let a=0;a0?" "+j:j)}return j})(a,c);return h(a,d),d}return function(){return k(j.apply(null,arguments))}}(()=>{let a=l("color"),b=l("font"),c=l("text"),d=l("font-weight"),e=l("tracking"),f=l("leading"),g=l("breakpoint"),h=l("container"),i=l("spacing"),j=l("radius"),k=l("shadow"),m=l("inset-shadow"),n=l("text-shadow"),o=l("drop-shadow"),p=l("blur"),q=l("perspective"),r=l("aspect"),s=l("ease"),t=l("animate"),A=()=>["auto","avoid","all","avoid-page","page","left","right","column"],B=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],C=()=>[...B(),M,G],D=()=>["auto","hidden","clip","visible","scroll"],T=()=>["auto","contain","none"],U=()=>[M,G,i],V=()=>[u,"full","auto",...U()],W=()=>[w,"none","subgrid",M,G],X=()=>["auto",{span:["full",w,M,G]},w,M,G],Y=()=>[w,"auto",M,G],Z=()=>["auto","min","max","fr",M,G],$=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],_=()=>["start","end","center","stretch","center-safe","end-safe"],aa=()=>["auto",...U()],ab=()=>[u,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...U()],ac=()=>[a,M,G],ad=()=>[...B(),P,J,{position:[M,G]}],ae=()=>["no-repeat",{repeat:["","x","y","space","round"]}],af=()=>["auto","cover","contain",Q,F,{size:[M,G]}],ag=()=>[x,N,H],ah=()=>["","none","full",j,M,G],ai=()=>["",v,N,H],aj=()=>["solid","dashed","dotted","double"],ak=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],al=()=>[v,x,P,J],am=()=>["","none",p,M,G],an=()=>["none",v,M,G],ao=()=>["none",v,M,G],ap=()=>[v,M,G],aq=()=>[u,"full",...U()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[y],breakpoint:[y],color:[z],container:[y],"drop-shadow":[y],ease:["in","out","in-out"],font:[E],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[y],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[y],shadow:[y],spacing:["px",v],text:[y],"text-shadow":[y],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",u,G,M,r]}],container:["container"],columns:[{columns:[v,G,M,h]}],"break-after":[{"break-after":A()}],"break-before":[{"break-before":A()}],"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"],sr:["sr-only","not-sr-only"],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:C()}],overflow:[{overflow:D()}],"overflow-x":[{"overflow-x":D()}],"overflow-y":[{"overflow-y":D()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:V()}],"inset-x":[{"inset-x":V()}],"inset-y":[{"inset-y":V()}],start:[{start:V()}],end:[{end:V()}],top:[{top:V()}],right:[{right:V()}],bottom:[{bottom:V()}],left:[{left:V()}],visibility:["visible","invisible","collapse"],z:[{z:[w,"auto",M,G]}],basis:[{basis:[u,"full","auto",h,...U()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[v,u,"auto","initial","none",G]}],grow:[{grow:["",v,M,G]}],shrink:[{shrink:["",v,M,G]}],order:[{order:[w,"first","last","none",M,G]}],"grid-cols":[{"grid-cols":W()}],"col-start-end":[{col:X()}],"col-start":[{"col-start":Y()}],"col-end":[{"col-end":Y()}],"grid-rows":[{"grid-rows":W()}],"row-start-end":[{row:X()}],"row-start":[{"row-start":Y()}],"row-end":[{"row-end":Y()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Z()}],"auto-rows":[{"auto-rows":Z()}],gap:[{gap:U()}],"gap-x":[{"gap-x":U()}],"gap-y":[{"gap-y":U()}],"justify-content":[{justify:[...$(),"normal"]}],"justify-items":[{"justify-items":[..._(),"normal"]}],"justify-self":[{"justify-self":["auto",..._()]}],"align-content":[{content:["normal",...$()]}],"align-items":[{items:[..._(),{baseline:["","last"]}]}],"align-self":[{self:["auto",..._(),{baseline:["","last"]}]}],"place-content":[{"place-content":$()}],"place-items":[{"place-items":[..._(),"baseline"]}],"place-self":[{"place-self":["auto",..._()]}],p:[{p:U()}],px:[{px:U()}],py:[{py:U()}],ps:[{ps:U()}],pe:[{pe:U()}],pt:[{pt:U()}],pr:[{pr:U()}],pb:[{pb:U()}],pl:[{pl:U()}],m:[{m:aa()}],mx:[{mx:aa()}],my:[{my:aa()}],ms:[{ms:aa()}],me:[{me:aa()}],mt:[{mt:aa()}],mr:[{mr:aa()}],mb:[{mb:aa()}],ml:[{ml:aa()}],"space-x":[{"space-x":U()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":U()}],"space-y-reverse":["space-y-reverse"],size:[{size:ab()}],w:[{w:[h,"screen",...ab()]}],"min-w":[{"min-w":[h,"screen","none",...ab()]}],"max-w":[{"max-w":[h,"screen","none","prose",{screen:[g]},...ab()]}],h:[{h:["screen","lh",...ab()]}],"min-h":[{"min-h":["screen","lh","none",...ab()]}],"max-h":[{"max-h":["screen","lh",...ab()]}],"font-size":[{text:["base",c,N,H]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[d,M,I]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",x,G]}],"font-family":[{font:[O,G,b]}],"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:[e,M,G]}],"line-clamp":[{"line-clamp":[v,"none",M,I]}],leading:[{leading:[f,...U()]}],"list-image":[{"list-image":["none",M,G]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",M,G]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:ac()}],"text-color":[{text:ac()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...aj(),"wavy"]}],"text-decoration-thickness":[{decoration:[v,"from-font","auto",M,H]}],"text-decoration-color":[{decoration:ac()}],"underline-offset":[{"underline-offset":[v,"auto",M,G]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:U()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",M,G]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",M,G]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ad()}],"bg-repeat":[{bg:ae()}],"bg-size":[{bg:af()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},w,M,G],radial:["",M,G],conic:[w,M,G]},R,K]}],"bg-color":[{bg:ac()}],"gradient-from-pos":[{from:ag()}],"gradient-via-pos":[{via:ag()}],"gradient-to-pos":[{to:ag()}],"gradient-from":[{from:ac()}],"gradient-via":[{via:ac()}],"gradient-to":[{to:ac()}],rounded:[{rounded:ah()}],"rounded-s":[{"rounded-s":ah()}],"rounded-e":[{"rounded-e":ah()}],"rounded-t":[{"rounded-t":ah()}],"rounded-r":[{"rounded-r":ah()}],"rounded-b":[{"rounded-b":ah()}],"rounded-l":[{"rounded-l":ah()}],"rounded-ss":[{"rounded-ss":ah()}],"rounded-se":[{"rounded-se":ah()}],"rounded-ee":[{"rounded-ee":ah()}],"rounded-es":[{"rounded-es":ah()}],"rounded-tl":[{"rounded-tl":ah()}],"rounded-tr":[{"rounded-tr":ah()}],"rounded-br":[{"rounded-br":ah()}],"rounded-bl":[{"rounded-bl":ah()}],"border-w":[{border:ai()}],"border-w-x":[{"border-x":ai()}],"border-w-y":[{"border-y":ai()}],"border-w-s":[{"border-s":ai()}],"border-w-e":[{"border-e":ai()}],"border-w-t":[{"border-t":ai()}],"border-w-r":[{"border-r":ai()}],"border-w-b":[{"border-b":ai()}],"border-w-l":[{"border-l":ai()}],"divide-x":[{"divide-x":ai()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ai()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...aj(),"hidden","none"]}],"divide-style":[{divide:[...aj(),"hidden","none"]}],"border-color":[{border:ac()}],"border-color-x":[{"border-x":ac()}],"border-color-y":[{"border-y":ac()}],"border-color-s":[{"border-s":ac()}],"border-color-e":[{"border-e":ac()}],"border-color-t":[{"border-t":ac()}],"border-color-r":[{"border-r":ac()}],"border-color-b":[{"border-b":ac()}],"border-color-l":[{"border-l":ac()}],"divide-color":[{divide:ac()}],"outline-style":[{outline:[...aj(),"none","hidden"]}],"outline-offset":[{"outline-offset":[v,M,G]}],"outline-w":[{outline:["",v,N,H]}],"outline-color":[{outline:ac()}],shadow:[{shadow:["","none",k,S,L]}],"shadow-color":[{shadow:ac()}],"inset-shadow":[{"inset-shadow":["none",m,S,L]}],"inset-shadow-color":[{"inset-shadow":ac()}],"ring-w":[{ring:ai()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:ac()}],"ring-offset-w":[{"ring-offset":[v,H]}],"ring-offset-color":[{"ring-offset":ac()}],"inset-ring-w":[{"inset-ring":ai()}],"inset-ring-color":[{"inset-ring":ac()}],"text-shadow":[{"text-shadow":["none",n,S,L]}],"text-shadow-color":[{"text-shadow":ac()}],opacity:[{opacity:[v,M,G]}],"mix-blend":[{"mix-blend":[...ak(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ak()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[v]}],"mask-image-linear-from-pos":[{"mask-linear-from":al()}],"mask-image-linear-to-pos":[{"mask-linear-to":al()}],"mask-image-linear-from-color":[{"mask-linear-from":ac()}],"mask-image-linear-to-color":[{"mask-linear-to":ac()}],"mask-image-t-from-pos":[{"mask-t-from":al()}],"mask-image-t-to-pos":[{"mask-t-to":al()}],"mask-image-t-from-color":[{"mask-t-from":ac()}],"mask-image-t-to-color":[{"mask-t-to":ac()}],"mask-image-r-from-pos":[{"mask-r-from":al()}],"mask-image-r-to-pos":[{"mask-r-to":al()}],"mask-image-r-from-color":[{"mask-r-from":ac()}],"mask-image-r-to-color":[{"mask-r-to":ac()}],"mask-image-b-from-pos":[{"mask-b-from":al()}],"mask-image-b-to-pos":[{"mask-b-to":al()}],"mask-image-b-from-color":[{"mask-b-from":ac()}],"mask-image-b-to-color":[{"mask-b-to":ac()}],"mask-image-l-from-pos":[{"mask-l-from":al()}],"mask-image-l-to-pos":[{"mask-l-to":al()}],"mask-image-l-from-color":[{"mask-l-from":ac()}],"mask-image-l-to-color":[{"mask-l-to":ac()}],"mask-image-x-from-pos":[{"mask-x-from":al()}],"mask-image-x-to-pos":[{"mask-x-to":al()}],"mask-image-x-from-color":[{"mask-x-from":ac()}],"mask-image-x-to-color":[{"mask-x-to":ac()}],"mask-image-y-from-pos":[{"mask-y-from":al()}],"mask-image-y-to-pos":[{"mask-y-to":al()}],"mask-image-y-from-color":[{"mask-y-from":ac()}],"mask-image-y-to-color":[{"mask-y-to":ac()}],"mask-image-radial":[{"mask-radial":[M,G]}],"mask-image-radial-from-pos":[{"mask-radial-from":al()}],"mask-image-radial-to-pos":[{"mask-radial-to":al()}],"mask-image-radial-from-color":[{"mask-radial-from":ac()}],"mask-image-radial-to-color":[{"mask-radial-to":ac()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":B()}],"mask-image-conic-pos":[{"mask-conic":[v]}],"mask-image-conic-from-pos":[{"mask-conic-from":al()}],"mask-image-conic-to-pos":[{"mask-conic-to":al()}],"mask-image-conic-from-color":[{"mask-conic-from":ac()}],"mask-image-conic-to-color":[{"mask-conic-to":ac()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ad()}],"mask-repeat":[{mask:ae()}],"mask-size":[{mask:af()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",M,G]}],filter:[{filter:["","none",M,G]}],blur:[{blur:am()}],brightness:[{brightness:[v,M,G]}],contrast:[{contrast:[v,M,G]}],"drop-shadow":[{"drop-shadow":["","none",o,S,L]}],"drop-shadow-color":[{"drop-shadow":ac()}],grayscale:[{grayscale:["",v,M,G]}],"hue-rotate":[{"hue-rotate":[v,M,G]}],invert:[{invert:["",v,M,G]}],saturate:[{saturate:[v,M,G]}],sepia:[{sepia:["",v,M,G]}],"backdrop-filter":[{"backdrop-filter":["","none",M,G]}],"backdrop-blur":[{"backdrop-blur":am()}],"backdrop-brightness":[{"backdrop-brightness":[v,M,G]}],"backdrop-contrast":[{"backdrop-contrast":[v,M,G]}],"backdrop-grayscale":[{"backdrop-grayscale":["",v,M,G]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[v,M,G]}],"backdrop-invert":[{"backdrop-invert":["",v,M,G]}],"backdrop-opacity":[{"backdrop-opacity":[v,M,G]}],"backdrop-saturate":[{"backdrop-saturate":[v,M,G]}],"backdrop-sepia":[{"backdrop-sepia":["",v,M,G]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":U()}],"border-spacing-x":[{"border-spacing-x":U()}],"border-spacing-y":[{"border-spacing-y":U()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",M,G]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[v,"initial",M,G]}],ease:[{ease:["linear","initial",s,M,G]}],delay:[{delay:[v,M,G]}],animate:[{animate:["none",t,M,G]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[q,M,G]}],"perspective-origin":[{"perspective-origin":C()}],rotate:[{rotate:an()}],"rotate-x":[{"rotate-x":an()}],"rotate-y":[{"rotate-y":an()}],"rotate-z":[{"rotate-z":an()}],scale:[{scale:ao()}],"scale-x":[{"scale-x":ao()}],"scale-y":[{"scale-y":ao()}],"scale-z":[{"scale-z":ao()}],"scale-3d":["scale-3d"],skew:[{skew:ap()}],"skew-x":[{"skew-x":ap()}],"skew-y":[{"skew-y":ap()}],transform:[{transform:[M,G,"","none","gpu","cpu"]}],"transform-origin":[{origin:C()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:aq()}],"translate-x":[{"translate-x":aq()}],"translate-y":[{"translate-y":aq()}],"translate-z":[{"translate-z":aq()}],"translate-none":["translate-none"],accent:[{accent:ac()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:ac()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",M,G]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-me":[{"scroll-me":U()}],"scroll-mt":[{"scroll-mt":U()}],"scroll-mr":[{"scroll-mr":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-ml":[{"scroll-ml":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-ps":[{"scroll-ps":U()}],"scroll-pe":[{"scroll-pe":U()}],"scroll-pt":[{"scroll-pt":U()}],"scroll-pr":[{"scroll-pr":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-pl":[{"scroll-pl":U()}],"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",M,G]}],fill:[{fill:["none",...ac()]}],"stroke-w":[{stroke:[v,N,H,I]}],stroke:[{stroke:["none",...ac()]}],"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-x","border-w-y","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-x","border-color-y","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}})},59156:(a,b)=>{"use strict";b.__esModule=!0,b.default=function(a){"object"!=typeof globalThis&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__);var b=globalThis.Handlebars;a.noConflict=function(){return globalThis.Handlebars===a&&(globalThis.Handlebars=b),a}},a.exports=b.default},60073:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]])},61225:(a,b,c)=>{"use strict";c.d(b,{Eq:()=>j});var d=new WeakMap,e=new WeakMap,f={},g=0,h=function(a){return a&&(a.host||h(a.parentNode))},i=function(a,b,c,i){var j=(Array.isArray(a)?a:[a]).map(function(a){if(b.contains(a))return a;var c=h(a);return c&&b.contains(c)?c:(console.error("aria-hidden",a,"in not contained inside",b,". Doing nothing"),null)}).filter(function(a){return!!a});f[c]||(f[c]=new WeakMap);var k=f[c],l=[],m=new Set,n=new Set(j),o=function(a){!a||m.has(a)||(m.add(a),o(a.parentNode))};j.forEach(o);var p=function(a){!a||n.has(a)||Array.prototype.forEach.call(a.children,function(a){if(m.has(a))p(a);else try{var b=a.getAttribute(i),f=null!==b&&"false"!==b,g=(d.get(a)||0)+1,h=(k.get(a)||0)+1;d.set(a,g),k.set(a,h),l.push(a),1===g&&f&&e.set(a,!0),1===h&&a.setAttribute(c,"true"),f||a.setAttribute(i,"true")}catch(b){console.error("aria-hidden: cannot operate on ",a,b)}})};return p(b),m.clear(),g++,function(){l.forEach(function(a){var b=d.get(a)-1,f=k.get(a)-1;d.set(a,b),k.set(a,f),b||(e.has(a)||a.removeAttribute(i),e.delete(a)),f||a.removeAttribute(c)}),--g||(d=new WeakMap,d=new WeakMap,e=new WeakMap,f={})}},j=function(a,b,c){void 0===c&&(c="data-aria-hidden");var d=Array.from(Array.isArray(a)?a:[a]),e=b||("undefined"==typeof document?null:(Array.isArray(a)?a[0]:a).ownerDocument.body);return e?(d.push.apply(d,Array.from(e.querySelectorAll("[aria-live], script"))),i(d,e,c,"aria-hidden")):function(){return null}}},61494:(a,b,c)=>{"use strict";var d=c(75074),e=c(20452),f=c(65353),g=c(34072),h=c(5887),i=c(21843),j=c(82601),k=c(54453),l=c(8153),m=c(6401),n=function(a,b,c){var d,g=e.getTypeOf(b),k=e.extend(c||{},h);k.date=k.date||new Date,null!==k.compression&&(k.compression=k.compression.toUpperCase()),"string"==typeof k.unixPermissions&&(k.unixPermissions=parseInt(k.unixPermissions,8)),k.unixPermissions&&16384&k.unixPermissions&&(k.dir=!0),k.dosPermissions&&16&k.dosPermissions&&(k.dir=!0),k.dir&&(a=p(a)),k.createFolders&&(d=o(a))&&q.call(this,d,!0);var n="string"===g&&!1===k.binary&&!1===k.base64;c&&void 0!==c.binary||(k.binary=!n),(b instanceof i&&0===b.uncompressedSize||k.dir||!b||0===b.length)&&(k.base64=!1,k.binary=!0,b="",k.compression="STORE",g="string");var r=null;r=b instanceof i||b instanceof f?b:l.isNode&&l.isStream(b)?new m(a,b):e.prepareContent(a,b,k.binary,k.optimizedBinaryString,k.base64);var s=new j(a,r,k);this.files[a]=s},o=function(a){"/"===a.slice(-1)&&(a=a.substring(0,a.length-1));var b=a.lastIndexOf("/");return b>0?a.substring(0,b):""},p=function(a){return"/"!==a.slice(-1)&&(a+="/"),a},q=function(a,b){return b=void 0!==b?b:h.createFolders,a=p(a),this.files[a]||n.call(this,a,null,{dir:!0,createFolders:b}),this.files[a]};function r(a){return"[object RegExp]"===Object.prototype.toString.call(a)}a.exports={load:function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(a){var b,c,d;for(b in this.files)d=this.files[b],(c=b.slice(this.root.length,b.length))&&b.slice(0,this.root.length)===this.root&&a(c,d)},filter:function(a){var b=[];return this.forEach(function(c,d){a(c,d)&&b.push(d)}),b},file:function(a,b,c){if(1==arguments.length)if(r(a)){var d=a;return this.filter(function(a,b){return!b.dir&&d.test(a)})}else{var e=this.files[this.root+a];return e&&!e.dir?e:null}return a=this.root+a,n.call(this,a,b,c),this},folder:function(a){if(!a)return this;if(r(a))return this.filter(function(b,c){return c.dir&&a.test(b)});var b=this.root+a,c=q.call(this,b),d=this.clone();return d.root=c.name,d},remove:function(a){a=this.root+a;var b=this.files[a];if(b||("/"!==a.slice(-1)&&(a+="/"),b=this.files[a]),b&&!b.dir)delete this.files[a];else for(var c=this.filter(function(b,c){return c.name.slice(0,a.length)===a}),d=0;d{"use strict";c.d(b,{Z:()=>i});var d=c(38301),e=c(23312),f=c(6406),g=c(68829),h=c(21124),i=d.forwardRef((a,b)=>{let{container:c,...i}=a,[j,k]=d.useState(!1);(0,g.N)(()=>k(!0),[]);let l=c||j&&globalThis?.document?.body;return l?e.createPortal((0,h.jsx)(f.sG.div,{...i,ref:b}),l):null});i.displayName="Portal"},62253:(a,b,c)=>{var d=c(79428),e=d.Buffer;function f(a,b){for(var c in a)b[c]=a[c]}function g(a,b,c){return e(a,b,c)}e.from&&e.alloc&&e.allocUnsafe&&e.allocUnsafeSlow?a.exports=d:(f(d,b),b.Buffer=g),f(e,g),g.from=function(a,b,c){if("number"==typeof a)throw TypeError("Argument must not be a number");return e(a,b,c)},g.alloc=function(a,b,c){if("number"!=typeof a)throw TypeError("Argument must be a number");var d=e(a);return void 0!==b?"string"==typeof c?d.fill(b,c):d.fill(b):d.fill(0),d},g.allocUnsafe=function(a){if("number"!=typeof a)throw TypeError("Argument must be a number");return e(a)},g.allocUnsafeSlow=function(a){if("number"!=typeof a)throw TypeError("Argument must be a number");return d.SlowBuffer(a)}},63046:a=>{var b={}.toString;a.exports=Array.isArray||function(a){return"[object Array]"==b.call(a)}},64685:(a,b)=>{"use strict";function c(a){this.string=a}b.__esModule=!0,c.prototype.toString=c.prototype.toHTML=function(){return""+this.string},b.default=c,a.exports=b.default},65353:a=>{"use strict";function b(a){this.name=a||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}b.prototype={push:function(a){this.emit("data",a)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(a){this.emit("error",a)}return!0},error:function(a){return!this.isFinished&&(this.isPaused?this.generatedError=a:(this.isFinished=!0,this.emit("error",a),this.previous&&this.previous.error(a),this.cleanUp()),!0)},on:function(a,b){return this._listeners[a].push(b),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(a,b){if(this._listeners[a])for(var c=0;c "+a:a}},a.exports=b},67025:(a,b)=>{"use strict";b.__esModule=!0,b.default=function(){var a,b={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:function(a,b,c,d,e,f,g){var h=f.length-1;switch(e){case 1:return f[h-1];case 2:this.$=d.prepareProgram(f[h]);break;case 3:case 4:case 5:case 6:case 7:case 8:case 20:case 27:case 28:case 33:case 34:case 40:case 41:this.$=f[h];break;case 9:this.$={type:"CommentStatement",value:d.stripComment(f[h]),strip:d.stripFlags(f[h],f[h]),loc:d.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:f[h],value:f[h],loc:d.locInfo(this._$)};break;case 11:this.$=d.prepareRawBlock(f[h-2],f[h-1],f[h],this._$);break;case 12:this.$={path:f[h-3],params:f[h-2],hash:f[h-1]};break;case 13:this.$=d.prepareBlock(f[h-3],f[h-2],f[h-1],f[h],!1,this._$);break;case 14:this.$=d.prepareBlock(f[h-3],f[h-2],f[h-1],f[h],!0,this._$);break;case 15:this.$={open:f[h-5],path:f[h-4],params:f[h-3],hash:f[h-2],blockParams:f[h-1],strip:d.stripFlags(f[h-5],f[h])};break;case 16:case 17:this.$={path:f[h-4],params:f[h-3],hash:f[h-2],blockParams:f[h-1],strip:d.stripFlags(f[h-5],f[h])};break;case 18:this.$={strip:d.stripFlags(f[h-1],f[h-1]),program:f[h]};break;case 19:var i=d.prepareBlock(f[h-2],f[h-1],f[h],f[h],!1,this._$),j=d.prepareProgram([i],f[h-1].loc);j.chained=!0,this.$={strip:f[h-2].strip,program:j,chain:!0};break;case 21:this.$={path:f[h-1],strip:d.stripFlags(f[h-2],f[h])};break;case 22:case 23:this.$=d.prepareMustache(f[h-3],f[h-2],f[h-1],f[h-4],d.stripFlags(f[h-4],f[h]),this._$);break;case 24:this.$={type:"PartialStatement",name:f[h-3],params:f[h-2],hash:f[h-1],indent:"",strip:d.stripFlags(f[h-4],f[h]),loc:d.locInfo(this._$)};break;case 25:this.$=d.preparePartialBlock(f[h-2],f[h-1],f[h],this._$);break;case 26:this.$={path:f[h-3],params:f[h-2],hash:f[h-1],strip:d.stripFlags(f[h-4],f[h])};break;case 29:this.$={type:"SubExpression",path:f[h-3],params:f[h-2],hash:f[h-1],loc:d.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:f[h],loc:d.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:d.id(f[h-2]),value:f[h],loc:d.locInfo(this._$)};break;case 32:this.$=d.id(f[h-1]);break;case 35:this.$={type:"StringLiteral",value:f[h],original:f[h],loc:d.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(f[h]),original:Number(f[h]),loc:d.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:"true"===f[h],original:"true"===f[h],loc:d.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:d.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:d.locInfo(this._$)};break;case 42:this.$=d.preparePath(!0,f[h],this._$);break;case 43:this.$=d.preparePath(!1,f[h],this._$);break;case 44:f[h-2].push({part:d.id(f[h]),original:f[h],separator:f[h-1]}),this.$=f[h-2];break;case 45:this.$=[{part:d.id(f[h]),original:f[h]}];break;case 46:case 48:case 50:case 58:case 64:case 70:case 78:case 82:case 86:case 90:case 94:this.$=[];break;case 47:case 49:case 51:case 59:case 65:case 71:case 79:case 83:case 87:case 91:case 95:case 99:case 101:f[h-1].push(f[h]);break;case 98:case 100:this.$=[f[h]]}},table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:function(a,b){throw Error(a)},parse:function(a){var b=this,c=[0],d=[null],e=[],f=this.table,g="",h=0,i=0,j=0;this.lexer.setInput(a),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,void 0===this.lexer.yylloc&&(this.lexer.yylloc={});var k=this.lexer.yylloc;e.push(k);var l=this.lexer.options&&this.lexer.options.ranges;"function"==typeof this.yy.parseError&&(this.parseError=this.yy.parseError);for(var m,n,o,p,q,r,s,t,u,v={};;){if(o=c[c.length-1],this.defaultActions[o]?p=this.defaultActions[o]:(null==m&&(m=function(){var a;return"number"!=typeof(a=b.lexer.lex()||1)&&(a=b.symbols_[a]||a),a}()),p=f[o]&&f[o][m]),void 0===p||!p.length||!p[0]){var w="";if(!j){for(r in u=[],f[o])this.terminals_[r]&&r>2&&u.push("'"+this.terminals_[r]+"'");w=this.lexer.showPosition?"Parse error on line "+(h+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+u.join(", ")+", got '"+(this.terminals_[m]||m)+"'":"Parse error on line "+(h+1)+": Unexpected "+(1==m?"end of input":"'"+(this.terminals_[m]||m)+"'"),this.parseError(w,{text:this.lexer.match,token:this.terminals_[m]||m,line:this.lexer.yylineno,loc:k,expected:u})}}if(p[0]instanceof Array&&p.length>1)throw Error("Parse Error: multiple actions possible at state: "+o+", token: "+m);switch(p[0]){case 1:c.push(m),d.push(this.lexer.yytext),e.push(this.lexer.yylloc),c.push(p[1]),m=null,n?(m=n,n=null):(i=this.lexer.yyleng,g=this.lexer.yytext,h=this.lexer.yylineno,k=this.lexer.yylloc,j>0&&j--);break;case 2:if(s=this.productions_[p[1]][1],v.$=d[d.length-s],v._$={first_line:e[e.length-(s||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(s||1)].first_column,last_column:e[e.length-1].last_column},l&&(v._$.range=[e[e.length-(s||1)].range[0],e[e.length-1].range[1]]),void 0!==(q=this.performAction.call(v,g,i,h,this.yy,p[1],d,e)))return q;s&&(c=c.slice(0,-1*s*2),d=d.slice(0,-1*s),e=e.slice(0,-1*s)),c.push(this.productions_[p[1]][0]),d.push(v.$),e.push(v._$),t=f[c[c.length-2]][c[c.length-1]],c.push(t);break;case 3:return!0}}return!0}};function c(){this.yy={}}return(a={EOF:1,parseError:function(a,b){if(this.yy.parser)this.yy.parser.parseError(a,b);else throw Error(a)},setInput:function(a){return this._input=a,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var a=this._input[0];return this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a,a.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},unput:function(a){var b=a.length,c=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-b-1),this.offset-=b;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var e=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===d.length?this.yylloc.first_column:0)+d[d.length-c.length].length-c[0].length:this.yylloc.first_column-b},this.options.ranges&&(this.yylloc.range=[e[0],e[0]+this.yyleng-b]),this},more:function(){return this._more=!0,this},less:function(a){this.unput(this.match.slice(a))},pastInput:function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var a=this.pastInput(),b=Array(a.length+1).join("-");return a+this.upcomingInput()+"\n"+b+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var a,b,c,d,e,f=this._currentRules(),g=0;gb[0].length)||(b=c,d=g,this.options.flex));g++);return b?((e=b[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=e.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:e?e[e.length-1].length-e[e.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+b[0].length},this.yytext+=b[0],this.match+=b[0],this.matches=b,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(b[0].length),this.matched+=b[0],a=this.performAction.call(this,this.yy,this,f[d],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a)?a:void 0:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var a=this.next();return void 0!==a?a:this.lex()},begin:function(a){this.conditionStack.push(a)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(a){this.begin(a)}}).options={},a.performAction=function(a,b,c,d){function e(a,c){return b.yytext=b.yytext.substring(a,b.yyleng-c+a)}switch(c){case 0:if("\\\\"===b.yytext.slice(-2)?(e(0,1),this.begin("mu")):"\\"===b.yytext.slice(-1)?(e(0,1),this.begin("emu")):this.begin("mu"),b.yytext)return 15;break;case 1:case 5:return 15;case 2:return this.popState(),15;case 3:return this.begin("raw"),15;case 4:if(this.popState(),"raw"===this.conditionStack[this.conditionStack.length-1])return 15;return e(5,9),"END_RAW_BLOCK";case 6:case 22:return this.popState(),14;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:case 16:return this.popState(),44;case 17:return 34;case 18:return 39;case 19:return 51;case 20:case 23:return 48;case 21:this.unput(b.yytext),this.popState(),this.begin("com");break;case 24:return 73;case 25:case 26:case 41:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;case 30:return this.popState(),33;case 31:return b.yytext=e(1,2).replace(/\\"/g,'"'),80;case 32:return b.yytext=e(1,2).replace(/\\'/g,"'"),80;case 33:return 85;case 34:case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 42:return b.yytext=b.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},a.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],a.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},b.lexer=a,c.prototype=b,b.Parser=c,new c}(),a.exports=b.default},67055:(a,b,c)=>{"use strict";var d=c(65353),e=c(20452);function f(a){d.call(this,"ConvertWorker to "+a),this.destType=a}e.inherits(f,d),f.prototype.processChunk=function(a){this.push({data:e.transformTo(this.destType,a.data),meta:a.meta})},a.exports=f},68829:(a,b,c)=>{"use strict";c.d(b,{N:()=>e});var d=c(38301),e=globalThis?.document?d.useLayoutEffect:()=>{}},69082:(a,b,c)=>{function d(a){return Object.prototype.toString.call(a)}b.isArray=function(a){return Array.isArray?Array.isArray(a):"[object Array]"===d(a)},b.isBoolean=function(a){return"boolean"==typeof a},b.isNull=function(a){return null===a},b.isNullOrUndefined=function(a){return null==a},b.isNumber=function(a){return"number"==typeof a},b.isString=function(a){return"string"==typeof a},b.isSymbol=function(a){return"symbol"==typeof a},b.isUndefined=function(a){return void 0===a},b.isRegExp=function(a){return"[object RegExp]"===d(a)},b.isObject=function(a){return"object"==typeof a&&null!==a},b.isDate=function(a){return"[object Date]"===d(a)},b.isError=function(a){return"[object Error]"===d(a)||a instanceof Error},b.isFunction=function(a){return"function"==typeof a},b.isPrimitive=function(a){return null===a||"boolean"==typeof a||"number"==typeof a||"string"==typeof a||"symbol"==typeof a||void 0===a},b.isBuffer=c(79428).Buffer.isBuffer},69720:(a,b,c)=>{a.exports=c(27910)},69998:(a,b,c)=>{"use strict";c.d(b,{n:()=>l});var d=c(38301),e=c(92808),f=c(6406),g=c(71700),h=c(21124),i="focusScope.autoFocusOnMount",j="focusScope.autoFocusOnUnmount",k={bubbles:!1,cancelable:!0},l=d.forwardRef((a,b)=>{let{loop:c=!1,trapped:l=!1,onMountAutoFocus:q,onUnmountAutoFocus:r,...s}=a,[t,u]=d.useState(null),v=(0,g.c)(q),w=(0,g.c)(r),x=d.useRef(null),y=(0,e.s)(b,a=>u(a)),z=d.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;d.useEffect(()=>{if(l){let a=function(a){if(z.paused||!t)return;let b=a.target;t.contains(b)?x.current=b:o(x.current,{select:!0})},b=function(a){if(z.paused||!t)return;let b=a.relatedTarget;null!==b&&(t.contains(b)||o(x.current,{select:!0}))};document.addEventListener("focusin",a),document.addEventListener("focusout",b);let c=new MutationObserver(function(a){if(document.activeElement===document.body)for(let b of a)b.removedNodes.length>0&&o(t)});return t&&c.observe(t,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",a),document.removeEventListener("focusout",b),c.disconnect()}}},[l,t,z.paused]),d.useEffect(()=>{if(t){p.add(z);let a=document.activeElement;if(!t.contains(a)){let b=new CustomEvent(i,k);t.addEventListener(i,v),t.dispatchEvent(b),b.defaultPrevented||(function(a,{select:b=!1}={}){let c=document.activeElement;for(let d of a)if(o(d,{select:b}),document.activeElement!==c)return}(m(t).filter(a=>"A"!==a.tagName),{select:!0}),document.activeElement===a&&o(t))}return()=>{t.removeEventListener(i,v),setTimeout(()=>{let b=new CustomEvent(j,k);t.addEventListener(j,w),t.dispatchEvent(b),b.defaultPrevented||o(a??document.body,{select:!0}),t.removeEventListener(j,w),p.remove(z)},0)}}},[t,v,w,z]);let A=d.useCallback(a=>{if(!c&&!l||z.paused)return;let b="Tab"===a.key&&!a.altKey&&!a.ctrlKey&&!a.metaKey,d=document.activeElement;if(b&&d){let b=a.currentTarget,[e,f]=function(a){let b=m(a);return[n(b,a),n(b.reverse(),a)]}(b);e&&f?a.shiftKey||d!==f?a.shiftKey&&d===e&&(a.preventDefault(),c&&o(f,{select:!0})):(a.preventDefault(),c&&o(e,{select:!0})):d===b&&a.preventDefault()}},[c,l,z.paused]);return(0,h.jsx)(f.sG.div,{tabIndex:-1,...s,ref:y,onKeyDown:A})});function m(a){let b=[],c=document.createTreeWalker(a,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{let b="INPUT"===a.tagName&&"hidden"===a.type;return a.disabled||a.hidden||b?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;c.nextNode();)b.push(c.currentNode);return b}function n(a,b){for(let c of a)if(!function(a,{upTo:b}){if("hidden"===getComputedStyle(a).visibility)return!0;for(;a&&(void 0===b||a!==b);){if("none"===getComputedStyle(a).display)return!0;a=a.parentElement}return!1}(c,{upTo:b}))return c}function o(a,{select:b=!1}={}){if(a&&a.focus){var c;let d=document.activeElement;a.focus({preventScroll:!0}),a!==d&&(c=a)instanceof HTMLInputElement&&"select"in c&&b&&a.select()}}l.displayName="FocusScope";var p=function(){let a=[];return{add(b){let c=a[0];b!==c&&c?.pause(),(a=q(a,b)).unshift(b)},remove(b){a=q(a,b),a[0]?.resume()}}}();function q(a,b){let c=[...a],d=c.indexOf(b);return -1!==d&&c.splice(d,1),c}},70904:(a,b,c)=>{"use strict";c.d(b,{Oh:()=>f});var d=c(38301),e=0;function f(){d.useEffect(()=>{let a=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",a[0]??g()),document.body.insertAdjacentElement("beforeend",a[1]??g()),e++,()=>{1===e&&document.querySelectorAll("[data-radix-focus-guard]").forEach(a=>a.remove()),e--}},[])}function g(){let a=document.createElement("span");return a.setAttribute("data-radix-focus-guard",""),a.tabIndex=0,a.style.outline="none",a.style.opacity="0",a.style.position="fixed",a.style.pointerEvents="none",a}},71613:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},71700:(a,b,c)=>{"use strict";c.d(b,{c:()=>e});var d=c(38301);function e(a){let b=d.useRef(a);return d.useEffect(()=>{b.current=a}),d.useMemo(()=>(...a)=>b.current?.(...a),[])}},72380:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]])},74758:(a,b)=>{"use strict";b.__esModule=!0,b.default=function(a){a.registerHelper("lookup",function(a,b,c){return a?c.lookupProperty(a,b):a})},a.exports=b.default},75074:(a,b,c)=>{"use strict";for(var d=c(20452),e=c(9926),f=c(8153),g=c(65353),h=Array(256),i=0;i<256;i++)h[i]=i>=252?6:i>=248?5:i>=240?4:i>=224?3:i>=192?2:1;h[254]=h[254]=1;var j=function(a){var b,c,d,f,g,h=a.length,i=0;for(f=0;f>>6:(c<65536?b[g++]=224|c>>>12:(b[g++]=240|c>>>18,b[g++]=128|c>>>12&63),b[g++]=128|c>>>6&63),b[g++]=128|63&c);return b},k=function(a,b){var c;for((b=b||a.length)>a.length&&(b=a.length),c=b-1;c>=0&&(192&a[c])==128;)c--;return c<0||0===c?b:c+h[a[c]]>b?c:b},l=function(a){var b,c,e,f,g=a.length,i=Array(2*g);for(c=0,b=0;b4){i[c++]=65533,b+=f-1;continue}for(e&=2===f?31:3===f?15:7;f>1&&b1){i[c++]=65533;continue}e<65536?i[c++]=e:(e-=65536,i[c++]=55296|e>>10&1023,i[c++]=56320|1023&e)}return i.length!==c&&(i.subarray?i=i.subarray(0,c):i.length=c),d.applyFromCharCode(i)};function m(){g.call(this,"utf-8 decode"),this.leftOver=null}function n(){g.call(this,"utf-8 encode")}b.utf8encode=function(a){return e.nodebuffer?f.newBufferFrom(a,"utf-8"):j(a)},b.utf8decode=function(a){return e.nodebuffer?d.transformTo("nodebuffer",a).toString("utf-8"):l(a=d.transformTo(e.uint8array?"uint8array":"array",a))},d.inherits(m,g),m.prototype.processChunk=function(a){var c=d.transformTo(e.uint8array?"uint8array":"array",a.data);if(this.leftOver&&this.leftOver.length){if(e.uint8array){var f=c;(c=new Uint8Array(f.length+this.leftOver.length)).set(this.leftOver,0),c.set(f,this.leftOver.length)}else c=this.leftOver.concat(c);this.leftOver=null}var g=k(c),h=c;g!==c.length&&(e.uint8array?(h=c.subarray(0,g),this.leftOver=c.subarray(g,c.length)):(h=c.slice(0,g),this.leftOver=c.slice(g,c.length))),this.push({data:b.utf8decode(h),meta:a.meta})},m.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:b.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},b.Utf8DecodeWorker=m,d.inherits(n,g),n.prototype.processChunk=function(a){this.push({data:b.utf8encode(a.data),meta:a.meta})},b.Utf8EncodeWorker=n},75219:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},75234:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]])},75441:(a,b,c)=>{"use strict";c.d(b,{bL:()=>w,zi:()=>x});var d=c(38301),e=c(87868),f=c(92808),g=c(2332),h=c(11720),i=c(10350),j=c(96386),k=c(6406),l=c(21124),m="Switch",[n,o]=(0,g.A)(m),[p,q]=n(m),r=d.forwardRef((a,b)=>{let{__scopeSwitch:c,name:g,checked:i,defaultChecked:j,required:n,disabled:o,value:q="on",onCheckedChange:r,form:s,...t}=a,[w,x]=d.useState(null),y=(0,f.s)(b,a=>x(a)),z=d.useRef(!1),A=!w||s||!!w.closest("form"),[B,C]=(0,h.i)({prop:i,defaultProp:j??!1,onChange:r,caller:m});return(0,l.jsxs)(p,{scope:c,checked:B,disabled:o,children:[(0,l.jsx)(k.sG.button,{type:"button",role:"switch","aria-checked":B,"aria-required":n,"data-state":v(B),"data-disabled":o?"":void 0,disabled:o,value:q,...t,ref:y,onClick:(0,e.mK)(a.onClick,a=>{C(a=>!a),A&&(z.current=a.isPropagationStopped(),z.current||a.stopPropagation())})}),A&&(0,l.jsx)(u,{control:w,bubbles:!z.current,name:g,value:q,checked:B,required:n,disabled:o,form:s,style:{transform:"translateX(-100%)"}})]})});r.displayName=m;var s="SwitchThumb",t=d.forwardRef((a,b)=>{let{__scopeSwitch:c,...d}=a,e=q(s,c);return(0,l.jsx)(k.sG.span,{"data-state":v(e.checked),"data-disabled":e.disabled?"":void 0,...d,ref:b})});t.displayName=s;var u=d.forwardRef(({__scopeSwitch:a,control:b,checked:c,bubbles:e=!0,...g},h)=>{let k=d.useRef(null),m=(0,f.s)(k,h),n=(0,i.Z)(c),o=(0,j.X)(b);return d.useEffect(()=>{let a=k.current;if(!a)return;let b=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(n!==c&&b){let d=new Event("click",{bubbles:e});b.call(a,c),a.dispatchEvent(d)}},[n,c,e]),(0,l.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:c,...g,tabIndex:-1,ref:m,style:{...g.style,...o,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function v(a){return a?"checked":"unchecked"}u.displayName="SwitchBubbleInput";var w=r,x=t},75465:(a,b,c)=>{"use strict";b.__esModule=!0;var d=c(50281),e=function(a){return a&&a.__esModule?a:{default:a}}(c(1793));b.default=function(a){a.registerHelper("each",function(a,b){if(!b)throw new e.default("Must pass iterator to #each");var c,f=b.fn,g=b.inverse,h=0,i="",j=void 0,k=void 0;function l(b,c,e){j&&(j.key=b,j.index=c,j.first=0===c,j.last=!!e,k&&(j.contextPath=k+b)),i+=f(a[b],{data:j,blockParams:d.blockParams([a[b],b],[k+b,null])})}if(b.data&&b.ids&&(k=d.appendContextPath(b.data.contextPath,b.ids[0])+"."),d.isFunction(a)&&(a=a.call(this)),b.data&&(j=d.createFrame(b.data)),a&&"object"==typeof a)if(d.isArray(a))for(var m=a.length;h{"use strict";c.d(b,{B:()=>i});var d,e=c(38301),f=c(68829),g=(d||(d=c.t(e,2)))[" useId ".trim().toString()]||(()=>void 0),h=0;function i(a){let[b,c]=e.useState(g());return(0,f.N)(()=>{a||c(a=>a??String(h++))},[a]),a||(b?`radix-${b}`:"")}},76137:a=>{"use strict";a.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},76824:(a,b,c)=>{"use strict";b.__esModule=!0,b.checkRevision=function(a){var b=a&&a[0]||1,c=f.COMPILER_REVISION;if(!(b>=f.LAST_COMPATIBLE_COMPILER_REVISION)||!(b<=f.COMPILER_REVISION))if(b{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]])},78094:a=>{"use strict";a.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},78406:a=>{"use strict";global.MutationObserver||global.WebKitMutationObserver;var b,c=function(){process.nextTick(e)},d=[];function e(){b=!0;for(var a,c,e=d.length;e;){for(c=d,d=[],a=-1;++a{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]])},79944:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},80451:(a,b)=>{"use strict";b.LOCAL_FILE_HEADER="PK\x03\x04",b.CENTRAL_FILE_HEADER="PK\x01\x02",b.CENTRAL_DIRECTORY_END="PK\x05\x06",b.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07",b.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06",b.DATA_DESCRIPTOR="PK\x07\b"},82042:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},82601:(a,b,c)=>{"use strict";var d=c(34072),e=c(32970),f=c(75074),g=c(21843),h=c(65353),i=function(a,b,c){this.name=a,this.dir=c.dir,this.date=c.date,this.comment=c.comment,this.unixPermissions=c.unixPermissions,this.dosPermissions=c.dosPermissions,this._data=b,this._dataBinary=c.binary,this.options={compression:c.compression,compressionOptions:c.compressionOptions}};i.prototype={internalStream:function(a){var b=null,c="string";try{if(!a)throw Error("No output type specified.");c=a.toLowerCase();var e="string"===c||"text"===c;("binarystring"===c||"text"===c)&&(c="string"),b=this._decompressWorker();var g=!this._dataBinary;g&&!e&&(b=b.pipe(new f.Utf8EncodeWorker)),!g&&e&&(b=b.pipe(new f.Utf8DecodeWorker))}catch(a){(b=new h("error")).error(a)}return new d(b,c,"")},async:function(a,b){return this.internalStream(a).accumulate(b)},nodeStream:function(a,b){return this.internalStream(a||"nodebuffer").toNodejsStream(b)},_compressWorker:function(a,b){if(this._data instanceof g&&this._data.compression.magic===a.magic)return this._data.getCompressedWorker();var c=this._decompressWorker();return this._dataBinary||(c=c.pipe(new f.Utf8EncodeWorker)),g.createWorkerFrom(c,a,b)},_decompressWorker:function(){return this._data instanceof g?this._data.getContentWorker():this._data instanceof h?this._data:new e(this._data)}};for(var j=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],k=function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},l=0;l{"use strict";var d=c(38590);function e(a){d.call(this,a)}c(20452).inherits(e,d),e.prototype.byteAt=function(a){return this.data.charCodeAt(this.zero+a)},e.prototype.lastIndexOfSignature=function(a){return this.data.lastIndexOf(a)-this.zero},e.prototype.readAndCheckSignature=function(a){return a===this.readData(4)},e.prototype.readData=function(a){this.checkOffset(a);var b=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,b},a.exports=e},84220:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("cloud",[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]])},85009:(a,b,c)=>{"use strict";c.d(b,{Qg:()=>g,bL:()=>i});var d=c(38301),e=c(6406),f=c(21124),g=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),h=d.forwardRef((a,b)=>(0,f.jsx)(e.sG.span,{...a,ref:b,style:{...g,...a.style}}));h.displayName="VisuallyHidden";var i=h},85351:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},87732:(a,b)=>{"use strict";b.__esModule=!0;var c={helpers:{helperExpression:function(a){return"SubExpression"===a.type||("MustacheStatement"===a.type||"BlockStatement"===a.type)&&!!(a.params&&a.params.length||a.hash)},scopedId:function(a){return/^\.|this\b/.test(a.original)},simpleId:function(a){return 1===a.parts.length&&!c.helpers.scopedId(a)&&!a.depth}}};b.default=c,a.exports=b.default},87868:(a,b,c)=>{"use strict";function d(a,b,{checkForDefaultPrevented:c=!0}={}){return function(d){if(a?.(d),!1===c||!d.defaultPrevented)return b?.(d)}}c.d(b,{mK:()=>d}),"undefined"!=typeof window&&window.document&&window.document.createElement},88285:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]])},88293:(a,b,c)=>{"use strict";function d(a){return a&&a.__esModule?a:{default:a}}b.__esModule=!0,b.registerDefaultHelpers=function(a){e.default(a),f.default(a),g.default(a),h.default(a),i.default(a),j.default(a),k.default(a)},b.moveHelperToHooks=function(a,b,c){a.helpers[b]&&(a.hooks[b]=a.helpers[b],c||delete a.helpers[b])};var e=d(c(89113)),f=d(c(75465)),g=d(c(49241)),h=d(c(57623)),i=d(c(89580)),j=d(c(74758)),k=d(c(93540))},89113:(a,b,c)=>{"use strict";b.__esModule=!0;var d=c(50281);b.default=function(a){a.registerHelper("blockHelperMissing",function(b,c){var e=c.inverse,f=c.fn;if(!0===b)return f(this);if(!1===b||null==b)return e(this);if(d.isArray(b))if(b.length>0)return c.ids&&(c.ids=[c.name]),a.helpers.each(b,c);else return e(this);if(c.data&&c.ids){var g=d.createFrame(c.data);g.contextPath=d.appendContextPath(c.data.contextPath,c.name),c={data:g}}return f(b,c)})},a.exports=b.default},89580:(a,b)=>{"use strict";b.__esModule=!0,b.default=function(a){a.registerHelper("log",function(){for(var b=[void 0],c=arguments[arguments.length-1],d=0;d{"use strict";b.__esModule=!0,b.createProtoAccessControl=function(a){var b=Object.create(null);b.constructor=!1,b.__defineGetter__=!1,b.__defineSetter__=!1,b.__lookupGetter__=!1;var c=Object.create(null);return c.__proto__=!1,{properties:{whitelist:d.createNewLookupObject(c,a.allowedProtoProperties),defaultValue:a.allowProtoPropertiesByDefault},methods:{whitelist:d.createNewLookupObject(b,a.allowedProtoMethods),defaultValue:a.allowProtoMethodsByDefault}}},b.resultIsAllowed=function(a,b,c){return"function"==typeof a?g(b.methods,c):g(b.properties,c)},b.resetLoggedProperties=function(){Object.keys(f).forEach(function(a){delete f[a]})};var d=c(56898),e=function(a){return a&&a.__esModule?a:{default:a}}(c(95050)),f=Object.create(null);function g(a,b){var c;return void 0!==a.whitelist[b]?!0===a.whitelist[b]:void 0!==a.defaultValue?a.defaultValue:(!0!==f[c=b]&&(f[c]=!0,e.default.log("error",'Handlebars: Access has been denied to resolve the property "'+c+'" because it is not an "own property" of its parent.\nYou can add a runtime option to disable the check or this warning:\nSee https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details')),!1)}},89872:(a,b,c)=>{"use strict";b.__esModule=!0;var d=c(50281),e=void 0;function f(a,b,c){if(d.isArray(a)){for(var e=[],f=0,g=a.length;f{"use strict";a.exports=function(a,b,c,d){for(var e=65535&a,f=a>>>16&65535,g=0;0!==c;){g=c>2e3?2e3:c,c-=g;do f=f+(e=e+b[d++]|0)|0;while(--g);e%=65521,f%=65521}return e|f<<16}},91292:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]])},92592:(a,b,c)=>{"use strict";var d=c(20452),e=c(65353);function f(a){e.call(this,"DataLengthProbe for "+a),this.propName=a,this.withStreamInfo(a,0)}d.inherits(f,e),f.prototype.processChunk=function(a){if(a){var b=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=b+a.data.length}e.prototype.processChunk.call(this,a)},a.exports=f},92808:(a,b,c)=>{"use strict";c.d(b,{s:()=>g,t:()=>f});var d=c(38301);function e(a,b){if("function"==typeof a)return a(b);null!=a&&(a.current=b)}function f(...a){return b=>{let c=!1,d=a.map(a=>{let d=e(a,b);return c||"function"!=typeof d||(c=!0),d});if(c)return()=>{for(let b=0;b{"use strict";b.__esModule=!0;var d=c(50281),e=function(a){return a&&a.__esModule?a:{default:a}}(c(1793));b.default=function(a){a.registerHelper("with",function(a,b){if(2!=arguments.length)throw new e.default("#with requires exactly one argument");d.isFunction(a)&&(a=a.call(this));var c=b.fn;if(d.isEmpty(a))return b.inverse(this);var f=b.data;return b.data&&b.ids&&((f=d.createFrame(b.data)).contextPath=d.appendContextPath(b.data.contextPath,b.ids[0])),c(a,{data:f,blockParams:d.blockParams([a],[f&&f.contextPath])})})},a.exports=b.default},93872:(a,b,c)=>{"use strict";a.exports=f;var d=c(99438),e=Object.create(c(69082));function f(a){if(!(this instanceof f))return new f(a);d.call(this,a)}e.inherits=c(48985),e.inherits(f,d),f.prototype._transform=function(a,b,c){c(null,a)}},93918:(a,b,c)=>{"use strict";var d=c(20452),e=c(65353),f=c(75074),g=c(35310),h=c(80451),i=function(a,b){var c,d="";for(c=0;c>>=8;return d},j=function(a,b){var c=a;return a||(c=b?16893:33204),(65535&c)<<16},k=function(a,b,c,e,k,l){var m,n,o=a.file,p=a.compression,q=l!==f.utf8encode,r=d.transformTo("string",l(o.name)),s=d.transformTo("string",f.utf8encode(o.name)),t=o.comment,u=d.transformTo("string",l(t)),v=d.transformTo("string",f.utf8encode(t)),w=s.length!==o.name.length,x=v.length!==t.length,y="",z="",A="",B=o.dir,C=o.date,D={crc32:0,compressedSize:0,uncompressedSize:0};(!b||c)&&(D.crc32=a.crc32,D.compressedSize=a.compressedSize,D.uncompressedSize=a.uncompressedSize);var E=0;b&&(E|=8),!q&&(w||x)&&(E|=2048);var F=0,G=0;(B&&(F|=16),"UNIX"===k)?(G=798,F|=j(o.unixPermissions,B)):(G=20,F|=63&(o.dosPermissions||0)),m=(C.getUTCHours()<<6|C.getUTCMinutes())<<5|C.getUTCSeconds()/2,n=(C.getUTCFullYear()-1980<<4|C.getUTCMonth()+1)<<5|C.getUTCDate(),w&&(z=i(1,1)+i(g(r),4)+s,y+="up"+i(z.length,2)+z),x&&(A=i(1,1)+i(g(u),4)+v,y+="uc"+i(A.length,2)+A);var H="";return H+="\n\0",H+=i(E,2),H+=p.magic,H+=i(m,2),H+=i(n,2),H+=i(D.crc32,4),H+=i(D.compressedSize,4),H+=i(D.uncompressedSize,4),H+=i(r.length,2),H+=i(y.length,2),{fileRecord:h.LOCAL_FILE_HEADER+H+r+y,dirRecord:h.CENTRAL_FILE_HEADER+i(G,2)+H+i(u.length,2)+"\0\0\0\0"+i(F,4)+i(e,4)+r+y+u}},l=function(a,b,c,e,f){var g=d.transformTo("string",f(e));return h.CENTRAL_DIRECTORY_END+"\0\0\0\0"+i(a,2)+i(a,2)+i(b,4)+i(c,4)+i(g.length,2)+g},m=function(a){return h.DATA_DESCRIPTOR+i(a.crc32,4)+i(a.compressedSize,4)+i(a.uncompressedSize,4)};function n(a,b,c,d){e.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=b,this.zipPlatform=c,this.encodeFileName=d,this.streamFiles=a,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}d.inherits(n,e),n.prototype.push=function(a){var b=a.meta.percent||0,c=this.entriesCount,d=this._sources.length;this.accumulate?this.contentBuffer.push(a):(this.bytesWritten+=a.data.length,e.prototype.push.call(this,{data:a.data,meta:{currentFile:this.currentFile,percent:c?(b+100*(c-d-1))/c:100}}))},n.prototype.openedSource=function(a){this.currentSourceOffset=this.bytesWritten,this.currentFile=a.file.name;var b=this.streamFiles&&!a.file.dir;if(b){var c=k(a,b,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:c.fileRecord,meta:{percent:0}})}else this.accumulate=!0},n.prototype.closedSource=function(a){this.accumulate=!1;var b=this.streamFiles&&!a.file.dir,c=k(a,b,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(c.dirRecord),b)this.push({data:m(a),meta:{percent:100}});else for(this.push({data:c.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},n.prototype.flush=function(){for(var a=this.bytesWritten,b=0;b{"use strict";b.__esModule=!0;var d=c(50281),e={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(a){if("string"==typeof a){var b=d.indexOf(e.methodMap,a.toLowerCase());a=b>=0?b:parseInt(a,10)}return a},log:function(a){if(a=e.lookupLevel(a),"undefined"!=typeof console&&e.lookupLevel(e.level)<=a){var b=e.methodMap[a];console[b]||(b="log");for(var c=arguments.length,d=Array(c>1?c-1:0),f=1;f{"use strict";var d=c(12778).Readable;function e(a,b,c){d.call(this,b),this._helper=a;var e=this;a.on("data",function(a,b){e.push(a)||e._helper.pause(),c&&c(b)}).on("error",function(a){e.emit("error",a)}).on("end",function(){e.push(null)})}c(20452).inherits(e,d),e.prototype._read=function(){this._helper.resume()},a.exports=e},96332:(a,b,c)=>{"use strict";c.d(b,{VA:()=>e});var d=Object.defineProperty;Object.getOwnPropertyNames;var e=(a,b)=>{for(var c in b)d(a,c,{get:b[c],enumerable:!0})}},96386:(a,b,c)=>{"use strict";c.d(b,{X:()=>f});var d=c(38301),e=c(68829);function f(a){let[b,c]=d.useState(void 0);return(0,e.N)(()=>{if(a){c({width:a.offsetWidth,height:a.offsetHeight});let b=new ResizeObserver(b=>{let d,e;if(!Array.isArray(b)||!b.length)return;let f=b[0];if("borderBoxSize"in f){let a=f.borderBoxSize,b=Array.isArray(a)?a[0]:a;d=b.inlineSize,e=b.blockSize}else d=a.offsetWidth,e=a.offsetHeight;c({width:d,height:e})});return b.observe(a,{box:"border-box"}),()=>b.unobserve(a)}c(void 0)},[a]),b}},96425:(a,b,c)=>{"use strict";c.d(b,{DX:()=>h,Dc:()=>j,TL:()=>g});var d=c(38301),e=c(92808),f=c(21124);function g(a){let b=function(a){let b=d.forwardRef((a,b)=>{let{children:c,...f}=a;if(d.isValidElement(c)){var g;let a,h,i=(g=c,(h=(a=Object.getOwnPropertyDescriptor(g.props,"ref")?.get)&&"isReactWarning"in a&&a.isReactWarning)?g.ref:(h=(a=Object.getOwnPropertyDescriptor(g,"ref")?.get)&&"isReactWarning"in a&&a.isReactWarning)?g.props.ref:g.props.ref||g.ref),j=function(a,b){let c={...b};for(let d in b){let e=a[d],f=b[d];/^on[A-Z]/.test(d)?e&&f?c[d]=(...a)=>{let b=f(...a);return e(...a),b}:e&&(c[d]=e):"style"===d?c[d]={...e,...f}:"className"===d&&(c[d]=[e,f].filter(Boolean).join(" "))}return{...a,...c}}(f,c.props);return c.type!==d.Fragment&&(j.ref=b?(0,e.t)(b,i):i),d.cloneElement(c,j)}return d.Children.count(c)>1?d.Children.only(null):null});return b.displayName=`${a}.SlotClone`,b}(a),c=d.forwardRef((a,c)=>{let{children:e,...g}=a,h=d.Children.toArray(e),i=h.find(k);if(i){let a=i.props.children,e=h.map(b=>b!==i?b:d.Children.count(a)>1?d.Children.only(null):d.isValidElement(a)?a.props.children:null);return(0,f.jsx)(b,{...g,ref:c,children:d.isValidElement(a)?d.cloneElement(a,void 0,e):null})}return(0,f.jsx)(b,{...g,ref:c,children:e})});return c.displayName=`${a}.Slot`,c}var h=g("Slot"),i=Symbol("radix.slottable");function j(a){let b=({children:a})=>(0,f.jsx)(f.Fragment,{children:a});return b.displayName=`${a}.Slottable`,b.__radixId=i,b}function k(a){return d.isValidElement(a)&&"function"==typeof a.type&&"__radixId"in a.type&&a.type.__radixId===i}},98164:(a,b,c)=>{"use strict";var d=c(43613),e=!0,f=!0;try{String.fromCharCode.apply(null,[0])}catch(a){e=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(a){f=!1}for(var g=new d.Buf8(256),h=0;h<256;h++)g[h]=h>=252?6:h>=248?5:h>=240?4:h>=224?3:h>=192?2:1;function i(a,b){if(b<65534&&(a.subarray&&f||!a.subarray&&e))return String.fromCharCode.apply(null,d.shrinkBuf(a,b));for(var c="",g=0;g>>6:(c<65536?b[g++]=224|c>>>12:(b[g++]=240|c>>>18,b[g++]=128|c>>>12&63),b[g++]=128|c>>>6&63),b[g++]=128|63&c);return b},b.buf2binstring=function(a){return i(a,a.length)},b.binstring2buf=function(a){for(var b=new d.Buf8(a.length),c=0,e=b.length;c4){j[d++]=65533,c+=f-1;continue}for(e&=2===f?31:3===f?15:7;f>1&&c1){j[d++]=65533;continue}e<65536?j[d++]=e:(e-=65536,j[d++]=55296|e>>10&1023,j[d++]=56320|1023&e)}return i(j,d)},b.utf8border=function(a,b){var c;for((b=b||a.length)>a.length&&(b=a.length),c=b-1;c>=0&&(192&a[c])==128;)c--;return c<0||0===c?b:c+g[a[c]]>b?c:b}},99438:(a,b,c)=>{"use strict";a.exports=g;var d=c(47482),e=Object.create(c(69082));function f(a,b){var c=this._transformState;c.transforming=!1;var d=c.writecb;if(!d)return this.emit("error",Error("write callback called multiple times"));c.writechunk=null,c.writecb=null,null!=b&&this.push(b),d(a);var e=this._readableState;e.reading=!1,(e.needReadable||e.length{"use strict";function d(a,b,c,d){let e,f=a.length,g=0;if(b=b<0?-b>f?0:f+b:b>f?f:b,c=c>0?c:0,d.length<1e4)(e=Array.from(d)).unshift(b,c),a.splice(...e);else for(c&&a.splice(b,c);g0?(d(a,a.length,0,b),a):b}c.d(b,{V:()=>e,m:()=>d})},769:(a,b,c)=>{"use strict";c.r(b),c.d(b,{_:()=>e});var d=0;function e(a){return"__private_"+d+++"_"+a}},1776:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("cloud-off",[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M5.782 5.782A7 7 0 0 0 9 19h8.5a4.5 4.5 0 0 0 1.307-.193",key:"yfwify"}],["path",{d:"M21.532 16.5A4.5 4.5 0 0 0 17.5 10h-1.79A7.008 7.008 0 0 0 10 5.07",key:"jlfiyv"}]])},1949:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]])},2510:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("layout-template",[["rect",{width:"18",height:"7",x:"3",y:"3",rx:"1",key:"f1a2em"}],["rect",{width:"9",height:"7",x:"3",y:"14",rx:"1",key:"jqznyg"}],["rect",{width:"5",height:"7",x:"16",y:"14",rx:"1",key:"q5h2i8"}]])},2891:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"refreshReducer",{enumerable:!0,get:function(){return o}});let d=c(60535),e=c(11830),f=c(76143),g=c(81711),h=c(3219),i=c(73486),j=c(35939),k=c(97163),l=c(50586),m=c(76061),n=c(72869);function o(a,b){let{origin:c}=b,o={},p=a.canonicalUrl,q=a.tree;o.preserveCustomHistoryState=!1;let r=(0,k.createEmptyCacheNode)(),s=(0,m.hasInterceptionRouteInCurrentTree)(a.tree);r.lazyData=(0,d.fetchServerResponse)(new URL(p,c),{flightRouterState:[q[0],q[1],q[2],"refetch"],nextUrl:s?a.nextUrl:null});let t=Date.now();return r.lazyData.then(async c=>{let{flightData:d,canonicalUrl:k}=c;if("string"==typeof d)return(0,h.handleExternalUrl)(a,o,d,a.pushRef.pendingPush);for(let c of(r.lazyData=null,d)){let{tree:d,seedData:i,head:m,isRootRender:u}=c;if(!u)return console.log("REFRESH FAILED"),a;let v=(0,f.applyRouterStatePatchToTree)([""],q,d,a.canonicalUrl);if(null===v)return(0,l.handleSegmentMismatch)(a,b,d);if((0,g.isNavigatingToNewRootLayout)(q,v))return(0,h.handleExternalUrl)(a,o,p,a.pushRef.pendingPush);let w=k?(0,e.createHrefFromUrl)(k):void 0;if(k&&(o.canonicalUrl=w),null!==i){let a=i[1],b=i[3];r.rsc=a,r.prefetchRsc=null,r.loading=b,(0,j.fillLazyItemsTillLeafWithHead)(t,r,void 0,d,i,m,void 0),o.prefetchCache=new Map}await (0,n.refreshInactiveParallelSegments)({navigatedAt:t,state:a,updatedTree:v,updatedCache:r,includeNextUrl:s,canonicalUrl:o.canonicalUrl||a.canonicalUrl}),o.cache=r,o.patchedTree=v,q=v}return(0,i.handleMutable)(a,o)},()=>a)}c(40668),("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},3219:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{generateSegmentsFromPatch:function(){return u},handleExternalUrl:function(){return t},navigateReducer:function(){return function a(b,c){let{url:v,isExternalUrl:w,navigateType:x,shouldScroll:y,allowAliasing:z}=c,A={},{hash:B}=v,C=(0,e.createHrefFromUrl)(v),D="push"===x;if((0,q.prunePrefetchCache)(b.prefetchCache),A.preserveCustomHistoryState=!1,A.pendingPush=D,w)return t(b,A,v.toString(),D);if(document.getElementById("__next-page-redirect"))return t(b,A,C,D);let E=(0,q.getOrCreatePrefetchCacheEntry)({url:v,nextUrl:b.nextUrl,tree:b.tree,prefetchCache:b.prefetchCache,allowAliasing:z}),{treeAtTimeOfPrefetch:F,data:G}=E;return m.prefetchQueue.bump(G),G.then(m=>{let{flightData:q,canonicalUrl:w,postponed:x}=m,z=Date.now(),G=!1;if(E.lastUsedTime||(E.lastUsedTime=z,G=!0),E.aliased){let d=new URL(v.href);w&&(d.pathname=w.pathname);let e=(0,s.handleAliasedPrefetchEntry)(z,b,q,d,A);return!1===e?a(b,{...c,allowAliasing:!1}):e}if("string"==typeof q)return t(b,A,q,D);let H=w?(0,e.createHrefFromUrl)(w):C;if(B&&b.canonicalUrl.split("#",1)[0]===H.split("#",1)[0])return A.onlyHashChange=!0,A.canonicalUrl=H,A.shouldScroll=y,A.hashFragment=B,A.scrollableSegments=[],(0,k.handleMutable)(b,A);let I=b.tree,J=b.cache,K=[];for(let a of q){let{pathToSegment:c,seedData:e,head:k,isHeadPartial:m,isRootRender:q}=a,s=a.tree,w=["",...c],y=(0,g.applyRouterStatePatchToTree)(w,I,s,C);if(null===y&&(y=(0,g.applyRouterStatePatchToTree)(w,F,s,C)),null!==y){if(e&&q&&x){let a=(0,p.startPPRNavigation)(z,J,I,s,e,k,m,!1,K);if(null!==a){if(null===a.route)return t(b,A,C,D);y=a.route;let c=a.node;null!==c&&(A.cache=c);let e=a.dynamicRequestTree;if(null!==e){let c=(0,d.fetchServerResponse)(new URL(H,v.origin),{flightRouterState:e,nextUrl:b.nextUrl});(0,p.listenForDynamicRequest)(a,c)}}else y=s}else{if((0,i.isNavigatingToNewRootLayout)(I,y))return t(b,A,C,D);let d=(0,n.createEmptyCacheNode)(),e=!1;for(let b of(E.status!==j.PrefetchCacheEntryStatus.stale||G?e=(0,l.applyFlightData)(z,J,d,a,E):(e=function(a,b,c,d){let e=!1;for(let f of(a.rsc=b.rsc,a.prefetchRsc=b.prefetchRsc,a.loading=b.loading,a.parallelRoutes=new Map(b.parallelRoutes),u(d).map(a=>[...c,...a])))(0,r.clearCacheNodeDataForSegmentPath)(a,b,f),e=!0;return e}(d,J,c,s),E.lastUsedTime=z),(0,h.shouldHardNavigate)(w,I)?(d.rsc=J.rsc,d.prefetchRsc=J.prefetchRsc,(0,f.invalidateCacheBelowFlightSegmentPath)(d,J,c),A.cache=d):e&&(A.cache=d,J=d),u(s))){let a=[...c,...b];a[a.length-1]!==o.DEFAULT_SEGMENT_KEY&&K.push(a)}}I=y}}return A.patchedTree=I,A.canonicalUrl=H,A.scrollableSegments=K,A.hashFragment=B,A.shouldScroll=y,(0,k.handleMutable)(b,A)},()=>b)}}});let d=c(60535),e=c(11830),f=c(90783),g=c(76143),h=c(62226),i=c(81711),j=c(12591),k=c(73486),l=c(70395),m=c(77743),n=c(97163),o=c(72454),p=c(19427),q=c(70491),r=c(5041),s=c(97150);function t(a,b,c,d){return b.mpaNavigation=!0,b.canonicalUrl=c,b.pendingPush=d,b.scrollableSegments=void 0,(0,k.handleMutable)(a,b)}function u(a){let b=[],[c,d]=a;if(0===Object.keys(d).length)return[[c]];for(let[a,e]of Object.entries(d))for(let d of u(e))""===c?b.push([a,...d]):b.push([c,a,...d]);return b}c(40668),("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},3663:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("file-text",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},3991:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{default:function(){return q},useLinkStatus:function(){return s}});let d=c(55823),e=c(21124),f=d._(c(38301)),g=c(47332),h=c(12889),i=c(49427),j=c(61962),k=c(92464);c(21507);let l=c(30551),m=c(17545),n=c(41439);c(84589);let o=c(40668);function p(a){return"string"==typeof a?a:(0,g.formatUrl)(a)}function q(a){var b;let c,d,g,[q,s]=(0,f.useOptimistic)(l.IDLE_LINK_STATUS),t=(0,f.useRef)(null),{href:u,as:v,children:w,prefetch:x=null,passHref:y,replace:z,shallow:A,scroll:B,onClick:C,onMouseEnter:D,onTouchStart:E,legacyBehavior:F=!1,onNavigate:G,ref:H,unstable_dynamicOnHover:I,...J}=a;c=w,F&&("string"==typeof c||"number"==typeof c)&&(c=(0,e.jsx)("a",{children:c}));let K=f.default.useContext(h.AppRouterContext),L=!1!==x,M=!1!==x?null===(b=x)||"auto"===b?o.FetchStrategy.PPR:o.FetchStrategy.Full:o.FetchStrategy.PPR,{href:N,as:O}=f.default.useMemo(()=>{let a=p(u);return{href:a,as:v?p(v):a}},[u,v]);F&&(d=f.default.Children.only(c));let P=F?d&&"object"==typeof d&&d.ref:H,Q=f.default.useCallback(a=>(null!==K&&(t.current=(0,l.mountLinkInstance)(a,N,K,M,L,s)),()=>{t.current&&((0,l.unmountLinkForCurrentNavigation)(t.current),t.current=null),(0,l.unmountPrefetchableInstance)(a)}),[L,N,K,M,s]),R={ref:(0,i.useMergedRef)(Q,P),onClick(a){F||"function"!=typeof C||C(a),F&&d.props&&"function"==typeof d.props.onClick&&d.props.onClick(a),K&&(a.defaultPrevented||function(a,b,c,d,e,g,h){let{nodeName:i}=a.currentTarget;if(!("A"===i.toUpperCase()&&function(a){let b=a.currentTarget.getAttribute("target");return b&&"_self"!==b||a.metaKey||a.ctrlKey||a.shiftKey||a.altKey||a.nativeEvent&&2===a.nativeEvent.which}(a)||a.currentTarget.hasAttribute("download"))){if(!(0,m.isLocalURL)(b)){e&&(a.preventDefault(),location.replace(b));return}if(a.preventDefault(),h){let a=!1;if(h({preventDefault:()=>{a=!0}}),a)return}f.default.startTransition(()=>{(0,n.dispatchNavigateAction)(c||b,e?"replace":"push",null==g||g,d.current)})}}(a,N,O,t,z,B,G))},onMouseEnter(a){F||"function"!=typeof D||D(a),F&&d.props&&"function"==typeof d.props.onMouseEnter&&d.props.onMouseEnter(a),K&&L&&(0,l.onNavigationIntent)(a.currentTarget,!0===I)},onTouchStart:function(a){F||"function"!=typeof E||E(a),F&&d.props&&"function"==typeof d.props.onTouchStart&&d.props.onTouchStart(a),K&&L&&(0,l.onNavigationIntent)(a.currentTarget,!0===I)}};return(0,j.isAbsoluteUrl)(O)?R.href=O:F&&!y&&("a"!==d.type||"href"in d.props)||(R.href=(0,k.addBasePath)(O)),g=F?f.default.cloneElement(d,R):(0,e.jsx)("a",{...J,...R,children:c}),(0,e.jsx)(r.Provider,{value:q,children:g})}let r=(0,f.createContext)(l.IDLE_LINK_STATUS),s=()=>(0,f.useContext)(r);("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},5041:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"clearCacheNodeDataForSegmentPath",{enumerable:!0,get:function(){return function a(b,c,f){let g=f.length<=2,[h,i]=f,j=(0,e.createRouterCacheKey)(i),k=c.parallelRoutes.get(h),l=b.parallelRoutes.get(h);l&&l!==k||(l=new Map(k),b.parallelRoutes.set(h,l));let m=null==k?void 0:k.get(j),n=l.get(j);if(g){n&&n.lazyData&&n!==m||l.set(j,{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:null,navigatedAt:-1});return}if(!n||!m){n||l.set(j,{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:null,navigatedAt:-1});return}return n===m&&(n={lazyData:n.lazyData,rsc:n.rsc,prefetchRsc:n.prefetchRsc,head:n.head,prefetchHead:n.prefetchHead,parallelRoutes:new Map(n.parallelRoutes),loading:n.loading},l.set(j,n)),a(n,m,(0,d.getNextFlightSegmentPath)(f))}}});let d=c(21600),e=c(95812);("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},5360:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("power",[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]])},5776:(a,b,c)=>{"use strict";function d(){}function e(){}c.d(b,{HB:()=>e,ok:()=>d})},8294:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]])},8849:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},9212:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]])},9286:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"assignLocation",{enumerable:!0,get:function(){return e}});let d=c(92464);function e(a,b){if(a.startsWith(".")){let c=b.origin+b.pathname;return new URL((c.endsWith("/")?c:c+"/")+a)}return new URL((0,d.addBasePath)(a),b.href)}("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},10596:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("grip-vertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]])},10708:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},11107:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return f}});let d=c(92800),e=c(58430),f=a=>{if(!a.startsWith("/"))return a;let{pathname:b,query:c,hash:f}=(0,e.parsePath)(a);return""+(0,d.removeTrailingSlash)(b)+c+f};("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},11861:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("history",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]])},15044:(a,b,c)=>{"use strict";c.d(b,{G5:()=>Y,H_:()=>R,JU:()=>P,Pb:()=>W,UC:()=>N,VF:()=>U,YJ:()=>O,ZL:()=>M,ZP:()=>X,bL:()=>K,hN:()=>T,l9:()=>L,q7:()=>Q,wv:()=>V,z6:()=>S});var d=c(38301),e=c(87868),f=c(2332),g=c(6406),h=c(87762),i=c(71700),j=c(11720),k=c(21124),l="ContextMenu",[m,n]=(0,f.A)(l,[h.UE]),o=(0,h.UE)(),[p,q]=m(l),r=a=>{let{__scopeContextMenu:b,children:c,onOpenChange:e,dir:f,modal:g=!0}=a,[j,l]=d.useState(!1),m=o(b),n=(0,i.c)(e),q=d.useCallback(a=>{l(a),n(a)},[n]);return(0,k.jsx)(p,{scope:b,open:j,onOpenChange:q,modal:g,children:(0,k.jsx)(h.bL,{...m,dir:f,open:j,onOpenChange:q,modal:g,children:c})})};r.displayName=l;var s="ContextMenuTrigger",t=d.forwardRef((a,b)=>{let{__scopeContextMenu:c,disabled:f=!1,...i}=a,j=q(s,c),l=o(c),m=d.useRef({x:0,y:0}),n=d.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...m.current})}),p=d.useRef(0),r=d.useCallback(()=>window.clearTimeout(p.current),[]),t=a=>{m.current={x:a.clientX,y:a.clientY},j.onOpenChange(!0)};return d.useEffect(()=>r,[r]),d.useEffect(()=>void(f&&r()),[f,r]),(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(h.Mz,{...l,virtualRef:n}),(0,k.jsx)(g.sG.span,{"data-state":j.open?"open":"closed","data-disabled":f?"":void 0,...i,ref:b,style:{WebkitTouchCallout:"none",...a.style},onContextMenu:f?a.onContextMenu:(0,e.mK)(a.onContextMenu,a=>{r(),t(a),a.preventDefault()}),onPointerDown:f?a.onPointerDown:(0,e.mK)(a.onPointerDown,J(a=>{r(),p.current=window.setTimeout(()=>t(a),700)})),onPointerMove:f?a.onPointerMove:(0,e.mK)(a.onPointerMove,J(r)),onPointerCancel:f?a.onPointerCancel:(0,e.mK)(a.onPointerCancel,J(r)),onPointerUp:f?a.onPointerUp:(0,e.mK)(a.onPointerUp,J(r))})]})});t.displayName=s;var u=a=>{let{__scopeContextMenu:b,...c}=a,d=o(b);return(0,k.jsx)(h.ZL,{...d,...c})};u.displayName="ContextMenuPortal";var v="ContextMenuContent",w=d.forwardRef((a,b)=>{let{__scopeContextMenu:c,...e}=a,f=q(v,c),g=o(c),i=d.useRef(!1);return(0,k.jsx)(h.UC,{...g,...e,ref:b,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:b=>{a.onCloseAutoFocus?.(b),!b.defaultPrevented&&i.current&&b.preventDefault(),i.current=!1},onInteractOutside:b=>{a.onInteractOutside?.(b),b.defaultPrevented||f.modal||(i.current=!0)},style:{...a.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});w.displayName=v;var x=d.forwardRef((a,b)=>{let{__scopeContextMenu:c,...d}=a,e=o(c);return(0,k.jsx)(h.YJ,{...e,...d,ref:b})});x.displayName="ContextMenuGroup";var y=d.forwardRef((a,b)=>{let{__scopeContextMenu:c,...d}=a,e=o(c);return(0,k.jsx)(h.JU,{...e,...d,ref:b})});y.displayName="ContextMenuLabel";var z=d.forwardRef((a,b)=>{let{__scopeContextMenu:c,...d}=a,e=o(c);return(0,k.jsx)(h.q7,{...e,...d,ref:b})});z.displayName="ContextMenuItem";var A=d.forwardRef((a,b)=>{let{__scopeContextMenu:c,...d}=a,e=o(c);return(0,k.jsx)(h.H_,{...e,...d,ref:b})});A.displayName="ContextMenuCheckboxItem";var B=d.forwardRef((a,b)=>{let{__scopeContextMenu:c,...d}=a,e=o(c);return(0,k.jsx)(h.z6,{...e,...d,ref:b})});B.displayName="ContextMenuRadioGroup";var C=d.forwardRef((a,b)=>{let{__scopeContextMenu:c,...d}=a,e=o(c);return(0,k.jsx)(h.hN,{...e,...d,ref:b})});C.displayName="ContextMenuRadioItem";var D=d.forwardRef((a,b)=>{let{__scopeContextMenu:c,...d}=a,e=o(c);return(0,k.jsx)(h.VF,{...e,...d,ref:b})});D.displayName="ContextMenuItemIndicator";var E=d.forwardRef((a,b)=>{let{__scopeContextMenu:c,...d}=a,e=o(c);return(0,k.jsx)(h.wv,{...e,...d,ref:b})});E.displayName="ContextMenuSeparator",d.forwardRef((a,b)=>{let{__scopeContextMenu:c,...d}=a,e=o(c);return(0,k.jsx)(h.i3,{...e,...d,ref:b})}).displayName="ContextMenuArrow";var F="ContextMenuSub",G=a=>{let{__scopeContextMenu:b,children:c,onOpenChange:d,open:e,defaultOpen:f}=a,g=o(b),[i,l]=(0,j.i)({prop:e,defaultProp:f??!1,onChange:d,caller:F});return(0,k.jsx)(h.Pb,{...g,open:i,onOpenChange:l,children:c})};G.displayName=F;var H=d.forwardRef((a,b)=>{let{__scopeContextMenu:c,...d}=a,e=o(c);return(0,k.jsx)(h.ZP,{...e,...d,ref:b})});H.displayName="ContextMenuSubTrigger";var I=d.forwardRef((a,b)=>{let{__scopeContextMenu:c,...d}=a,e=o(c);return(0,k.jsx)(h.G5,{...e,...d,ref:b,style:{...a.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});function J(a){return b=>"mouse"!==b.pointerType?a(b):void 0}I.displayName="ContextMenuSubContent";var K=r,L=t,M=u,N=w,O=x,P=y,Q=z,R=A,S=B,T=C,U=D,V=E,W=G,X=H,Y=I},15215:(a,b,c)=>{"use strict";c.d(b,{A:()=>fC});var d,e,f,g,h,i=function(a,b){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])})(a,b)};function j(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Class extends value "+String(b)+" is not a constructor or null");function c(){this.constructor=a}i(a,b),a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}var k=function(){return(k=Object.assign||function(a){for(var b,c=1,d=arguments.length;c0&&e[e.length-1])&&(6===i[0]||2===i[0])){g=0;continue}if(3===i[0]&&(!e||i[1]>e[0]&&i[1]=55296&&e<=56319&&c>10)+55296,g%1024+56320)),(e+1===c||d.length>16384)&&(f+=String.fromCharCode.apply(String,d),d.length=0)}return f},t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u="undefined"==typeof Uint8Array?[]:new Uint8Array(256),v=0;v>4,k[i++]=(15&d)<<4|e>>2,k[i++]=(3&e)<<6|63&f;return j},A=function(a){for(var b=a.length,c=[],d=0;d=0){if(a<55296||a>56319&&a<=65535)return b=((b=this.index[a>>5])<<2)+(31&a),this.data[b];if(a<=65535)return b=((b=this.index[2048+(a-55296>>5)])<<2)+(31&a),this.data[b];if(a>11),b=this.index[b]+(a>>5&63),b=((b=this.index[b])<<2)+(31&a),this.data[b];if(a<=1114111)return this.data[this.highValueIndex]}return this.errorValue},a}(),F="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",G="undefined"==typeof Uint8Array?[]:new Uint8Array(256),H=0;H50?(e.push(!0),g-=50):e.push(!1),-1!==["normal","auto","loose"].indexOf(b)&&-1!==[8208,8211,12316,12448].indexOf(a))return d.push(f),c.push(16);if(4===g||11===g){if(0===f)return d.push(f),c.push(30);var h=c[f-1];return -1===O.indexOf(h)?(d.push(d[f-1]),c.push(h)):(d.push(f),c.push(30))}if(d.push(f),31===g)return c.push("strict"===b?21:37);if(42===g||29===g)return c.push(30);if(43===g)if(a>=131072&&a<=196605||a>=196608&&a<=262141)return c.push(37);else return c.push(30);c.push(g)}),[d,c,e]},S=function(a,b,c,d){var e=d[c];if(Array.isArray(a)?-1!==a.indexOf(e):a===e)for(var f=c;f<=d.length;){var g=d[++f];if(g===b)return!0;if(10!==g)break}if(10===e)for(var f=c;f>0;){var h=d[--f];if(Array.isArray(a)?-1!==a.indexOf(h):a===h)for(var i=c;i<=d.length;){var g=d[++i];if(g===b)return!0;if(10!==g)break}if(10!==h)break}return!1},T=function(a,b){for(var c=a;c>=0;){var d=b[c];if(10!==d)return d;c--}return 0},U=function(a,b,c,d,e){if(0===c[d])return"\xd7";var f=d-1;if(Array.isArray(e)&&!0===e[f])return"\xd7";var g=f-1,h=f+1,i=b[f],j=g>=0?b[g]:0,k=b[h];if(2===i&&3===k)return"\xd7";if(-1!==L.indexOf(i))return"!";if(-1!==L.indexOf(k)||-1!==M.indexOf(k))return"\xd7";if(8===T(f,b))return"\xf7";if(11===J.get(a[f])||(32===i||33===i)&&11===J.get(a[h])||7===i||7===k||9===i||-1===[10,13,15].indexOf(i)&&9===k||-1!==[17,18,19,24,28].indexOf(k)||22===T(f,b)||S(23,22,f,b)||S([17,18],21,f,b)||S(12,12,f,b))return"\xd7";if(10===i)return"\xf7";if(23===i||23===k)return"\xd7";if(16===k||16===i)return"\xf7";if(-1!==[13,15,21].indexOf(k)||14===i||36===j&&-1!==Q.indexOf(i)||28===i&&36===k||20===k||-1!==K.indexOf(k)&&25===i||-1!==K.indexOf(i)&&25===k||27===i&&-1!==[37,32,33].indexOf(k)||-1!==[37,32,33].indexOf(i)&&26===k||-1!==K.indexOf(i)&&-1!==N.indexOf(k)||-1!==N.indexOf(i)&&-1!==K.indexOf(k)||-1!==[27,26].indexOf(i)&&(25===k||-1!==[22,15].indexOf(k)&&25===b[h+1])||-1!==[22,15].indexOf(i)&&25===k||25===i&&-1!==[25,28,24].indexOf(k))return"\xd7";if(-1!==[25,28,24,17,18].indexOf(k))for(var l=f;l>=0;){var m=b[l];if(25===m)return"\xd7";if(-1!==[28,24].indexOf(m))l--;else break}if(-1!==[27,26].indexOf(k))for(var l=-1!==[17,18].indexOf(i)?g:f;l>=0;){var m=b[l];if(25===m)return"\xd7";if(-1!==[28,24].indexOf(m))l--;else break}if(38===i&&-1!==[38,39,34,35].indexOf(k)||-1!==[39,34].indexOf(i)&&-1!==[39,40].indexOf(k)||-1!==[40,35].indexOf(i)&&40===k||-1!==P.indexOf(i)&&-1!==[20,26].indexOf(k)||-1!==P.indexOf(k)&&27===i||-1!==K.indexOf(i)&&-1!==K.indexOf(k)||24===i&&-1!==K.indexOf(k)||-1!==K.concat(25).indexOf(i)&&22===k&&-1===I.indexOf(a[h])||-1!==K.concat(25).indexOf(k)&&18===i)return"\xd7";if(41===i&&41===k){for(var n=c[f],o=1;n>0;)if(41===b[--n])o++;else break;if(o%2!=0)return"\xd7"}return 32===i&&33===k?"\xd7":"\xf7"},V=function(a,b){b||(b={lineBreak:"normal",wordBreak:"normal"});var c=R(a,b.lineBreak),d=c[0],e=c[1],f=c[2];return("break-all"===b.wordBreak||"break-word"===b.wordBreak)&&(e=e.map(function(a){return -1!==[25,30,42].indexOf(a)?37:a})),[d,e,"keep-all"===b.wordBreak?f.map(function(b,c){return b&&a[c]>=19968&&a[c]<=40959}):void 0]},W=function(){function a(a,b,c,d){this.codePoints=a,this.required="!"===b,this.start=c,this.end=d}return a.prototype.slice=function(){return s.apply(void 0,this.codePoints.slice(this.start,this.end))},a}(),X=function(a,b){var c=r(a),d=V(c,b),e=d[0],f=d[1],g=d[2],h=c.length,i=0,j=0;return{next:function(){if(j>=h)return{done:!0,value:null};for(var a="\xd7";j=48&&a<=57},Z=function(a){return Y(a)||a>=65&&a<=70||a>=97&&a<=102},$=function(a){return a>=97&&a<=122||a>=65&&a<=90},_=function(a){return 10===a||9===a||32===a},aa=function(a){return $(a)||a>=128||95===a},ab=function(a){return aa(a)||Y(a)||45===a},ac=function(a,b){return 92===a&&10!==b},ad=function(a,b,c){return 45===a?aa(b)||ac(b,c):!!(aa(a)||92===a&&ac(a,b))||!1},ae=function(a,b,c){return 43===a||45===a?!!Y(b)||46===b&&Y(c):46===a?Y(b):Y(a)},af=function(a){var b=0,c=1;(43===a[0]||45===a[b])&&(45===a[b]&&(c=-1),b++);for(var d=[];Y(a[b]);)d.push(a[b++]);var e=d.length?parseInt(s.apply(void 0,d),10):0;46===a[b]&&b++;for(var f=[];Y(a[b]);)f.push(a[b++]);var g=f.length,h=g?parseInt(s.apply(void 0,f),10):0;(69===a[b]||101===a[b])&&b++;var i=1;(43===a[b]||45===a[b])&&(45===a[b]&&(i=-1),b++);for(var j=[];Y(a[b]);)j.push(a[b++]);return c*(e+h*Math.pow(10,-g))*Math.pow(10,i*(j.length?parseInt(s.apply(void 0,j),10):0))},ag={type:2},ah={type:3},ai={type:4},aj={type:13},ak={type:8},al={type:21},am={type:9},an={type:10},ao={type:11},ap={type:12},aq={type:14},ar={type:23},as={type:1},at={type:25},au={type:24},av={type:26},aw={type:27},ax={type:28},ay={type:29},az={type:31},aA={type:32},aB=function(){function a(){this._value=[]}return a.prototype.write=function(a){this._value=this._value.concat(r(a))},a.prototype.read=function(){for(var a=[],b=this.consumeToken();b!==aA;)a.push(b),b=this.consumeToken();return a},a.prototype.consumeToken=function(){var a=this.consumeCodePoint();switch(a){case 34:return this.consumeStringToken(34);case 35:var b=this.peekCodePoint(0),c=this.peekCodePoint(1),d=this.peekCodePoint(2);if(ab(b)||ac(c,d)){var e=ad(b,c,d)?2:1,f=this.consumeName();return{type:5,value:f,flags:e}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),aj;break;case 39:return this.consumeStringToken(39);case 40:return ag;case 41:return ah;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),aq;break;case 43:case 46:if(ae(a,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(a),this.consumeNumericToken();break;case 44:return ai;case 45:var g=this.peekCodePoint(0),h=this.peekCodePoint(1);if(ae(a,g,h))return this.reconsumeCodePoint(a),this.consumeNumericToken();if(ad(a,g,h))return this.reconsumeCodePoint(a),this.consumeIdentLikeToken();if(45===g&&62===h)return this.consumeCodePoint(),this.consumeCodePoint(),au;break;case 47:if(42===this.peekCodePoint(0))for(this.consumeCodePoint();;){var i=this.consumeCodePoint();if(42===i&&47===(i=this.consumeCodePoint())||-1===i)return this.consumeToken()}break;case 58:return av;case 59:return aw;case 60:if(33===this.peekCodePoint(0)&&45===this.peekCodePoint(1)&&45===this.peekCodePoint(2))return this.consumeCodePoint(),this.consumeCodePoint(),at;break;case 64:if(ad(this.peekCodePoint(0),this.peekCodePoint(1),this.peekCodePoint(2))){var f=this.consumeName();return{type:7,value:f}}break;case 91:return ax;case 92:if(ac(a,this.peekCodePoint(0)))return this.reconsumeCodePoint(a),this.consumeIdentLikeToken();break;case 93:return ay;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),ak;break;case 123:return ao;case 125:return ap;case 117:case 85:var j=this.peekCodePoint(0),k=this.peekCodePoint(1);return 43===j&&(Z(k)||63===k)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(a),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),am;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),al;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),an;break;case -1:return aA}return _(a)?(this.consumeWhiteSpace(),az):Y(a)?(this.reconsumeCodePoint(a),this.consumeNumericToken()):aa(a)?(this.reconsumeCodePoint(a),this.consumeIdentLikeToken()):{type:6,value:s(a)}},a.prototype.consumeCodePoint=function(){var a=this._value.shift();return void 0===a?-1:a},a.prototype.reconsumeCodePoint=function(a){this._value.unshift(a)},a.prototype.peekCodePoint=function(a){return a>=this._value.length?-1:this._value[a]},a.prototype.consumeUnicodeRangeToken=function(){for(var a=[],b=this.consumeCodePoint();Z(b)&&a.length<6;)a.push(b),b=this.consumeCodePoint();for(var c=!1;63===b&&a.length<6;)a.push(b),b=this.consumeCodePoint(),c=!0;if(c){var d=parseInt(s.apply(void 0,a.map(function(a){return 63===a?48:a})),16),e=parseInt(s.apply(void 0,a.map(function(a){return 63===a?70:a})),16);return{type:30,start:d,end:e}}var f=parseInt(s.apply(void 0,a),16);if(!(45===this.peekCodePoint(0)&&Z(this.peekCodePoint(1))))return{type:30,start:f,end:f};this.consumeCodePoint(),b=this.consumeCodePoint();for(var g=[];Z(b)&&g.length<6;)g.push(b),b=this.consumeCodePoint();var e=parseInt(s.apply(void 0,g),16);return{type:30,start:f,end:e}},a.prototype.consumeIdentLikeToken=function(){var a=this.consumeName();return"url"===a.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:19,value:a}):{type:20,value:a}},a.prototype.consumeUrlToken=function(){var a=[];if(this.consumeWhiteSpace(),-1===this.peekCodePoint(0))return{type:22,value:""};var b=this.peekCodePoint(0);if(39===b||34===b){var c=this.consumeStringToken(this.consumeCodePoint());return 0===c.type&&(this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:22,value:c.value}):(this.consumeBadUrlRemnants(),ar)}for(;;){var d,e=this.consumeCodePoint();if(-1===e||41===e)return{type:22,value:s.apply(void 0,a)};if(_(e)){if(this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0))return this.consumeCodePoint(),{type:22,value:s.apply(void 0,a)};return this.consumeBadUrlRemnants(),ar}if(34===e||39===e||40===e||(d=e)>=0&&d<=8||11===d||d>=14&&d<=31||127===d)return this.consumeBadUrlRemnants(),ar;if(92===e)if(!ac(e,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),ar;else a.push(this.consumeEscapedCodePoint());else a.push(e)}},a.prototype.consumeWhiteSpace=function(){for(;_(this.peekCodePoint(0));)this.consumeCodePoint()},a.prototype.consumeBadUrlRemnants=function(){for(;;){var a=this.consumeCodePoint();if(41===a||-1===a)return;ac(a,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},a.prototype.consumeStringSlice=function(a){for(var b="";a>0;){var c=Math.min(5e4,a);b+=s.apply(void 0,this._value.splice(0,c)),a-=c}return this._value.shift(),b},a.prototype.consumeStringToken=function(a){for(var b="",c=0;;){var d=this._value[c];if(-1===d||void 0===d||d===a)return{type:0,value:b+=this.consumeStringSlice(c)};if(10===d)return this._value.splice(0,c),as;if(92===d){var e=this._value[c+1];-1!==e&&void 0!==e&&(10===e?(b+=this.consumeStringSlice(c),c=-1,this._value.shift()):ac(d,e)&&(b+=this.consumeStringSlice(c),b+=s(this.consumeEscapedCodePoint()),c=-1))}c++}},a.prototype.consumeNumber=function(){var a=[],b=4,c=this.peekCodePoint(0);for((43===c||45===c)&&a.push(this.consumeCodePoint());Y(this.peekCodePoint(0));)a.push(this.consumeCodePoint());c=this.peekCodePoint(0);var d=this.peekCodePoint(1);if(46===c&&Y(d))for(a.push(this.consumeCodePoint(),this.consumeCodePoint()),b=8;Y(this.peekCodePoint(0));)a.push(this.consumeCodePoint());c=this.peekCodePoint(0),d=this.peekCodePoint(1);var e=this.peekCodePoint(2);if((69===c||101===c)&&((43===d||45===d)&&Y(e)||Y(d)))for(a.push(this.consumeCodePoint(),this.consumeCodePoint()),b=8;Y(this.peekCodePoint(0));)a.push(this.consumeCodePoint());return[af(a),b]},a.prototype.consumeNumericToken=function(){var a=this.consumeNumber(),b=a[0],c=a[1],d=this.peekCodePoint(0);return ad(d,this.peekCodePoint(1),this.peekCodePoint(2))?{type:15,number:b,flags:c,unit:this.consumeName()}:37===d?(this.consumeCodePoint(),{type:16,number:b,flags:c}):{type:17,number:b,flags:c}},a.prototype.consumeEscapedCodePoint=function(){var a=this.consumeCodePoint();if(Z(a)){for(var b=s(a);Z(this.peekCodePoint(0))&&b.length<6;)b+=s(this.consumeCodePoint());_(this.peekCodePoint(0))&&this.consumeCodePoint();var c=parseInt(b,16);return 0===c||c>=55296&&c<=57343||c>1114111?65533:c}return -1===a?65533:a},a.prototype.consumeName=function(){for(var a="";;){var b=this.consumeCodePoint();if(ab(b))a+=s(b);else{if(!ac(b,this.peekCodePoint(0)))return this.reconsumeCodePoint(b),a;a+=s(this.consumeEscapedCodePoint())}}},a}(),aC=function(){function a(a){this._tokens=a}return a.create=function(b){var c=new aB;return c.write(b),new a(c.read())},a.parseValue=function(b){return a.create(b).parseComponentValue()},a.parseValues=function(b){return a.create(b).parseComponentValues()},a.prototype.parseComponentValue=function(){for(var a=this.consumeToken();31===a.type;)a=this.consumeToken();if(32===a.type)throw SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(a);var b=this.consumeComponentValue();do a=this.consumeToken();while(31===a.type);if(32===a.type)return b;throw SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},a.prototype.parseComponentValues=function(){for(var a=[];;){var b=this.consumeComponentValue();if(32===b.type)return a;a.push(b),a.push()}},a.prototype.consumeComponentValue=function(){var a=this.consumeToken();switch(a.type){case 11:case 28:case 2:return this.consumeSimpleBlock(a.type);case 19:return this.consumeFunction(a)}return a},a.prototype.consumeSimpleBlock=function(a){for(var b={type:a,values:[]},c=this.consumeToken();;){if(32===c.type||aL(c,a))return b;this.reconsumeToken(c),b.values.push(this.consumeComponentValue()),c=this.consumeToken()}},a.prototype.consumeFunction=function(a){for(var b={name:a.value,values:[],type:18};;){var c=this.consumeToken();if(32===c.type||3===c.type)return b;this.reconsumeToken(c),b.values.push(this.consumeComponentValue())}},a.prototype.consumeToken=function(){var a=this._tokens.shift();return void 0===a?aA:a},a.prototype.reconsumeToken=function(a){this._tokens.unshift(a)},a}(),aD=function(a){return 15===a.type},aE=function(a){return 17===a.type},aF=function(a){return 20===a.type},aG=function(a){return 0===a.type},aH=function(a,b){return aF(a)&&a.value===b},aI=function(a){return 31!==a.type},aJ=function(a){return 31!==a.type&&4!==a.type},aK=function(a){var b=[],c=[];return a.forEach(function(a){if(4===a.type){if(0===c.length)throw Error("Error parsing function args, zero tokens for arg");b.push(c),c=[];return}31!==a.type&&c.push(a)}),c.length&&b.push(c),b},aL=function(a,b){return 11===b&&12===a.type||28===b&&29===a.type||2===b&&3===a.type},aM=function(a){return 17===a.type||15===a.type},aN=function(a){return 16===a.type||aM(a)},aO=function(a){return a.length>1?[a[0],a[1]]:[a[0]]},aP={type:17,number:0,flags:4},aQ={type:16,number:50,flags:4},aR={type:16,number:100,flags:4},aS=function(a,b,c){var d=a[0],e=a[1];return[aT(d,b),aT(void 0!==e?e:d,c)]},aT=function(a,b){if(16===a.type)return a.number/100*b;if(aD(a))switch(a.unit){case"rem":case"em":return 16*a.number}return a.number},aU="grad",aV="turn",aW={parse:function(a,b){if(15===b.type)switch(b.unit){case"deg":return Math.PI*b.number/180;case aU:return Math.PI/200*b.number;case"rad":return b.number;case aV:return 2*Math.PI*b.number}throw Error("Unsupported angle type")}},aX=function(a){return 15===a.type&&("deg"===a.unit||a.unit===aU||"rad"===a.unit||a.unit===aV)},aY=function(a){switch(a.filter(aF).map(function(a){return a.value}).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[aP,aP];case"to top":case"bottom":return aZ(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[aP,aR];case"to right":case"left":return aZ(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[aR,aR];case"to bottom":case"top":return aZ(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[aR,aP];case"to left":case"right":return aZ(270)}return 0},aZ=function(a){return Math.PI*a/180},a$={parse:function(a,b){if(18===b.type){var c=a6[b.name];if(void 0===c)throw Error('Attempting to parse an unsupported color function "'+b.name+'"');return c(a,b.values)}if(5===b.type){if(3===b.value.length){var d=b.value.substring(0,1),e=b.value.substring(1,2),f=b.value.substring(2,3);return a1(parseInt(d+d,16),parseInt(e+e,16),parseInt(f+f,16),1)}if(4===b.value.length){var d=b.value.substring(0,1),e=b.value.substring(1,2),f=b.value.substring(2,3),g=b.value.substring(3,4);return a1(parseInt(d+d,16),parseInt(e+e,16),parseInt(f+f,16),parseInt(g+g,16)/255)}if(6===b.value.length){var d=b.value.substring(0,2),e=b.value.substring(2,4),f=b.value.substring(4,6);return a1(parseInt(d,16),parseInt(e,16),parseInt(f,16),1)}if(8===b.value.length){var d=b.value.substring(0,2),e=b.value.substring(2,4),f=b.value.substring(4,6),g=b.value.substring(6,8);return a1(parseInt(d,16),parseInt(e,16),parseInt(f,16),parseInt(g,16)/255)}}if(20===b.type){var h=a8[b.value.toUpperCase()];if(void 0!==h)return h}return a8.TRANSPARENT}},a_=function(a){return(255&a)==0},a0=function(a){var b=255&a,c=255&a>>8,d=255&a>>16,e=255&a>>24;return b<255?"rgba("+e+","+d+","+c+","+b/255+")":"rgb("+e+","+d+","+c+")"},a1=function(a,b,c,d){return(a<<24|b<<16|c<<8|(0|Math.round(255*d)))>>>0},a2=function(a,b){if(17===a.type)return a.number;if(16===a.type){var c=3===b?1:255;return 3===b?a.number/100*c:Math.round(a.number/100*c)}return 0},a3=function(a,b){var c=b.filter(aJ);if(3===c.length){var d=c.map(a2),e=d[0],f=d[1],g=d[2];return a1(e,f,g,1)}if(4===c.length){var h=c.map(a2),e=h[0],f=h[1],g=h[2];return a1(e,f,g,h[3])}return 0};function a4(a,b,c){return(c<0&&(c+=1),c>=1&&(c-=1),c<1/6)?(b-a)*c*6+a:c<.5?b:c<2/3?(b-a)*6*(2/3-c)+a:a}var a5=function(a,b){var c=b.filter(aJ),d=c[0],e=c[1],f=c[2],g=c[3],h=(17===d.type?aZ(d.number):aW.parse(a,d))/(2*Math.PI),i=aN(e)?e.number/100:0,j=aN(f)?f.number/100:0,k=void 0!==g&&aN(g)?aT(g,1):1;if(0===i)return a1(255*j,255*j,255*j,1);var l=j<=.5?j*(i+1):j+i-j*i,m=2*j-l;return a1(255*a4(m,l,h+1/3),255*a4(m,l,h),255*a4(m,l,h-1/3),k)},a6={hsl:a5,hsla:a5,rgb:a3,rgba:a3},a7=function(a,b){return a$.parse(a,aC.create(b).parseComponentValue())},a8={ALICEBLUE:0xf0f8ffff,ANTIQUEWHITE:0xfaebd7ff,AQUA:0xffffff,AQUAMARINE:0x7fffd4ff,AZURE:0xf0ffffff,BEIGE:0xf5f5dcff,BISQUE:0xffe4c4ff,BLACK:255,BLANCHEDALMOND:0xffebcdff,BLUE:65535,BLUEVIOLET:0x8a2be2ff,BROWN:0xa52a2aff,BURLYWOOD:0xdeb887ff,CADETBLUE:0x5f9ea0ff,CHARTREUSE:0x7fff00ff,CHOCOLATE:0xd2691eff,CORAL:0xff7f50ff,CORNFLOWERBLUE:0x6495edff,CORNSILK:0xfff8dcff,CRIMSON:0xdc143cff,CYAN:0xffffff,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:0xb886bbff,DARKGRAY:0xa9a9a9ff,DARKGREEN:6553855,DARKGREY:0xa9a9a9ff,DARKKHAKI:0xbdb76bff,DARKMAGENTA:0x8b008bff,DARKOLIVEGREEN:0x556b2fff,DARKORANGE:0xff8c00ff,DARKORCHID:0x9932ccff,DARKRED:0x8b0000ff,DARKSALMON:0xe9967aff,DARKSEAGREEN:0x8fbc8fff,DARKSLATEBLUE:0x483d8bff,DARKSLATEGRAY:0x2f4f4fff,DARKSLATEGREY:0x2f4f4fff,DARKTURQUOISE:0xced1ff,DARKVIOLET:0x9400d3ff,DEEPPINK:0xff1493ff,DEEPSKYBLUE:0xbfffff,DIMGRAY:0x696969ff,DIMGREY:0x696969ff,DODGERBLUE:0x1e90ffff,FIREBRICK:0xb22222ff,FLORALWHITE:0xfffaf0ff,FORESTGREEN:0x228b22ff,FUCHSIA:0xff00ffff,GAINSBORO:0xdcdcdcff,GHOSTWHITE:0xf8f8ffff,GOLD:0xffd700ff,GOLDENROD:0xdaa520ff,GRAY:0x808080ff,GREEN:8388863,GREENYELLOW:0xadff2fff,GREY:0x808080ff,HONEYDEW:0xf0fff0ff,HOTPINK:0xff69b4ff,INDIANRED:0xcd5c5cff,INDIGO:0x4b0082ff,IVORY:0xfffff0ff,KHAKI:0xf0e68cff,LAVENDER:0xe6e6faff,LAVENDERBLUSH:0xfff0f5ff,LAWNGREEN:0x7cfc00ff,LEMONCHIFFON:0xfffacdff,LIGHTBLUE:0xadd8e6ff,LIGHTCORAL:0xf08080ff,LIGHTCYAN:0xe0ffffff,LIGHTGOLDENRODYELLOW:0xfafad2ff,LIGHTGRAY:0xd3d3d3ff,LIGHTGREEN:0x90ee90ff,LIGHTGREY:0xd3d3d3ff,LIGHTPINK:0xffb6c1ff,LIGHTSALMON:0xffa07aff,LIGHTSEAGREEN:0x20b2aaff,LIGHTSKYBLUE:0x87cefaff,LIGHTSLATEGRAY:0x778899ff,LIGHTSLATEGREY:0x778899ff,LIGHTSTEELBLUE:0xb0c4deff,LIGHTYELLOW:0xffffe0ff,LIME:0xff00ff,LIMEGREEN:0x32cd32ff,LINEN:0xfaf0e6ff,MAGENTA:0xff00ffff,MAROON:0x800000ff,MEDIUMAQUAMARINE:0x66cdaaff,MEDIUMBLUE:52735,MEDIUMORCHID:0xba55d3ff,MEDIUMPURPLE:0x9370dbff,MEDIUMSEAGREEN:0x3cb371ff,MEDIUMSLATEBLUE:0x7b68eeff,MEDIUMSPRINGGREEN:0xfa9aff,MEDIUMTURQUOISE:0x48d1ccff,MEDIUMVIOLETRED:0xc71585ff,MIDNIGHTBLUE:0x191970ff,MINTCREAM:0xf5fffaff,MISTYROSE:0xffe4e1ff,MOCCASIN:0xffe4b5ff,NAVAJOWHITE:0xffdeadff,NAVY:33023,OLDLACE:0xfdf5e6ff,OLIVE:0x808000ff,OLIVEDRAB:0x6b8e23ff,ORANGE:0xffa500ff,ORANGERED:0xff4500ff,ORCHID:0xda70d6ff,PALEGOLDENROD:0xeee8aaff,PALEGREEN:0x98fb98ff,PALETURQUOISE:0xafeeeeff,PALEVIOLETRED:0xdb7093ff,PAPAYAWHIP:0xffefd5ff,PEACHPUFF:0xffdab9ff,PERU:0xcd853fff,PINK:0xffc0cbff,PLUM:0xdda0ddff,POWDERBLUE:0xb0e0e6ff,PURPLE:0x800080ff,REBECCAPURPLE:0x663399ff,RED:0xff0000ff,ROSYBROWN:0xbc8f8fff,ROYALBLUE:0x4169e1ff,SADDLEBROWN:0x8b4513ff,SALMON:0xfa8072ff,SANDYBROWN:0xf4a460ff,SEAGREEN:0x2e8b57ff,SEASHELL:0xfff5eeff,SIENNA:0xa0522dff,SILVER:0xc0c0c0ff,SKYBLUE:0x87ceebff,SLATEBLUE:0x6a5acdff,SLATEGRAY:0x708090ff,SLATEGREY:0x708090ff,SNOW:0xfffafaff,SPRINGGREEN:0xff7fff,STEELBLUE:0x4682b4ff,TAN:0xd2b48cff,TEAL:8421631,THISTLE:0xd8bfd8ff,TOMATO:0xff6347ff,TRANSPARENT:0,TURQUOISE:0x40e0d0ff,VIOLET:0xee82eeff,WHEAT:0xf5deb3ff,WHITE:0xffffffff,WHITESMOKE:0xf5f5f5ff,YELLOW:0xffff00ff,YELLOWGREEN:0x9acd32ff},a9={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(a,b){return b.map(function(a){if(aF(a))switch(a.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},ba={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},bb=function(a,b){var c=a$.parse(a,b[0]),d=b[1];return d&&aN(d)?{color:c,stop:d}:{color:c,stop:null}},bc=function(a,b){var c=a[0],d=a[a.length-1];null===c.stop&&(c.stop=aP),null===d.stop&&(d.stop=aR);for(var e=[],f=0,g=0;gf?e.push(i):e.push(f),f=i}else e.push(null)}for(var j=null,g=0;ga.optimumDistance)?{optimumCorner:b,optimumDistance:f}:a},{optimumDistance:e?1/0:-1/0,optimumCorner:null}).optimumCorner},bh=function(a,b,c,d,e){var f=0,g=0;switch(a.size){case 0:0===a.shape?f=g=Math.min(Math.abs(b),Math.abs(b-d),Math.abs(c),Math.abs(c-e)):1===a.shape&&(f=Math.min(Math.abs(b),Math.abs(b-d)),g=Math.min(Math.abs(c),Math.abs(c-e)));break;case 2:if(0===a.shape)f=g=Math.min(bf(b,c),bf(b,c-e),bf(b-d,c),bf(b-d,c-e));else if(1===a.shape){var h=Math.min(Math.abs(c),Math.abs(c-e))/Math.min(Math.abs(b),Math.abs(b-d)),i=bg(d,e,b,c,!0),j=i[0],k=i[1];f=bf(j-b,(k-c)/h),g=h*f}break;case 1:0===a.shape?f=g=Math.max(Math.abs(b),Math.abs(b-d),Math.abs(c),Math.abs(c-e)):1===a.shape&&(f=Math.max(Math.abs(b),Math.abs(b-d)),g=Math.max(Math.abs(c),Math.abs(c-e)));break;case 3:if(0===a.shape)f=g=Math.max(bf(b,c),bf(b,c-e),bf(b-d,c),bf(b-d,c-e));else if(1===a.shape){var h=Math.max(Math.abs(c),Math.abs(c-e))/Math.max(Math.abs(b),Math.abs(b-d)),l=bg(d,e,b,c,!1),j=l[0],k=l[1];f=bf(j-b,(k-c)/h),g=h*f}}return Array.isArray(a.size)&&(f=aT(a.size[0],d),g=2===a.size.length?aT(a.size[1],e):f),[f,g]},bi=function(a,b){var c=aZ(180),d=[];return aK(b).forEach(function(b,e){if(0===e){var f=b[0];if(20===f.type&&-1!==["top","left","right","bottom"].indexOf(f.value)){c=aY(b);return}if(aX(f)){c=(aW.parse(a,f)+aZ(270))%aZ(360);return}}var g=bb(a,b);d.push(g)}),{angle:c,stops:d,type:1}},bj="closest-side",bk="farthest-side",bl="closest-corner",bm="farthest-corner",bn="circle",bo="ellipse",bp="cover",bq="contain",br=function(a,b){var c=0,d=3,e=[],f=[];return aK(b).forEach(function(b,g){var h=!0;if(0===g?h=b.reduce(function(a,b){if(aF(b))switch(b.value){case"center":return f.push(aQ),!1;case"top":case"left":return f.push(aP),!1;case"right":case"bottom":return f.push(aR),!1}else if(aN(b)||aM(b))return f.push(b),!1;return a},h):1===g&&(h=b.reduce(function(a,b){if(aF(b))switch(b.value){case bn:return c=0,!1;case bo:return c=1,!1;case bq:case bj:return d=0,!1;case bk:return d=1,!1;case bl:return d=2,!1;case bp:case bm:return d=3,!1}else if(aM(b)||aN(b))return Array.isArray(d)||(d=[]),d.push(b),!1;return a},h)),h){var i=bb(a,b);e.push(i)}}),{size:d,shape:c,stops:e,position:f,type:2}},bs={parse:function(a,b){if(22===b.type){var c={url:b.value,type:0};return a.cache.addImage(b.value),c}if(18===b.type){var d=bt[b.name];if(void 0===d)throw Error('Attempting to parse an unsupported image function "'+b.name+'"');return d(a,b.values)}throw Error("Unsupported image type "+b.type)}},bt={"linear-gradient":function(a,b){var c=aZ(180),d=[];return aK(b).forEach(function(b,e){if(0===e){var f=b[0];if(20===f.type&&"to"===f.value){c=aY(b);return}if(aX(f)){c=aW.parse(a,f);return}}var g=bb(a,b);d.push(g)}),{angle:c,stops:d,type:1}},"-moz-linear-gradient":bi,"-ms-linear-gradient":bi,"-o-linear-gradient":bi,"-webkit-linear-gradient":bi,"radial-gradient":function(a,b){var c=0,d=3,e=[],f=[];return aK(b).forEach(function(b,g){var h=!0;if(0===g){var i=!1;h=b.reduce(function(a,b){if(i)if(aF(b))switch(b.value){case"center":f.push(aQ);break;case"top":case"left":f.push(aP);break;case"right":case"bottom":f.push(aR)}else(aN(b)||aM(b))&&f.push(b);else if(aF(b))switch(b.value){case bn:return c=0,!1;case bo:return c=1,!1;case"at":return i=!0,!1;case bj:return d=0,!1;case bp:case bk:return d=1,!1;case bq:case bl:return d=2,!1;case bm:return d=3,!1}else if(aM(b)||aN(b))return Array.isArray(d)||(d=[]),d.push(b),!1;return a},h)}if(h){var j=bb(a,b);e.push(j)}}),{size:d,shape:c,stops:e,position:f,type:2}},"-moz-radial-gradient":br,"-ms-radial-gradient":br,"-o-radial-gradient":br,"-webkit-radial-gradient":br,"-webkit-gradient":function(a,b){var c=aZ(180),d=[],e=1;return aK(b).forEach(function(b,c){var f=b[0];if(0===c){if(aF(f)&&"linear"===f.value){e=1;return}else if(aF(f)&&"radial"===f.value){e=2;return}}if(18===f.type){if("from"===f.name){var g=a$.parse(a,f.values[0]);d.push({stop:aP,color:g})}else if("to"===f.name){var g=a$.parse(a,f.values[0]);d.push({stop:aR,color:g})}else if("color-stop"===f.name){var h=f.values.filter(aJ);if(2===h.length){var g=a$.parse(a,h[1]),i=h[0];aE(i)&&d.push({stop:{type:16,number:100*i.number,flags:i.flags},color:g})}}}}),1===e?{angle:(c+aZ(180))%aZ(360),stops:d,type:e}:{size:3,shape:0,stops:d,position:[],type:e}}},bu={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(a,b){if(0===b.length)return[];var c=b[0];return 20===c.type&&"none"===c.value?[]:b.filter(function(a){var b;return aJ(a)&&(20!==(b=a).type||"none"!==b.value)&&(18!==b.type||!!bt[b.name])}).map(function(b){return bs.parse(a,b)})}},bv={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(a,b){return b.map(function(a){if(aF(a))switch(a.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},bw={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(a,b){return aK(b).map(function(a){return a.filter(aN)}).map(aO)}},bx={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(a,b){return aK(b).map(function(a){return a.filter(aF).map(function(a){return a.value}).join(" ")}).map(by)}},by=function(a){switch(a){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}};!function(a){a.AUTO="auto",a.CONTAIN="contain",a.COVER="cover"}(d||(d={}));var bz={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(a,b){return aK(b).map(function(a){return a.filter(bA)})}},bA=function(a){return aF(a)||aN(a)},bB=function(a){return{name:"border-"+a+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},bC=bB("top"),bD=bB("right"),bE=bB("bottom"),bF=bB("left"),bG=function(a){return{name:"border-radius-"+a,initialValue:"0 0",prefix:!1,type:1,parse:function(a,b){return aO(b.filter(aN))}}},bH=bG("top-left"),bI=bG("top-right"),bJ=bG("bottom-right"),bK=bG("bottom-left"),bL=function(a){return{name:"border-"+a+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(a,b){switch(b){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},bM=bL("top"),bN=bL("right"),bO=bL("bottom"),bP=bL("left"),bQ=function(a){return{name:"border-"+a+"-width",initialValue:"0",type:0,prefix:!1,parse:function(a,b){return aD(b)?b.number:0}}},bR=bQ("top"),bS=bQ("right"),bT=bQ("bottom"),bU=bQ("left"),bV={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},bW={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(a,b){return+("rtl"===b)}},bX={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(a,b){return b.filter(aF).reduce(function(a,b){return a|bY(b.value)},0)}},bY=function(a){switch(a){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 0x1000000;case"inline-block":return 0x2000000;case"inline-list-item":return 0x4000000;case"inline-table":return 0x8000000;case"inline-flex":return 0x10000000;case"inline-grid":return 0x20000000}return 0},bZ={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(a,b){switch(b){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},b$={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(a,b){return 20===b.type&&"normal"===b.value?0:17===b.type||15===b.type?b.number:0}};!function(a){a.NORMAL="normal",a.STRICT="strict"}(e||(e={}));var b_={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(a,b){return"strict"===b?e.STRICT:e.NORMAL}},b0={name:"line-height",initialValue:"normal",prefix:!1,type:4},b1=function(a,b){return aF(a)&&"normal"===a.value?1.2*b:17===a.type?b*a.number:aN(a)?aT(a,b):b},b2={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(a,b){return 20===b.type&&"none"===b.value?null:bs.parse(a,b)}},b3={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(a,b){return+("inside"!==b)}},b4={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(a,b){switch(b){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return -1}}},b5=function(a){return{name:"margin-"+a,initialValue:"0",prefix:!1,type:4}},b6=b5("top"),b7=b5("right"),b8=b5("bottom"),b9=b5("left"),ca={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(a,b){return b.filter(aF).map(function(a){switch(a.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})}},cb={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(a,b){return"break-word"===b?"break-word":"normal"}},cc=function(a){return{name:"padding-"+a,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},cd=cc("top"),ce=cc("right"),cf=cc("bottom"),cg=cc("left"),ch={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(a,b){switch(b){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},ci={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(a,b){switch(b){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},cj={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(a,b){return 1===b.length&&aH(b[0],"none")?[]:aK(b).map(function(b){for(var c={color:a8.TRANSPARENT,offsetX:aP,offsetY:aP,blur:aP},d=0,e=0;e1)],this.overflowWrap=cQ(a,cb,b.overflowWrap),this.paddingTop=cQ(a,cd,b.paddingTop),this.paddingRight=cQ(a,ce,b.paddingRight),this.paddingBottom=cQ(a,cf,b.paddingBottom),this.paddingLeft=cQ(a,cg,b.paddingLeft),this.paintOrder=cQ(a,cK,b.paintOrder),this.position=cQ(a,ci,b.position),this.textAlign=cQ(a,ch,b.textAlign),this.textDecorationColor=cQ(a,cv,null!=(c=b.textDecorationColor)?c:b.color),this.textDecorationLine=cQ(a,cw,null!=(d=b.textDecorationLine)?d:b.textDecoration),this.textShadow=cQ(a,cj,b.textShadow),this.textTransform=cQ(a,ck,b.textTransform),this.transform=cQ(a,cl,b.transform),this.transformOrigin=cQ(a,cp,b.transformOrigin),this.visibility=cQ(a,cq,b.visibility),this.webkitTextStrokeColor=cQ(a,cL,b.webkitTextStrokeColor),this.webkitTextStrokeWidth=cQ(a,cM,b.webkitTextStrokeWidth),this.wordBreak=cQ(a,cr,b.wordBreak),this.zIndex=cQ(a,cs,b.zIndex)}return a.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},a.prototype.isTransparent=function(){return a_(this.backgroundColor)},a.prototype.isTransformed=function(){return null!==this.transform},a.prototype.isPositioned=function(){return 0!==this.position},a.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},a.prototype.isFloating=function(){return 0!==this.float},a.prototype.isInlineLevel=function(){return cC(this.display,4)||cC(this.display,0x2000000)||cC(this.display,0x10000000)||cC(this.display,0x20000000)||cC(this.display,0x4000000)||cC(this.display,0x8000000)},a}(),cO=function(a,b){this.content=cQ(a,cD,b.content),this.quotes=cQ(a,cH,b.quotes)},cP=function(a,b){this.counterIncrement=cQ(a,cE,b.counterIncrement),this.counterReset=cQ(a,cF,b.counterReset)},cQ=function(a,b,c){var d=new aB,e=null!=c?c.toString():b.initialValue;d.write(e);var f=new aC(d.read());switch(b.type){case 2:var g=f.parseComponentValue();return b.parse(a,aF(g)?g.value:b.initialValue);case 0:return b.parse(a,f.parseComponentValue());case 1:return b.parse(a,f.parseComponentValues());case 4:return f.parseComponentValue();case 3:switch(b.format){case"angle":return aW.parse(a,f.parseComponentValue());case"color":return a$.parse(a,f.parseComponentValue());case"image":return bs.parse(a,f.parseComponentValue());case"length":var h=f.parseComponentValue();return aM(h)?h:aP;case"length-percentage":var i=f.parseComponentValue();return aN(i)?i:aP;case"time":return ct.parse(a,f.parseComponentValue())}}},cR=function(a){switch(a.getAttribute("data-html2canvas-debug")){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},cS=function(a,b){var c=cR(a);return 1===c||b===c},cT=function(a,b){this.context=a,this.textNodes=[],this.elements=[],this.flags=0,cS(b,3),this.styles=new cN(a,window.getComputedStyle(b,null)),d_(b)&&(this.styles.animationDuration.some(function(a){return a>0})&&(b.style.animationDuration="0s"),null!==this.styles.transform&&(b.style.transform="none")),this.bounds=p(this.context,b),cS(b,4)&&(this.flags|=16)},cU="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",cV="undefined"==typeof Uint8Array?[]:new Uint8Array(256),cW=0;cW>4,k[i++]=(15&d)<<4|e>>2,k[i++]=(3&e)<<6|63&f;return j},cY=function(a){for(var b=a.length,c=[],d=0;d=0){if(a<55296||a>56319&&a<=65535)return b=((b=this.index[a>>5])<<2)+(31&a),this.data[b];if(a<=65535)return b=((b=this.index[2048+(a-55296>>5)])<<2)+(31&a),this.data[b];if(a>11),b=this.index[b]+(a>>5&63),b=((b=this.index[b])<<2)+(31&a),this.data[b];if(a<=1114111)return this.data[this.highValueIndex]}return this.errorValue},a}(),c1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c2="undefined"==typeof Uint8Array?[]:new Uint8Array(256),c3=0;c3=55296&&e<=56319&&c>10)+55296,g%1024+56320)),(e+1===c||d.length>16384)&&(f+=String.fromCharCode.apply(String,d),d.length=0)}return f},c6=function(a,b){var c,d,e=cX(a),f=Array.isArray(e)?cZ(e):new Uint32Array(e),g=Array.isArray(e)?cY(e):new Uint16Array(e),h=c_(g,12,f[4]/2),i=2===f[5]?c_(g,(24+f[4])/2):(c=Math.ceil((24+f[4])/4),f.slice?f.slice(c,void 0):new Uint32Array(Array.prototype.slice.call(f,c,d)));return new c0(f[0],f[1],f[2],f[3],h,i)}("AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA="),c7=function(a){return c6.get(a)},c8=function(a,b,c){var d=c-2,e=b[d],f=b[c-1],g=b[c];if(2===f&&3===g)return"\xd7";if(2===f||3===f||4===f||2===g||3===g||4===g)return"\xf7";if(8===f&&-1!==[8,9,11,12].indexOf(g)||(11===f||9===f)&&(9===g||10===g)||(12===f||10===f)&&10===g||13===g||5===g||7===g||1===f)return"\xd7";if(13===f&&14===g){for(;5===e;)e=b[--d];if(14===e)return"\xd7"}if(15===f&&15===g){for(var h=0;15===e;)h++,e=b[--d];if(h%2==0)return"\xd7"}return"\xf7"},c9=function(a){var b=c4(a),c=b.length,d=0,e=0,f=b.map(c7);return{next:function(){if(d>=c)return{done:!0,value:null};for(var a="\xd7";dg.x||e.y>g.y;return g=e,0===b||h});return a.body.removeChild(b),h},dd=function(a){var b=new Image,c=a.createElement("canvas"),d=c.getContext("2d");if(!d)return!1;b.src="data:image/svg+xml,";try{d.drawImage(b,0,0),c.toDataURL()}catch(a){return!1}return!0},de=function(a){return 0===a[0]&&255===a[1]&&0===a[2]&&255===a[3]},df=function(a){var b=a.createElement("canvas");b.width=100,b.height=100;var c=b.getContext("2d");if(!c)return Promise.reject(!1);c.fillStyle="rgb(0, 255, 0)",c.fillRect(0,0,100,100);var d=new Image,e=b.toDataURL();d.src=e;var f=dg(100,100,0,0,d);return c.fillStyle="red",c.fillRect(0,0,100,100),dh(f).then(function(b){c.drawImage(b,0,0);var d=c.getImageData(0,0,100,100).data;c.fillStyle="red",c.fillRect(0,0,100,100);var f=a.createElement("div");return f.style.backgroundImage="url("+e+")",f.style.height="100px",de(d)?dh(dg(100,100,0,0,f)):Promise.reject(!1)}).then(function(a){return c.drawImage(a,0,0),de(c.getImageData(0,0,100,100).data)}).catch(function(){return!1})},dg=function(a,b,c,d,e){var f="http://www.w3.org/2000/svg",g=document.createElementNS(f,"svg"),h=document.createElementNS(f,"foreignObject");return g.setAttributeNS(null,"width",a.toString()),g.setAttributeNS(null,"height",b.toString()),h.setAttributeNS(null,"width","100%"),h.setAttributeNS(null,"height","100%"),h.setAttributeNS(null,"x",c.toString()),h.setAttributeNS(null,"y",d.toString()),h.setAttributeNS(null,"externalResourcesRequired","true"),g.appendChild(h),h.appendChild(e),g},dh=function(a){return new Promise(function(b,c){var d=new Image;d.onload=function(){return b(d)},d.onerror=c,d.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(a))})},di={get SUPPORT_RANGE_BOUNDS(){var dj=db(document);return Object.defineProperty(di,"SUPPORT_RANGE_BOUNDS",{value:dj}),dj},get SUPPORT_WORD_BREAKING(){var dk=di.SUPPORT_RANGE_BOUNDS&&dc(document);return Object.defineProperty(di,"SUPPORT_WORD_BREAKING",{value:dk}),dk},get SUPPORT_SVG_DRAWING(){var dl=dd(document);return Object.defineProperty(di,"SUPPORT_SVG_DRAWING",{value:dl}),dl},get SUPPORT_FOREIGNOBJECT_DRAWING(){var dm="function"==typeof Array.from&&"function"==typeof window.fetch?df(document):Promise.resolve(!1);return Object.defineProperty(di,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:dm}),dm},get SUPPORT_CORS_IMAGES(){var dn=void 0!==new Image().crossOrigin;return Object.defineProperty(di,"SUPPORT_CORS_IMAGES",{value:dn}),dn},get SUPPORT_RESPONSE_TYPE(){var dp="string"==typeof new XMLHttpRequest().responseType;return Object.defineProperty(di,"SUPPORT_RESPONSE_TYPE",{value:dp}),dp},get SUPPORT_CORS_XHR(){var dq="withCredentials"in new XMLHttpRequest;return Object.defineProperty(di,"SUPPORT_CORS_XHR",{value:dq}),dq},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var dr=!!("undefined"!=typeof Intl&&Intl.Segmenter);return Object.defineProperty(di,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:dr}),dr}},ds=function(a,b){this.text=a,this.bounds=b},dt=function(a,b,c,d){var e=dx(b,c),f=[],g=0;return e.forEach(function(b){if(c.textDecorationLine.length||b.trim().length>0)if(di.SUPPORT_RANGE_BOUNDS){var e=dv(d,g,b.length).getClientRects();if(e.length>1){var h=dw(b),i=0;h.forEach(function(b){f.push(new ds(b,o.fromDOMRectList(a,dv(d,i+g,b.length).getClientRects()))),i+=b.length})}else f.push(new ds(b,o.fromDOMRectList(a,e)))}else{var j=d.splitText(b.length);f.push(new ds(b,du(a,d))),d=j}else di.SUPPORT_RANGE_BOUNDS||(d=d.splitText(b.length));g+=b.length}),f},du=function(a,b){var c=b.ownerDocument;if(c){var d=c.createElement("html2canvaswrapper");d.appendChild(b.cloneNode(!0));var e=b.parentNode;if(e){e.replaceChild(d,b);var f=p(a,d);return d.firstChild&&e.replaceChild(d.firstChild,d),f}}return o.EMPTY},dv=function(a,b,c){var d=a.ownerDocument;if(!d)throw Error("Node has no owner document");var e=d.createRange();return e.setStart(a,b),e.setEnd(a,b+c),e},dw=function(a){return di.SUPPORT_NATIVE_TEXT_SEGMENTATION?Array.from(new Intl.Segmenter(void 0,{granularity:"grapheme"}).segment(a)).map(function(a){return a.segment}):da(a)},dx=function(a,b){return 0!==b.letterSpacing?dw(a):di.SUPPORT_NATIVE_TEXT_SEGMENTATION?Array.from(new Intl.Segmenter(void 0,{granularity:"word"}).segment(a)).map(function(a){return a.segment}):dz(a,b)},dy=[32,160,4961,65792,65793,4153,4241],dz=function(a,b){for(var c,d=X(a,{lineBreak:b.lineBreak,wordBreak:"break-word"===b.overflowWrap?"break-word":b.wordBreak}),e=[];!(c=d.next()).done;)!function(){if(c.value){var a=r(c.value.slice()),b="";a.forEach(function(a){-1===dy.indexOf(a)?b+=s(a):(b.length&&e.push(b),e.push(s(a)),b="")}),b.length&&e.push(b)}}();return e},dA=function(a,b,c){this.text=dB(b.data,c.textTransform),this.textBounds=dt(a,this.text,c,b)},dB=function(a,b){switch(b){case 1:return a.toLowerCase();case 3:return a.replace(dC,dD);case 2:return a.toUpperCase();default:return a}},dC=/(^|\s|:|-|\(|\))([a-z])/g,dD=function(a,b,c){return a.length>0?b+c.toUpperCase():a},dE=function(a){function b(b,c){var d=a.call(this,b,c)||this;return d.src=c.currentSrc||c.src,d.intrinsicWidth=c.naturalWidth,d.intrinsicHeight=c.naturalHeight,d.context.cache.addImage(d.src),d}return j(b,a),b}(cT),dF=function(a){function b(b,c){var d=a.call(this,b,c)||this;return d.canvas=c,d.intrinsicWidth=c.width,d.intrinsicHeight=c.height,d}return j(b,a),b}(cT),dG=function(a){function b(b,c){var d=a.call(this,b,c)||this,e=new XMLSerializer,f=p(b,c);return c.setAttribute("width",f.width+"px"),c.setAttribute("height",f.height+"px"),d.svg="data:image/svg+xml,"+encodeURIComponent(e.serializeToString(c)),d.intrinsicWidth=c.width.baseVal.value,d.intrinsicHeight=c.height.baseVal.value,d.context.cache.addImage(d.svg),d}return j(b,a),b}(cT),dH=function(a){function b(b,c){var d=a.call(this,b,c)||this;return d.value=c.value,d}return j(b,a),b}(cT),dI=function(a){function b(b,c){var d=a.call(this,b,c)||this;return d.start=c.start,d.reversed="boolean"==typeof c.reversed&&!0===c.reversed,d}return j(b,a),b}(cT),dJ=[{type:15,flags:0,unit:"px",number:3}],dK=[{type:16,flags:0,number:50}],dL=function(a){var b=a.type===dO?Array(a.value.length+1).join("•"):a.value;return 0===b.length?a.placeholder||"":b},dM="checkbox",dN="radio",dO="password",dP=function(a){function b(b,c){var d,e=a.call(this,b,c)||this;switch(e.type=c.type.toLowerCase(),e.checked=c.checked,e.value=dL(c),(e.type===dM||e.type===dN)&&(e.styles.backgroundColor=0xdededeff,e.styles.borderTopColor=e.styles.borderRightColor=e.styles.borderBottomColor=e.styles.borderLeftColor=0xa5a5a5ff,e.styles.borderTopWidth=e.styles.borderRightWidth=e.styles.borderBottomWidth=e.styles.borderLeftWidth=1,e.styles.borderTopStyle=e.styles.borderRightStyle=e.styles.borderBottomStyle=e.styles.borderLeftStyle=1,e.styles.backgroundClip=[0],e.styles.backgroundOrigin=[0],e.bounds=(d=e.bounds).width>d.height?new o(d.left+(d.width-d.height)/2,d.top,d.height,d.height):d.width0)c.textNodes.push(new dA(a,e,c.styles));else if(d$(e))if(ed(e)&&e.assignedNodes)e.assignedNodes().forEach(function(b){return dU(a,b,c,d)});else{var g=dV(a,e);g.styles.isVisible()&&(dX(e,g,d)?g.flags|=4:dY(g.styles)&&(g.flags|=2),-1!==dT.indexOf(e.tagName)&&(g.flags|=8),c.elements.push(g),e.slot,e.shadowRoot?dU(a,e.shadowRoot,g,d):eb(e)||d4(e)||ec(e)||dU(a,e,g,d))}},dV=function(a,b){return d8(b)?new dE(a,b):d6(b)?new dF(a,b):d4(b)?new dG(a,b):d1(b)?new dH(a,b):d2(b)?new dI(a,b):d3(b)?new dP(a,b):ec(b)?new dQ(a,b):eb(b)?new dR(a,b):d9(b)?new dS(a,b):new cT(a,b)},dW=function(a,b){var c=dV(a,b);return c.flags|=4,dU(a,b,c,c),c},dX=function(a,b,c){return b.styles.isPositionedWithZIndex()||b.styles.opacity<1||b.styles.isTransformed()||d5(a)&&c.styles.isTransparent()},dY=function(a){return a.isPositioned()||a.isFloating()},dZ=function(a){return a.nodeType===Node.TEXT_NODE},d$=function(a){return a.nodeType===Node.ELEMENT_NODE},d_=function(a){return d$(a)&&void 0!==a.style&&!d0(a)},d0=function(a){return"object"==typeof a.className},d1=function(a){return"LI"===a.tagName},d2=function(a){return"OL"===a.tagName},d3=function(a){return"INPUT"===a.tagName},d4=function(a){return"svg"===a.tagName},d5=function(a){return"BODY"===a.tagName},d6=function(a){return"CANVAS"===a.tagName},d7=function(a){return"VIDEO"===a.tagName},d8=function(a){return"IMG"===a.tagName},d9=function(a){return"IFRAME"===a.tagName},ea=function(a){return"STYLE"===a.tagName},eb=function(a){return"TEXTAREA"===a.tagName},ec=function(a){return"SELECT"===a.tagName},ed=function(a){return"SLOT"===a.tagName},ee=function(a){return a.tagName.indexOf("-")>0},ef=function(){function a(){this.counters={}}return a.prototype.getCounterValue=function(a){var b=this.counters[a];return b&&b.length?b[b.length-1]:1},a.prototype.getCounterValues=function(a){return this.counters[a]||[]},a.prototype.pop=function(a){var b=this;a.forEach(function(a){return b.counters[a].pop()})},a.prototype.parse=function(a){var b=this,c=a.counterIncrement,d=a.counterReset,e=!0;null!==c&&c.forEach(function(a){var c=b.counters[a.counter];c&&0!==a.increment&&(e=!1,c.length||c.push(1),c[Math.max(0,c.length-1)]+=a.increment)});var f=[];return e&&d.forEach(function(a){var c=b.counters[a.counter];f.push(a.counter),c||(c=b.counters[a.counter]=[]),c.push(a.reset)}),f},a}(),eg={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},eh={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},ei={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},ej={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},ek=function(a,b,c,d,e,f){return ac?et(a,e,f.length>0):d.integers.reduce(function(b,c,e){for(;a>=c;)a-=c,b+=d.values[e];return b},"")+f},el=function(a,b,c,d){var e="";do!c&&a--,e=d(a)+e,a/=b;while(a*b>=b);return e},em=function(a,b,c,d,e){var f=c-b+1;return(a<0?"-":"")+(el(Math.abs(a),f,d,function(a){return s(Math.floor(a%f)+b)})+e)},en=function(a,b,c){void 0===c&&(c=". ");var d=b.length;return el(Math.abs(a),d,!1,function(a){return b[Math.floor(a%d)]})+c},eo=function(a,b,c,d,e,f){if(a<-9999||a>9999)return et(a,4,e.length>0);var g=Math.abs(a),h=e;if(0===g)return b[0]+h;for(var i=0;g>0&&i<=4;i++){var j=g%10;0===j&&cC(f,1)&&""!==h?h=b[j]+h:j>1||1===j&&0===i||1===j&&1===i&&cC(f,2)||1===j&&1===i&&cC(f,4)&&a>100||1===j&&i>1&&cC(f,8)?h=b[j]+(i>0?c[i-1]:"")+h:1===j&&i>0&&(h=c[i-1]+h),g=Math.floor(g/10)}return(a<0?d:"")+h},ep="十百千萬",eq="拾佰仟萬",er="マイナス",es="마이너스",et=function(a,b,c){var d=c?". ":"",e=c?"、":"",f=c?", ":"",g=c?" ":"";switch(b){case 0:return"•"+g;case 1:return"◦"+g;case 2:return"◾"+g;case 5:var h=em(a,48,57,!0,d);return h.length<4?"0"+h:h;case 4:return en(a,"〇一二三四五六七八九",e);case 6:return ek(a,1,3999,eg,3,d).toLowerCase();case 7:return ek(a,1,3999,eg,3,d);case 8:return em(a,945,969,!1,d);case 9:return em(a,97,122,!1,d);case 10:return em(a,65,90,!1,d);case 11:return em(a,1632,1641,!0,d);case 12:case 49:return ek(a,1,9999,eh,3,d);case 35:return ek(a,1,9999,eh,3,d).toLowerCase();case 13:return em(a,2534,2543,!0,d);case 14:case 30:return em(a,6112,6121,!0,d);case 15:return en(a,"子丑寅卯辰巳午未申酉戌亥",e);case 16:return en(a,"甲乙丙丁戊己庚辛壬癸",e);case 17:case 48:return eo(a,"零一二三四五六七八九",ep,"負",e,14);case 47:return eo(a,"零壹貳參肆伍陸柒捌玖",eq,"負",e,15);case 42:return eo(a,"零一二三四五六七八九",ep,"负",e,14);case 41:return eo(a,"零壹贰叁肆伍陆柒捌玖",eq,"负",e,15);case 26:return eo(a,"〇一二三四五六七八九","十百千万",er,e,0);case 25:return eo(a,"零壱弐参四伍六七八九","拾百千万",er,e,7);case 31:return eo(a,"영일이삼사오육칠팔구","십백천만",es,f,7);case 33:return eo(a,"零一二三四五六七八九","十百千萬",es,f,0);case 32:return eo(a,"零壹貳參四五六七八九","拾百千",es,f,7);case 18:return em(a,2406,2415,!0,d);case 20:return ek(a,1,19999,ej,3,d);case 21:return em(a,2790,2799,!0,d);case 22:return em(a,2662,2671,!0,d);case 22:return ek(a,1,10999,ei,3,d);case 23:return en(a,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return en(a,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return em(a,3302,3311,!0,d);case 28:return en(a,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",e);case 29:return en(a,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",e);case 34:return em(a,3792,3801,!0,d);case 37:return em(a,6160,6169,!0,d);case 38:return em(a,4160,4169,!0,d);case 39:return em(a,2918,2927,!0,d);case 40:return em(a,1776,1785,!0,d);case 43:return em(a,3046,3055,!0,d);case 44:return em(a,3174,3183,!0,d);case 45:return em(a,3664,3673,!0,d);case 46:return em(a,3872,3881,!0,d);default:return em(a,48,57,!0,d)}},eu="data-html2canvas-ignore",ev=function(){function a(a,b,c){if(this.context=a,this.options=c,this.scrolledElements=[],this.referenceElement=b,this.counters=new ef,this.quoteDepth=0,!b.ownerDocument)throw Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(b.ownerDocument.documentElement,!1)}return a.prototype.toIFrame=function(a,b){var c=this,d=ew(a,b);if(!d.contentWindow)return Promise.reject("Unable to find iframe window");var e=a.defaultView.pageXOffset,f=a.defaultView.pageYOffset,g=d.contentWindow,h=g.document,i=ez(d).then(function(){return l(c,void 0,void 0,function(){var a,c;return m(this,function(e){switch(e.label){case 0:if(this.scrolledElements.forEach(eE),g&&(g.scrollTo(b.left,b.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(g.scrollY!==b.top||g.scrollX!==b.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(g.scrollX-b.left,g.scrollY-b.top,0,0))),a=this.options.onclone,void 0===(c=this.clonedReferenceElement))return[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")];if(!(h.fonts&&h.fonts.ready))return[3,2];return[4,h.fonts.ready];case 1:e.sent(),e.label=2;case 2:if(!/(AppleWebKit)/g.test(navigator.userAgent))return[3,4];return[4,ey(h)];case 3:e.sent(),e.label=4;case 4:if("function"==typeof a)return[2,Promise.resolve().then(function(){return a(h,c)}).then(function(){return d})];return[2,d]}})})});return h.open(),h.write(eC(document.doctype)+""),eD(this.referenceElement.ownerDocument,e,f),h.replaceChild(h.adoptNode(this.documentElement),h.documentElement),h.close(),i},a.prototype.createElementClone=function(a){if(cS(a,2),d6(a))return this.createCanvasClone(a);if(d7(a))return this.createVideoClone(a);if(ea(a))return this.createStyleClone(a);var b=a.cloneNode(!1);return(d8(b)&&(d8(a)&&a.currentSrc&&a.currentSrc!==a.src&&(b.src=a.currentSrc,b.srcset=""),"lazy"===b.loading&&(b.loading="eager")),ee(b))?this.createCustomElementClone(b):b},a.prototype.createCustomElementClone=function(a){var b=document.createElement("html2canvascustomelement");return eB(a.style,b),b},a.prototype.createStyleClone=function(a){try{var b=a.sheet;if(b&&b.cssRules){var c=[].slice.call(b.cssRules,0).reduce(function(a,b){return b&&"string"==typeof b.cssText?a+b.cssText:a},""),d=a.cloneNode(!1);return d.textContent=c,d}}catch(a){if(this.context.logger.error("Unable to access cssRules property",a),"SecurityError"!==a.name)throw a}return a.cloneNode(!1)},a.prototype.createCanvasClone=function(a){if(this.options.inlineImages&&a.ownerDocument){var b,c=a.ownerDocument.createElement("img");try{return c.src=a.toDataURL(),c}catch(b){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",a)}}var d=a.cloneNode(!1);try{d.width=a.width,d.height=a.height;var e=a.getContext("2d"),f=d.getContext("2d");if(f)if(!this.options.allowTaint&&e)f.putImageData(e.getImageData(0,0,a.width,a.height),0,0);else{var g=null!=(b=a.getContext("webgl2"))?b:a.getContext("webgl");if(g){var h=g.getContextAttributes();(null==h?void 0:h.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",a)}f.drawImage(a,0,0)}}catch(b){this.context.logger.info("Unable to clone canvas as it is tainted",a)}return d},a.prototype.createVideoClone=function(a){var b=a.ownerDocument.createElement("canvas");b.width=a.offsetWidth,b.height=a.offsetHeight;var c=b.getContext("2d");try{return c&&(c.drawImage(a,0,0,b.width,b.height),this.options.allowTaint||c.getImageData(0,0,b.width,b.height)),b}catch(b){this.context.logger.info("Unable to clone video as it is tainted",a)}var d=a.ownerDocument.createElement("canvas");return d.width=a.offsetWidth,d.height=a.offsetHeight,d},a.prototype.appendChildNode=function(a,b,c){d$(b)&&("SCRIPT"===b.tagName||b.hasAttribute(eu)||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(b))||this.options.copyStyles&&d$(b)&&ea(b)||a.appendChild(this.cloneNode(b,c))},a.prototype.cloneChildNodes=function(a,b,c){for(var d=this,e=a.shadowRoot?a.shadowRoot.firstChild:a.firstChild;e;e=e.nextSibling)if(d$(e)&&ed(e)&&"function"==typeof e.assignedNodes){var f=e.assignedNodes();f.length&&f.forEach(function(a){return d.appendChildNode(b,a,c)})}else this.appendChildNode(b,e,c)},a.prototype.cloneNode=function(a,b){if(dZ(a))return document.createTextNode(a.data);if(!a.ownerDocument)return a.cloneNode(!1);var c=a.ownerDocument.defaultView;if(c&&d$(a)&&(d_(a)||d0(a))){var d=this.createElementClone(a);d.style.transitionProperty="none";var e=c.getComputedStyle(a),f=c.getComputedStyle(a,":before"),h=c.getComputedStyle(a,":after");this.referenceElement===a&&d_(d)&&(this.clonedReferenceElement=d),d5(d)&&eI(d);var i=this.counters.parse(new cP(this.context,e)),j=this.resolvePseudoContent(a,d,f,g.BEFORE);ee(a)&&(b=!0),d7(a)||this.cloneChildNodes(a,d,b),j&&d.insertBefore(j,d.firstChild);var k=this.resolvePseudoContent(a,d,h,g.AFTER);return k&&d.appendChild(k),this.counters.pop(i),(e&&(this.options.copyStyles||d0(a))&&!d9(a)||b)&&eB(e,d),(0!==a.scrollTop||0!==a.scrollLeft)&&this.scrolledElements.push([d,a.scrollLeft,a.scrollTop]),(eb(a)||ec(a))&&(eb(d)||ec(d))&&(d.value=a.value),d}return a.cloneNode(!1)},a.prototype.resolvePseudoContent=function(a,b,c,d){var e=this;if(c){var f=c.content,h=b.ownerDocument;if(h&&f&&"none"!==f&&"-moz-alt-content"!==f&&"none"!==c.display){this.counters.parse(new cP(this.context,c));var i=new cO(this.context,c),j=h.createElement("html2canvaspseudoelement");eB(c,j),i.content.forEach(function(b){if(0===b.type)j.appendChild(h.createTextNode(b.value));else if(22===b.type){var c=h.createElement("img");c.src=b.value,c.style.opacity="1",j.appendChild(c)}else if(18===b.type){if("attr"===b.name){var d=b.values.filter(aF);d.length&&j.appendChild(h.createTextNode(a.getAttribute(d[0].value)||""))}else if("counter"===b.name){var f=b.values.filter(aJ),g=f[0],k=f[1];if(g&&aF(g)){var l=e.counters.getCounterValue(g.value),m=k&&aF(k)?b4.parse(e.context,k.value):3;j.appendChild(h.createTextNode(et(l,m,!1)))}}else if("counters"===b.name){var n=b.values.filter(aJ),g=n[0],o=n[1],k=n[2];if(g&&aF(g)){var p=e.counters.getCounterValues(g.value),q=k&&aF(k)?b4.parse(e.context,k.value):3,r=o&&0===o.type?o.value:"",s=p.map(function(a){return et(a,q,!1)}).join(r);j.appendChild(h.createTextNode(s))}}}else if(20===b.type)switch(b.value){case"open-quote":j.appendChild(h.createTextNode(cI(i.quotes,e.quoteDepth++,!0)));break;case"close-quote":j.appendChild(h.createTextNode(cI(i.quotes,--e.quoteDepth,!1)));break;default:j.appendChild(h.createTextNode(b.value))}}),j.className=eF+" "+eG;var k=d===g.BEFORE?" "+eF:" "+eG;return d0(b)?b.className.baseValue+=k:b.className+=k,j}}},a.destroy=function(a){return!!a.parentNode&&(a.parentNode.removeChild(a),!0)},a}();!function(a){a[a.BEFORE=0]="BEFORE",a[a.AFTER=1]="AFTER"}(g||(g={}));var ew=function(a,b){var c=a.createElement("iframe");return c.className="html2canvas-container",c.style.visibility="hidden",c.style.position="fixed",c.style.left="-10000px",c.style.top="0px",c.style.border="0",c.width=b.width.toString(),c.height=b.height.toString(),c.scrolling="no",c.setAttribute(eu,"true"),a.body.appendChild(c),c},ex=function(a){return new Promise(function(b){if(a.complete||!a.src)return void b();a.onload=b,a.onerror=b})},ey=function(a){return Promise.all([].slice.call(a.images,0).map(ex))},ez=function(a){return new Promise(function(b,c){var d=a.contentWindow;if(!d)return c("No window assigned for iframe");var e=d.document;d.onload=a.onload=function(){d.onload=a.onload=null;var c=setInterval(function(){e.body.childNodes.length>0&&"complete"===e.readyState&&(clearInterval(c),b(a))},50)}})},eA=["all","d","content"],eB=function(a,b){for(var c=a.length-1;c>=0;c--){var d=a.item(c);-1===eA.indexOf(d)&&b.style.setProperty(d,a.getPropertyValue(d))}return b},eC=function(a){var b="";return a&&(b+=""),b},eD=function(a,b,c){a&&a.defaultView&&(b!==a.defaultView.pageXOffset||c!==a.defaultView.pageYOffset)&&a.defaultView.scrollTo(b,c)},eE=function(a){var b=a[0],c=a[1],d=a[2];b.scrollLeft=c,b.scrollTop=d},eF="___html2canvas___pseudoelement_before",eG="___html2canvas___pseudoelement_after",eH='{\n content: "" !important;\n display: none !important;\n}',eI=function(a){eJ(a,"."+eF+":before"+eH+"\n ."+eG+":after"+eH)},eJ=function(a,b){var c=a.ownerDocument;if(c){var d=c.createElement("style");d.textContent=b,a.appendChild(d)}},eK=function(){function a(){}return a.getOrigin=function(b){var c=a._link;return c?(c.href=b,c.href=c.href,c.protocol+c.hostname+c.port):"about:blank"},a.isSameOrigin=function(b){return a.getOrigin(b)===a._origin},a.setContext=function(b){a._link=b.document.createElement("a"),a._origin=a.getOrigin(b.location.href)},a._origin="about:blank",a}(),eL=function(){function a(a,b){this.context=a,this._options=b,this._cache={}}return a.prototype.addImage=function(a){var b=Promise.resolve();return this.has(a)||(eS(a)||eP(a))&&(this._cache[a]=this.loadImage(a)).catch(function(){}),b},a.prototype.match=function(a){return this._cache[a]},a.prototype.loadImage=function(a){return l(this,void 0,void 0,function(){var b,c,d,e,f=this;return m(this,function(g){switch(g.label){case 0:if(b=eK.isSameOrigin(a),c=!eQ(a)&&!0===this._options.useCORS&&di.SUPPORT_CORS_IMAGES&&!b,d=!eQ(a)&&!b&&!eS(a)&&"string"==typeof this._options.proxy&&di.SUPPORT_CORS_XHR&&!c,!b&&!1===this._options.allowTaint&&!eQ(a)&&!eS(a)&&!d&&!c)return[2];if(e=a,!d)return[3,2];return[4,this.proxy(e)];case 1:e=g.sent(),g.label=2;case 2:return this.context.logger.debug("Added image "+a.substring(0,256)),[4,new Promise(function(a,b){var d=new Image;d.onload=function(){return a(d)},d.onerror=b,(eR(e)||c)&&(d.crossOrigin="anonymous"),d.src=e,!0===d.complete&&setTimeout(function(){return a(d)},500),f._options.imageTimeout>0&&setTimeout(function(){return b("Timed out ("+f._options.imageTimeout+"ms) loading image")},f._options.imageTimeout)})];case 3:return[2,g.sent()]}})})},a.prototype.has=function(a){return void 0!==this._cache[a]},a.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},a.prototype.proxy=function(a){var b=this,c=this._options.proxy;if(!c)throw Error("No proxy defined");var d=a.substring(0,256);return new Promise(function(e,f){var g=di.SUPPORT_RESPONSE_TYPE?"blob":"text",h=new XMLHttpRequest;h.onload=function(){if(200===h.status)if("text"===g)e(h.response);else{var a=new FileReader;a.addEventListener("load",function(){return e(a.result)},!1),a.addEventListener("error",function(a){return f(a)},!1),a.readAsDataURL(h.response)}else f("Failed to proxy resource "+d+" with status code "+h.status)},h.onerror=f;var i=c.indexOf("?")>-1?"&":"?";if(h.open("GET",""+c+i+"url="+encodeURIComponent(a)+"&responseType="+g),"text"!==g&&h instanceof XMLHttpRequest&&(h.responseType=g),b._options.imageTimeout){var j=b._options.imageTimeout;h.timeout=j,h.ontimeout=function(){return f("Timed out ("+j+"ms) proxying "+d)}}h.send()})},a}(),eM=/^data:image\/svg\+xml/i,eN=/^data:image\/.*;base64,/i,eO=/^data:image\/.*/i,eP=function(a){return di.SUPPORT_SVG_DRAWING||!eT(a)},eQ=function(a){return eO.test(a)},eR=function(a){return eN.test(a)},eS=function(a){return"blob"===a.substr(0,4)},eT=function(a){return"svg"===a.substr(-3).toLowerCase()||eM.test(a)},eU=function(){function a(a,b){this.type=0,this.x=a,this.y=b}return a.prototype.add=function(b,c){return new a(this.x+b,this.y+c)},a}(),eV=function(a,b,c){return new eU(a.x+(b.x-a.x)*c,a.y+(b.y-a.y)*c)},eW=function(){function a(a,b,c,d){this.type=1,this.start=a,this.startControl=b,this.endControl=c,this.end=d}return a.prototype.subdivide=function(b,c){var d=eV(this.start,this.startControl,b),e=eV(this.startControl,this.endControl,b),f=eV(this.endControl,this.end,b),g=eV(d,e,b),h=eV(e,f,b),i=eV(g,h,b);return c?new a(this.start,d,g,i):new a(i,h,f,this.end)},a.prototype.add=function(b,c){return new a(this.start.add(b,c),this.startControl.add(b,c),this.endControl.add(b,c),this.end.add(b,c))},a.prototype.reverse=function(){return new a(this.end,this.endControl,this.startControl,this.start)},a}(),eX=function(a){return 1===a.type},eY=function(a){var b=a.styles,c=a.bounds,d=aS(b.borderTopLeftRadius,c.width,c.height),e=d[0],f=d[1],g=aS(b.borderTopRightRadius,c.width,c.height),i=g[0],j=g[1],k=aS(b.borderBottomRightRadius,c.width,c.height),l=k[0],m=k[1],n=aS(b.borderBottomLeftRadius,c.width,c.height),o=n[0],p=n[1],q=[];q.push((e+i)/c.width),q.push((o+l)/c.width),q.push((f+p)/c.height),q.push((j+m)/c.height);var r=Math.max.apply(Math,q);r>1&&(e/=r,f/=r,i/=r,j/=r,l/=r,m/=r,o/=r,p/=r);var s=c.width-i,t=c.height-m,u=c.width-l,v=c.height-p,w=b.borderTopWidth,x=b.borderRightWidth,y=b.borderBottomWidth,z=b.borderLeftWidth,A=aT(b.paddingTop,a.bounds.width),B=aT(b.paddingRight,a.bounds.width),C=aT(b.paddingBottom,a.bounds.width),D=aT(b.paddingLeft,a.bounds.width);this.topLeftBorderDoubleOuterBox=e>0||f>0?eZ(c.left+z/3,c.top+w/3,e-z/3,f-w/3,h.TOP_LEFT):new eU(c.left+z/3,c.top+w/3),this.topRightBorderDoubleOuterBox=e>0||f>0?eZ(c.left+s,c.top+w/3,i-x/3,j-w/3,h.TOP_RIGHT):new eU(c.left+c.width-x/3,c.top+w/3),this.bottomRightBorderDoubleOuterBox=l>0||m>0?eZ(c.left+u,c.top+t,l-x/3,m-y/3,h.BOTTOM_RIGHT):new eU(c.left+c.width-x/3,c.top+c.height-y/3),this.bottomLeftBorderDoubleOuterBox=o>0||p>0?eZ(c.left+z/3,c.top+v,o-z/3,p-y/3,h.BOTTOM_LEFT):new eU(c.left+z/3,c.top+c.height-y/3),this.topLeftBorderDoubleInnerBox=e>0||f>0?eZ(c.left+2*z/3,c.top+2*w/3,e-2*z/3,f-2*w/3,h.TOP_LEFT):new eU(c.left+2*z/3,c.top+2*w/3),this.topRightBorderDoubleInnerBox=e>0||f>0?eZ(c.left+s,c.top+2*w/3,i-2*x/3,j-2*w/3,h.TOP_RIGHT):new eU(c.left+c.width-2*x/3,c.top+2*w/3),this.bottomRightBorderDoubleInnerBox=l>0||m>0?eZ(c.left+u,c.top+t,l-2*x/3,m-2*y/3,h.BOTTOM_RIGHT):new eU(c.left+c.width-2*x/3,c.top+c.height-2*y/3),this.bottomLeftBorderDoubleInnerBox=o>0||p>0?eZ(c.left+2*z/3,c.top+v,o-2*z/3,p-2*y/3,h.BOTTOM_LEFT):new eU(c.left+2*z/3,c.top+c.height-2*y/3),this.topLeftBorderStroke=e>0||f>0?eZ(c.left+z/2,c.top+w/2,e-z/2,f-w/2,h.TOP_LEFT):new eU(c.left+z/2,c.top+w/2),this.topRightBorderStroke=e>0||f>0?eZ(c.left+s,c.top+w/2,i-x/2,j-w/2,h.TOP_RIGHT):new eU(c.left+c.width-x/2,c.top+w/2),this.bottomRightBorderStroke=l>0||m>0?eZ(c.left+u,c.top+t,l-x/2,m-y/2,h.BOTTOM_RIGHT):new eU(c.left+c.width-x/2,c.top+c.height-y/2),this.bottomLeftBorderStroke=o>0||p>0?eZ(c.left+z/2,c.top+v,o-z/2,p-y/2,h.BOTTOM_LEFT):new eU(c.left+z/2,c.top+c.height-y/2),this.topLeftBorderBox=e>0||f>0?eZ(c.left,c.top,e,f,h.TOP_LEFT):new eU(c.left,c.top),this.topRightBorderBox=i>0||j>0?eZ(c.left+s,c.top,i,j,h.TOP_RIGHT):new eU(c.left+c.width,c.top),this.bottomRightBorderBox=l>0||m>0?eZ(c.left+u,c.top+t,l,m,h.BOTTOM_RIGHT):new eU(c.left+c.width,c.top+c.height),this.bottomLeftBorderBox=o>0||p>0?eZ(c.left,c.top+v,o,p,h.BOTTOM_LEFT):new eU(c.left,c.top+c.height),this.topLeftPaddingBox=e>0||f>0?eZ(c.left+z,c.top+w,Math.max(0,e-z),Math.max(0,f-w),h.TOP_LEFT):new eU(c.left+z,c.top+w),this.topRightPaddingBox=i>0||j>0?eZ(c.left+Math.min(s,c.width-x),c.top+w,s>c.width+x?0:Math.max(0,i-x),Math.max(0,j-w),h.TOP_RIGHT):new eU(c.left+c.width-x,c.top+w),this.bottomRightPaddingBox=l>0||m>0?eZ(c.left+Math.min(u,c.width-z),c.top+Math.min(t,c.height-y),Math.max(0,l-x),Math.max(0,m-y),h.BOTTOM_RIGHT):new eU(c.left+c.width-x,c.top+c.height-y),this.bottomLeftPaddingBox=o>0||p>0?eZ(c.left+z,c.top+Math.min(v,c.height-y),Math.max(0,o-z),Math.max(0,p-y),h.BOTTOM_LEFT):new eU(c.left+z,c.top+c.height-y),this.topLeftContentBox=e>0||f>0?eZ(c.left+z+D,c.top+w+A,Math.max(0,e-(z+D)),Math.max(0,f-(w+A)),h.TOP_LEFT):new eU(c.left+z+D,c.top+w+A),this.topRightContentBox=i>0||j>0?eZ(c.left+Math.min(s,c.width+z+D),c.top+w+A,s>c.width+z+D?0:i-z+D,j-(w+A),h.TOP_RIGHT):new eU(c.left+c.width-(x+B),c.top+w+A),this.bottomRightContentBox=l>0||m>0?eZ(c.left+Math.min(u,c.width-(z+D)),c.top+Math.min(t,c.height+w+A),Math.max(0,l-(x+B)),m-(y+C),h.BOTTOM_RIGHT):new eU(c.left+c.width-(x+B),c.top+c.height-(y+C)),this.bottomLeftContentBox=o>0||p>0?eZ(c.left+z+D,c.top+v,Math.max(0,o-(z+D)),p-(y+C),h.BOTTOM_LEFT):new eU(c.left+z+D,c.top+c.height-(y+C))};!function(a){a[a.TOP_LEFT=0]="TOP_LEFT",a[a.TOP_RIGHT=1]="TOP_RIGHT",a[a.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",a[a.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(h||(h={}));var eZ=function(a,b,c,d,e){var f=(Math.sqrt(2)-1)/3*4,g=c*f,i=d*f,j=a+c,k=b+d;switch(e){case h.TOP_LEFT:return new eW(new eU(a,k),new eU(a,k-i),new eU(j-g,b),new eU(j,b));case h.TOP_RIGHT:return new eW(new eU(a,b),new eU(a+g,b),new eU(j,k-i),new eU(j,k));case h.BOTTOM_RIGHT:return new eW(new eU(j,b),new eU(j,b+i),new eU(a+g,k),new eU(a,k));case h.BOTTOM_LEFT:default:return new eW(new eU(j,k),new eU(j-g,k),new eU(a,b+i),new eU(a,b))}},e$=function(a){return[a.topLeftBorderBox,a.topRightBorderBox,a.bottomRightBorderBox,a.bottomLeftBorderBox]},e_=function(a){return[a.topLeftPaddingBox,a.topRightPaddingBox,a.bottomRightPaddingBox,a.bottomLeftPaddingBox]},e0=function(a,b,c){this.offsetX=a,this.offsetY=b,this.matrix=c,this.type=0,this.target=6},e1=function(a,b){this.path=a,this.target=b,this.type=1},e2=function(a){this.opacity=a,this.type=2,this.target=6},e3=function(a){return 1===a.type},e4=function(a,b){return a.length===b.length&&a.some(function(a,c){return a===b[c]})},e5=function(a){this.element=a,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]},e6=function(){function a(a,b){if(this.container=a,this.parent=b,this.effects=[],this.curves=new eY(this.container),this.container.styles.opacity<1&&this.effects.push(new e2(this.container.styles.opacity)),null!==this.container.styles.transform){var c=this.container.bounds.left+this.container.styles.transformOrigin[0].number,d=this.container.bounds.top+this.container.styles.transformOrigin[1].number,e=this.container.styles.transform;this.effects.push(new e0(c,d,e))}if(0!==this.container.styles.overflowX){var f=e$(this.curves),g=e_(this.curves);e4(f,g)?this.effects.push(new e1(f,6)):(this.effects.push(new e1(f,2)),this.effects.push(new e1(g,4)))}}return a.prototype.getEffects=function(a){for(var b=-1===[2,3].indexOf(this.container.styles.position),c=this.parent,d=this.effects.slice(0);c;){var e=c.effects.filter(function(a){return!e3(a)});if(b||0!==c.container.styles.position||!c.parent){if(d.unshift.apply(d,e),b=-1===[2,3].indexOf(c.container.styles.position),0!==c.container.styles.overflowX){var f=e$(c.curves),g=e_(c.curves);e4(f,g)||d.unshift(new e1(g,6))}}else d.unshift.apply(d,e);c=c.parent}return d.filter(function(b){return cC(b.target,a)})},a}(),e7=function(a,b,c,d){a.container.elements.forEach(function(e){var f=cC(e.flags,4),g=cC(e.flags,2),h=new e6(e,a);cC(e.styles.display,2048)&&d.push(h);var i=cC(e.flags,8)?[]:d;if(f||g){var j=f||e.styles.isPositioned()?c:b,k=new e5(h);if(e.styles.isPositioned()||e.styles.opacity<1||e.styles.isTransformed()){var l=e.styles.zIndex.order;if(l<0){var m=0;j.negativeZIndex.some(function(a,b){if(l>a.element.container.styles.zIndex.order)m=b;else if(m>0)return!0;return!1}),j.negativeZIndex.splice(m,0,k)}else if(l>0){var n=0;j.positiveZIndex.some(function(a,b){if(l>=a.element.container.styles.zIndex.order)n=b+1;else if(n>0)return!0;return!1}),j.positiveZIndex.splice(n,0,k)}else j.zeroOrAutoZIndexOrTransformedOrOpacity.push(k)}else e.styles.isFloating()?j.nonPositionedFloats.push(k):j.nonPositionedInlineLevel.push(k);e7(h,k,f?k:c,i)}else e.styles.isInlineLevel()?b.inlineLevel.push(h):b.nonInlineLevel.push(h),e7(h,b,c,i);cC(e.flags,8)&&e8(e,i)})},e8=function(a,b){for(var c=a instanceof dI?a.start:1,d=a instanceof dI&&a.reversed,e=0;e0&&a.intrinsicHeight>0){var d=fh(a),e=e_(b);this.path(e),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(c,0,0,a.intrinsicWidth,a.intrinsicHeight,d.left,d.top,d.width,d.height),this.ctx.restore()}},b.prototype.renderNodeContent=function(a){return l(this,void 0,void 0,function(){var c,d,e,f,g,h,i,j,k,l,n,p,q,r,s,t,u,v;return m(this,function(m){switch(m.label){case 0:this.applyEffects(a.getEffects(4)),c=a.container,d=a.curves,e=c.styles,f=0,g=c.textNodes,m.label=1;case 1:if(!(f0&&l>0&&(n=d.ctx.createPattern(v,"repeat"),d.renderRepeat(h,n,i,j))):2===c.type&&(h=(y=fi(a,b,[null,null,null]))[0],z=y[1],A=y[2],k=y[3],l=y[4],i=aT((B=0===c.position.length?[aQ]:c.position)[0],k),j=aT(B[B.length-1],l),D=(C=bh(c,i,j,k,l))[0],E=C[1],D>0&&E>0&&(F=d.ctx.createRadialGradient(z+i,A+j,0,z+i,A+j,D),bc(c.stops,2*D).forEach(function(a){return F.addColorStop(a.stop,a0(a.color))}),d.path(h),d.ctx.fillStyle=F,D!==E?(G=a.bounds.left+.5*a.bounds.width,H=a.bounds.top+.5*a.bounds.height,J=1/(I=E/D),d.ctx.save(),d.ctx.translate(G,H),d.ctx.transform(1,0,0,I,0,0),d.ctx.translate(-G,-H),d.ctx.fillRect(z,J*(A-H)+H,k,l*J),d.ctx.restore()):d.ctx.fill())),m.label=6;case 6:return b--,[2]}})},d=this,e=0,f=a.styles.backgroundImage.slice(0).reverse(),h.label=1;case 1:if(!(e0))return[3,11];if(2!==i.style)return[3,5];return[4,this.renderDashedDottedBorder(i.color,i.width,f,a.curves,2)];case 4:case 6:case 8:return k.sent(),[3,11];case 5:if(3!==i.style)return[3,7];return[4,this.renderDashedDottedBorder(i.color,i.width,f,a.curves,3)];case 7:if(4!==i.style)return[3,9];return[4,this.renderDoubleBorder(i.color,i.width,f,a.curves)];case 9:return[4,this.renderSolidBorder(i.color,f,a.curves)];case 10:k.sent(),k.label=11;case 11:f++,k.label=12;case 12:return g++,[3,3];case 13:return[2]}})})},b.prototype.renderDashedDottedBorder=function(a,b,c,d,e){return l(this,void 0,void 0,function(){var f,g,h,i,j,k,l,n,o,p,q,r,s,t,u,v;return m(this,function(m){return this.ctx.save(),f=fd(d,c),g=fa(d,c),2===e&&(this.path(g),this.ctx.clip()),eX(g[0])?(h=g[0].start.x,i=g[0].start.y):(h=g[0].x,i=g[0].y),eX(g[1])?(j=g[1].end.x,k=g[1].end.y):(j=g[1].x,k=g[1].y),l=0===c||2===c?Math.abs(h-j):Math.abs(i-k),this.ctx.beginPath(),3===e?this.formatPath(f):this.formatPath(g.slice(0,2)),n=b<3?3*b:2*b,o=b<3?2*b:b,3===e&&(n=b,o=b),p=!0,l<=2*n?p=!1:l<=2*n+o?(q=l/(2*n+o),n*=q,o*=q):(r=Math.floor((l+o)/(n+o)),s=(l-r*n)/(r-1),o=(t=(l-(r+1)*n)/r)<=0||Math.abs(o-s){"use strict";function c(a){let b={};for(let[c,d]of a.entries()){let a=b[c];void 0===a?b[c]=d:Array.isArray(a)?a.push(d):b[c]=[a,d]}return b}function d(a){return"string"==typeof a?a:("number"!=typeof a||isNaN(a))&&"boolean"!=typeof a?"":String(a)}function e(a){let b=new URLSearchParams;for(let[c,e]of Object.entries(a))if(Array.isArray(e))for(let a of e)b.append(c,d(a));else b.set(c,d(e));return b}function f(a){for(var b=arguments.length,c=Array(b>1?b-1:0),d=1;d{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("folder-open",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]])},15917:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]])},15952:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("chart-column",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]])},16992:(a,b,c)=>{"use strict";c.d(b,{Kq:()=>S,UC:()=>W,ZL:()=>V,bL:()=>T,i3:()=>X,l9:()=>U});var d=c(38301),e=c(87868),f=c(92808),g=c(2332),h=c(7412),i=c(75656),j=c(25122),k=c(61611),l=c(29988),m=c(6406),n=c(96425),o=c(11720),p=c(85009),q=c(21124),[r,s]=(0,g.A)("Tooltip",[j.Bk]),t=(0,j.Bk)(),u="TooltipProvider",v="tooltip.open",[w,x]=r(u),y=a=>{let{__scopeTooltip:b,delayDuration:c=700,skipDelayDuration:e=300,disableHoverableContent:f=!1,children:g}=a,h=d.useRef(!0),i=d.useRef(!1),j=d.useRef(0);return d.useEffect(()=>{let a=j.current;return()=>window.clearTimeout(a)},[]),(0,q.jsx)(w,{scope:b,isOpenDelayedRef:h,delayDuration:c,onOpen:d.useCallback(()=>{window.clearTimeout(j.current),h.current=!1},[]),onClose:d.useCallback(()=>{window.clearTimeout(j.current),j.current=window.setTimeout(()=>h.current=!0,e)},[e]),isPointerInTransitRef:i,onPointerInTransitChange:d.useCallback(a=>{i.current=a},[]),disableHoverableContent:f,children:g})};y.displayName=u;var z="Tooltip",[A,B]=r(z),C=a=>{let{__scopeTooltip:b,children:c,open:e,defaultOpen:f,onOpenChange:g,disableHoverableContent:h,delayDuration:k}=a,l=x(z,a.__scopeTooltip),m=t(b),[n,p]=d.useState(null),r=(0,i.B)(),s=d.useRef(0),u=h??l.disableHoverableContent,w=k??l.delayDuration,y=d.useRef(!1),[B,C]=(0,o.i)({prop:e,defaultProp:f??!1,onChange:a=>{a?(l.onOpen(),document.dispatchEvent(new CustomEvent(v))):l.onClose(),g?.(a)},caller:z}),D=d.useMemo(()=>B?y.current?"delayed-open":"instant-open":"closed",[B]),E=d.useCallback(()=>{window.clearTimeout(s.current),s.current=0,y.current=!1,C(!0)},[C]),F=d.useCallback(()=>{window.clearTimeout(s.current),s.current=0,C(!1)},[C]),G=d.useCallback(()=>{window.clearTimeout(s.current),s.current=window.setTimeout(()=>{y.current=!0,C(!0),s.current=0},w)},[w,C]);return d.useEffect(()=>()=>{s.current&&(window.clearTimeout(s.current),s.current=0)},[]),(0,q.jsx)(j.bL,{...m,children:(0,q.jsx)(A,{scope:b,contentId:r,open:B,stateAttribute:D,trigger:n,onTriggerChange:p,onTriggerEnter:d.useCallback(()=>{l.isOpenDelayedRef.current?G():E()},[l.isOpenDelayedRef,G,E]),onTriggerLeave:d.useCallback(()=>{u?F():(window.clearTimeout(s.current),s.current=0)},[F,u]),onOpen:E,onClose:F,disableHoverableContent:u,children:c})})};C.displayName=z;var D="TooltipTrigger",E=d.forwardRef((a,b)=>{let{__scopeTooltip:c,...g}=a,h=B(D,c),i=x(D,c),k=t(c),l=d.useRef(null),n=(0,f.s)(b,l,h.onTriggerChange),o=d.useRef(!1),p=d.useRef(!1),r=d.useCallback(()=>o.current=!1,[]);return d.useEffect(()=>()=>document.removeEventListener("pointerup",r),[r]),(0,q.jsx)(j.Mz,{asChild:!0,...k,children:(0,q.jsx)(m.sG.button,{"aria-describedby":h.open?h.contentId:void 0,"data-state":h.stateAttribute,...g,ref:n,onPointerMove:(0,e.mK)(a.onPointerMove,a=>{"touch"!==a.pointerType&&(p.current||i.isPointerInTransitRef.current||(h.onTriggerEnter(),p.current=!0))}),onPointerLeave:(0,e.mK)(a.onPointerLeave,()=>{h.onTriggerLeave(),p.current=!1}),onPointerDown:(0,e.mK)(a.onPointerDown,()=>{h.open&&h.onClose(),o.current=!0,document.addEventListener("pointerup",r,{once:!0})}),onFocus:(0,e.mK)(a.onFocus,()=>{o.current||h.onOpen()}),onBlur:(0,e.mK)(a.onBlur,h.onClose),onClick:(0,e.mK)(a.onClick,h.onClose)})})});E.displayName=D;var F="TooltipPortal",[G,H]=r(F,{forceMount:void 0}),I=a=>{let{__scopeTooltip:b,forceMount:c,children:d,container:e}=a,f=B(F,b);return(0,q.jsx)(G,{scope:b,forceMount:c,children:(0,q.jsx)(l.C,{present:c||f.open,children:(0,q.jsx)(k.Z,{asChild:!0,container:e,children:d})})})};I.displayName=F;var J="TooltipContent",K=d.forwardRef((a,b)=>{let c=H(J,a.__scopeTooltip),{forceMount:d=c.forceMount,side:e="top",...f}=a,g=B(J,a.__scopeTooltip);return(0,q.jsx)(l.C,{present:d||g.open,children:g.disableHoverableContent?(0,q.jsx)(P,{side:e,...f,ref:b}):(0,q.jsx)(L,{side:e,...f,ref:b})})}),L=d.forwardRef((a,b)=>{let c=B(J,a.__scopeTooltip),e=x(J,a.__scopeTooltip),g=d.useRef(null),h=(0,f.s)(b,g),[i,j]=d.useState(null),{trigger:k,onClose:l}=c,m=g.current,{onPointerInTransitChange:n}=e,o=d.useCallback(()=>{j(null),n(!1)},[n]),p=d.useCallback((a,b)=>{let c=a.currentTarget,d={x:a.clientX,y:a.clientY},e=function(a,b){let c=Math.abs(b.top-a.y),d=Math.abs(b.bottom-a.y),e=Math.abs(b.right-a.x),f=Math.abs(b.left-a.x);switch(Math.min(c,d,e,f)){case f:return"left";case e:return"right";case c:return"top";case d:return"bottom";default:throw Error("unreachable")}}(d,c.getBoundingClientRect());j(function(a){let b=a.slice();return b.sort((a,b)=>a.xb.x?1:a.yb.y)),function(a){if(a.length<=1)return a.slice();let b=[];for(let c=0;c=2;){let a=b[b.length-1],c=b[b.length-2];if((a.x-c.x)*(d.y-c.y)>=(a.y-c.y)*(d.x-c.x))b.pop();else break}b.push(d)}b.pop();let c=[];for(let b=a.length-1;b>=0;b--){let d=a[b];for(;c.length>=2;){let a=c[c.length-1],b=c[c.length-2];if((a.x-b.x)*(d.y-b.y)>=(a.y-b.y)*(d.x-b.x))c.pop();else break}c.push(d)}return(c.pop(),1===b.length&&1===c.length&&b[0].x===c[0].x&&b[0].y===c[0].y)?b:b.concat(c)}(b)}([...function(a,b,c=5){let d=[];switch(b){case"top":d.push({x:a.x-c,y:a.y+c},{x:a.x+c,y:a.y+c});break;case"bottom":d.push({x:a.x-c,y:a.y-c},{x:a.x+c,y:a.y-c});break;case"left":d.push({x:a.x+c,y:a.y-c},{x:a.x+c,y:a.y+c});break;case"right":d.push({x:a.x-c,y:a.y-c},{x:a.x-c,y:a.y+c})}return d}(d,e),...function(a){let{top:b,right:c,bottom:d,left:e}=a;return[{x:e,y:b},{x:c,y:b},{x:c,y:d},{x:e,y:d}]}(b.getBoundingClientRect())])),n(!0)},[n]);return d.useEffect(()=>()=>o(),[o]),d.useEffect(()=>{if(k&&m){let a=a=>p(a,m),b=a=>p(a,k);return k.addEventListener("pointerleave",a),m.addEventListener("pointerleave",b),()=>{k.removeEventListener("pointerleave",a),m.removeEventListener("pointerleave",b)}}},[k,m,p,o]),d.useEffect(()=>{if(i){let a=a=>{let b=a.target,c={x:a.clientX,y:a.clientY},d=k?.contains(b)||m?.contains(b),e=!function(a,b){let{x:c,y:d}=a,e=!1;for(let a=0,f=b.length-1;ad!=l>d&&c<(k-i)*(d-j)/(l-j)+i&&(e=!e)}return e}(c,i);d?o():e&&(o(),l())};return document.addEventListener("pointermove",a),()=>document.removeEventListener("pointermove",a)}},[k,m,i,l,o]),(0,q.jsx)(P,{...a,ref:h})}),[M,N]=r(z,{isInside:!1}),O=(0,n.Dc)("TooltipContent"),P=d.forwardRef((a,b)=>{let{__scopeTooltip:c,children:e,"aria-label":f,onEscapeKeyDown:g,onPointerDownOutside:i,...k}=a,l=B(J,c),m=t(c),{onClose:n}=l;return d.useEffect(()=>(document.addEventListener(v,n),()=>document.removeEventListener(v,n)),[n]),d.useEffect(()=>{if(l.trigger){let a=a=>{let b=a.target;b?.contains(l.trigger)&&n()};return window.addEventListener("scroll",a,{capture:!0}),()=>window.removeEventListener("scroll",a,{capture:!0})}},[l.trigger,n]),(0,q.jsx)(h.qW,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:g,onPointerDownOutside:i,onFocusOutside:a=>a.preventDefault(),onDismiss:n,children:(0,q.jsxs)(j.UC,{"data-state":l.stateAttribute,...m,...k,ref:b,style:{...k.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,q.jsx)(O,{children:e}),(0,q.jsx)(M,{scope:c,isInside:!0,children:(0,q.jsx)(p.bL,{id:l.contentId,role:"tooltip",children:f||e})})]})})});K.displayName=J;var Q="TooltipArrow",R=d.forwardRef((a,b)=>{let{__scopeTooltip:c,...d}=a,e=t(c);return N(Q,c).isInside?null:(0,q.jsx)(j.i3,{...e,...d,ref:b})});R.displayName=Q;var S=y,T=C,U=E,V=I,W=K,X=R},17545:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"isLocalURL",{enumerable:!0,get:function(){return f}});let d=c(61962),e=c(33043);function f(a){if(!(0,d.isAbsoluteUrl)(a))return!0;try{let b=(0,d.getLocationOrigin)(),c=new URL(a,b);return c.origin===b&&(0,e.hasBasePath)(c.pathname)}catch(a){return!1}}},18004:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]])},18151:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{computeChangedPath:function(){return j},extractPathFromFlightRouterState:function(){return i},getSelectedParams:function(){return function a(b,c){for(let d of(void 0===c&&(c={}),Object.values(b[1]))){let b=d[0],f=Array.isArray(b),g=f?b[1]:b;!g||g.startsWith(e.PAGE_SEGMENT_KEY)||(f&&("c"===b[2]||"oc"===b[2])?c[b[0]]=b[1].split("/"):f&&(c[b[0]]=b[1]),c=a(d,c))}return c}}});let d=c(21054),e=c(72454),f=c(93754),g=a=>"string"==typeof a?"children"===a?"":a:a[1];function h(a){return a.reduce((a,b)=>{let c;return""===(b="/"===(c=b)[0]?c.slice(1):c)||(0,e.isGroupSegment)(b)?a:a+"/"+b},"")||"/"}function i(a){var b;let c=Array.isArray(a[0])?a[0][1]:a[0];if(c===e.DEFAULT_SEGMENT_KEY||d.INTERCEPTION_ROUTE_MARKERS.some(a=>c.startsWith(a)))return;if(c.startsWith(e.PAGE_SEGMENT_KEY))return"";let f=[g(c)],j=null!=(b=a[1])?b:{},k=j.children?i(j.children):void 0;if(void 0!==k)f.push(k);else for(let[a,b]of Object.entries(j)){if("children"===a)continue;let c=i(b);void 0!==c&&f.push(c)}return h(f)}function j(a,b){let c=function a(b,c){let[e,h]=b,[j,k]=c,l=g(e),m=g(j);if(d.INTERCEPTION_ROUTE_MARKERS.some(a=>l.startsWith(a)||m.startsWith(a)))return"";if(!(0,f.matchSegment)(e,j)){var n;return null!=(n=i(c))?n:""}for(let b in h)if(k[b]){let c=a(h[b],k[b]);if(null!==c)return g(j)+"/"+c}return null}(a,b);return null==c||"/"===c?c:h(c.split("/"))}("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},19427:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{abortTask:function(){return o},listenForDynamicRequest:function(){return n},startPPRNavigation:function(){return j},updateCacheNodeOnPopstateRestoration:function(){return function a(b,c){let d=c[1],e=b.parallelRoutes,g=new Map(e);for(let b in d){let c=d[b],h=c[0],i=(0,f.createRouterCacheKey)(h),j=e.get(b);if(void 0!==j){let d=j.get(i);if(void 0!==d){let e=a(d,c),f=new Map(j);f.set(i,e),g.set(b,f)}}}let h=b.rsc,i=r(h)&&"pending"===h.status;return{lazyData:null,rsc:h,head:b.head,prefetchHead:i?b.prefetchHead:[null,null],prefetchRsc:i?b.prefetchRsc:null,loading:b.loading,parallelRoutes:g,navigatedAt:b.navigatedAt}}}});let d=c(72454),e=c(93754),f=c(95812),g=c(81711),h=c(70491),i={route:null,node:null,dynamicRequestTree:null,children:null};function j(a,b,c,g,h,j,m,n,o){return function a(b,c,g,h,j,m,n,o,p,q,r){let s=g[1],t=h[1],u=null!==m?m[2]:null;j||!0===h[4]&&(j=!0);let v=c.parallelRoutes,w=new Map(v),x={},y=null,z=!1,A={};for(let c in t){let g,h=t[c],l=s[c],m=v.get(c),B=null!==u?u[c]:null,C=h[0],D=q.concat([c,C]),E=(0,f.createRouterCacheKey)(C),F=void 0!==l?l[0]:void 0,G=void 0!==m?m.get(E):void 0;if(null!==(g=C===d.DEFAULT_SEGMENT_KEY?void 0!==l?{route:l,node:null,dynamicRequestTree:null,children:null}:k(b,l,h,G,j,void 0!==B?B:null,n,o,D,r):p&&0===Object.keys(h[1]).length?k(b,l,h,G,j,void 0!==B?B:null,n,o,D,r):void 0!==l&&void 0!==F&&(0,e.matchSegment)(C,F)&&void 0!==G&&void 0!==l?a(b,G,l,h,j,B,n,o,p,D,r):k(b,l,h,G,j,void 0!==B?B:null,n,o,D,r))){if(null===g.route)return i;null===y&&(y=new Map),y.set(c,g);let a=g.node;if(null!==a){let b=new Map(m);b.set(E,a),w.set(c,b)}let b=g.route;x[c]=b;let d=g.dynamicRequestTree;null!==d?(z=!0,A[c]=d):A[c]=b}else x[c]=h,A[c]=h}if(null===y)return null;let B={lazyData:null,rsc:c.rsc,prefetchRsc:c.prefetchRsc,head:c.head,prefetchHead:c.prefetchHead,loading:c.loading,parallelRoutes:w,navigatedAt:b};return{route:l(h,x),node:B,dynamicRequestTree:z?l(h,A):null,children:y}}(a,b,c,g,!1,h,j,m,n,[],o)}function k(a,b,c,d,e,j,k,n,o,p){return!e&&(void 0===b||(0,g.isNavigatingToNewRootLayout)(b,c))?i:function a(b,c,d,e,g,i,j,k){let n,o,p,q,r=c[1],s=0===Object.keys(r).length;if(void 0!==d&&d.navigatedAt+h.DYNAMIC_STALETIME_MS>b)n=d.rsc,o=d.loading,p=d.head,q=d.navigatedAt;else if(null===e)return m(b,c,null,g,i,j,k);else if(n=e[1],o=e[3],p=s?g:null,q=b,e[4]||i&&s)return m(b,c,e,g,i,j,k);let t=null!==e?e[2]:null,u=new Map,v=void 0!==d?d.parallelRoutes:null,w=new Map(v),x={},y=!1;if(s)k.push(j);else for(let c in r){let d=r[c],e=null!==t?t[c]:null,h=null!==v?v.get(c):void 0,l=d[0],m=j.concat([c,l]),n=(0,f.createRouterCacheKey)(l),o=a(b,d,void 0!==h?h.get(n):void 0,e,g,i,m,k);u.set(c,o);let p=o.dynamicRequestTree;null!==p?(y=!0,x[c]=p):x[c]=d;let q=o.node;if(null!==q){let a=new Map;a.set(n,q),w.set(c,a)}}return{route:c,node:{lazyData:null,rsc:n,prefetchRsc:null,head:p,prefetchHead:null,loading:o,parallelRoutes:w,navigatedAt:q},dynamicRequestTree:y?l(c,x):null,children:u}}(a,c,d,j,k,n,o,p)}function l(a,b){let c=[a[0],b];return 2 in a&&(c[2]=a[2]),3 in a&&(c[3]=a[3]),4 in a&&(c[4]=a[4]),c}function m(a,b,c,d,e,g,h){let i=l(b,b[1]);return i[3]="refetch",{route:b,node:function a(b,c,d,e,g,h,i){let j=c[1],k=null!==d?d[2]:null,l=new Map;for(let c in j){let d=j[c],m=null!==k?k[c]:null,n=d[0],o=h.concat([c,n]),p=(0,f.createRouterCacheKey)(n),q=a(b,d,void 0===m?null:m,e,g,o,i),r=new Map;r.set(p,q),l.set(c,r)}let m=0===l.size;m&&i.push(h);let n=null!==d?d[1]:null,o=null!==d?d[3]:null;return{lazyData:null,parallelRoutes:l,prefetchRsc:void 0!==n?n:null,prefetchHead:m?e:[null,null],loading:void 0!==o?o:null,rsc:s(),head:m?s():null,navigatedAt:b}}(a,b,c,d,e,g,h),dynamicRequestTree:i,children:null}}function n(a,b){b.then(b=>{let{flightData:c}=b;if("string"!=typeof c){for(let b of c){let{segmentPath:c,tree:d,seedData:g,head:h}=b;g&&function(a,b,c,d,g){let h=a;for(let a=0;a{o(a,b)})}function o(a,b){let c=a.node;if(null===c)return;let d=a.children;if(null===d)p(a.route,c,b);else for(let a of d.values())o(a,b);a.dynamicRequestTree=null}function p(a,b,c){let d=a[1],e=b.parallelRoutes;for(let a in d){let b=d[a],g=e.get(a);if(void 0===g)continue;let h=b[0],i=(0,f.createRouterCacheKey)(h),j=g.get(i);void 0!==j&&p(b,j,c)}let g=b.rsc;r(g)&&(null===c?g.resolve(null):g.reject(c));let h=b.head;r(h)&&h.resolve(null)}let q=Symbol();function r(a){return a&&a.tag===q}function s(){let a,b,c=new Promise((c,d)=>{a=c,b=d});return c.status="pending",c.resolve=b=>{"pending"===c.status&&(c.status="fulfilled",c.value=b,a(b))},c.reject=a=>{"pending"===c.status&&(c.status="rejected",c.reason=a,b(a))},c.tag=q,c}("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},21296:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("panels-top-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]])},21564:(a,b,c)=>{"use strict";c.d(b,{Ay:()=>O});function d(a,b){(null==b||b>a.length)&&(b=a.length);for(var c=0,d=Array(b);c=a.length?a.apply(this,e):function(){for(var a=arguments.length,d=Array(a),f=0;f=a.length?a.apply(this,e):function(){for(var a=arguments.length,d=Array(a),f=0;f1&&void 0!==arguments[1]?arguments[1]:{};k.initial(a),k.handler(b);var c={current:a},d=g(n)(c,b),e=g(m)(c),f=g(k.changes)(a),h=g(l)(c);return[function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(a){return a};return k.selector(a),a(c.current)},function(a){(function(){for(var a=arguments.length,b=Array(a),c=0;c{d.current=!1}:a,b)};function J(){}function K(a,b,c,d){var e,f,g,h,i,j;return e=a,f=d,e.editor.getModel(L(e,f))||(g=a,h=b,i=c,j=d,g.editor.createModel(h,i,j?L(g,j):void 0))}function L(a,b){return a.Uri.parse(b)}(0,C.memo)(function({original:a,modified:b,language:c,originalLanguage:d,modifiedLanguage:e,originalModelPath:f,modifiedModelPath:g,keepCurrentOriginalModel:h=!1,keepCurrentModifiedModel:i=!1,theme:j="light",loading:k="Loading...",options:l={},height:m="100%",width:n="100%",className:o,wrapperProps:p={},beforeMount:q=J,onMount:r=J}){let[s,t]=(0,C.useState)(!1),[u,v]=(0,C.useState)(!0),w=(0,C.useRef)(null),x=(0,C.useRef)(null),y=(0,C.useRef)(null),z=(0,C.useRef)(r),A=(0,C.useRef)(q),D=(0,C.useRef)(!1);H(()=>{let a=B.init();return a.then(a=>(x.current=a)&&v(!1)).catch(a=>a?.type!=="cancelation"&&console.error("Monaco initialization: error:",a)),()=>{let b;return w.current?(b=w.current?.getModel(),void(h||b?.original?.dispose(),i||b?.modified?.dispose(),w.current?.dispose())):a.cancel()}}),I(()=>{if(w.current&&x.current){let b=w.current.getOriginalEditor(),e=K(x.current,a||"",d||c||"text",f||"");e!==b.getModel()&&b.setModel(e)}},[f],s),I(()=>{if(w.current&&x.current){let a=w.current.getModifiedEditor(),d=K(x.current,b||"",e||c||"text",g||"");d!==a.getModel()&&a.setModel(d)}},[g],s),I(()=>{let a=w.current.getModifiedEditor();a.getOption(x.current.editor.EditorOption.readOnly)?a.setValue(b||""):b!==a.getValue()&&(a.executeEdits("",[{range:a.getModel().getFullModelRange(),text:b||"",forceMoveMarkers:!0}]),a.pushUndoStop())},[b],s),I(()=>{w.current?.getModel()?.original.setValue(a||"")},[a],s),I(()=>{let{original:a,modified:b}=w.current.getModel();x.current.editor.setModelLanguage(a,d||c||"text"),x.current.editor.setModelLanguage(b,e||c||"text")},[c,d,e],s),I(()=>{x.current?.editor.setTheme(j)},[j],s),I(()=>{w.current?.updateOptions(l)},[l],s);let E=(0,C.useCallback)(()=>{if(!x.current)return;A.current(x.current);let h=K(x.current,a||"",d||c||"text",f||""),i=K(x.current,b||"",e||c||"text",g||"");w.current?.setModel({original:h,modified:i})},[c,b,e,a,d,f,g]),F=(0,C.useCallback)(()=>{!D.current&&y.current&&(w.current=x.current.editor.createDiffEditor(y.current,{automaticLayout:!0,...l}),E(),x.current?.editor.setTheme(j),t(!0),D.current=!0)},[l,j,E]);return(0,C.useEffect)(()=>{s&&z.current(w.current,x.current)},[s]),(0,C.useEffect)(()=>{u||s||F()},[u,s,F]),C.createElement(G,{width:n,height:m,isEditorReady:s,loading:k,_ref:y,className:o,wrapperProps:p})});var M=function(a){let b=(0,C.useRef)();return(0,C.useEffect)(()=>{b.current=a},[a]),b.current},N=new Map,O=(0,C.memo)(function({defaultValue:a,defaultLanguage:b,defaultPath:c,value:d,language:e,path:f,theme:g="light",line:h,loading:i="Loading...",options:j={},overrideServices:k={},saveViewState:l=!0,keepCurrentModel:m=!1,width:n="100%",height:o="100%",className:p,wrapperProps:q={},beforeMount:r=J,onMount:s=J,onChange:t,onValidate:u=J}){let[v,w]=(0,C.useState)(!1),[x,y]=(0,C.useState)(!0),z=(0,C.useRef)(null),A=(0,C.useRef)(null),D=(0,C.useRef)(null),E=(0,C.useRef)(s),F=(0,C.useRef)(r),L=(0,C.useRef)(),O=(0,C.useRef)(d),P=M(f),Q=(0,C.useRef)(!1),R=(0,C.useRef)(!1);H(()=>{let a=B.init();return a.then(a=>(z.current=a)&&y(!1)).catch(a=>a?.type!=="cancelation"&&console.error("Monaco initialization: error:",a)),()=>A.current?void(L.current?.dispose(),m?l&&N.set(f,A.current.saveViewState()):A.current.getModel()?.dispose(),A.current.dispose()):a.cancel()}),I(()=>{let g=K(z.current,a||d||"",b||e||"",f||c||"");g!==A.current?.getModel()&&(l&&N.set(P,A.current?.saveViewState()),A.current?.setModel(g),l&&A.current?.restoreViewState(N.get(f)))},[f],v),I(()=>{A.current?.updateOptions(j)},[j],v),I(()=>{A.current&&void 0!==d&&(A.current.getOption(z.current.editor.EditorOption.readOnly)?A.current.setValue(d):d!==A.current.getValue()&&(R.current=!0,A.current.executeEdits("",[{range:A.current.getModel().getFullModelRange(),text:d,forceMoveMarkers:!0}]),A.current.pushUndoStop(),R.current=!1))},[d],v),I(()=>{let a=A.current?.getModel();a&&e&&z.current?.editor.setModelLanguage(a,e)},[e],v),I(()=>{void 0!==h&&A.current?.revealLine(h)},[h],v),I(()=>{z.current?.editor.setTheme(g)},[g],v);let S=(0,C.useCallback)(()=>{if(!(!D.current||!z.current)&&!Q.current){F.current(z.current);let i=f||c,m=K(z.current,d||a||"",b||e||"",i||"");A.current=z.current?.editor.create(D.current,{model:m,automaticLayout:!0,...j},k),l&&A.current.restoreViewState(N.get(i)),z.current.editor.setTheme(g),void 0!==h&&A.current.revealLine(h),w(!0),Q.current=!0}},[a,b,c,d,e,f,j,k,l,g,h]);return(0,C.useEffect)(()=>{v&&E.current(A.current,z.current)},[v]),(0,C.useEffect)(()=>{x||v||S()},[x,v,S]),O.current=d,(0,C.useEffect)(()=>{v&&t&&(L.current?.dispose(),L.current=A.current?.onDidChangeModelContent(a=>{R.current||t(A.current.getValue(),a)}))},[v,t]),(0,C.useEffect)(()=>{if(v){let a=z.current.editor.onDidChangeMarkers(a=>{let b=A.current.getModel()?.uri;if(b&&a.find(a=>a.path===b.path)){let a=z.current.editor.getModelMarkers({resource:b});u?.(a)}});return()=>{a?.dispose()}}return()=>{}},[v,u]),C.createElement(G,{width:n,height:o,isEditorReady:v,loading:i,_ref:D,className:p,wrapperProps:q})})},22398:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"findHeadInCache",{enumerable:!0,get:function(){return f}});let d=c(72454),e=c(95812);function f(a,b){return function a(b,c,f,g){if(0===Object.keys(c).length)return[b,f,g];let h=Object.keys(c).filter(a=>"children"!==a);for(let g of("children"in c&&h.unshift("children"),h)){let[h,i]=c[g];if(h===d.DEFAULT_SEGMENT_KEY)continue;let j=b.parallelRoutes.get(g);if(!j)continue;let k=(0,e.createRouterCacheKey)(h),l=(0,e.createRouterCacheKey)(h,!0),m=j.get(k);if(!m)continue;let n=a(m,i,f+"/"+k,f+"/"+l);if(n)return n}return null}(a,b,"","")}("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},22774:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("scroll-text",[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]])},23415:(a,b,c)=>{"use strict";function d(a,b){let c=String(a);if("string"!=typeof b)throw TypeError("Expected character");let d=0,e=c.indexOf(b);for(;-1!==e;)d++,e=c.indexOf(b,e+b.length);return d}c.d(b,{A:()=>aH});var e=c(5776),f=c(76713),g=c(78971),h=c(77410);let i="phrasing",j=["autolink","link","image","label"];function k(a){this.enter({type:"link",title:null,url:"",children:[]},a)}function l(a){this.config.enter.autolinkProtocol.call(this,a)}function m(a){this.config.exit.autolinkProtocol.call(this,a)}function n(a){this.config.exit.data.call(this,a);let b=this.stack[this.stack.length-1];(0,e.ok)("link"===b.type),b.url="http://"+this.sliceSerialize(a)}function o(a){this.config.exit.autolinkEmail.call(this,a)}function p(a){this.exit(a)}function q(a){!function(a,b,c){let d=(0,h.C)((c||{}).ignore||[]),e=function(a){let b=[];if(!Array.isArray(a))throw TypeError("Expected find and replace tuple or list of tuples");let c=!a[0]||Array.isArray(a[0])?a:[a],d=-1;for(;++d0?{type:"text",value:f}:void 0),!1===f?d.lastIndex=c+1:(h!==c&&k.push({type:"text",value:a.value.slice(h,c)}),Array.isArray(f)?k.push(...f):f&&k.push(f),h=c+l[0].length,j=!0),!d.global)break;l=d.exec(a.value)}return j?(h?\]}]+$/.exec(a);if(!b)return[a,void 0];a=a.slice(0,b.index);let c=b[0],e=c.indexOf(")"),f=d(a,"("),g=d(a,")");for(;-1!==e&&f>g;)a+=c.slice(0,e+1),e=(c=c.slice(e+1)).indexOf(")"),g++;return[a,c]}(c+e);if(!h[0])return!1;let i={type:"link",title:null,url:g+b+h[0],children:[{type:"text",value:b+h[0]}]};return h[1]?[i,{type:"text",value:h[1]}]:i}function s(a,b,c,d){return!(!t(d,!0)||/[-\d_]$/.test(c))&&{type:"link",title:null,url:"mailto:"+b+"@"+c,children:[{type:"text",value:b+"@"+c}]}}function t(a,b){let c=a.input.charCodeAt(a.index-1);return(0===a.index||(0,f.Ny)(c)||(0,f.es)(c))&&(!b||47!==c)}var u=c(75179);function v(){this.buffer()}function w(a){this.enter({type:"footnoteReference",identifier:"",label:""},a)}function x(){this.buffer()}function y(a){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},a)}function z(a){let b=this.resume(),c=this.stack[this.stack.length-1];(0,e.ok)("footnoteReference"===c.type),c.identifier=(0,u.B)(this.sliceSerialize(a)).toLowerCase(),c.label=b}function A(a){this.exit(a)}function B(a){let b=this.resume(),c=this.stack[this.stack.length-1];(0,e.ok)("footnoteDefinition"===c.type),c.identifier=(0,u.B)(this.sliceSerialize(a)).toLowerCase(),c.label=b}function C(a){this.exit(a)}function D(a,b,c,d){let e=c.createTracker(d),f=e.move("[^"),g=c.enter("footnoteReference"),h=c.enter("reference");return f+=e.move(c.safe(c.associationId(a),{after:"]",before:f})),h(),g(),f+=e.move("]")}function E(a,b,c){return 0===b?a:F(a,b,c)}function F(a,b,c){return(c?"":" ")+a}D.peek=function(){return"["};let G=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function H(a){this.enter({type:"delete",children:[]},a)}function I(a){this.exit(a)}function J(a,b,c,d){let e=c.createTracker(d),f=c.enter("strikethrough"),g=e.move("~~");return g+=c.containerPhrasing(a,{...e.current(),before:g,after:"~"}),g+=e.move("~~"),f(),g}function K(a){return a.length}function L(a){let b="string"==typeof a?a.codePointAt(0):0;return 67===b||99===b?99:76===b||108===b?108:114*(82===b||114===b)}J.peek=function(){return"~"};var M=c(71646);c(60921);c(96429);function N(a,b,c){let d=a.value||"",e="`",f=-1;for(;RegExp("(^|[^`])"+e+"([^`]|$)").test(d);)e+="`";for(/[^ \r\n]/.test(d)&&(/^[ \r\n]/.test(d)&&/[ \r\n]$/.test(d)||/^`|`$/.test(d))&&(d=" "+d+" ");++f-1?b.start:1)+(!1===c.options.incrementListMarker?0:b.children.indexOf(a))+f);let g=f.length+1;("tab"===e||"mixed"===e&&(b&&"list"===b.type&&b.spread||a.spread))&&(g=4*Math.ceil(g/4));let h=c.createTracker(d);h.move(f+" ".repeat(g-f.length)),h.shift(g);let i=c.enter("listItem"),j=c.indentLines(c.containerFlow(a,h.current()),function(a,b,c){return b?(c?"":" ".repeat(g))+a:(c?f:f+" ".repeat(g-f.length))+a});return i(),j}};function P(a){let b=a._align;(0,e.ok)(b,"expected `_align` on table"),this.enter({type:"table",align:b.map(function(a){return"none"===a?null:a}),children:[]},a),this.data.inTable=!0}function Q(a){this.exit(a),this.data.inTable=void 0}function R(a){this.enter({type:"tableRow",children:[]},a)}function S(a){this.exit(a)}function T(a){this.enter({type:"tableCell",children:[]},a)}function U(a){let b=this.resume();this.data.inTable&&(b=b.replace(/\\([\\|])/g,V));let c=this.stack[this.stack.length-1];(0,e.ok)("inlineCode"===c.type),c.value=b,this.exit(a)}function V(a,b){return"|"===b?b:a}function W(a){let b=this.stack[this.stack.length-2];(0,e.ok)("listItem"===b.type),b.checked="taskListCheckValueChecked"===a.type}function X(a){let b=this.stack[this.stack.length-2];if(b&&"listItem"===b.type&&"boolean"==typeof b.checked){let a=this.stack[this.stack.length-1];(0,e.ok)("paragraph"===a.type);let c=a.children[0];if(c&&"text"===c.type){let d,e=b.children,f=-1;for(;++f0&&!c&&(a[a.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),c}ag[43]=af,ag[45]=af,ag[46]=af,ag[95]=af,ag[72]=[af,ae],ag[104]=[af,ae],ag[87]=[af,ad],ag[119]=[af,ad];var an=c(43560),ao=c(83224);let ap={tokenize:function(a,b,c){let d=this;return(0,ao.N)(a,function(a){let e=d.events[d.events.length-1];return e&&"gfmFootnoteDefinitionIndent"===e[1].type&&4===e[2].sliceSerialize(e[1],!0).length?b(a):c(a)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function aq(a,b,c){let d,e=this,f=e.events.length,g=e.parser.gfmFootnotes||(e.parser.gfmFootnotes=[]);for(;f--;){let a=e.events[f][1];if("labelImage"===a.type){d=a;break}if("gfmFootnoteCall"===a.type||"labelLink"===a.type||"label"===a.type||"image"===a.type||"link"===a.type)break}return function(f){if(!d||!d._balanced)return c(f);let h=(0,u.B)(e.sliceSerialize({start:d.end,end:e.now()}));return 94===h.codePointAt(0)&&g.includes(h.slice(1))?(a.enter("gfmFootnoteCallLabelMarker"),a.consume(f),a.exit("gfmFootnoteCallLabelMarker"),b(f)):c(f)}}function ar(a,b){let c=a.length;for(;c--;)if("labelImage"===a[c][1].type&&"enter"===a[c][0]){a[c][1];break}a[c+1][1].type="data",a[c+3][1].type="gfmFootnoteCallLabelMarker";let d={type:"gfmFootnoteCall",start:Object.assign({},a[c+3][1].start),end:Object.assign({},a[a.length-1][1].end)},e={type:"gfmFootnoteCallMarker",start:Object.assign({},a[c+3][1].end),end:Object.assign({},a[c+3][1].end)};e.end.column++,e.end.offset++,e.end._bufferIndex++;let f={type:"gfmFootnoteCallString",start:Object.assign({},e.end),end:Object.assign({},a[a.length-1][1].start)},g={type:"chunkString",contentType:"string",start:Object.assign({},f.start),end:Object.assign({},f.end)},h=[a[c+1],a[c+2],["enter",d,b],a[c+3],a[c+4],["enter",e,b],["exit",e,b],["enter",f,b],["enter",g,b],["exit",g,b],["exit",f,b],a[a.length-2],a[a.length-1],["exit",d,b]];return a.splice(c,a.length-c+1,...h),a}function as(a,b,c){let d,e=this,g=e.parser.gfmFootnotes||(e.parser.gfmFootnotes=[]),h=0;return function(b){return a.enter("gfmFootnoteCall"),a.enter("gfmFootnoteCallLabelMarker"),a.consume(b),a.exit("gfmFootnoteCallLabelMarker"),i};function i(b){return 94!==b?c(b):(a.enter("gfmFootnoteCallMarker"),a.consume(b),a.exit("gfmFootnoteCallMarker"),a.enter("gfmFootnoteCallString"),a.enter("chunkString").contentType="string",j)}function j(i){if(h>999||93===i&&!d||null===i||91===i||(0,f.Ee)(i))return c(i);if(93===i){a.exit("chunkString");let d=a.exit("gfmFootnoteCallString");return g.includes((0,u.B)(e.sliceSerialize(d)))?(a.enter("gfmFootnoteCallLabelMarker"),a.consume(i),a.exit("gfmFootnoteCallLabelMarker"),a.exit("gfmFootnoteCall"),b):c(i)}return(0,f.Ee)(i)||(d=!0),h++,a.consume(i),92===i?k:j}function k(b){return 91===b||92===b||93===b?(a.consume(b),h++,j):j(b)}}function at(a,b,c){let d,e,g=this,h=g.parser.gfmFootnotes||(g.parser.gfmFootnotes=[]),i=0;return function(b){return a.enter("gfmFootnoteDefinition")._container=!0,a.enter("gfmFootnoteDefinitionLabel"),a.enter("gfmFootnoteDefinitionLabelMarker"),a.consume(b),a.exit("gfmFootnoteDefinitionLabelMarker"),j};function j(b){return 94===b?(a.enter("gfmFootnoteDefinitionMarker"),a.consume(b),a.exit("gfmFootnoteDefinitionMarker"),a.enter("gfmFootnoteDefinitionLabelString"),a.enter("chunkString").contentType="string",k):c(b)}function k(b){if(i>999||93===b&&!e||null===b||91===b||(0,f.Ee)(b))return c(b);if(93===b){a.exit("chunkString");let c=a.exit("gfmFootnoteDefinitionLabelString");return d=(0,u.B)(g.sliceSerialize(c)),a.enter("gfmFootnoteDefinitionLabelMarker"),a.consume(b),a.exit("gfmFootnoteDefinitionLabelMarker"),a.exit("gfmFootnoteDefinitionLabel"),m}return(0,f.Ee)(b)||(e=!0),i++,a.consume(b),92===b?l:k}function l(b){return 91===b||92===b||93===b?(a.consume(b),i++,k):k(b)}function m(b){return 58===b?(a.enter("definitionMarker"),a.consume(b),a.exit("definitionMarker"),h.includes(d)||h.push(d),(0,ao.N)(a,n,"gfmFootnoteDefinitionWhitespace")):c(b)}function n(a){return b(a)}}function au(a,b,c){return a.check(an.B,b,a.attempt(ap,b,c))}function av(a){a.exit("gfmFootnoteDefinition")}var aw=c(282),ax=c(65352);class ay{constructor(){this.map=[]}add(a,b,c){!function(a,b,c,d){let e=0;if(0!==c||0!==d.length){for(;e0;)b-=1,c.push(a.slice(this.map[b][0]+this.map[b][1]),this.map[b][2]),a.length=this.map[b][0];c.push(a.slice()),a.length=0;let d=c.pop();for(;d;){for(let b of d)a.push(b);d=c.pop()}this.map.length=0}}function az(a,b,c){let d,e=this,g=0,h=0;return function(a){let b=e.events.length-1;for(;b>-1;){let a=e.events[b][1].type;if("lineEnding"===a||"linePrefix"===a)b--;else break}let d=b>-1?e.events[b][1].type:null,f="tableHead"===d||"tableRow"===d?t:i;return f===t&&e.parser.lazy[e.now().line]?c(a):f(a)};function i(b){var c;return a.enter("tableHead"),a.enter("tableRow"),124===(c=b)||(d=!0,h+=1),j(c)}function j(b){return null===b?c(b):(0,f.HP)(b)?h>1?(h=0,e.interrupt=!0,a.exit("tableRow"),a.enter("lineEnding"),a.consume(b),a.exit("lineEnding"),m):c(b):(0,f.On)(b)?(0,ao.N)(a,j,"whitespace")(b):(h+=1,d&&(d=!1,g+=1),124===b)?(a.enter("tableCellDivider"),a.consume(b),a.exit("tableCellDivider"),d=!0,j):(a.enter("data"),k(b))}function k(b){return null===b||124===b||(0,f.Ee)(b)?(a.exit("data"),j(b)):(a.consume(b),92===b?l:k)}function l(b){return 92===b||124===b?(a.consume(b),k):k(b)}function m(b){return(e.interrupt=!1,e.parser.lazy[e.now().line])?c(b):(a.enter("tableDelimiterRow"),d=!1,(0,f.On)(b))?(0,ao.N)(a,n,"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(b):n(b)}function n(b){return 45===b||58===b?p(b):124===b?(d=!0,a.enter("tableCellDivider"),a.consume(b),a.exit("tableCellDivider"),o):c(b)}function o(b){return(0,f.On)(b)?(0,ao.N)(a,p,"whitespace")(b):p(b)}function p(b){return 58===b?(h+=1,d=!0,a.enter("tableDelimiterMarker"),a.consume(b),a.exit("tableDelimiterMarker"),q):45===b?(h+=1,q(b)):null===b||(0,f.HP)(b)?s(b):c(b)}function q(b){return 45===b?(a.enter("tableDelimiterFiller"),function b(c){return 45===c?(a.consume(c),b):58===c?(d=!0,a.exit("tableDelimiterFiller"),a.enter("tableDelimiterMarker"),a.consume(c),a.exit("tableDelimiterMarker"),r):(a.exit("tableDelimiterFiller"),r(c))}(b)):c(b)}function r(b){return(0,f.On)(b)?(0,ao.N)(a,s,"whitespace")(b):s(b)}function s(e){if(124===e)return n(e);if(null===e||(0,f.HP)(e))return d&&g===h?(a.exit("tableDelimiterRow"),a.exit("tableHead"),b(e)):c(e);return c(e)}function t(b){return a.enter("tableRow"),u(b)}function u(c){return 124===c?(a.enter("tableCellDivider"),a.consume(c),a.exit("tableCellDivider"),u):null===c||(0,f.HP)(c)?(a.exit("tableRow"),b(c)):(0,f.On)(c)?(0,ao.N)(a,u,"whitespace")(c):(a.enter("data"),v(c))}function v(b){return null===b||124===b||(0,f.Ee)(b)?(a.exit("data"),u(b)):(a.consume(b),92===b?w:v)}function w(b){return 92===b||124===b?(a.consume(b),v):v(b)}}function aA(a,b){let c,d,e,f=-1,g=!0,h=0,i=[0,0,0,0],j=[0,0,0,0],k=!1,l=0,m=new ay;for(;++fc[2]+1){let b=c[2]+1,d=c[3]-c[2]-1;a.add(b,d,[])}}a.add(c[3]+1,0,[["exit",g,b]])}return void 0!==e&&(f.end=Object.assign({},aD(b.events,e)),a.add(e,0,[["exit",f,b]]),f=void 0),f}function aC(a,b,c,d,e){let f=[],g=aD(b.events,c);e&&(e.end=Object.assign({},g),f.push(["exit",e,b])),d.end=Object.assign({},g),f.push(["exit",d,b]),a.add(c+1,0,f)}function aD(a,b){let c=a[b],d="enter"===c[0]?"start":"end";return c[1][d]}let aE={name:"tasklistCheck",tokenize:function(a,b,c){let d=this;return function(b){return null===d.previous&&d._gfmTasklistFirstContentOfListItem?(a.enter("taskListCheck"),a.enter("taskListCheckMarker"),a.consume(b),a.exit("taskListCheckMarker"),e):c(b)};function e(b){return(0,f.Ee)(b)?(a.enter("taskListCheckValueUnchecked"),a.consume(b),a.exit("taskListCheckValueUnchecked"),g):88===b||120===b?(a.enter("taskListCheckValueChecked"),a.consume(b),a.exit("taskListCheckValueChecked"),g):c(b)}function g(b){return 93===b?(a.enter("taskListCheckMarker"),a.consume(b),a.exit("taskListCheckMarker"),a.exit("taskListCheck"),h):c(b)}function h(d){return(0,f.HP)(d)?b(d):(0,f.On)(d)?a.check({tokenize:aF},b,c)(d):c(d)}}};function aF(a,b,c){return(0,ao.N)(a,function(a){return null===a?c(a):b(a)},"whitespace")}let aG={};function aH(a){let b,c=a||aG,d=this.data(),e=d.micromarkExtensions||(d.micromarkExtensions=[]),f=d.fromMarkdownExtensions||(d.fromMarkdownExtensions=[]),g=d.toMarkdownExtensions||(d.toMarkdownExtensions=[]);e.push((0,Z.y)([{text:ag},{document:{91:{name:"gfmFootnoteDefinition",tokenize:at,continuation:{tokenize:au},exit:av}},text:{91:{name:"gfmFootnoteCall",tokenize:as},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:aq,resolveTo:ar}}},function(a){let b=(a||{}).singleTilde,c={name:"strikethrough",tokenize:function(a,c,d){let e=this.previous,f=this.events,g=0;return function(h){return 126===e&&"characterEscape"!==f[f.length-1][1].type?d(h):(a.enter("strikethroughSequenceTemporary"),function f(h){let i=(0,M.S)(e);if(126===h)return g>1?d(h):(a.consume(h),g++,f);if(g<2&&!b)return d(h);let j=a.exit("strikethroughSequenceTemporary"),k=(0,M.S)(h);return j._open=!k||2===k&&!!i,j._close=!i||2===i&&!!k,c(h)}(h))}},resolveAll:function(a,b){let c=-1;for(;++c0&&(f.shift(4),g+=f.move((b?"\n":" ")+d.indentLines(d.containerFlow(a,f.current()),b?F:E))),h(),g},footnoteReference:D},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:G}],handlers:{delete:J}},function(a){let b=a||{},c=b.tableCellPadding,d=b.tablePipeAlign,e=b.stringLength,f=c?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(a,b,c){let d=O.inlineCode(a,b,c);return c.stack.includes("tableCell")&&(d=d.replace(/\|/g,"\\$&")),d},table:function(a,b,c,d){return h(function(a,b,c){let d=a.children,e=-1,f=[],g=b.enter("table");for(;++ej&&(j=a[k].length);++fi[f])&&(i[f]=a)}b.push(g)}g[k]=b,h[k]=d}let m=-1;if("object"==typeof d&&"length"in d)for(;++mi[m]&&(i[m]=e),o[m]=e),n[m]=g}g.splice(1,0,n),h.splice(1,0,o),k=-1;let p=[];for(;++k{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("arrow-down",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]])},24692:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"serverActionReducer",{enumerable:!0,get:function(){return E}});let d=c(76779),e=c(6927),f=c(14172),g=c(40689),h=c(63188),i=c(12591),j=c(9286),k=c(11830),l=c(3219),m=c(76143),n=c(81711),o=c(73486),p=c(35939),q=c(97163),r=c(76061),s=c(50586),t=c(72869),u=c(21600),v=c(69296),w=c(47847),x=c(70491),y=c(35103),z=c(33043),A=c(77377);c(40668);let B=h.createFromFetch;async function C(a,b,c){let i,k,l,m,{actionId:n,actionArgs:o}=c,p=(0,h.createTemporaryReferenceSet)(),q=(0,A.extractInfoFromServerReferenceId)(n),r="use-cache"===q.type?(0,A.omitUnusedArgs)(o,q):o,s=await (0,h.encodeReply)(r,{temporaryReferences:p}),t=await fetch(a.canonicalUrl,{method:"POST",headers:{Accept:f.RSC_CONTENT_TYPE_HEADER,[f.ACTION_HEADER]:n,[f.NEXT_ROUTER_STATE_TREE_HEADER]:(0,u.prepareFlightRouterStateForRequest)(a.tree),...{},...b?{[f.NEXT_URL]:b}:{}},body:s});if("1"===t.headers.get(f.NEXT_ACTION_NOT_FOUND_HEADER))throw Object.defineProperty(new g.UnrecognizedActionError('Server Action "'+n+'" was not found on the server. \nRead more: https://nextjs.org/docs/messages/failed-to-find-server-action'),"__NEXT_ERROR_CODE",{value:"E715",enumerable:!1,configurable:!0});let v=t.headers.get("x-action-redirect"),[x,y]=(null==v?void 0:v.split(";"))||[];switch(y){case"push":i=w.RedirectType.push;break;case"replace":i=w.RedirectType.replace;break;default:i=void 0}let z=!!t.headers.get(f.NEXT_IS_PRERENDER_HEADER);try{let a=JSON.parse(t.headers.get("x-action-revalidated")||"[[],0,0]");k={paths:a[0]||[],tag:!!a[1],cookie:a[2]}}catch(a){k=D}let C=x?(0,j.assignLocation)(x,new URL(a.canonicalUrl,window.location.href)):void 0,E=t.headers.get("content-type"),F=!!(E&&E.startsWith(f.RSC_CONTENT_TYPE_HEADER));if(!F&&!C)throw Object.defineProperty(Error(t.status>=400&&"text/plain"===E?await t.text():"An unexpected response was received from the server."),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});if(F){let a=await B(Promise.resolve(t),{callServer:d.callServer,findSourceMapURL:e.findSourceMapURL,temporaryReferences:p});l=C?void 0:a.a,m=(0,u.normalizeFlightData)(a.f)}else l=void 0,m=void 0;return{actionResult:l,actionFlightData:m,redirectLocation:C,redirectType:i,revalidatedParts:k,isPrerender:z}}let D={paths:[],tag:!1,cookie:!1};function E(a,b){let{resolve:c,reject:d}=b,e={},f=a.tree;e.preserveCustomHistoryState=!1;let g=a.nextUrl&&(0,r.hasInterceptionRouteInCurrentTree)(a.tree)?a.nextUrl:null,h=Date.now();return C(a,g,b).then(async j=>{let r,{actionResult:u,actionFlightData:A,redirectLocation:B,redirectType:C,isPrerender:D,revalidatedParts:E}=j;if(B&&(C===w.RedirectType.replace?(a.pushRef.pendingPush=!1,e.pendingPush=!1):(a.pushRef.pendingPush=!0,e.pendingPush=!0),e.canonicalUrl=r=(0,k.createHrefFromUrl)(B,!1)),!A)return(c(u),B)?(0,l.handleExternalUrl)(a,e,B.href,a.pushRef.pendingPush):a;if("string"==typeof A)return c(u),(0,l.handleExternalUrl)(a,e,A,a.pushRef.pendingPush);let F=E.paths.length>0||E.tag||E.cookie;for(let d of A){let{tree:i,seedData:j,head:k,isRootRender:o}=d;if(!o)return console.log("SERVER ACTION APPLY FAILED"),c(u),a;let v=(0,m.applyRouterStatePatchToTree)([""],f,i,r||a.canonicalUrl);if(null===v)return c(u),(0,s.handleSegmentMismatch)(a,b,i);if((0,n.isNavigatingToNewRootLayout)(f,v))return c(u),(0,l.handleExternalUrl)(a,e,r||a.canonicalUrl,a.pushRef.pendingPush);if(null!==j){let b=j[1],c=(0,q.createEmptyCacheNode)();c.rsc=b,c.prefetchRsc=null,c.loading=j[3],(0,p.fillLazyItemsTillLeafWithHead)(h,c,void 0,i,j,k,void 0),e.cache=c,e.prefetchCache=new Map,F&&await (0,t.refreshInactiveParallelSegments)({navigatedAt:h,state:a,updatedTree:v,updatedCache:c,includeNextUrl:!!g,canonicalUrl:e.canonicalUrl||a.canonicalUrl})}e.patchedTree=v,f=v}return B&&r?(F||((0,x.createSeededPrefetchCacheEntry)({url:B,data:{flightData:A,canonicalUrl:void 0,couldBeIntercepted:!1,prerendered:!1,postponed:!1,staleTime:-1},tree:a.tree,prefetchCache:a.prefetchCache,nextUrl:a.nextUrl,kind:D?i.PrefetchKind.FULL:i.PrefetchKind.AUTO}),e.prefetchCache=a.prefetchCache),d((0,v.getRedirectError)((0,z.hasBasePath)(r)?(0,y.removeBasePath)(r):r,C||w.RedirectType.push))):c(u),(0,o.handleMutable)(a,e)},b=>(d(b),a))}("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},24709:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.camelCase=void 0;var c=/^--[a-zA-Z0-9_-]+$/,d=/-([a-z])/g,e=/^[^-]+$/,f=/^-(webkit|moz|ms|o|khtml)-/,g=/^-(ms)-/,h=function(a,b){return b.toUpperCase()},i=function(a,b){return"".concat(b,"-")};b.camelCase=function(a,b){var j;return(void 0===b&&(b={}),!(j=a)||e.test(j)||c.test(j))?a:(a=a.toLowerCase(),(a=b.reactCompat?a.replace(g,i):a.replace(f,i)).replace(d,h))}},27067:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("cookie",[["path",{d:"M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5",key:"laymnq"}],["path",{d:"M8.5 8.5v.01",key:"ue8clq"}],["path",{d:"M16 15.5v.01",key:"14dtrp"}],["path",{d:"M12 12v.01",key:"u5ubse"}],["path",{d:"M11 17v.01",key:"1hyl5a"}],["path",{d:"M7 14v.01",key:"uct60s"}]])},27928:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("image-up",[["path",{d:"M10.3 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10l-3.1-3.1a2 2 0 0 0-2.814.014L6 21",key:"9csbqa"}],["path",{d:"m14 19.5 3-3 3 3",key:"9vmjn0"}],["path",{d:"M17 22v-5.5",key:"1aa6fl"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]])},28074:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("palette",[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]])},28763:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{fillCacheWithNewSubTreeData:function(){return i},fillCacheWithNewSubTreeDataButOnlyLoading:function(){return j}});let d=c(91349),e=c(35939),f=c(95812),g=c(72454);function h(a,b,c,h,i,j){let{segmentPath:k,seedData:l,tree:m,head:n}=h,o=b,p=c;for(let b=0;b{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{IDLE_LINK_STATUS:function(){return i},PENDING_LINK_STATUS:function(){return h},mountFormInstance:function(){return r},mountLinkInstance:function(){return q},onLinkVisibilityChanged:function(){return t},onNavigationIntent:function(){return u},pingVisibleLinks:function(){return w},setLinkForCurrentNavigation:function(){return j},unmountLinkForCurrentNavigation:function(){return k},unmountPrefetchableInstance:function(){return s}}),c(41439);let d=c(97163),e=c(40668),f=c(38301);c(12591),c(93860);let g=null,h={pending:!0},i={pending:!1};function j(a){(0,f.startTransition)(()=>{null==g||g.setOptimisticLinkStatus(i),null==a||a.setOptimisticLinkStatus(h),g=a})}function k(a){g===a&&(g=null)}let l="function"==typeof WeakMap?new WeakMap:new Map,m=new Set,n="function"==typeof IntersectionObserver?new IntersectionObserver(function(a){for(let b of a){let a=b.intersectionRatio>0;t(b.target,a)}},{rootMargin:"200px"}):null;function o(a,b){void 0!==l.get(a)&&s(a),l.set(a,b),null!==n&&n.observe(a)}function p(a){try{return(0,d.createPrefetchURL)(a)}catch(b){return("function"==typeof reportError?reportError:console.error)("Cannot prefetch '"+a+"' because it cannot be converted to a URL."),null}}function q(a,b,c,d,e,f){if(e){let e=p(b);if(null!==e){let b={router:c,fetchStrategy:d,isVisible:!1,prefetchTask:null,prefetchHref:e.href,setOptimisticLinkStatus:f};return o(a,b),b}}return{router:c,fetchStrategy:d,isVisible:!1,prefetchTask:null,prefetchHref:null,setOptimisticLinkStatus:f}}function r(a,b,c,d){let e=p(b);null!==e&&o(a,{router:c,fetchStrategy:d,isVisible:!1,prefetchTask:null,prefetchHref:e.href,setOptimisticLinkStatus:null})}function s(a){let b=l.get(a);if(void 0!==b){l.delete(a),m.delete(b);let c=b.prefetchTask;null!==c&&(0,e.cancelPrefetchTask)(c)}null!==n&&n.unobserve(a)}function t(a,b){let c=l.get(a);void 0!==c&&(c.isVisible=b,b?m.add(c):m.delete(c),v(c,e.PrefetchPriority.Default))}function u(a,b){let c=l.get(a);void 0!==c&&void 0!==c&&v(c,e.PrefetchPriority.Intent)}function v(a,b){let c=a.prefetchTask;if(!a.isVisible){null!==c&&(0,e.cancelPrefetchTask)(c);return}}function w(a,b){for(let c of m){let d=c.prefetchTask;if(null!==d&&!(0,e.isPrefetchTaskDirty)(d,a,b))continue;null!==d&&(0,e.cancelPrefetchTask)(d);let f=(0,e.createCacheKey)(c.prefetchHref,a);c.prefetchTask=(0,e.schedulePrefetchTask)(f,b,c.fetchStrategy,e.PrefetchPriority.Default,null)}}("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},32717:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("dollar-sign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]])},33043:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"hasBasePath",{enumerable:!0,get:function(){return e}});let d=c(60894);function e(a){return(0,d.pathHasPrefix)(a,"")}("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},33204:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("code",[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]])},33464:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("code-xml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]])},34487:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]])},34941:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("ellipsis-vertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]])},35103:(a,b,c)=>{"use strict";function d(a){return a}Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"removeBasePath",{enumerable:!0,get:function(){return d}}),c(33043),("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},35507:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"reducer",{enumerable:!0,get:function(){return d}}),c(12591),c(3219),c(79976),c(69022),c(2891),c(77743),c(45461),c(24692);let d=function(a,b){return a};("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},35939:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"fillLazyItemsTillLeafWithHead",{enumerable:!0,get:function(){return function a(b,c,f,g,h,i,j){if(0===Object.keys(g[1]).length){c.head=i;return}for(let k in g[1]){let l,m=g[1][k],n=m[0],o=(0,d.createRouterCacheKey)(n),p=null!==h&&void 0!==h[2][k]?h[2][k]:null;if(f){let d=f.parallelRoutes.get(k);if(d){let f,g=(null==j?void 0:j.kind)==="auto"&&j.status===e.PrefetchCacheEntryStatus.reusable,h=new Map(d),l=h.get(o);f=null!==p?{lazyData:null,rsc:p[1],prefetchRsc:null,head:null,prefetchHead:null,loading:p[3],parallelRoutes:new Map(null==l?void 0:l.parallelRoutes),navigatedAt:b}:g&&l?{lazyData:l.lazyData,rsc:l.rsc,prefetchRsc:l.prefetchRsc,head:l.head,prefetchHead:l.prefetchHead,parallelRoutes:new Map(l.parallelRoutes),loading:l.loading}:{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map(null==l?void 0:l.parallelRoutes),loading:null,navigatedAt:b},h.set(o,f),a(b,f,l,m,p||null,i,j),c.parallelRoutes.set(k,h);continue}}if(null!==p){let a=p[1],c=p[3];l={lazyData:null,rsc:a,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:c,navigatedAt:b}}else l={lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:null,navigatedAt:b};let q=c.parallelRoutes.get(k);q?q.set(o,l):c.parallelRoutes.set(k,new Map([[o,l]])),a(b,l,void 0,m,p,i,j)}}}});let d=c(95812),e=c(12591);("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},36734:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("camera",[["path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z",key:"1tc9qg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]])},38065:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"AppRouterAnnouncer",{enumerable:!0,get:function(){return g}});let d=c(38301),e=c(23312),f="next-route-announcer";function g(a){let{tree:b}=a,[c,g]=(0,d.useState)(null);(0,d.useEffect)(()=>(g(function(){var a;let b=document.getElementsByName(f)[0];if(null==b||null==(a=b.shadowRoot)?void 0:a.childNodes[0])return b.shadowRoot.childNodes[0];{let a=document.createElement(f);a.style.cssText="position:absolute";let b=document.createElement("div");return b.ariaLive="assertive",b.id="__next-route-announcer__",b.role="alert",b.style.cssText="position:absolute;border:0;height:1px;margin:-1px;padding:0;width:1px;clip:rect(0 0 0 0);overflow:hidden;white-space:nowrap;word-wrap:normal",a.attachShadow({mode:"open"}).appendChild(b),document.body.appendChild(a),b}}()),()=>{let a=document.getElementsByTagName(f)[0];(null==a?void 0:a.isConnected)&&document.body.removeChild(a)}),[]);let[h,i]=(0,d.useState)(""),j=(0,d.useRef)(void 0);return(0,d.useEffect)(()=>{let a="";if(document.title)a=document.title;else{let b=document.querySelector("h1");b&&(a=b.innerText||b.textContent||"")}void 0!==j.current&&j.current!==a&&i(a),j.current=a},[b]),c?(0,e.createPortal)(h,c):null}("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},38442:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("link-2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]])},38547:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("bug",[["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M9 7.13v-1a3.003 3.003 0 1 1 6 0v1",key:"d7y7pr"}],["path",{d:"M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6",key:"xs1cw7"}],["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M6.53 9C4.6 8.8 3 7.1 3 5",key:"32zzws"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"M3 21c0-2.1 1.7-3.9 3.8-4",key:"4p0ekp"}],["path",{d:"M20.97 5c0 2.1-1.6 3.8-3.5 4",key:"18gb23"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M17.2 17c2.1.1 3.8 1.9 3.8 4",key:"k3fwyw"}]])},39641:(a,b,c)=>{"use strict";c.d(b,{UC:()=>aa,VY:()=>ac,ZL:()=>$,bL:()=>Z,bm:()=>ad,hE:()=>ab,hJ:()=>_});var d=c(38301),e=c(87868),f=c(92808),g=c(2332),h=c(75656),i=c(11720),j=c(7412),k=c(69998),l=c(61611),m=c(29988),n=c(6406),o=c(70904),p=c(36409),q=c(61225),r=c(96425),s=c(21124),t="Dialog",[u,v]=(0,g.A)(t),[w,x]=u(t),y=a=>{let{__scopeDialog:b,children:c,open:e,defaultOpen:f,onOpenChange:g,modal:j=!0}=a,k=d.useRef(null),l=d.useRef(null),[m,n]=(0,i.i)({prop:e,defaultProp:f??!1,onChange:g,caller:t});return(0,s.jsx)(w,{scope:b,triggerRef:k,contentRef:l,contentId:(0,h.B)(),titleId:(0,h.B)(),descriptionId:(0,h.B)(),open:m,onOpenChange:n,onOpenToggle:d.useCallback(()=>n(a=>!a),[n]),modal:j,children:c})};y.displayName=t;var z="DialogTrigger";d.forwardRef((a,b)=>{let{__scopeDialog:c,...d}=a,g=x(z,c),h=(0,f.s)(b,g.triggerRef);return(0,s.jsx)(n.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":g.open,"aria-controls":g.contentId,"data-state":T(g.open),...d,ref:h,onClick:(0,e.mK)(a.onClick,g.onOpenToggle)})}).displayName=z;var A="DialogPortal",[B,C]=u(A,{forceMount:void 0}),D=a=>{let{__scopeDialog:b,forceMount:c,children:e,container:f}=a,g=x(A,b);return(0,s.jsx)(B,{scope:b,forceMount:c,children:d.Children.map(e,a=>(0,s.jsx)(m.C,{present:c||g.open,children:(0,s.jsx)(l.Z,{asChild:!0,container:f,children:a})}))})};D.displayName=A;var E="DialogOverlay",F=d.forwardRef((a,b)=>{let c=C(E,a.__scopeDialog),{forceMount:d=c.forceMount,...e}=a,f=x(E,a.__scopeDialog);return f.modal?(0,s.jsx)(m.C,{present:d||f.open,children:(0,s.jsx)(H,{...e,ref:b})}):null});F.displayName=E;var G=(0,r.TL)("DialogOverlay.RemoveScroll"),H=d.forwardRef((a,b)=>{let{__scopeDialog:c,...d}=a,e=x(E,c);return(0,s.jsx)(p.A,{as:G,allowPinchZoom:!0,shards:[e.contentRef],children:(0,s.jsx)(n.sG.div,{"data-state":T(e.open),...d,ref:b,style:{pointerEvents:"auto",...d.style}})})}),I="DialogContent",J=d.forwardRef((a,b)=>{let c=C(I,a.__scopeDialog),{forceMount:d=c.forceMount,...e}=a,f=x(I,a.__scopeDialog);return(0,s.jsx)(m.C,{present:d||f.open,children:f.modal?(0,s.jsx)(K,{...e,ref:b}):(0,s.jsx)(L,{...e,ref:b})})});J.displayName=I;var K=d.forwardRef((a,b)=>{let c=x(I,a.__scopeDialog),g=d.useRef(null),h=(0,f.s)(b,c.contentRef,g);return d.useEffect(()=>{let a=g.current;if(a)return(0,q.Eq)(a)},[]),(0,s.jsx)(M,{...a,ref:h,trapFocus:c.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,e.mK)(a.onCloseAutoFocus,a=>{a.preventDefault(),c.triggerRef.current?.focus()}),onPointerDownOutside:(0,e.mK)(a.onPointerDownOutside,a=>{let b=a.detail.originalEvent,c=0===b.button&&!0===b.ctrlKey;(2===b.button||c)&&a.preventDefault()}),onFocusOutside:(0,e.mK)(a.onFocusOutside,a=>a.preventDefault())})}),L=d.forwardRef((a,b)=>{let c=x(I,a.__scopeDialog),e=d.useRef(!1),f=d.useRef(!1);return(0,s.jsx)(M,{...a,ref:b,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:b=>{a.onCloseAutoFocus?.(b),b.defaultPrevented||(e.current||c.triggerRef.current?.focus(),b.preventDefault()),e.current=!1,f.current=!1},onInteractOutside:b=>{a.onInteractOutside?.(b),b.defaultPrevented||(e.current=!0,"pointerdown"===b.detail.originalEvent.type&&(f.current=!0));let d=b.target;c.triggerRef.current?.contains(d)&&b.preventDefault(),"focusin"===b.detail.originalEvent.type&&f.current&&b.preventDefault()}})}),M=d.forwardRef((a,b)=>{let{__scopeDialog:c,trapFocus:e,onOpenAutoFocus:g,onCloseAutoFocus:h,...i}=a,l=x(I,c),m=d.useRef(null),n=(0,f.s)(b,m);return(0,o.Oh)(),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(k.n,{asChild:!0,loop:!0,trapped:e,onMountAutoFocus:g,onUnmountAutoFocus:h,children:(0,s.jsx)(j.qW,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":T(l.open),...i,ref:n,onDismiss:()=>l.onOpenChange(!1)})}),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(X,{titleId:l.titleId}),(0,s.jsx)(Y,{contentRef:m,descriptionId:l.descriptionId})]})]})}),N="DialogTitle",O=d.forwardRef((a,b)=>{let{__scopeDialog:c,...d}=a,e=x(N,c);return(0,s.jsx)(n.sG.h2,{id:e.titleId,...d,ref:b})});O.displayName=N;var P="DialogDescription",Q=d.forwardRef((a,b)=>{let{__scopeDialog:c,...d}=a,e=x(P,c);return(0,s.jsx)(n.sG.p,{id:e.descriptionId,...d,ref:b})});Q.displayName=P;var R="DialogClose",S=d.forwardRef((a,b)=>{let{__scopeDialog:c,...d}=a,f=x(R,c);return(0,s.jsx)(n.sG.button,{type:"button",...d,ref:b,onClick:(0,e.mK)(a.onClick,()=>f.onOpenChange(!1))})});function T(a){return a?"open":"closed"}S.displayName=R;var U="DialogTitleWarning",[V,W]=(0,g.q)(U,{contentName:I,titleName:N,docsSlug:"dialog"}),X=({titleId:a})=>{let b=W(U),c=`\`${b.contentName}\` requires a \`${b.titleName}\` for the component to be accessible for screen reader users. - -If you want to hide the \`${b.titleName}\`, you can wrap it with our VisuallyHidden component. - -For more information, see https://radix-ui.com/primitives/docs/components/${b.docsSlug}`;return d.useEffect(()=>{a&&(document.getElementById(a)||console.error(c))},[c,a]),null},Y=({contentRef:a,descriptionId:b})=>{let c=W("DialogDescriptionWarning"),e=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${c.contentName}}.`;return d.useEffect(()=>{let c=a.current?.getAttribute("aria-describedby");b&&c&&(document.getElementById(b)||console.warn(e))},[e,a,b]),null},Z=y,$=D,_=F,aa=J,ab=O,ac=Q,ad=S},40284:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("trash-2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},40668:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{FetchStrategy:function(){return o},NavigationResultTag:function(){return m},PrefetchPriority:function(){return n},cancelPrefetchTask:function(){return i},createCacheKey:function(){return l},getCurrentCacheVersion:function(){return g},isPrefetchTaskDirty:function(){return k},navigate:function(){return e},prefetch:function(){return d},reschedulePrefetchTask:function(){return j},revalidateEntireCache:function(){return f},schedulePrefetchTask:function(){return h}});let c=()=>{throw Object.defineProperty(Error("Segment Cache experiment is not enabled. This is a bug in Next.js."),"__NEXT_ERROR_CODE",{value:"E654",enumerable:!1,configurable:!0})},d=c,e=c,f=c,g=c,h=c,i=c,j=c,k=c,l=c;var m=function(a){return a[a.MPA=0]="MPA",a[a.Success=1]="Success",a[a.NoOp=2]="NoOp",a[a.Async=3]="Async",a}({}),n=function(a){return a[a.Intent=2]="Intent",a[a.Default=1]="Default",a[a.Background=0]="Background",a}({}),o=function(a){return a[a.LoadingBoundary=0]="LoadingBoundary",a[a.PPR=1]="PPR",a[a.PPRRuntime=2]="PPRRuntime",a[a.Full=3]="Full",a}({});("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},41439:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{createMutableActionQueue:function(){return o},dispatchNavigateAction:function(){return q},dispatchTraverseAction:function(){return r},getCurrentAppRouterState:function(){return p},publicAppRouterInstance:function(){return s}});let d=c(12591),e=c(35507),f=c(38301),g=c(39039);c(40668);let h=c(22158),i=c(92464),j=c(97163),k=c(77743),l=c(30551);function m(a,b){null!==a.pending&&(a.pending=a.pending.next,null!==a.pending?n({actionQueue:a,action:a.pending,setState:b}):a.needsRefresh&&(a.needsRefresh=!1,a.dispatch({type:d.ACTION_REFRESH,origin:window.location.origin},b)))}async function n(a){let{actionQueue:b,action:c,setState:d}=a,e=b.state;b.pending=c;let f=c.payload,h=b.action(e,f);function i(a){c.discarded||(b.state=a,m(b,d),c.resolve(a))}(0,g.isThenable)(h)?h.then(i,a=>{m(b,d),c.reject(a)}):i(h)}function o(a,b){let c={state:a,dispatch:(a,b)=>(function(a,b,c){let e={resolve:c,reject:()=>{}};if(b.type!==d.ACTION_RESTORE){let a=new Promise((a,b)=>{e={resolve:a,reject:b}});(0,f.startTransition)(()=>{c(a)})}let g={payload:b,next:null,resolve:e.resolve,reject:e.reject};null===a.pending?(a.last=g,n({actionQueue:a,action:g,setState:c})):b.type===d.ACTION_NAVIGATE||b.type===d.ACTION_RESTORE?(a.pending.discarded=!0,g.next=a.pending.next,a.pending.payload.type===d.ACTION_SERVER_ACTION&&(a.needsRefresh=!0),n({actionQueue:a,action:g,setState:c})):(null!==a.last&&(a.last.next=g),a.last=g)})(c,a,b),action:async(a,b)=>(0,e.reducer)(a,b),pending:null,last:null,onRouterTransitionStart:null!==b&&"function"==typeof b.onRouterTransitionStart?b.onRouterTransitionStart:null};return c}function p(){return null}function q(a,b,c,e){let f=new URL((0,i.addBasePath)(a),location.href);(0,l.setLinkForCurrentNavigation)(e);(0,h.dispatchAppRouterAction)({type:d.ACTION_NAVIGATE,url:f,isExternalUrl:(0,j.isExternalURL)(f),locationSearch:location.search,shouldScroll:c,navigateType:b,allowAliasing:!0})}function r(a,b){(0,h.dispatchAppRouterAction)({type:d.ACTION_RESTORE,url:new URL(a),tree:b})}let s={back:()=>window.history.back(),forward:()=>window.history.forward(),prefetch:(a,b)=>{let c=function(){throw Object.defineProperty(Error("Internal Next.js error: Router action dispatched before initialization."),"__NEXT_ERROR_CODE",{value:"E668",enumerable:!1,configurable:!0})}(),e=(0,j.createPrefetchURL)(a);if(null!==e){var f;(0,k.prefetchReducer)(c.state,{type:d.ACTION_PREFETCH,url:e,kind:null!=(f=null==b?void 0:b.kind)?f:d.PrefetchKind.FULL})}},replace:(a,b)=>{(0,f.startTransition)(()=>{var c;q(a,"replace",null==(c=null==b?void 0:b.scroll)||c,null)})},push:(a,b)=>{(0,f.startTransition)(()=>{var c;q(a,"push",null==(c=null==b?void 0:b.scroll)||c,null)})},refresh:()=>{(0,f.startTransition)(()=>{(0,h.dispatchAppRouterAction)({type:d.ACTION_REFRESH,origin:window.location.origin})})},hmrRefresh:()=>{throw Object.defineProperty(Error("hmrRefresh can only be used in development mode. Please use refresh instead."),"__NEXT_ERROR_CODE",{value:"E485",enumerable:!1,configurable:!0})}};("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},42511:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"addPathPrefix",{enumerable:!0,get:function(){return e}});let d=c(58430);function e(a,b){if(!a.startsWith("/")||!b)return a;let{pathname:c,query:e,hash:f}=(0,d.parsePath)(a);return""+b+c+e+f}},42674:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("folder-tree",[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]])},43476:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("construction",[["rect",{x:"2",y:"6",width:"20",height:"8",rx:"1",key:"1estib"}],["path",{d:"M17 14v7",key:"7m2elx"}],["path",{d:"M7 14v7",key:"1cm7wv"}],["path",{d:"M17 3v3",key:"1v4jwn"}],["path",{d:"M7 3v3",key:"7o6guu"}],["path",{d:"M10 14 2.3 6.3",key:"1023jk"}],["path",{d:"m14 6 7.7 7.7",key:"1s8pl2"}],["path",{d:"m8 6 8 8",key:"hl96qh"}]])},43560:(a,b,c)=>{"use strict";c.d(b,{B:()=>f});var d=c(83224),e=c(76713);let f={partial:!0,tokenize:function(a,b,c){return function(b){return(0,e.On)(b)?(0,d.N)(a,f,"linePrefix")(b):f(b)};function f(a){return null===a||(0,e.HP)(a)?b(a):c(a)}}}},43700:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("upload",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]])},43718:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]])},44688:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("message-square",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]])},45076:a=>{var b=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,c=/\n/g,d=/^\s*/,e=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,f=/^:\s*/,g=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,h=/^[;\s]*/,i=/^\s+|\s+$/g;function j(a){return a?a.replace(i,""):""}a.exports=function(a,i){if("string"!=typeof a)throw TypeError("First argument must be a string");if(!a)return[];i=i||{};var k=1,l=1;function m(a){var b=a.match(c);b&&(k+=b.length);var d=a.lastIndexOf("\n");l=~d?a.length-d:l+a.length}function n(){var a={line:k,column:l};return function(b){return b.position=new o(a),r(d),b}}function o(a){this.start=a,this.end={line:k,column:l},this.source=i.source}o.prototype.content=a;var p=[];function q(b){var c=Error(i.source+":"+k+":"+l+": "+b);if(c.reason=b,c.filename=i.source,c.line=k,c.column=l,c.source=a,i.silent)p.push(c);else throw c}function r(b){var c=b.exec(a);if(c){var d=c[0];return m(d),a=a.slice(d.length),c}}function s(a){var b;for(a=a||[];b=t();)!1!==b&&a.push(b);return a}function t(){var b=n();if("/"==a.charAt(0)&&"*"==a.charAt(1)){for(var c=2;""!=a.charAt(c)&&("*"!=a.charAt(c)||"/"!=a.charAt(c+1));)++c;if(c+=2,""===a.charAt(c-1))return q("End of comment missing");var d=a.slice(2,c-2);return l+=2,m(d),a=a.slice(c),l+=2,b({type:"comment",comment:d})}}r(d);var u,v=[];for(s(v);u=function(){var a=n(),c=r(e);if(c){if(t(),!r(f))return q("property missing ':'");var d=r(g),i=a({type:"declaration",property:j(c[0].replace(b,"")),value:d?j(d[0].replace(b,"")):""});return r(h),i}}();)!1!==u&&(v.push(u),s(v));return v}},45461:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"hmrRefreshReducer",{enumerable:!0,get:function(){return d}}),c(60535),c(11830),c(76143),c(81711),c(3219),c(73486),c(70395),c(97163),c(50586),c(76061);let d=function(a,b){return a};("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},45798:(a,b,c)=>{"use strict";c.d(b,{oz:()=>cl});var d={};c.r(d),c.d(d,{boolean:()=>r,booleanish:()=>s,commaOrSpaceSeparated:()=>x,commaSeparated:()=>w,number:()=>u,overloadedBoolean:()=>t,spaceSeparated:()=>v});var e={};c.r(e),c.d(e,{attentionMarkers:()=>bo,contentInitial:()=>bi,disable:()=>bp,document:()=>bh,flow:()=>bk,flowInitial:()=>bj,insideSpan:()=>bn,string:()=>bl,text:()=>bm});var f=c(5776);let g=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,h=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,i={};function j(a,b){return((b||i).jsx?h:g).test(a)}let k=/[ \t\n\f\r]/g;function l(a){return""===a.replace(k,"")}class m{constructor(a,b,c){this.normal=b,this.property=a,c&&(this.space=c)}}function n(a,b){let c={},d={};for(let b of a)Object.assign(c,b.property),Object.assign(d,b.normal);return new m(c,d,b)}function o(a){return a.toLowerCase()}m.prototype.normal={},m.prototype.property={},m.prototype.space=void 0;class p{constructor(a,b){this.attribute=b,this.property=a}}p.prototype.attribute="",p.prototype.booleanish=!1,p.prototype.boolean=!1,p.prototype.commaOrSpaceSeparated=!1,p.prototype.commaSeparated=!1,p.prototype.defined=!1,p.prototype.mustUseProperty=!1,p.prototype.number=!1,p.prototype.overloadedBoolean=!1,p.prototype.property="",p.prototype.spaceSeparated=!1,p.prototype.space=void 0;let q=0,r=y(),s=y(),t=y(),u=y(),v=y(),w=y(),x=y();function y(){return 2**++q}let z=Object.keys(d);class A extends p{constructor(a,b,c,e){let f=-1;if(super(a,b),function(a,b,c){c&&(a[b]=c)}(this,"space",e),"number"==typeof c)for(;++f"role"===b?b:"aria-"+b.slice(4).toLowerCase()});function D(a,b){return b in a?a[b]:b}function E(a,b){return D(a,b.toLowerCase())}let F=B({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:w,acceptCharset:v,accessKey:v,action:null,allow:null,allowFullScreen:r,allowPaymentRequest:r,allowUserMedia:r,alt:null,as:null,async:r,autoCapitalize:null,autoComplete:v,autoFocus:r,autoPlay:r,blocking:v,capture:null,charSet:null,checked:r,cite:null,className:v,cols:u,colSpan:null,content:null,contentEditable:s,controls:r,controlsList:v,coords:u|w,crossOrigin:null,data:null,dateTime:null,decoding:null,default:r,defer:r,dir:null,dirName:null,disabled:r,download:t,draggable:s,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:r,formTarget:null,headers:v,height:u,hidden:t,high:u,href:null,hrefLang:null,htmlFor:v,httpEquiv:v,id:null,imageSizes:null,imageSrcSet:null,inert:r,inputMode:null,integrity:null,is:null,isMap:r,itemId:null,itemProp:v,itemRef:v,itemScope:r,itemType:v,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:r,low:u,manifest:null,max:null,maxLength:u,media:null,method:null,min:null,minLength:u,multiple:r,muted:r,name:null,nonce:null,noModule:r,noValidate:r,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:r,optimum:u,pattern:null,ping:v,placeholder:null,playsInline:r,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:r,referrerPolicy:null,rel:v,required:r,reversed:r,rows:u,rowSpan:u,sandbox:v,scope:null,scoped:r,seamless:r,selected:r,shadowRootClonable:r,shadowRootDelegatesFocus:r,shadowRootMode:null,shape:null,size:u,sizes:null,slot:null,span:u,spellCheck:s,src:null,srcDoc:null,srcLang:null,srcSet:null,start:u,step:null,style:null,tabIndex:u,target:null,title:null,translate:null,type:null,typeMustMatch:r,useMap:null,value:s,width:u,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:v,axis:null,background:null,bgColor:null,border:u,borderColor:null,bottomMargin:u,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:r,declare:r,event:null,face:null,frame:null,frameBorder:null,hSpace:u,leftMargin:u,link:null,longDesc:null,lowSrc:null,marginHeight:u,marginWidth:u,noResize:r,noHref:r,noShade:r,noWrap:r,object:null,profile:null,prompt:null,rev:null,rightMargin:u,rules:null,scheme:null,scrolling:s,standby:null,summary:null,text:null,topMargin:u,valueType:null,version:null,vAlign:null,vLink:null,vSpace:u,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:r,disableRemotePlayback:r,prefix:null,property:null,results:u,security:null,unselectable:null},space:"html",transform:E}),G=B({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:x,accentHeight:u,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:u,amplitude:u,arabicForm:null,ascent:u,attributeName:null,attributeType:null,azimuth:u,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:u,by:null,calcMode:null,capHeight:u,className:v,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:u,diffuseConstant:u,direction:null,display:null,dur:null,divisor:u,dominantBaseline:null,download:r,dx:null,dy:null,edgeMode:null,editable:null,elevation:u,enableBackground:null,end:null,event:null,exponent:u,externalResourcesRequired:null,fill:null,fillOpacity:u,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:w,g2:w,glyphName:w,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:u,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:u,horizOriginX:u,horizOriginY:u,id:null,ideographic:u,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:u,k:u,k1:u,k2:u,k3:u,k4:u,kernelMatrix:x,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:u,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:u,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:u,overlineThickness:u,paintOrder:null,panose1:null,path:null,pathLength:u,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:v,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:u,pointsAtY:u,pointsAtZ:u,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:x,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:x,rev:x,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:x,requiredFeatures:x,requiredFonts:x,requiredFormats:x,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:u,specularExponent:u,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:u,strikethroughThickness:u,string:null,stroke:null,strokeDashArray:x,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:u,strokeOpacity:u,strokeWidth:null,style:null,surfaceScale:u,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:x,tabIndex:u,tableValues:null,target:null,targetX:u,targetY:u,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:x,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:u,underlineThickness:u,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:u,values:null,vAlphabetic:u,vMathematical:u,vectorEffect:null,vHanging:u,vIdeographic:u,version:null,vertAdvY:u,vertOriginX:u,vertOriginY:u,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:u,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:D}),H=B({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(a,b)=>"xlink:"+b.slice(5).toLowerCase()}),I=B({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:E}),J=B({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(a,b)=>"xml:"+b.slice(3).toLowerCase()}),K=n([C,F,H,I,J],"html"),L=n([C,G,H,I,J],"svg"),M=/[A-Z]/g,N=/-[a-z]/g,O=/^data[-\w.:]+$/i;function P(a){return"-"+a.toLowerCase()}function Q(a){return a.charAt(1).toUpperCase()}let R={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var S=c(30189);let T=V("end"),U=V("start");function V(a){return function(b){let c=b&&b.position&&b.position[a]||{};if("number"==typeof c.line&&c.line>0&&"number"==typeof c.column&&c.column>0)return{line:c.line,column:c.column,offset:"number"==typeof c.offset&&c.offset>-1?c.offset:void 0}}}function W(a){return a&&"object"==typeof a?"position"in a||"type"in a?Y(a.position):"start"in a||"end"in a?Y(a):"line"in a||"column"in a?X(a):"":""}function X(a){return Z(a&&a.line)+":"+Z(a&&a.column)}function Y(a){return X(a&&a.start)+"-"+X(a&&a.end)}function Z(a){return a&&"number"==typeof a?a:1}class $ extends Error{constructor(a,b,c){super(),"string"==typeof b&&(c=b,b=void 0);let d="",e={},f=!1;if(b&&(e="line"in b&&"column"in b||"start"in b&&"end"in b?{place:b}:"type"in b?{ancestors:[b],place:b.position}:{...b}),"string"==typeof a?d=a:!e.cause&&a&&(f=!0,d=a.message,e.cause=a),!e.ruleId&&!e.source&&"string"==typeof c){let a=c.indexOf(":");-1===a?e.ruleId=c:(e.source=c.slice(0,a),e.ruleId=c.slice(a+1))}if(!e.place&&e.ancestors&&e.ancestors){let a=e.ancestors[e.ancestors.length-1];a&&(e.place=a.position)}let g=e.place&&"start"in e.place?e.place.start:e.place;this.ancestors=e.ancestors||void 0,this.cause=e.cause||void 0,this.column=g?g.column:void 0,this.fatal=void 0,this.file="",this.message=d,this.line=g?g.line:void 0,this.name=W(e.place)||"1:1",this.place=e.place||void 0,this.reason=this.message,this.ruleId=e.ruleId||void 0,this.source=e.source||void 0,this.stack=f&&e.cause&&"string"==typeof e.cause.stack?e.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}$.prototype.file="",$.prototype.name="",$.prototype.reason="",$.prototype.message="",$.prototype.stack="",$.prototype.column=void 0,$.prototype.line=void 0,$.prototype.ancestors=void 0,$.prototype.cause=void 0,$.prototype.fatal=void 0,$.prototype.place=void 0,$.prototype.ruleId=void 0,$.prototype.source=void 0;let _={}.hasOwnProperty,aa=new Map,ab=/[A-Z]/g,ac=new Set(["table","tbody","thead","tfoot","tr"]),ad=new Set(["td","th"]),ae="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function af(a,b,c){return"element"===b.type?function(a,b,c){let d=a.schema;"svg"===b.tagName.toLowerCase()&&"html"===d.space&&(a.schema=L),a.ancestors.push(b);let e=aj(a,b.tagName,!1),f=function(a,b){let c,d,e={};for(d in b.properties)if("children"!==d&&_.call(b.properties,d)){let f=function(a,b,c){let d=function(a,b){let c=o(b),d=b,e=p;if(c in a.normal)return a.property[a.normal[c]];if(c.length>4&&"data"===c.slice(0,4)&&O.test(b)){if("-"===b.charAt(4)){let a=b.slice(5).replace(N,Q);d="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{let a=b.slice(4);if(!N.test(a)){let c=a.replace(M,P);"-"!==c.charAt(0)&&(c="-"+c),b="data"+c}}e=A}return new e(d,b)}(a.schema,b);if(!(null==c||"number"==typeof c&&Number.isNaN(c))){if(Array.isArray(c)&&(c=d.commaSeparated?function(a,b){let c={};return(""===a[a.length-1]?[...a,""]:a).join((c.padRight?" ":"")+","+(!1===c.padLeft?"":" ")).trim()}(c):c.join(" ").trim()),"style"===d.property){let b="object"==typeof c?c:function(a,b){try{return S(b,{reactCompat:!0})}catch(c){if(a.ignoreInvalidStyle)return{};let b=new $("Cannot parse `style` attribute",{ancestors:a.ancestors,cause:c,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw b.file=a.filePath||void 0,b.url=ae+"#cannot-parse-style-attribute",b}}(a,String(c));return"css"===a.stylePropertyNameCase&&(b=function(a){let b,c={};for(b in a)_.call(a,b)&&(c[function(a){let b=a.replace(ab,al);return"ms-"===b.slice(0,3)&&(b="-"+b),b}(b)]=a[b]);return c}(b)),["style",b]}return["react"===a.elementAttributeNameCase&&d.space?R[d.property]||d.property:d.attribute,c]}}(a,d,b.properties[d]);if(f){let[d,g]=f;a.tableCellAlignToStyle&&"align"===d&&"string"==typeof g&&ad.has(b.tagName)?c=g:e[d]=g}}return c&&((e.style||(e.style={}))["css"===a.stylePropertyNameCase?"text-align":"textAlign"]=c),e}(a,b),g=ai(a,b);return ac.has(b.tagName)&&(g=g.filter(function(a){return"string"!=typeof a||!("object"==typeof a?"text"===a.type&&l(a.value):l(a))})),ag(a,f,e,b),ah(f,g),a.ancestors.pop(),a.schema=d,a.create(b,e,f,c)}(a,b,c):"mdxFlowExpression"===b.type||"mdxTextExpression"===b.type?function(a,b){if(b.data&&b.data.estree&&a.evaluater){let c=b.data.estree.body[0];return(0,f.ok)("ExpressionStatement"===c.type),a.evaluater.evaluateExpression(c.expression)}ak(a,b.position)}(a,b):"mdxJsxFlowElement"===b.type||"mdxJsxTextElement"===b.type?function(a,b,c){let d=a.schema;"svg"===b.name&&"html"===d.space&&(a.schema=L),a.ancestors.push(b);let e=null===b.name?a.Fragment:aj(a,b.name,!0),g=function(a,b){let c={};for(let d of b.attributes)if("mdxJsxExpressionAttribute"===d.type)if(d.data&&d.data.estree&&a.evaluater){let b=d.data.estree.body[0];(0,f.ok)("ExpressionStatement"===b.type);let e=b.expression;(0,f.ok)("ObjectExpression"===e.type);let g=e.properties[0];(0,f.ok)("SpreadElement"===g.type),Object.assign(c,a.evaluater.evaluateExpression(g.argument))}else ak(a,b.position);else{let e,g=d.name;if(d.value&&"object"==typeof d.value)if(d.value.data&&d.value.data.estree&&a.evaluater){let b=d.value.data.estree.body[0];(0,f.ok)("ExpressionStatement"===b.type),e=a.evaluater.evaluateExpression(b.expression)}else ak(a,b.position);else e=null===d.value||d.value;c[g]=e}return c}(a,b),h=ai(a,b);return ag(a,g,e,b),ah(g,h),a.ancestors.pop(),a.schema=d,a.create(b,e,g,c)}(a,b,c):"mdxjsEsm"===b.type?function(a,b){if(b.data&&b.data.estree&&a.evaluater)return a.evaluater.evaluateProgram(b.data.estree);ak(a,b.position)}(a,b):"root"===b.type?function(a,b,c){let d={};return ah(d,ai(a,b)),a.create(b,a.Fragment,d,c)}(a,b,c):"text"===b.type?b.value:void 0}function ag(a,b,c,d){"string"!=typeof c&&c!==a.Fragment&&a.passNode&&(b.node=d)}function ah(a,b){if(b.length>0){let c=b.length>1?b:b[0];c&&(a.children=c)}}function ai(a,b){let c=[],d=-1,e=a.passKeys?new Map:aa;for(;++d=this.left.length+this.right.length)throw RangeError("Cannot access index `"+a+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return athis.left.length?this.right.slice(this.right.length-c+this.left.length,this.right.length-a+this.left.length).reverse():this.left.slice(a).concat(this.right.slice(this.right.length-c+this.left.length).reverse())}splice(a,b,c){this.setCursor(Math.trunc(a));let d=this.right.splice(this.right.length-(b||0),1/0);return c&&ar(this.left,c),d.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(a){this.setCursor(1/0),this.left.push(a)}pushMany(a){this.setCursor(1/0),ar(this.left,a)}unshift(a){this.setCursor(0),this.right.push(a)}unshiftMany(a){this.setCursor(0),ar(this.right,a.reverse())}setCursor(a){if(a!==this.left.length&&(!(a>this.left.length)||0!==this.right.length)&&(!(a<0)||0!==this.left.length))if(ad))return;let h=e.events.length,i=h;for(;i--;)if("exit"===e.events[i][0]&&"chunkFlow"===e.events[i][1].type){if(a){c=e.events[i][1].end;break}a=!0}for(q(g),f=h;fb;){let b=f[c];e.containerState=b[1],b[0].exit.call(e,a)}f.length=b}function r(){b.write([null]),c=void 0,b=void 0,e.containerState._closeFlow=void 0}}},ay={tokenize:function(a,b,c){return(0,au.N)(a,a.attempt(this.parser.constructs.document,b,c),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};var az=c(43560);let aA={resolve:function(a){return as(a),a},tokenize:function(a,b){let c;return function(b){return a.enter("content"),c=a.enter("chunkContent",{contentType:"content"}),d(b)};function d(b){return null===b?e(b):(0,av.HP)(b)?a.check(aB,f,e)(b):(a.consume(b),d)}function e(c){return a.exit("chunkContent"),a.exit("content"),b(c)}function f(b){return a.consume(b),a.exit("chunkContent"),c.next=a.enter("chunkContent",{contentType:"content",previous:c}),c=c.next,d}}},aB={partial:!0,tokenize:function(a,b,c){let d=this;return function(b){return a.exit("chunkContent"),a.enter("lineEnding"),a.consume(b),a.exit("lineEnding"),(0,au.N)(a,e,"linePrefix")};function e(e){if(null===e||(0,av.HP)(e))return c(e);let f=d.events[d.events.length-1];return!d.parser.constructs.disable.null.includes("codeIndented")&&f&&"linePrefix"===f[1].type&&f[2].sliceSerialize(f[1],!0).length>=4?b(e):a.interrupt(d.parser.constructs.flow,c,b)(e)}}},aC={tokenize:function(a){let b=this,c=a.attempt(az.B,function(d){return null===d?void a.consume(d):(a.enter("lineEndingBlank"),a.consume(d),a.exit("lineEndingBlank"),b.currentConstruct=void 0,c)},a.attempt(this.parser.constructs.flowInitial,d,(0,au.N)(a,a.attempt(this.parser.constructs.flow,d,a.attempt(aA,d)),"linePrefix")));return c;function d(d){return null===d?void a.consume(d):(a.enter("lineEnding"),a.consume(d),a.exit("lineEnding"),b.currentConstruct=void 0,c)}}},aD={resolveAll:aH()},aE=aG("string"),aF=aG("text");function aG(a){return{resolveAll:aH("text"===a?aI:void 0),tokenize:function(b){let c=this,d=this.parser.constructs[a],e=b.attempt(d,f,g);return f;function f(a){return i(a)?e(a):g(a)}function g(a){return null===a?void b.consume(a):(b.enter("data"),b.consume(a),h)}function h(a){return i(a)?(b.exit("data"),e(a)):(b.consume(a),h)}function i(a){if(null===a)return!0;let b=d[a],e=-1;if(b)for(;++e=3&&(null===g||(0,av.HP)(g))?(a.exit("thematicBreak"),b(g)):c(g)}(g)}}},aK={continuation:{tokenize:function(a,b,c){let d=this;return d.containerState._closeFlow=void 0,a.check(az.B,function(c){return d.containerState.furtherBlankLines=d.containerState.furtherBlankLines||d.containerState.initialBlankLine,(0,au.N)(a,b,"listItemIndent",d.containerState.size+1)(c)},function(c){return d.containerState.furtherBlankLines||!(0,av.On)(c)?(d.containerState.furtherBlankLines=void 0,d.containerState.initialBlankLine=void 0,e(c)):(d.containerState.furtherBlankLines=void 0,d.containerState.initialBlankLine=void 0,a.attempt(aM,b,e)(c))});function e(e){return d.containerState._closeFlow=!0,d.interrupt=void 0,(0,au.N)(a,a.attempt(aK,b,c),"linePrefix",d.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(e)}}},exit:function(a){a.exit(this.containerState.type)},name:"list",tokenize:function(a,b,c){let d=this,e=d.events[d.events.length-1],f=e&&"linePrefix"===e[1].type?e[2].sliceSerialize(e[1],!0).length:0,g=0;return function(b){let e=d.containerState.type||(42===b||43===b||45===b?"listUnordered":"listOrdered");if("listUnordered"===e?!d.containerState.marker||b===d.containerState.marker:(0,av.BM)(b)){if(d.containerState.type||(d.containerState.type=e,a.enter(e,{_container:!0})),"listUnordered"===e)return a.enter("listItemPrefix"),42===b||45===b?a.check(aJ,c,h)(b):h(b);if(!d.interrupt||49===b)return a.enter("listItemPrefix"),a.enter("listItemValue"),function b(e){return(0,av.BM)(e)&&++g<10?(a.consume(e),b):(!d.interrupt||g<2)&&(d.containerState.marker?e===d.containerState.marker:41===e||46===e)?(a.exit("listItemValue"),h(e)):c(e)}(b)}return c(b)};function h(b){return a.enter("listItemMarker"),a.consume(b),a.exit("listItemMarker"),d.containerState.marker=d.containerState.marker||b,a.check(az.B,d.interrupt?c:i,a.attempt(aL,k,j))}function i(a){return d.containerState.initialBlankLine=!0,f++,k(a)}function j(b){return(0,av.On)(b)?(a.enter("listItemPrefixWhitespace"),a.consume(b),a.exit("listItemPrefixWhitespace"),k):c(b)}function k(c){return d.containerState.size=f+d.sliceSerialize(a.exit("listItemPrefix"),!0).length,b(c)}}},aL={partial:!0,tokenize:function(a,b,c){let d=this;return(0,au.N)(a,function(a){let e=d.events[d.events.length-1];return!(0,av.On)(a)&&e&&"listItemPrefixWhitespace"===e[1].type?b(a):c(a)},"listItemPrefixWhitespace",d.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},aM={partial:!0,tokenize:function(a,b,c){let d=this;return(0,au.N)(a,function(a){let e=d.events[d.events.length-1];return e&&"listItemIndent"===e[1].type&&e[2].sliceSerialize(e[1],!0).length===d.containerState.size?b(a):c(a)},"listItemIndent",d.containerState.size+1)}},aN={continuation:{tokenize:function(a,b,c){let d=this;return function(b){return(0,av.On)(b)?(0,au.N)(a,e,"linePrefix",d.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(b):e(b)};function e(d){return a.attempt(aN,b,c)(d)}}},exit:function(a){a.exit("blockQuote")},name:"blockQuote",tokenize:function(a,b,c){let d=this;return function(b){if(62===b){let c=d.containerState;return c.open||(a.enter("blockQuote",{_container:!0}),c.open=!0),a.enter("blockQuotePrefix"),a.enter("blockQuoteMarker"),a.consume(b),a.exit("blockQuoteMarker"),e}return c(b)};function e(c){return(0,av.On)(c)?(a.enter("blockQuotePrefixWhitespace"),a.consume(c),a.exit("blockQuotePrefixWhitespace"),a.exit("blockQuotePrefix"),b):(a.exit("blockQuotePrefix"),b(c))}}};function aO(a,b,c,d,e,f,g,h,i){let j=i||1/0,k=0;return function(b){return 60===b?(a.enter(d),a.enter(e),a.enter(f),a.consume(b),a.exit(f),l):null===b||32===b||41===b||(0,av.JQ)(b)?c(b):(a.enter(d),a.enter(g),a.enter(h),a.enter("chunkString",{contentType:"string"}),o(b))};function l(c){return 62===c?(a.enter(f),a.consume(c),a.exit(f),a.exit(e),a.exit(d),b):(a.enter(h),a.enter("chunkString",{contentType:"string"}),m(c))}function m(b){return 62===b?(a.exit("chunkString"),a.exit(h),l(b)):null===b||60===b||(0,av.HP)(b)?c(b):(a.consume(b),92===b?n:m)}function n(b){return 60===b||62===b||92===b?(a.consume(b),m):m(b)}function o(e){return!k&&(null===e||41===e||(0,av.Ee)(e))?(a.exit("chunkString"),a.exit(h),a.exit(g),a.exit(d),b(e)):k999||null===l||91===l||93===l&&!g||94===l&&!i&&"_hiddenFootnoteSupport"in h.parser.constructs?c(l):93===l?(a.exit(f),a.enter(e),a.consume(l),a.exit(e),a.exit(d),b):(0,av.HP)(l)?(a.enter("lineEnding"),a.consume(l),a.exit("lineEnding"),j):(a.enter("chunkString",{contentType:"string"}),k(l))}function k(b){return null===b||91===b||93===b||(0,av.HP)(b)||i++>999?(a.exit("chunkString"),j(b)):(a.consume(b),g||(g=!(0,av.On)(b)),92===b?l:k)}function l(b){return 91===b||92===b||93===b?(a.consume(b),i++,k):k(b)}}function aQ(a,b,c,d,e,f){let g;return function(b){return 34===b||39===b||40===b?(a.enter(d),a.enter(e),a.consume(b),a.exit(e),g=40===b?41:b,h):c(b)};function h(c){return c===g?(a.enter(e),a.consume(c),a.exit(e),a.exit(d),b):(a.enter(f),i(c))}function i(b){return b===g?(a.exit(f),h(g)):null===b?c(b):(0,av.HP)(b)?(a.enter("lineEnding"),a.consume(b),a.exit("lineEnding"),(0,au.N)(a,i,"linePrefix")):(a.enter("chunkString",{contentType:"string"}),j(b))}function j(b){return b===g||null===b||(0,av.HP)(b)?(a.exit("chunkString"),i(b)):(a.consume(b),92===b?k:j)}function k(b){return b===g||92===b?(a.consume(b),j):j(b)}}function aR(a,b){let c;return function d(e){return(0,av.HP)(e)?(a.enter("lineEnding"),a.consume(e),a.exit("lineEnding"),c=!0,d):(0,av.On)(e)?(0,au.N)(a,d,c?"linePrefix":"lineSuffix")(e):b(e)}}var aS=c(75179);let aT={partial:!0,tokenize:function(a,b,c){return function(b){return(0,av.Ee)(b)?aR(a,d)(b):c(b)};function d(b){return aQ(a,e,c,"definitionTitle","definitionTitleMarker","definitionTitleString")(b)}function e(b){return(0,av.On)(b)?(0,au.N)(a,f,"whitespace")(b):f(b)}function f(a){return null===a||(0,av.HP)(a)?b(a):c(a)}}},aU={name:"codeIndented",tokenize:function(a,b,c){let d=this;return function(b){return a.enter("codeIndented"),(0,au.N)(a,e,"linePrefix",5)(b)};function e(b){let e=d.events[d.events.length-1];return e&&"linePrefix"===e[1].type&&e[2].sliceSerialize(e[1],!0).length>=4?function b(c){return null===c?f(c):(0,av.HP)(c)?a.attempt(aV,b,f)(c):(a.enter("codeFlowValue"),function c(d){return null===d||(0,av.HP)(d)?(a.exit("codeFlowValue"),b(d)):(a.consume(d),c)}(c))}(b):c(b)}function f(c){return a.exit("codeIndented"),b(c)}}},aV={partial:!0,tokenize:function(a,b,c){let d=this;return e;function e(b){return d.parser.lazy[d.now().line]?c(b):(0,av.HP)(b)?(a.enter("lineEnding"),a.consume(b),a.exit("lineEnding"),e):(0,au.N)(a,f,"linePrefix",5)(b)}function f(a){let f=d.events[d.events.length-1];return f&&"linePrefix"===f[1].type&&f[2].sliceSerialize(f[1],!0).length>=4?b(a):(0,av.HP)(a)?e(a):c(a)}}},aW={name:"setextUnderline",resolveTo:function(a,b){let c,d,e,f=a.length;for(;f--;)if("enter"===a[f][0]){if("content"===a[f][1].type){c=f;break}"paragraph"===a[f][1].type&&(d=f)}else"content"===a[f][1].type&&a.splice(f,1),e||"definition"!==a[f][1].type||(e=f);let g={type:"setextHeading",start:{...a[c][1].start},end:{...a[a.length-1][1].end}};return a[d][1].type="setextHeadingText",e?(a.splice(d,0,["enter",g,b]),a.splice(e+1,0,["exit",a[c][1],b]),a[c][1].end={...a[e][1].end}):a[c][1]=g,a.push(["exit",g,b]),a},tokenize:function(a,b,c){let d,e=this;return function(b){var g;let h,i=e.events.length;for(;i--;)if("lineEnding"!==e.events[i][1].type&&"linePrefix"!==e.events[i][1].type&&"content"!==e.events[i][1].type){h="paragraph"===e.events[i][1].type;break}return!e.parser.lazy[e.now().line]&&(e.interrupt||h)?(a.enter("setextHeadingLine"),d=b,g=b,a.enter("setextHeadingLineSequence"),function b(c){return c===d?(a.consume(c),b):(a.exit("setextHeadingLineSequence"),(0,av.On)(c)?(0,au.N)(a,f,"lineSuffix")(c):f(c))}(g)):c(b)};function f(d){return null===d||(0,av.HP)(d)?(a.exit("setextHeadingLine"),b(d)):c(d)}}},aX=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],aY=["pre","script","style","textarea"],aZ={partial:!0,tokenize:function(a,b,c){return function(d){return a.enter("lineEnding"),a.consume(d),a.exit("lineEnding"),a.attempt(az.B,b,c)}}},a$={partial:!0,tokenize:function(a,b,c){let d=this;return function(b){return(0,av.HP)(b)?(a.enter("lineEnding"),a.consume(b),a.exit("lineEnding"),e):c(b)};function e(a){return d.parser.lazy[d.now().line]?c(a):b(a)}}},a_={partial:!0,tokenize:function(a,b,c){let d=this;return function(b){return null===b?c(b):(a.enter("lineEnding"),a.consume(b),a.exit("lineEnding"),e)};function e(a){return d.parser.lazy[d.now().line]?c(a):b(a)}}},a0={concrete:!0,name:"codeFenced",tokenize:function(a,b,c){let d,e=this,f={partial:!0,tokenize:function(a,b,c){let f=0;return function(b){return a.enter("lineEnding"),a.consume(b),a.exit("lineEnding"),g};function g(b){return a.enter("codeFencedFence"),(0,av.On)(b)?(0,au.N)(a,i,"linePrefix",e.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(b):i(b)}function i(b){return b===d?(a.enter("codeFencedFenceSequence"),function b(e){return e===d?(f++,a.consume(e),b):f>=h?(a.exit("codeFencedFenceSequence"),(0,av.On)(e)?(0,au.N)(a,j,"whitespace")(e):j(e)):c(e)}(b)):c(b)}function j(d){return null===d||(0,av.HP)(d)?(a.exit("codeFencedFence"),b(d)):c(d)}}},g=0,h=0;return function(b){var f=b;let j=e.events[e.events.length-1];return g=j&&"linePrefix"===j[1].type?j[2].sliceSerialize(j[1],!0).length:0,d=f,a.enter("codeFenced"),a.enter("codeFencedFence"),a.enter("codeFencedFenceSequence"),function b(e){return e===d?(h++,a.consume(e),b):h<3?c(e):(a.exit("codeFencedFenceSequence"),(0,av.On)(e)?(0,au.N)(a,i,"whitespace")(e):i(e))}(f)};function i(f){return null===f||(0,av.HP)(f)?(a.exit("codeFencedFence"),e.interrupt?b(f):a.check(a_,k,o)(f)):(a.enter("codeFencedFenceInfo"),a.enter("chunkString",{contentType:"string"}),function b(e){return null===e||(0,av.HP)(e)?(a.exit("chunkString"),a.exit("codeFencedFenceInfo"),i(e)):(0,av.On)(e)?(a.exit("chunkString"),a.exit("codeFencedFenceInfo"),(0,au.N)(a,j,"whitespace")(e)):96===e&&e===d?c(e):(a.consume(e),b)}(f))}function j(b){return null===b||(0,av.HP)(b)?i(b):(a.enter("codeFencedFenceMeta"),a.enter("chunkString",{contentType:"string"}),function b(e){return null===e||(0,av.HP)(e)?(a.exit("chunkString"),a.exit("codeFencedFenceMeta"),i(e)):96===e&&e===d?c(e):(a.consume(e),b)}(b))}function k(b){return a.attempt(f,o,l)(b)}function l(b){return a.enter("lineEnding"),a.consume(b),a.exit("lineEnding"),m}function m(b){return g>0&&(0,av.On)(b)?(0,au.N)(a,n,"linePrefix",g+1)(b):n(b)}function n(b){return null===b||(0,av.HP)(b)?a.check(a_,k,o)(b):(a.enter("codeFlowValue"),function b(c){return null===c||(0,av.HP)(c)?(a.exit("codeFlowValue"),n(c)):(a.consume(c),b)}(b))}function o(c){return a.exit("codeFenced"),b(c)}}},a1={AElig:"\xc6",AMP:"&",Aacute:"\xc1",Abreve:"Ă",Acirc:"\xc2",Acy:"А",Afr:"\uD835\uDD04",Agrave:"\xc0",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"\uD835\uDD38",ApplyFunction:"⁡",Aring:"\xc5",Ascr:"\uD835\uDC9C",Assign:"≔",Atilde:"\xc3",Auml:"\xc4",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"\uD835\uDD05",Bopf:"\uD835\uDD39",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COPY:"\xa9",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedil:"\xc7",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"\xb8",CenterDot:"\xb7",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"\uD835\uDC9E",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"\uD835\uDD07",DiacriticalAcute:"\xb4",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"\uD835\uDD3B",Dot:"\xa8",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"\xa8",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"\uD835\uDC9F",Dstrok:"Đ",ENG:"Ŋ",ETH:"\xd0",Eacute:"\xc9",Ecaron:"Ě",Ecirc:"\xca",Ecy:"Э",Edot:"Ė",Efr:"\uD835\uDD08",Egrave:"\xc8",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"\uD835\uDD3C",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Euml:"\xcb",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"\uD835\uDD09",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"\uD835\uDD3D",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"\uD835\uDD0A",Gg:"⋙",Gopf:"\uD835\uDD3E",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"\uD835\uDCA2",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"\xcd",Icirc:"\xce",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrave:"\xcc",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"⁣",InvisibleTimes:"⁢",Iogon:"Į",Iopf:"\uD835\uDD40",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"\xcf",Jcirc:"Ĵ",Jcy:"Й",Jfr:"\uD835\uDD0D",Jopf:"\uD835\uDD41",Jscr:"\uD835\uDCA5",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"\uD835\uDD0E",Kopf:"\uD835\uDD42",Kscr:"\uD835\uDCA6",LJcy:"Љ",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"\uD835\uDD0F",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"\uD835\uDD43",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"\uD835\uDD10",MinusPlus:"∓",Mopf:"\uD835\uDD44",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",Nfr:"\uD835\uDD11",NoBreak:"⁠",NonBreakingSpace:"\xa0",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"\uD835\uDCA9",Ntilde:"\xd1",Nu:"Ν",OElig:"Œ",Oacute:"\xd3",Ocirc:"\xd4",Ocy:"О",Odblac:"Ő",Ofr:"\uD835\uDD12",Ograve:"\xd2",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"\uD835\uDD46",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"\uD835\uDCAA",Oslash:"\xd8",Otilde:"\xd5",Otimes:"⨷",Ouml:"\xd6",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"\uD835\uDD13",Phi:"Φ",Pi:"Π",PlusMinus:"\xb1",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"\uD835\uDCAB",Psi:"Ψ",QUOT:'"',Qfr:"\uD835\uDD14",Qopf:"ℚ",Qscr:"\uD835\uDCAC",RBarr:"⤐",REG:"\xae",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"\uD835\uDD16",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"\uD835\uDD4A",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"\uD835\uDCAE",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THORN:"\xde",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:" ",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"\uD835\uDD17",Therefore:"∴",Theta:"Θ",ThickSpace:"  ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"\uD835\uDD4B",TripleDot:"⃛",Tscr:"\uD835\uDCAF",Tstrok:"Ŧ",Uacute:"\xda",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"\xdb",Ucy:"У",Udblac:"Ű",Ufr:"\uD835\uDD18",Ugrave:"\xd9",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"\uD835\uDD4C",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"\uD835\uDCB0",Utilde:"Ũ",Uuml:"\xdc",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"\uD835\uDD19",Vopf:"\uD835\uDD4D",Vscr:"\uD835\uDCB1",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"\uD835\uDD1A",Wopf:"\uD835\uDD4E",Wscr:"\uD835\uDCB2",Xfr:"\uD835\uDD1B",Xi:"Ξ",Xopf:"\uD835\uDD4F",Xscr:"\uD835\uDCB3",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"\xdd",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"\uD835\uDD1C",Yopf:"\uD835\uDD50",Yscr:"\uD835\uDCB4",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"​",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"\uD835\uDCB5",aacute:"\xe1",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acirc:"\xe2",acute:"\xb4",acy:"а",aelig:"\xe6",af:"⁡",afr:"\uD835\uDD1E",agrave:"\xe0",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"\xc5",angzarr:"⍼",aogon:"ą",aopf:"\uD835\uDD52",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",aring:"\xe5",ascr:"\uD835\uDCB6",ast:"*",asymp:"≈",asympeq:"≍",atilde:"\xe3",auml:"\xe4",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"\uD835\uDD1F",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"\uD835\uDD53",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvbar:"\xa6",bscr:"\uD835\uDCB7",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedil:"\xe7",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedil:"\xb8",cemptyv:"⦲",cent:"\xa2",centerdot:"\xb7",cfr:"\uD835\uDD20",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"\xae",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"\uD835\uDD54",coprod:"∐",copy:"\xa9",copysr:"℗",crarr:"↵",cross:"✗",cscr:"\uD835\uDCB8",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"\xa4",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",deg:"\xb0",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"\uD835\uDD21",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"\xa8",digamma:"ϝ",disin:"⋲",div:"\xf7",divide:"\xf7",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"\uD835\uDD55",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"\uD835\uDCB9",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacute:"\xe9",easter:"⩮",ecaron:"ě",ecir:"≖",ecirc:"\xea",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"\uD835\uDD22",eg:"⪚",egrave:"\xe8",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"\uD835\uDD56",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",eth:"\xf0",euml:"\xeb",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"\uD835\uDD23",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"\uD835\uDD57",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"\xbd",frac13:"⅓",frac14:"\xbc",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"\xbe",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"\uD835\uDCBB",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"\uD835\uDD24",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"\uD835\uDD58",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"\xbd",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"\uD835\uDD25",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"\uD835\uDD59",horbar:"―",hscr:"\uD835\uDCBD",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacute:"\xed",ic:"⁣",icirc:"\xee",icy:"и",iecy:"е",iexcl:"\xa1",iff:"⇔",ifr:"\uD835\uDD26",igrave:"\xec",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"\uD835\uDD5A",iota:"ι",iprod:"⨼",iquest:"\xbf",iscr:"\uD835\uDCBE",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",iukcy:"і",iuml:"\xef",jcirc:"ĵ",jcy:"й",jfr:"\uD835\uDD27",jmath:"ȷ",jopf:"\uD835\uDD5B",jscr:"\uD835\uDCBF",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"\uD835\uDD28",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"\uD835\uDD5C",kscr:"\uD835\uDCC0",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laquo:"\xab",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"\uD835\uDD29",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"\uD835\uDD5D",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"\uD835\uDCC1",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"\xaf",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"\uD835\uDD2A",mho:"℧",micro:"\xb5",mid:"∣",midast:"*",midcir:"⫰",middot:"\xb7",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"\uD835\uDD5E",mp:"∓",mscr:"\uD835\uDCC2",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:"\xa0",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"\uD835\uDD2B",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"\uD835\uDD5F",not:"\xac",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"\uD835\uDCC3",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"\xf1",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacute:"\xf3",oast:"⊛",ocir:"⊚",ocirc:"\xf4",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"\uD835\uDD2C",ogon:"˛",ograve:"\xf2",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"\uD835\uDD60",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"\xaa",ordm:"\xba",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslash:"\xf8",osol:"⊘",otilde:"\xf5",otimes:"⊗",otimesas:"⨶",ouml:"\xf6",ovbar:"⌽",par:"∥",para:"\xb6",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"\uD835\uDD2D",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusmn:"\xb1",plussim:"⨦",plustwo:"⨧",pm:"\xb1",pointint:"⨕",popf:"\uD835\uDD61",pound:"\xa3",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"\uD835\uDCC5",psi:"ψ",puncsp:" ",qfr:"\uD835\uDD2E",qint:"⨌",qopf:"\uD835\uDD62",qprime:"⁗",qscr:"\uD835\uDCC6",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"\xbb",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"\xae",rfisht:"⥽",rfloor:"⌋",rfr:"\uD835\uDD2F",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"\uD835\uDD63",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"\uD835\uDCC7",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sect:"\xa7",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"\uD835\uDD30",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",shy:"\xad",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"\uD835\uDD64",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"\uD835\uDCC8",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"\xaf",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",sup:"⊃",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"\xdf",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"\uD835\uDD31",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thorn:"\xfe",tilde:"˜",times:"\xd7",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"\uD835\uDD65",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"\uD835\uDCC9",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacute:"\xfa",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucirc:"\xfb",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"\uD835\uDD32",ugrave:"\xf9",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uml:"\xa8",uogon:"ų",uopf:"\uD835\uDD66",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"\uD835\uDCCA",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"\xfc",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"\uD835\uDD33",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"\uD835\uDD67",vprop:"∝",vrtri:"⊳",vscr:"\uD835\uDCCB",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"\uD835\uDD34",wopf:"\uD835\uDD68",wp:"℘",wr:"≀",wreath:"≀",wscr:"\uD835\uDCCC",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"\uD835\uDD35",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"\uD835\uDD69",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"\uD835\uDCCD",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"\xfd",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"\xa5",yfr:"\uD835\uDD36",yicy:"ї",yopf:"\uD835\uDD6A",yscr:"\uD835\uDCCE",yucy:"ю",yuml:"\xff",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"\uD835\uDD37",zhcy:"ж",zigrarr:"⇝",zopf:"\uD835\uDD6B",zscr:"\uD835\uDCCF",zwj:"‍",zwnj:"‌"},a2={}.hasOwnProperty;function a3(a){return!!a2.call(a1,a)&&a1[a]}let a4={name:"characterReference",tokenize:function(a,b,c){let d,e,f=this,g=0;return function(b){return a.enter("characterReference"),a.enter("characterReferenceMarker"),a.consume(b),a.exit("characterReferenceMarker"),h};function h(b){return 35===b?(a.enter("characterReferenceMarkerNumeric"),a.consume(b),a.exit("characterReferenceMarkerNumeric"),i):(a.enter("characterReferenceValue"),d=31,e=av.lV,j(b))}function i(b){return 88===b||120===b?(a.enter("characterReferenceMarkerHexadecimal"),a.consume(b),a.exit("characterReferenceMarkerHexadecimal"),a.enter("characterReferenceValue"),d=6,e=av.ok,j):(a.enter("characterReferenceValue"),d=7,e=av.BM,j(b))}function j(h){if(59===h&&g){let d=a.exit("characterReferenceValue");return e!==av.lV||a3(f.sliceSerialize(d))?(a.enter("characterReferenceMarker"),a.consume(h),a.exit("characterReferenceMarker"),a.exit("characterReference"),b):c(h)}return e(h)&&g++1&&a[k][1].end.offset-a[k][1].start.offset>1?2:1;let l={...a[c][1].end},m={...a[k][1].start};bf(l,-h),bf(m,h),f={type:h>1?"strongSequence":"emphasisSequence",start:l,end:{...a[c][1].end}},g={type:h>1?"strongSequence":"emphasisSequence",start:{...a[k][1].start},end:m},e={type:h>1?"strongText":"emphasisText",start:{...a[c][1].end},end:{...a[k][1].start}},d={type:h>1?"strong":"emphasis",start:{...f.start},end:{...g.end}},a[c][1].end={...f.start},a[k][1].start={...g.end},i=[],a[c][1].end.offset-a[c][1].start.offset&&(i=(0,ap.V)(i,[["enter",a[c][1],b],["exit",a[c][1],b]])),i=(0,ap.V)(i,[["enter",d,b],["enter",f,b],["exit",f,b],["enter",e,b]]),i=(0,ap.V)(i,(0,a7.W)(b.parser.constructs.insideSpan.null,a.slice(c+1,k),b)),i=(0,ap.V)(i,[["exit",e,b],["enter",g,b],["exit",g,b],["exit",d,b]]),a[k][1].end.offset-a[k][1].start.offset?(j=2,i=(0,ap.V)(i,[["enter",a[k][1],b],["exit",a[k][1],b]])):j=0,(0,ap.m)(a,c-1,k-c+3,i),k=c+i.length-j-2;break}}for(k=-1;++kf&&"whitespace"===a[e][1].type&&(e-=2),"atxHeadingSequence"===a[e][1].type&&(f===e-1||e-4>f&&"whitespace"===a[e-2][1].type)&&(e-=f+1===e?2:4),e>f&&(c={type:"atxHeadingText",start:a[f][1].start,end:a[e][1].end},d={type:"chunkText",start:a[f][1].start,end:a[e][1].end,contentType:"text"},(0,ap.m)(a,f,e-f+1,[["enter",c,b],["enter",d,b],["exit",d,b],["exit",c,b]])),a},tokenize:function(a,b,c){let d=0;return function(e){var f;return a.enter("atxHeading"),f=e,a.enter("atxHeadingSequence"),function e(f){return 35===f&&d++<6?(a.consume(f),e):null===f||(0,av.Ee)(f)?(a.exit("atxHeadingSequence"),function c(d){return 35===d?(a.enter("atxHeadingSequence"),function b(d){return 35===d?(a.consume(d),b):(a.exit("atxHeadingSequence"),c(d))}(d)):null===d||(0,av.HP)(d)?(a.exit("atxHeading"),b(d)):(0,av.On)(d)?(0,au.N)(a,c,"whitespace")(d):(a.enter("atxHeadingText"),function b(d){return null===d||35===d||(0,av.Ee)(d)?(a.exit("atxHeadingText"),c(d)):(a.consume(d),b)}(d))}(f)):c(f)}(f)}}},42:aJ,45:[aW,aJ],60:{concrete:!0,name:"htmlFlow",resolveTo:function(a){let b=a.length;for(;b--&&("enter"!==a[b][0]||"htmlFlow"!==a[b][1].type););return b>1&&"linePrefix"===a[b-2][1].type&&(a[b][1].start=a[b-2][1].start,a[b+1][1].start=a[b-2][1].start,a.splice(b-2,2)),a},tokenize:function(a,b,c){let d,e,f,g,h,i=this;return function(b){var c;return c=b,a.enter("htmlFlow"),a.enter("htmlFlowData"),a.consume(c),j};function j(g){return 33===g?(a.consume(g),k):47===g?(a.consume(g),e=!0,n):63===g?(a.consume(g),d=3,i.interrupt?b:G):(0,av.CW)(g)?(a.consume(g),f=String.fromCharCode(g),o):c(g)}function k(e){return 45===e?(a.consume(e),d=2,l):91===e?(a.consume(e),d=5,g=0,m):(0,av.CW)(e)?(a.consume(e),d=4,i.interrupt?b:G):c(e)}function l(d){return 45===d?(a.consume(d),i.interrupt?b:G):c(d)}function m(d){let e="CDATA[";return d===e.charCodeAt(g++)?(a.consume(d),g===e.length)?i.interrupt?b:y:m:c(d)}function n(b){return(0,av.CW)(b)?(a.consume(b),f=String.fromCharCode(b),o):c(b)}function o(g){if(null===g||47===g||62===g||(0,av.Ee)(g)){let h=47===g,j=f.toLowerCase();return!h&&!e&&aY.includes(j)?(d=1,i.interrupt?b(g):y(g)):aX.includes(f.toLowerCase())?(d=6,h)?(a.consume(g),p):i.interrupt?b(g):y(g):(d=7,i.interrupt&&!i.parser.lazy[i.now().line]?c(g):e?function b(c){return(0,av.On)(c)?(a.consume(c),b):w(c)}(g):q(g))}return 45===g||(0,av.lV)(g)?(a.consume(g),f+=String.fromCharCode(g),o):c(g)}function p(d){return 62===d?(a.consume(d),i.interrupt?b:y):c(d)}function q(b){return 47===b?(a.consume(b),w):58===b||95===b||(0,av.CW)(b)?(a.consume(b),r):(0,av.On)(b)?(a.consume(b),q):w(b)}function r(b){return 45===b||46===b||58===b||95===b||(0,av.lV)(b)?(a.consume(b),r):s(b)}function s(b){return 61===b?(a.consume(b),t):(0,av.On)(b)?(a.consume(b),s):q(b)}function t(b){return null===b||60===b||61===b||62===b||96===b?c(b):34===b||39===b?(a.consume(b),h=b,u):(0,av.On)(b)?(a.consume(b),t):function b(c){return null===c||34===c||39===c||47===c||60===c||61===c||62===c||96===c||(0,av.Ee)(c)?s(c):(a.consume(c),b)}(b)}function u(b){return b===h?(a.consume(b),h=null,v):null===b||(0,av.HP)(b)?c(b):(a.consume(b),u)}function v(a){return 47===a||62===a||(0,av.On)(a)?q(a):c(a)}function w(b){return 62===b?(a.consume(b),x):c(b)}function x(b){return null===b||(0,av.HP)(b)?y(b):(0,av.On)(b)?(a.consume(b),x):c(b)}function y(b){return 45===b&&2===d?(a.consume(b),C):60===b&&1===d?(a.consume(b),D):62===b&&4===d?(a.consume(b),H):63===b&&3===d?(a.consume(b),G):93===b&&5===d?(a.consume(b),F):(0,av.HP)(b)&&(6===d||7===d)?(a.exit("htmlFlowData"),a.check(aZ,I,z)(b)):null===b||(0,av.HP)(b)?(a.exit("htmlFlowData"),z(b)):(a.consume(b),y)}function z(b){return a.check(a$,A,I)(b)}function A(b){return a.enter("lineEnding"),a.consume(b),a.exit("lineEnding"),B}function B(b){return null===b||(0,av.HP)(b)?z(b):(a.enter("htmlFlowData"),y(b))}function C(b){return 45===b?(a.consume(b),G):y(b)}function D(b){return 47===b?(a.consume(b),f="",E):y(b)}function E(b){if(62===b){let c=f.toLowerCase();return aY.includes(c)?(a.consume(b),H):y(b)}return(0,av.CW)(b)&&f.length<8?(a.consume(b),f+=String.fromCharCode(b),E):y(b)}function F(b){return 93===b?(a.consume(b),G):y(b)}function G(b){return 62===b?(a.consume(b),H):45===b&&2===d?(a.consume(b),G):y(b)}function H(b){return null===b||(0,av.HP)(b)?(a.exit("htmlFlowData"),I(b)):(a.consume(b),H)}function I(c){return a.exit("htmlFlow"),b(c)}}},61:aW,95:aJ,96:a0,126:a0},bl={38:a4,92:a5},bm={[-5]:a6,[-4]:a6,[-3]:a6,33:bc,38:a4,42:be,60:[{name:"autolink",tokenize:function(a,b,c){let d=0;return function(b){return a.enter("autolink"),a.enter("autolinkMarker"),a.consume(b),a.exit("autolinkMarker"),a.enter("autolinkProtocol"),e};function e(b){return(0,av.CW)(b)?(a.consume(b),f):64===b?c(b):h(b)}function f(b){return 43===b||45===b||46===b||(0,av.lV)(b)?(d=1,function b(c){return 58===c?(a.consume(c),d=0,g):(43===c||45===c||46===c||(0,av.lV)(c))&&d++<32?(a.consume(c),b):(d=0,h(c))}(b)):h(b)}function g(d){return 62===d?(a.exit("autolinkProtocol"),a.enter("autolinkMarker"),a.consume(d),a.exit("autolinkMarker"),a.exit("autolink"),b):null===d||32===d||60===d||(0,av.JQ)(d)?c(d):(a.consume(d),g)}function h(b){return 64===b?(a.consume(b),i):(0,av.cx)(b)?(a.consume(b),h):c(b)}function i(e){return(0,av.lV)(e)?function e(f){return 46===f?(a.consume(f),d=0,i):62===f?(a.exit("autolinkProtocol").type="autolinkEmail",a.enter("autolinkMarker"),a.consume(f),a.exit("autolinkMarker"),a.exit("autolink"),b):function b(f){if((45===f||(0,av.lV)(f))&&d++<63){let c=45===f?b:e;return a.consume(f),c}return c(f)}(f)}(e):c(e)}}},{name:"htmlText",tokenize:function(a,b,c){let d,e,f,g=this;return function(b){return a.enter("htmlText"),a.enter("htmlTextData"),a.consume(b),h};function h(b){return 33===b?(a.consume(b),i):47===b?(a.consume(b),u):63===b?(a.consume(b),s):(0,av.CW)(b)?(a.consume(b),w):c(b)}function i(b){return 45===b?(a.consume(b),j):91===b?(a.consume(b),e=0,n):(0,av.CW)(b)?(a.consume(b),r):c(b)}function j(b){return 45===b?(a.consume(b),m):c(b)}function k(b){return null===b?c(b):45===b?(a.consume(b),l):(0,av.HP)(b)?(f=k,E(b)):(a.consume(b),k)}function l(b){return 45===b?(a.consume(b),m):k(b)}function m(a){return 62===a?D(a):45===a?l(a):k(a)}function n(b){let d="CDATA[";return b===d.charCodeAt(e++)?(a.consume(b),e===d.length?o:n):c(b)}function o(b){return null===b?c(b):93===b?(a.consume(b),p):(0,av.HP)(b)?(f=o,E(b)):(a.consume(b),o)}function p(b){return 93===b?(a.consume(b),q):o(b)}function q(b){return 62===b?D(b):93===b?(a.consume(b),q):o(b)}function r(b){return null===b||62===b?D(b):(0,av.HP)(b)?(f=r,E(b)):(a.consume(b),r)}function s(b){return null===b?c(b):63===b?(a.consume(b),t):(0,av.HP)(b)?(f=s,E(b)):(a.consume(b),s)}function t(a){return 62===a?D(a):s(a)}function u(b){return(0,av.CW)(b)?(a.consume(b),v):c(b)}function v(b){return 45===b||(0,av.lV)(b)?(a.consume(b),v):function b(c){return(0,av.HP)(c)?(f=b,E(c)):(0,av.On)(c)?(a.consume(c),b):D(c)}(b)}function w(b){return 45===b||(0,av.lV)(b)?(a.consume(b),w):47===b||62===b||(0,av.Ee)(b)?x(b):c(b)}function x(b){return 47===b?(a.consume(b),D):58===b||95===b||(0,av.CW)(b)?(a.consume(b),y):(0,av.HP)(b)?(f=x,E(b)):(0,av.On)(b)?(a.consume(b),x):D(b)}function y(b){return 45===b||46===b||58===b||95===b||(0,av.lV)(b)?(a.consume(b),y):function b(c){return 61===c?(a.consume(c),z):(0,av.HP)(c)?(f=b,E(c)):(0,av.On)(c)?(a.consume(c),b):x(c)}(b)}function z(b){return null===b||60===b||61===b||62===b||96===b?c(b):34===b||39===b?(a.consume(b),d=b,A):(0,av.HP)(b)?(f=z,E(b)):(0,av.On)(b)?(a.consume(b),z):(a.consume(b),B)}function A(b){return b===d?(a.consume(b),d=void 0,C):null===b?c(b):(0,av.HP)(b)?(f=A,E(b)):(a.consume(b),A)}function B(b){return null===b||34===b||39===b||60===b||61===b||96===b?c(b):47===b||62===b||(0,av.Ee)(b)?x(b):(a.consume(b),B)}function C(a){return 47===a||62===a||(0,av.Ee)(a)?x(a):c(a)}function D(d){return 62===d?(a.consume(d),a.exit("htmlTextData"),a.exit("htmlText"),b):c(d)}function E(b){return a.exit("htmlTextData"),a.enter("lineEnding"),a.consume(b),a.exit("lineEnding"),F}function F(b){return(0,av.On)(b)?(0,au.N)(a,G,"linePrefix",g.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(b):G(b)}function G(b){return a.enter("htmlTextData"),f(b)}}}],91:bg,92:[{name:"hardBreakEscape",tokenize:function(a,b,c){return function(b){return a.enter("hardBreakEscape"),a.consume(b),d};function d(d){return(0,av.HP)(d)?(a.exit("hardBreakEscape"),b(d)):c(d)}}},a5],93:a8,95:be,96:{name:"codeText",previous:function(a){return 96!==a||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(a){let b,c,d=a.length-4,e=3;if(("lineEnding"===a[3][1].type||"space"===a[e][1].type)&&("lineEnding"===a[d][1].type||"space"===a[d][1].type)){for(b=e;++b13&&c<32||c>126&&c<160||c>55295&&c<57344||c>64975&&c<65008||(65535&c)==65535||(65535&c)==65534||c>1114111?"�":String.fromCodePoint(c)}let bs=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function bt(a,b,c){if(b)return b;if(35===c.charCodeAt(0)){let a=c.charCodeAt(1),b=120===a||88===a;return br(c.slice(b?2:1),b?16:10)}return a3(c)||a}let bu={}.hasOwnProperty;function bv(a){return{line:a.line,column:a.column,offset:a.offset}}function bw(a,b){if(a)throw Error("Cannot close `"+a.type+"` ("+W({start:a.start,end:a.end})+"): a different token (`"+b.type+"`, "+W({start:b.start,end:b.end})+") is open");throw Error("Cannot close document, a token (`"+b.type+"`, "+W({start:b.start,end:b.end})+") is still open")}function bx(a){let b=this;b.parser=function(c){var d,f;let g,h,i,j;return"string"!=typeof(d={...b.data("settings"),...a,extensions:b.data("micromarkExtensions")||[],mdastExtensions:b.data("fromMarkdownExtensions")||[]})&&(f=d,d=void 0),(function(a){let b={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:d(r),autolinkProtocol:j,autolinkEmail:j,atxHeading:d(o),blockQuote:d(function(){return{type:"blockquote",children:[]}}),characterEscape:j,characterReference:j,codeFenced:d(n),codeFencedFenceInfo:e,codeFencedFenceMeta:e,codeIndented:d(n,e),codeText:d(function(){return{type:"inlineCode",value:""}},e),codeTextData:j,data:j,codeFlowValue:j,definition:d(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:e,definitionLabelString:e,definitionTitleString:e,emphasis:d(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:d(p),hardBreakTrailing:d(p),htmlFlow:d(q,e),htmlFlowData:j,htmlText:d(q,e),htmlTextData:j,image:d(function(){return{type:"image",title:null,url:"",alt:null}}),label:e,link:d(r),listItem:d(function(a){return{type:"listItem",spread:a._spread,checked:null,children:[]}}),listItemValue:function(a){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(a),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:d(s,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:d(s),paragraph:d(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:e,resourceDestinationString:e,resourceTitleString:e,setextHeading:d(o),strong:d(function(){return{type:"strong",children:[]}}),thematicBreak:d(function(){return{type:"thematicBreak"}})},exit:{atxHeading:g(),atxHeadingSequence:function(a){let b=this.stack[this.stack.length-1];b.depth||(b.depth=this.sliceSerialize(a).length)},autolink:g(),autolinkEmail:function(a){k.call(this,a),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(a)},autolinkProtocol:function(a){k.call(this,a),this.stack[this.stack.length-1].url=this.sliceSerialize(a)},blockQuote:g(),characterEscapeValue:k,characterReferenceMarkerHexadecimal:m,characterReferenceMarkerNumeric:m,characterReferenceValue:function(a){let b,c=this.sliceSerialize(a),d=this.data.characterReferenceType;d?(b=br(c,"characterReferenceMarkerNumeric"===d?10:16),this.data.characterReferenceType=void 0):b=a3(c);let e=this.stack[this.stack.length-1];e.value+=b},characterReference:function(a){this.stack.pop().position.end=bv(a.end)},codeFenced:g(function(){let a=this.resume();this.stack[this.stack.length-1].value=a.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let a=this.resume();this.stack[this.stack.length-1].lang=a},codeFencedFenceMeta:function(){let a=this.resume();this.stack[this.stack.length-1].meta=a},codeFlowValue:k,codeIndented:g(function(){let a=this.resume();this.stack[this.stack.length-1].value=a.replace(/(\r?\n|\r)$/g,"")}),codeText:g(function(){let a=this.resume();this.stack[this.stack.length-1].value=a}),codeTextData:k,data:k,definition:g(),definitionDestinationString:function(){let a=this.resume();this.stack[this.stack.length-1].url=a},definitionLabelString:function(a){let b=this.resume(),c=this.stack[this.stack.length-1];c.label=b,c.identifier=(0,aS.B)(this.sliceSerialize(a)).toLowerCase()},definitionTitleString:function(){let a=this.resume();this.stack[this.stack.length-1].title=a},emphasis:g(),hardBreakEscape:g(l),hardBreakTrailing:g(l),htmlFlow:g(function(){let a=this.resume();this.stack[this.stack.length-1].value=a}),htmlFlowData:k,htmlText:g(function(){let a=this.resume();this.stack[this.stack.length-1].value=a}),htmlTextData:k,image:g(function(){let a=this.stack[this.stack.length-1];if(this.data.inReference){let b=this.data.referenceType||"shortcut";a.type+="Reference",a.referenceType=b,delete a.url,delete a.title}else delete a.identifier,delete a.label;this.data.referenceType=void 0}),label:function(){let a=this.stack[this.stack.length-1],b=this.resume(),c=this.stack[this.stack.length-1];this.data.inReference=!0,"link"===c.type?c.children=a.children:c.alt=b},labelText:function(a){let b=this.sliceSerialize(a),c=this.stack[this.stack.length-2];c.label=b.replace(bs,bt),c.identifier=(0,aS.B)(b).toLowerCase()},lineEnding:function(a){let c=this.stack[this.stack.length-1];if(this.data.atHardBreak){c.children[c.children.length-1].position.end=bv(a.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&b.canContainEols.includes(c.type)&&(j.call(this,a),k.call(this,a))},link:g(function(){let a=this.stack[this.stack.length-1];if(this.data.inReference){let b=this.data.referenceType||"shortcut";a.type+="Reference",a.referenceType=b,delete a.url,delete a.title}else delete a.identifier,delete a.label;this.data.referenceType=void 0}),listItem:g(),listOrdered:g(),listUnordered:g(),paragraph:g(),referenceString:function(a){let b=this.resume(),c=this.stack[this.stack.length-1];c.label=b,c.identifier=(0,aS.B)(this.sliceSerialize(a)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let a=this.resume();this.stack[this.stack.length-1].url=a},resourceTitleString:function(){let a=this.resume();this.stack[this.stack.length-1].title=a},resource:function(){this.data.inReference=void 0},setextHeading:g(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(a){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(a).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:g(),thematicBreak:g()}};!function a(b,c){let d=-1;for(;++d0){let a=g.tokenStack[g.tokenStack.length-1];(a[1]||bw).call(g,void 0,a[0])}for(d.position={start:bv(a.length>0?a[0][1].start:{line:1,column:1,offset:0}),end:bv(a.length>0?a[a.length-2][1].end:{line:1,column:1,offset:0})},k=-1;++k-1){let a=c[0];"string"==typeof a?c[0]=a.slice(e):c.shift()}g>0&&c.push(a[f].slice(0,g))}return c}(g,a)}function m(){let{_bufferIndex:a,_index:b,line:c,column:e,offset:f}=d;return{_bufferIndex:a,_index:b,line:c,column:e,offset:f}}function n(a,b){b.restore()}function o(a,b){return function(c,e,f){var g;let k,l,n,o;return Array.isArray(c)?p(c):"tokenize"in c?p([c]):(g=c,function(a){let b=null!==a&&g[a],c=null!==a&&g.null;return p([...Array.isArray(b)?b:b?[b]:[],...Array.isArray(c)?c:c?[c]:[]])(a)});function p(a){return(k=a,l=0,0===a.length)?f:r(a[l])}function r(a){return function(c){return(o=function(){let a=m(),b=j.previous,c=j.currentConstruct,e=j.events.length,f=Array.from(h);return{from:e,restore:function(){d=a,j.previous=b,j.currentConstruct=c,j.events.length=e,h=f,q()}}}(),n=a,a.partial||(j.currentConstruct=a),a.name&&j.parser.constructs.disable.null.includes(a.name))?t(c):a.tokenize.call(b?Object.assign(Object.create(j),b):j,i,s,t)(c)}}function s(b){return a(n,o),e}function t(a){return(o.restore(),++l((a,b)=>{let c=(b,c)=>(a.set(c,b),b),d=e=>{if(a.has(e))return a.get(e);let[f,g]=b[e];switch(f){case 0:case -1:return c(g,e);case 1:{let a=c([],e);for(let b of g)a.push(d(b));return a}case 2:{let a=c({},e);for(let[b,c]of g)a[d(b)]=d(c);return a}case 3:return c(new Date(g),e);case 4:{let{source:a,flags:b}=g;return c(new RegExp(a,b),e)}case 5:{let a=c(new Map,e);for(let[b,c]of g)a.set(d(b),d(c));return a}case 6:{let a=c(new Set,e);for(let b of g)a.add(d(b));return a}case 7:{let{name:a,message:b}=g;return c(new by[a](b),e)}case 8:return c(BigInt(g),e);case"BigInt":return c(Object(BigInt(g)),e);case"ArrayBuffer":return c(new Uint8Array(g).buffer,g);case"DataView":{let{buffer:a}=new Uint8Array(g);return c(new DataView(a),g)}}return c(new by[f](g),e)};return d})(new Map,a)(0),{toString:bA}={},{keys:bB}=Object,bC=a=>{let b=typeof a;if("object"!==b||!a)return[0,b];let c=bA.call(a).slice(8,-1);switch(c){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""];case"DataView":return[1,c]}return c.includes("Array")?[1,c]:c.includes("Error")?[7,c]:[2,c]},bD=([a,b])=>0===a&&("function"===b||"symbol"===b),bE=(a,{json:b,lossy:c}={})=>{let d=[];return((a,b,c,d)=>{let e=(a,b)=>{let e=d.push(a)-1;return c.set(b,e),e},f=d=>{if(c.has(d))return c.get(d);let[g,h]=bC(d);switch(g){case 0:{let b=d;switch(h){case"bigint":g=8,b=d.toString();break;case"function":case"symbol":if(a)throw TypeError("unable to serialize "+h);b=null;break;case"undefined":return e([-1],d)}return e([g,b],d)}case 1:{if(h){let a=d;return"DataView"===h?a=new Uint8Array(d.buffer):"ArrayBuffer"===h&&(a=new Uint8Array(d)),e([h,[...a]],d)}let a=[],b=e([g,a],d);for(let b of d)a.push(f(b));return b}case 2:{if(h)switch(h){case"BigInt":return e([h,d.toString()],d);case"Boolean":case"Number":case"String":return e([h,d.valueOf()],d)}if(b&&"toJSON"in d)return f(d.toJSON());let c=[],i=e([g,c],d);for(let b of bB(d))(a||!bD(bC(d[b])))&&c.push([f(b),f(d[b])]);return i}case 3:return e([g,d.toISOString()],d);case 4:{let{source:a,flags:b}=d;return e([g,{source:a,flags:b}],d)}case 5:{let b=[],c=e([g,b],d);for(let[c,e]of d)(a||!(bD(bC(c))||bD(bC(e))))&&b.push([f(c),f(e)]);return c}case 6:{let b=[],c=e([g,b],d);for(let c of d)(a||!bD(bC(c)))&&b.push(f(c));return c}}let{message:i}=d;return e([g,{name:h,message:i}],d)};return f})(!(b||c),!!b,new Map,d)(a),d},bF="function"==typeof structuredClone?(a,b)=>b&&("json"in b||"lossy"in b)?bz(bE(a,b)):structuredClone(a):(a,b)=>bz(bE(a,b));function bG(a){let b=[],c=-1,d=0,e=0;for(;++c55295&&f<57344){let b=a.charCodeAt(c+1);f<56320&&b>56319&&b<57344?(g=String.fromCharCode(f,b),e=1):g="�"}else g=String.fromCharCode(f);g&&(b.push(a.slice(d,c),encodeURIComponent(g)),d=c+e+1,g=""),e&&(c+=e,e=0)}return b.join("")+a.slice(d)}function bH(a,b){let c=[{type:"text",value:"↩"}];return b>1&&c.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(b)}]}),c}function bI(a,b){return"Back to reference "+(a+1)+(b>1?"-"+b:"")}var bJ=c(60921);function bK(a,b){let c=b.referenceType,d="]";if("collapsed"===c?d+="[]":"full"===c&&(d+="["+(b.label||b.identifier)+"]"),"imageReference"===b.type)return[{type:"text",value:"!["+b.alt+d}];let e=a.all(b),f=e[0];f&&"text"===f.type?f.value="["+f.value:e.unshift({type:"text",value:"["});let g=e[e.length-1];return g&&"text"===g.type?g.value+=d:e.push({type:"text",value:d}),e}function bL(a){let b=a.spread;return null==b?a.children.length>1:b}function bM(a,b,c){let d=0,e=a.length;if(b){let b=a.codePointAt(d);for(;9===b||32===b;)d++,b=a.codePointAt(d)}if(c){let b=a.codePointAt(e-1);for(;9===b||32===b;)e--,b=a.codePointAt(e-1)}return e>d?a.slice(d,e):""}let bN={blockquote:function(a,b){let c={type:"element",tagName:"blockquote",properties:{},children:a.wrap(a.all(b),!0)};return a.patch(b,c),a.applyData(b,c)},break:function(a,b){let c={type:"element",tagName:"br",properties:{},children:[]};return a.patch(b,c),[a.applyData(b,c),{type:"text",value:"\n"}]},code:function(a,b){let c=b.value?b.value+"\n":"",d={};b.lang&&(d.className=["language-"+b.lang]);let e={type:"element",tagName:"code",properties:d,children:[{type:"text",value:c}]};return b.meta&&(e.data={meta:b.meta}),a.patch(b,e),e={type:"element",tagName:"pre",properties:{},children:[e=a.applyData(b,e)]},a.patch(b,e),e},delete:function(a,b){let c={type:"element",tagName:"del",properties:{},children:a.all(b)};return a.patch(b,c),a.applyData(b,c)},emphasis:function(a,b){let c={type:"element",tagName:"em",properties:{},children:a.all(b)};return a.patch(b,c),a.applyData(b,c)},footnoteReference:function(a,b){let c,d="string"==typeof a.options.clobberPrefix?a.options.clobberPrefix:"user-content-",e=String(b.identifier).toUpperCase(),f=bG(e.toLowerCase()),g=a.footnoteOrder.indexOf(e),h=a.footnoteCounts.get(e);void 0===h?(h=0,a.footnoteOrder.push(e),c=a.footnoteOrder.length):c=g+1,h+=1,a.footnoteCounts.set(e,h);let i={type:"element",tagName:"a",properties:{href:"#"+d+"fn-"+f,id:d+"fnref-"+f+(h>1?"-"+h:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};a.patch(b,i);let j={type:"element",tagName:"sup",properties:{},children:[i]};return a.patch(b,j),a.applyData(b,j)},heading:function(a,b){let c={type:"element",tagName:"h"+b.depth,properties:{},children:a.all(b)};return a.patch(b,c),a.applyData(b,c)},html:function(a,b){if(a.options.allowDangerousHtml){let c={type:"raw",value:b.value};return a.patch(b,c),a.applyData(b,c)}},imageReference:function(a,b){let c=String(b.identifier).toUpperCase(),d=a.definitionById.get(c);if(!d)return bK(a,b);let e={src:bG(d.url||""),alt:b.alt};null!==d.title&&void 0!==d.title&&(e.title=d.title);let f={type:"element",tagName:"img",properties:e,children:[]};return a.patch(b,f),a.applyData(b,f)},image:function(a,b){let c={src:bG(b.url)};null!==b.alt&&void 0!==b.alt&&(c.alt=b.alt),null!==b.title&&void 0!==b.title&&(c.title=b.title);let d={type:"element",tagName:"img",properties:c,children:[]};return a.patch(b,d),a.applyData(b,d)},inlineCode:function(a,b){let c={type:"text",value:b.value.replace(/\r?\n|\r/g," ")};a.patch(b,c);let d={type:"element",tagName:"code",properties:{},children:[c]};return a.patch(b,d),a.applyData(b,d)},linkReference:function(a,b){let c=String(b.identifier).toUpperCase(),d=a.definitionById.get(c);if(!d)return bK(a,b);let e={href:bG(d.url||"")};null!==d.title&&void 0!==d.title&&(e.title=d.title);let f={type:"element",tagName:"a",properties:e,children:a.all(b)};return a.patch(b,f),a.applyData(b,f)},link:function(a,b){let c={href:bG(b.url)};null!==b.title&&void 0!==b.title&&(c.title=b.title);let d={type:"element",tagName:"a",properties:c,children:a.all(b)};return a.patch(b,d),a.applyData(b,d)},listItem:function(a,b,c){let d=a.all(b),e=c?function(a){let b=!1;if("list"===a.type){b=a.spread||!1;let c=a.children,d=-1;for(;!b&&++d0&&a.children.unshift({type:"text",value:" "}),a.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:b.checked,disabled:!0},children:[]}),f.className=["task-list-item"]}let h=-1;for(;++h0){let d={type:"element",tagName:"tbody",properties:{},children:a.wrap(c,!0)},f=U(b.children[1]),g=T(b.children[b.children.length-1]);f&&g&&(d.position={start:f,end:g}),e.push(d)}let f={type:"element",tagName:"table",properties:{},children:a.wrap(e,!0)};return a.patch(b,f),a.applyData(b,f)},tableCell:function(a,b){let c={type:"element",tagName:"td",properties:{},children:a.all(b)};return a.patch(b,c),a.applyData(b,c)},tableRow:function(a,b,c){let d=c?c.children:void 0,e=0===(d?d.indexOf(b):1)?"th":"td",f=c&&"table"===c.type?c.align:void 0,g=f?f.length:b.children.length,h=-1,i=[];for(;++h0,!0),d[0]),e=d.index+d[0].length,d=c.exec(b);return f.push(bM(b.slice(e),e>0,!1)),f.join("")}(String(b.value))};return a.patch(b,c),a.applyData(b,c)},thematicBreak:function(a,b){let c={type:"element",tagName:"hr",properties:{},children:[]};return a.patch(b,c),a.applyData(b,c)},toml:bO,yaml:bO,definition:bO,footnoteDefinition:bO};function bO(){}let bP={}.hasOwnProperty,bQ={};function bR(a,b){a.position&&(b.position=function(a){let b=U(a),c=T(a);if(b&&c)return{start:b,end:c}}(a))}function bS(a,b){let c=b;if(a&&a.data){let b=a.data.hName,d=a.data.hChildren,e=a.data.hProperties;"string"==typeof b&&("element"===c.type?c.tagName=b:c={type:"element",tagName:b,properties:{},children:"children"in c?c.children:[c]}),"element"===c.type&&e&&Object.assign(c.properties,bF(e)),"children"in c&&c.children&&null!=d&&(c.children=d)}return c}function bT(a,b){let c=[],d=-1;for(b&&c.push({type:"text",value:"\n"});++d0&&c.push({type:"text",value:"\n"}),c}function bU(a){let b=0,c=a.charCodeAt(b);for(;9===c||32===c;)b++,c=a.charCodeAt(b);return a.slice(b)}function bV(a,b){let c=function(a,b){let c=b||bQ,d=new Map,e=new Map,f={all:function(a){let b=[];if("children"in a){let c=a.children,d=-1;for(;++d0&&l.push({type:"text",value:" "});let a="string"==typeof c?c:c(i,k);"string"==typeof a&&(a={type:"text",value:a}),l.push({type:"element",tagName:"a",properties:{href:"#"+b+"fnref-"+j+(k>1?"-"+k:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof d?d:d(i,k),className:["data-footnote-backref"]},children:Array.isArray(a)?a:[a]})}let n=f[f.length-1];if(n&&"element"===n.type&&"p"===n.tagName){let a=n.children[n.children.length-1];a&&"text"===a.type?a.value+=" ":n.children.push({type:"text",value:" "}),n.children.push(...l)}else f.push(...l);let o={type:"element",tagName:"li",properties:{id:b+"fn-"+j},children:a.wrap(f,!0)};a.patch(e,o),h.push(o)}if(0!==h.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:f,properties:{...bF(g),id:"footnote-label"},children:[{type:"text",value:e}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:a.wrap(h,!0)},{type:"text",value:"\n"}]}}(c),g=Array.isArray(d)?{type:"root",children:d}:d||{type:"root",children:[]};return e&&((0,f.ok)("children"in g),g.children.push({type:"text",value:"\n"},e)),g}function bW(a,b){return a&&"run"in a?async function(c,d){let e=bV(c,{file:d,...b});await a.run(e,d)}:function(c,d){return bV(c,{file:d,...a||b})}}function bX(a){if(a)throw a}var bY=c(88633);function bZ(a){if("object"!=typeof a||null===a)return!1;let b=Object.getPrototypeOf(a);return(null===b||b===Object.prototype||null===Object.getPrototypeOf(b))&&!(Symbol.toStringTag in a)&&!(Symbol.iterator in a)}var b$=c(76760),b_=c(1708);function b0(a){return!!(null!==a&&"object"==typeof a&&"href"in a&&a.href&&"protocol"in a&&a.protocol&&void 0===a.auth)}var b1=c(73136);let b2=["history","path","basename","stem","extname","dirname"];class b3{constructor(a){let b,c;b=a?b0(a)?{path:a}:"string"==typeof a||function(a){return!!(a&&"object"==typeof a&&"byteLength"in a&&"byteOffset"in a)}(a)?{value:a}:a:{},this.cwd="cwd"in b?"":b_.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let d=-1;for(;++db.length;g&&b.push(d);try{f=a.apply(this,b)}catch(a){if(g&&c)throw a;return d(a)}g||(f&&f.then&&"function"==typeof f.then?f.then(e,d):f instanceof Error?d(f):e(f))};function d(a,...e){c||(c=!0,b(a,...e))}function e(a){d(null,a)}})(h,e)(...g):d(null,...g)}(null,...b)},use:function(c){if("function"!=typeof c)throw TypeError("Expected `middelware` to be a function, not "+c);return a.push(c),b}};return b}()}copy(){let a=new b9,b=-1;for(;++b0){let[d,...f]=b,g=c[e][1];bZ(g)&&bZ(d)&&(d=bY(!0,g,d)),c[e]=[a,d,...f]}}}}let ca=new b9().freeze();function cb(a,b){if("function"!=typeof b)throw TypeError("Cannot `"+a+"` without `parser`")}function cc(a,b){if("function"!=typeof b)throw TypeError("Cannot `"+a+"` without `compiler`")}function cd(a,b){if(b)throw Error("Cannot call `"+a+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function ce(a){if(!bZ(a)||"string"!=typeof a.type)throw TypeError("Expected node, got `"+a+"`")}function cf(a,b,c){if(!c)throw Error("`"+a+"` finished async. Use `"+b+"` instead")}function cg(a){var b;return(b=a)&&"object"==typeof b&&"message"in b&&"messages"in b?a:new b3(a)}let ch=[],ci={allowDangerousHtml:!0},cj=/^(https?|ircs?|mailto|xmpp)$/i,ck=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function cl(a){let b=function(a){let b=a.rehypePlugins||ch,c=a.remarkPlugins||ch,d=a.remarkRehypeOptions?{...a.remarkRehypeOptions,...ci}:ci;return ca().use(bx).use(c).use(bW,d).use(b)}(a),c=function(a){let b=a.children||"",c=new b3;return"string"==typeof b?c.value=b:(0,f.HB)("Unexpected value `"+b+"` for `children` prop, expected `string`"),c}(a);return function(a,b){let c=b.allowedElements,d=b.allowElement,e=b.components,g=b.disallowedElements,h=b.skipHtml,i=b.unwrapDisallowed,j=b.urlTransform||cm;for(let a of ck)Object.hasOwn(b,a.from)&&(0,f.HB)("Unexpected `"+a.from+"` prop, "+(a.to?"use `"+a.to+"` instead":"remove it")+" (see for more info)");return c&&g&&(0,f.HB)("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other"),(0,bJ.YR)(a,function(a,b,e){if("raw"===a.type&&e&&"number"==typeof b)return h?e.children.splice(b,1):e.children[b]={type:"text",value:a.value},b;if("element"===a.type){let b;for(b in am)if(Object.hasOwn(am,b)&&Object.hasOwn(a.properties,b)){let c=a.properties[b],d=am[b];(null===d||d.includes(a.tagName))&&(a.properties[b]=j(String(c||""),b,a))}}if("element"===a.type){let f=c?!c.includes(a.tagName):!!g&&g.includes(a.tagName);if(!f&&d&&"number"==typeof b&&(f=!d(a,b,e)),f&&e&&"number"==typeof b)return i&&a.children?e.children.splice(b,1,...a.children):e.children.splice(b,1),b}}),function(a,b){var c,d,e,f;let g;if(!b||void 0===b.Fragment)throw TypeError("Expected `Fragment` in options");let h=b.filePath||void 0;if(b.development){if("function"!=typeof b.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");c=h,d=b.jsxDEV,g=function(a,b,e,f){let g=Array.isArray(e.children),h=U(a);return d(b,e,f,g,{columnNumber:h?h.column-1:void 0,fileName:c,lineNumber:h?h.line:void 0},void 0)}}else{if("function"!=typeof b.jsx)throw TypeError("Expected `jsx` in production options");if("function"!=typeof b.jsxs)throw TypeError("Expected `jsxs` in production options");e=b.jsx,f=b.jsxs,g=function(a,b,c,d){let g=Array.isArray(c.children)?f:e;return d?g(b,c,d):g(b,c)}}let i={Fragment:b.Fragment,ancestors:[],components:b.components||{},create:g,elementAttributeNameCase:b.elementAttributeNameCase||"react",evaluater:b.createEvaluater?b.createEvaluater():void 0,filePath:h,ignoreInvalidStyle:b.ignoreInvalidStyle||!1,passKeys:!1!==b.passKeys,passNode:b.passNode||!1,schema:"svg"===b.space?L:K,stylePropertyNameCase:b.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==b.tableCellAlignToStyle},j=af(i,a,void 0);return j&&"string"!=typeof j?j:i.create(a,i.Fragment,{children:j||void 0},void 0)}(a,{Fragment:an.Fragment,components:e,ignoreInvalidStyle:!0,jsx:an.jsx,jsxs:an.jsxs,passKeys:!0,passNode:!0})}(b.runSync(b.parse(c),c),a)}function cm(a){let b=a.indexOf(":"),c=a.indexOf("?"),d=a.indexOf("#"),e=a.indexOf("/");return -1===b||-1!==e&&b>e||-1!==c&&b>c||-1!==d&&b>d||cj.test(a.slice(0,b))?a:""}},46148:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]])},47332:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{formatUrl:function(){return f},formatWithValidation:function(){return h},urlObjectKeys:function(){return g}});let d=c(55823)._(c(15238)),e=/https?|ftp|gopher|file/;function f(a){let{auth:b,hostname:c}=a,f=a.protocol||"",g=a.pathname||"",h=a.hash||"",i=a.query||"",j=!1;b=b?encodeURIComponent(b).replace(/%3A/i,":")+"@":"",a.host?j=b+a.host:c&&(j=b+(~c.indexOf(":")?"["+c+"]":c),a.port&&(j+=":"+a.port)),i&&"object"==typeof i&&(i=String(d.urlQueryToSearchParams(i)));let k=a.search||i&&"?"+i||"";return f&&!f.endsWith(":")&&(f+=":"),a.slashes||(!f||e.test(f))&&!1!==j?(j="//"+(j||""),g&&"/"!==g[0]&&(g="/"+g)):j||(j=""),h&&"#"!==h[0]&&(h="#"+h),k&&"?"!==k[0]&&(k="?"+k),""+f+j+(g=g.replace(/[?#]/g,encodeURIComponent))+(k=k.replace("#","%23"))+h}let g=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function h(a){return f(a)}},49269:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]])},49427:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"useMergedRef",{enumerable:!0,get:function(){return e}});let d=c(38301);function e(a,b){let c=(0,d.useRef)(null),e=(0,d.useRef)(null);return(0,d.useCallback)(d=>{if(null===d){let a=c.current;a&&(c.current=null,a());let b=e.current;b&&(e.current=null,b())}else a&&(c.current=f(a,d)),b&&(e.current=f(b,d))},[a,b])}function f(a,b){if("function"!=typeof a)return a.current=b,()=>{a.current=null};{let c=a(b);return"function"==typeof c?c:()=>a(null)}}("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},50337:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("tablet",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["line",{x1:"12",x2:"12.01",y1:"18",y2:"18",key:"1dp563"}]])},50586:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"handleSegmentMismatch",{enumerable:!0,get:function(){return e}});let d=c(3219);function e(a,b,c){return(0,d.handleExternalUrl)(a,{},a.canonicalUrl,!0)}("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},50987:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("folder-git-2",[["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["path",{d:"M18 19c-2.8 0-5-2.2-5-5v8",key:"pkpw2h"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]])},51855:(a,b,c)=>{"use strict";c.d(b,{m:()=>r});let d=Symbol.for("constructDateFrom");function e(a,b){return"function"==typeof a?a(b):a&&"object"==typeof a&&d in a?a[d](b):a instanceof Date?new a.constructor(b):new Date(b)}let f={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function g(a){return (b={})=>{let c=b.width?String(b.width):a.defaultWidth;return a.formats[c]||a.formats[a.defaultWidth]}}let h={date:g({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:g({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:g({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},i={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function j(a){return(b,c)=>{let d;if("formatting"===(c?.context?String(c.context):"standalone")&&a.formattingValues){let b=a.defaultFormattingWidth||a.defaultWidth,e=c?.width?String(c.width):b;d=a.formattingValues[e]||a.formattingValues[b]}else{let b=a.defaultWidth,e=c?.width?String(c.width):a.defaultWidth;d=a.values[e]||a.values[b]}return d[a.argumentCallback?a.argumentCallback(b):b]}}function k(a){return(b,c={})=>{let d,e=c.width,f=e&&a.matchPatterns[e]||a.matchPatterns[a.defaultMatchWidth],g=b.match(f);if(!g)return null;let h=g[0],i=e&&a.parsePatterns[e]||a.parsePatterns[a.defaultParseWidth],j=Array.isArray(i)?function(a,b){for(let c=0;ca.test(h)):function(a,b){for(let c in a)if(Object.prototype.hasOwnProperty.call(a,c)&&b(a[c]))return c}(i,a=>a.test(h));return d=a.valueCallback?a.valueCallback(j):j,{value:d=c.valueCallback?c.valueCallback(d):d,rest:b.slice(h.length)}}}let l={code:"en-US",formatDistance:(a,b,c)=>{let d,e=f[a];if(d="string"==typeof e?e:1===b?e.one:e.other.replace("{{count}}",b.toString()),c?.addSuffix)if(c.comparison&&c.comparison>0)return"in "+d;else return d+" ago";return d},formatLong:h,formatRelative:(a,b,c,d)=>i[a],localize:{ordinalNumber:(a,b)=>{let c=Number(a),d=c%100;if(d>20||d<10)switch(d%10){case 1:return c+"st";case 2:return c+"nd";case 3:return c+"rd"}return c+"th"},era:j({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:j({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:a=>a-1}),month:j({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:j({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:j({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:function(a){return(b,c={})=>{let d=b.match(a.matchPattern);if(!d)return null;let e=d[0],f=b.match(a.parsePattern);if(!f)return null;let g=a.valueCallback?a.valueCallback(f[0]):f[0];return{value:g=c.valueCallback?c.valueCallback(g):g,rest:b.slice(e.length)}}}({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:a=>parseInt(a,10)}),era:k({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:k({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:a=>a+1}),month:k({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:k({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:k({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},m={};function n(a,b){return e(b||a,a)}function o(a){let b=n(a),c=new Date(Date.UTC(b.getFullYear(),b.getMonth(),b.getDate(),b.getHours(),b.getMinutes(),b.getSeconds(),b.getMilliseconds()));return c.setUTCFullYear(b.getFullYear()),a-c}function p(a,...b){let c=e.bind(null,a||b.find(a=>"object"==typeof a));return b.map(c)}function q(a,b){let c=n(a)-n(b);return c<0?-1:c>0?1:c}function r(a,b){return function(a,b,c){let d,e=c?.locale??m.locale??l,f=q(a,b);if(isNaN(f))throw RangeError("Invalid time value");let g=Object.assign({},c,{addSuffix:c?.addSuffix,comparison:f}),[h,i]=p(c?.in,...f>0?[b,a]:[a,b]),j=function(a,b,c){var d;return(d=void 0,a=>{let b=(d?Math[d]:Math.trunc)(a);return 0===b?0:b})((n(a)-n(b))/1e3)}(i,h),k=Math.round((j-(o(i)-o(h))/1e3)/60);if(k<2)if(c?.includeSeconds)if(j<5)return e.formatDistance("lessThanXSeconds",5,g);else if(j<10)return e.formatDistance("lessThanXSeconds",10,g);else if(j<20)return e.formatDistance("lessThanXSeconds",20,g);else if(j<40)return e.formatDistance("halfAMinute",0,g);else if(j<60)return e.formatDistance("lessThanXMinutes",1,g);else return e.formatDistance("xMinutes",1,g);else if(0===k)return e.formatDistance("lessThanXMinutes",1,g);else return e.formatDistance("xMinutes",k,g);if(k<45)return e.formatDistance("xMinutes",k,g);if(k<90)return e.formatDistance("aboutXHours",1,g);if(k<1440){let a=Math.round(k/60);return e.formatDistance("aboutXHours",a,g)}if(k<2520)return e.formatDistance("xDays",1,g);else if(k<43200){let a=Math.round(k/1440);return e.formatDistance("xDays",a,g)}else if(k<86400)return d=Math.round(k/43200),e.formatDistance("aboutXMonths",d,g);if((d=function(a,b,c){let[d,e,f]=p(void 0,a,a,b),g=q(e,f),h=Math.abs(function(a,b,c){let[d,e]=p(void 0,a,b);return 12*(d.getFullYear()-e.getFullYear())+(d.getMonth()-e.getMonth())}(e,f));if(h<1)return 0;1===e.getMonth()&&e.getDate()>27&&e.setDate(30),e.setMonth(e.getMonth()-g*h);let i=q(e,f)===-g;(function(a,b){let c=n(a,void 0);return+function(a,b){let c=n(a,b?.in);return c.setHours(23,59,59,999),c}(c,void 0)==+function(a,b){let c=n(a,b?.in),d=c.getMonth();return c.setFullYear(c.getFullYear(),d+1,0),c.setHours(23,59,59,999),c}(c,b)})(d)&&1===h&&1===q(d,f)&&(i=!1);let j=g*(h-i);return 0===j?0:j}(i,h))<12){let a=Math.round(k/43200);return e.formatDistance("xMonths",a,g)}{let a=d%12,b=Math.trunc(d/12);return a<3?e.formatDistance("aboutXYears",b,g):a<9?e.formatDistance("overXYears",b,g):e.formatDistance("almostXYears",b+1,g)}}(a,e(a,Date.now()),b)}},52426:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("toggle-right",[["circle",{cx:"15",cy:"12",r:"3",key:"1afu0r"}],["rect",{width:"20",height:"14",x:"2",y:"5",rx:"7",key:"g7kal2"}]])},52998:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("newspaper",[["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-4 0v-9a2 2 0 0 1 2-2h2",key:"39pd36"}],["rect",{width:"8",height:"4",x:"10",y:"6",rx:"1",key:"aywv1n"}]])},53256:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("square-check-big",[["path",{d:"M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344",key:"2acyp4"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},55056:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]])},55705:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("list",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]])},57685:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{GracefulDegradeBoundary:function(){return f},default:function(){return g}});let d=c(21124),e=c(38301);class f extends e.Component{static getDerivedStateFromError(a){return{hasError:!0}}componentDidMount(){let a=this.htmlRef.current;this.state.hasError&&a&&Object.entries(this.htmlAttributes).forEach(b=>{let[c,d]=b;a.setAttribute(c,d)})}render(){let{hasError:a}=this.state;return a?(0,d.jsx)("html",{ref:this.htmlRef,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:this.rootHtml}}):this.props.children}constructor(a){super(a),this.state={hasError:!1},this.rootHtml="",this.htmlAttributes={},this.htmlRef=(0,e.createRef)()}}let g=f;("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},57759:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("file",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]])},58430:(a,b)=>{"use strict";function c(a){let b=a.indexOf("#"),c=a.indexOf("?"),d=c>-1&&(b<0||c-1?{pathname:a.substring(0,d?c:b),query:d?a.substring(c,b>-1?b:void 0):"",hash:b>-1?a.slice(b):""}:{pathname:a,query:"",hash:""}}Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"parsePath",{enumerable:!0,get:function(){return c}})},59147:(a,b,c)=>{"use strict";c.d(b,{Ke:()=>w,R6:()=>u,bL:()=>z});var d=c(38301),e=c(87868),f=c(2332),g=c(11720),h=c(68829),i=c(92808),j=c(6406),k=c(29988),l=c(75656),m=c(21124),n="Collapsible",[o,p]=(0,f.A)(n),[q,r]=o(n),s=d.forwardRef((a,b)=>{let{__scopeCollapsible:c,open:e,defaultOpen:f,disabled:h,onOpenChange:i,...k}=a,[o,p]=(0,g.i)({prop:e,defaultProp:f??!1,onChange:i,caller:n});return(0,m.jsx)(q,{scope:c,disabled:h,contentId:(0,l.B)(),open:o,onOpenToggle:d.useCallback(()=>p(a=>!a),[p]),children:(0,m.jsx)(j.sG.div,{"data-state":y(o),"data-disabled":h?"":void 0,...k,ref:b})})});s.displayName=n;var t="CollapsibleTrigger",u=d.forwardRef((a,b)=>{let{__scopeCollapsible:c,...d}=a,f=r(t,c);return(0,m.jsx)(j.sG.button,{type:"button","aria-controls":f.contentId,"aria-expanded":f.open||!1,"data-state":y(f.open),"data-disabled":f.disabled?"":void 0,disabled:f.disabled,...d,ref:b,onClick:(0,e.mK)(a.onClick,f.onOpenToggle)})});u.displayName=t;var v="CollapsibleContent",w=d.forwardRef((a,b)=>{let{forceMount:c,...d}=a,e=r(v,a.__scopeCollapsible);return(0,m.jsx)(k.C,{present:c||e.open,children:({present:a})=>(0,m.jsx)(x,{...d,ref:b,present:a})})});w.displayName=v;var x=d.forwardRef((a,b)=>{let{__scopeCollapsible:c,present:e,children:f,...g}=a,k=r(v,c),[l,n]=d.useState(e),o=d.useRef(null),p=(0,i.s)(b,o),q=d.useRef(0),s=q.current,t=d.useRef(0),u=t.current,w=k.open||l,x=d.useRef(w),z=d.useRef(void 0);return d.useEffect(()=>{let a=requestAnimationFrame(()=>x.current=!1);return()=>cancelAnimationFrame(a)},[]),(0,h.N)(()=>{let a=o.current;if(a){z.current=z.current||{transitionDuration:a.style.transitionDuration,animationName:a.style.animationName},a.style.transitionDuration="0s",a.style.animationName="none";let b=a.getBoundingClientRect();q.current=b.height,t.current=b.width,x.current||(a.style.transitionDuration=z.current.transitionDuration,a.style.animationName=z.current.animationName),n(e)}},[k.open,e]),(0,m.jsx)(j.sG.div,{"data-state":y(k.open),"data-disabled":k.disabled?"":void 0,id:k.contentId,hidden:!w,...g,ref:p,style:{"--radix-collapsible-content-height":s?`${s}px`:void 0,"--radix-collapsible-content-width":u?`${u}px`:void 0,...a.style},children:w&&f})});function y(a){return a?"open":"closed"}var z=s},59268:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},59405:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},59589:(a,b,c)=>{"use strict";function d(a,b){if(!Object.prototype.hasOwnProperty.call(a,b))throw TypeError("attempted to use private field on non-instance");return a}c.r(b),c.d(b,{_:()=>d})},60894:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"pathHasPrefix",{enumerable:!0,get:function(){return e}});let d=c(58430);function e(a,b){if("string"!=typeof a)return!1;let{pathname:c}=(0,d.parsePath)(a);return c===b||c.startsWith(b+"/")}},60921:(a,b,c)=>{"use strict";c.d(b,{YR:()=>e});var d=c(78971);function e(a,b,c,e){let f,g,h;"function"==typeof b&&"function"!=typeof c?(g=void 0,h=b,f=c):(g=b,h=c,f=e),(0,d.VG)(a,g,function(a,b){let c=b[b.length-1],d=c?c.children.indexOf(a):void 0;return h(a,d,c)},f)}},61421:function(a,b,c){"use strict";var d=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0}),b.default=function(a,b){var c=null;if(!a||"string"!=typeof a)return c;var d=(0,e.default)(a),f="function"==typeof b;return d.forEach(function(a){if("declaration"===a.type){var d=a.property,e=a.value;f?b(d,e,a):e&&((c=c||{})[d]=e)}}),c};var e=d(c(45076))},61962:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{DecodeError:function(){return o},MiddlewareNotFoundError:function(){return s},MissingStaticPage:function(){return r},NormalizeError:function(){return p},PageNotFoundError:function(){return q},SP:function(){return m},ST:function(){return n},WEB_VITALS:function(){return c},execOnce:function(){return d},getDisplayName:function(){return i},getLocationOrigin:function(){return g},getURL:function(){return h},isAbsoluteUrl:function(){return f},isResSent:function(){return j},loadGetInitialProps:function(){return l},normalizeRepeatedSlashes:function(){return k},stringifyError:function(){return t}});let c=["CLS","FCP","FID","INP","LCP","TTFB"];function d(a){let b,c=!1;return function(){for(var d=arguments.length,e=Array(d),f=0;fe.test(a);function g(){let{protocol:a,hostname:b,port:c}=window.location;return a+"//"+b+(c?":"+c:"")}function h(){let{href:a}=window.location,b=g();return a.substring(b.length)}function i(a){return"string"==typeof a?a:a.displayName||a.name||"Unknown"}function j(a){return a.finished||a.headersSent}function k(a){let b=a.split("?");return b[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(b[1]?"?"+b.slice(1).join("?"):"")}async function l(a,b){let c=b.res||b.ctx&&b.ctx.res;if(!a.getInitialProps)return b.ctx&&b.Component?{pageProps:await l(b.Component,b.ctx)}:{};let d=await a.getInitialProps(b);if(c&&j(c))return d;if(!d)throw Object.defineProperty(Error('"'+i(a)+'.getInitialProps()" should resolve to an object. But found "'+d+'" instead.'),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return d}let m="undefined"!=typeof performance,n=m&&["mark","measure","getEntriesByName"].every(a=>"function"==typeof performance[a]);class o extends Error{}class p extends Error{}class q extends Error{constructor(a){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+a}}class r extends Error{constructor(a,b){super(),this.message="Failed to load static file for page: "+a+" "+b}}class s extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function t(a){return JSON.stringify({message:a.message,stack:a.stack})}},62226:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"shouldHardNavigate",{enumerable:!0,get:function(){return function a(b,c){let[f,g]=c,[h,i]=b;return(0,e.matchSegment)(h,f)?!(b.length<=2)&&a((0,d.getNextFlightSegmentPath)(b),g[i]):!!Array.isArray(h)}}});let d=c(21600),e=c(93754);("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},65352:(a,b,c)=>{"use strict";function d(a,b,c){let d=[],e=-1;for(;++ed})},65828:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},65893:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]])},66041:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("hard-drive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},66241:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"PromiseQueue",{enumerable:!0,get:function(){return j}});let d=c(59589),e=c(769);var f=e._("_maxConcurrency"),g=e._("_runningCount"),h=e._("_queue"),i=e._("_processNext");class j{enqueue(a){let b,c,e=new Promise((a,d)=>{b=a,c=d}),f=async()=>{try{d._(this,g)[g]++;let c=await a();b(c)}catch(a){c(a)}finally{d._(this,g)[g]--,d._(this,i)[i]()}};return d._(this,h)[h].push({promiseFn:e,task:f}),d._(this,i)[i](),e}bump(a){let b=d._(this,h)[h].findIndex(b=>b.promiseFn===a);if(b>-1){let a=d._(this,h)[h].splice(b,1)[0];d._(this,h)[h].unshift(a),d._(this,i)[i](!0)}}constructor(a=5){Object.defineProperty(this,i,{value:k}),Object.defineProperty(this,f,{writable:!0,value:void 0}),Object.defineProperty(this,g,{writable:!0,value:void 0}),Object.defineProperty(this,h,{writable:!0,value:void 0}),d._(this,f)[f]=a,d._(this,g)[g]=0,d._(this,h)[h]=[]}}function k(a){if(void 0===a&&(a=!1),(d._(this,g)[g]0){var b;null==(b=d._(this,h)[h].shift())||b.task()}}("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},66600:(a,b,c)=>{"use strict";c.d(b,{y:()=>f});var d=c(282);let e={}.hasOwnProperty;function f(a){let b={},c=-1;for(;++c{"use strict";c.d(b,{UC:()=>D,ZL:()=>C,bL:()=>A,l9:()=>B,q7:()=>E,wv:()=>F});var d=c(38301),e=c(87868),f=c(92808),g=c(2332),h=c(11720),i=c(6406),j=c(87762),k=c(75656),l=c(21124),m="DropdownMenu",[n,o]=(0,g.A)(m,[j.UE]),p=(0,j.UE)(),[q,r]=n(m),s=a=>{let{__scopeDropdownMenu:b,children:c,dir:e,open:f,defaultOpen:g,onOpenChange:i,modal:n=!0}=a,o=p(b),r=d.useRef(null),[s,t]=(0,h.i)({prop:f,defaultProp:g??!1,onChange:i,caller:m});return(0,l.jsx)(q,{scope:b,triggerId:(0,k.B)(),triggerRef:r,contentId:(0,k.B)(),open:s,onOpenChange:t,onOpenToggle:d.useCallback(()=>t(a=>!a),[t]),modal:n,children:(0,l.jsx)(j.bL,{...o,open:s,onOpenChange:t,dir:e,modal:n,children:c})})};s.displayName=m;var t="DropdownMenuTrigger",u=d.forwardRef((a,b)=>{let{__scopeDropdownMenu:c,disabled:d=!1,...g}=a,h=r(t,c),k=p(c);return(0,l.jsx)(j.Mz,{asChild:!0,...k,children:(0,l.jsx)(i.sG.button,{type:"button",id:h.triggerId,"aria-haspopup":"menu","aria-expanded":h.open,"aria-controls":h.open?h.contentId:void 0,"data-state":h.open?"open":"closed","data-disabled":d?"":void 0,disabled:d,...g,ref:(0,f.t)(b,h.triggerRef),onPointerDown:(0,e.mK)(a.onPointerDown,a=>{!d&&0===a.button&&!1===a.ctrlKey&&(h.onOpenToggle(),h.open||a.preventDefault())}),onKeyDown:(0,e.mK)(a.onKeyDown,a=>{!d&&(["Enter"," "].includes(a.key)&&h.onOpenToggle(),"ArrowDown"===a.key&&h.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())})})})});u.displayName=t;var v=a=>{let{__scopeDropdownMenu:b,...c}=a,d=p(b);return(0,l.jsx)(j.ZL,{...d,...c})};v.displayName="DropdownMenuPortal";var w="DropdownMenuContent",x=d.forwardRef((a,b)=>{let{__scopeDropdownMenu:c,...f}=a,g=r(w,c),h=p(c),i=d.useRef(!1);return(0,l.jsx)(j.UC,{id:g.contentId,"aria-labelledby":g.triggerId,...h,...f,ref:b,onCloseAutoFocus:(0,e.mK)(a.onCloseAutoFocus,a=>{i.current||g.triggerRef.current?.focus(),i.current=!1,a.preventDefault()}),onInteractOutside:(0,e.mK)(a.onInteractOutside,a=>{let b=a.detail.originalEvent,c=0===b.button&&!0===b.ctrlKey,d=2===b.button||c;(!g.modal||d)&&(i.current=!0)}),style:{...a.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});x.displayName=w,d.forwardRef((a,b)=>{let{__scopeDropdownMenu:c,...d}=a,e=p(c);return(0,l.jsx)(j.YJ,{...e,...d,ref:b})}).displayName="DropdownMenuGroup",d.forwardRef((a,b)=>{let{__scopeDropdownMenu:c,...d}=a,e=p(c);return(0,l.jsx)(j.JU,{...e,...d,ref:b})}).displayName="DropdownMenuLabel";var y=d.forwardRef((a,b)=>{let{__scopeDropdownMenu:c,...d}=a,e=p(c);return(0,l.jsx)(j.q7,{...e,...d,ref:b})});y.displayName="DropdownMenuItem",d.forwardRef((a,b)=>{let{__scopeDropdownMenu:c,...d}=a,e=p(c);return(0,l.jsx)(j.H_,{...e,...d,ref:b})}).displayName="DropdownMenuCheckboxItem",d.forwardRef((a,b)=>{let{__scopeDropdownMenu:c,...d}=a,e=p(c);return(0,l.jsx)(j.z6,{...e,...d,ref:b})}).displayName="DropdownMenuRadioGroup",d.forwardRef((a,b)=>{let{__scopeDropdownMenu:c,...d}=a,e=p(c);return(0,l.jsx)(j.hN,{...e,...d,ref:b})}).displayName="DropdownMenuRadioItem",d.forwardRef((a,b)=>{let{__scopeDropdownMenu:c,...d}=a,e=p(c);return(0,l.jsx)(j.VF,{...e,...d,ref:b})}).displayName="DropdownMenuItemIndicator";var z=d.forwardRef((a,b)=>{let{__scopeDropdownMenu:c,...d}=a,e=p(c);return(0,l.jsx)(j.wv,{...e,...d,ref:b})});z.displayName="DropdownMenuSeparator",d.forwardRef((a,b)=>{let{__scopeDropdownMenu:c,...d}=a,e=p(c);return(0,l.jsx)(j.i3,{...e,...d,ref:b})}).displayName="DropdownMenuArrow",d.forwardRef((a,b)=>{let{__scopeDropdownMenu:c,...d}=a,e=p(c);return(0,l.jsx)(j.ZP,{...e,...d,ref:b})}).displayName="DropdownMenuSubTrigger",d.forwardRef((a,b)=>{let{__scopeDropdownMenu:c,...d}=a,e=p(c);return(0,l.jsx)(j.G5,{...e,...d,ref:b,style:{...a.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}).displayName="DropdownMenuSubContent";var A=s,B=u,C=v,D=x,E=y,F=z},68324:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]])},69022:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"restoreReducer",{enumerable:!0,get:function(){return f}});let d=c(11830),e=c(18151);function f(a,b){var c;let{url:f,tree:g}=b,h=(0,d.createHrefFromUrl)(f),i=g||a.tree,j=a.cache;return{canonicalUrl:h,pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},focusAndScrollRef:a.focusAndScrollRef,cache:j,prefetchCache:a.prefetchCache,tree:i,nextUrl:null!=(c=(0,e.extractPathFromFlightRouterState)(i))?c:f.pathname}}c(19427),("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},70045:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]])},70395:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"applyFlightData",{enumerable:!0,get:function(){return f}});let d=c(35939),e=c(28763);function f(a,b,c,f,g){let{tree:h,seedData:i,head:j,isRootRender:k}=f;if(null===i)return!1;if(k){let e=i[1];c.loading=i[3],c.rsc=e,c.prefetchRsc=null,(0,d.fillLazyItemsTillLeafWithHead)(a,c,b,h,i,j,g)}else c.rsc=b.rsc,c.prefetchRsc=b.prefetchRsc,c.parallelRoutes=new Map(b.parallelRoutes),c.loading=b.loading,(0,e.fillCacheWithNewSubTreeData)(a,c,b,f,g);return!0}("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},70491:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{DYNAMIC_STALETIME_MS:function(){return m},STATIC_STALETIME_MS:function(){return n},createSeededPrefetchCacheEntry:function(){return j},getOrCreatePrefetchCacheEntry:function(){return i},prunePrefetchCache:function(){return l}});let d=c(60535),e=c(12591),f=c(77743);function g(a,b,c){let d=a.pathname;return(b&&(d+=a.search),c)?""+c+"%"+d:d}function h(a,b,c){return g(a,b===e.PrefetchKind.FULL,c)}function i(a){let{url:b,nextUrl:c,tree:d,prefetchCache:f,kind:h,allowAliasing:i=!0}=a,j=function(a,b,c,d,f){for(let h of(void 0===b&&(b=e.PrefetchKind.TEMPORARY),[c,null])){let c=g(a,!0,h),i=g(a,!1,h),j=a.search?c:i,k=d.get(j);if(k&&f){if(k.url.pathname===a.pathname&&k.url.search!==a.search)return{...k,aliased:!0};return k}let l=d.get(i);if(f&&a.search&&b!==e.PrefetchKind.FULL&&l&&!l.key.includes("%"))return{...l,aliased:!0}}if(b!==e.PrefetchKind.FULL&&f){for(let b of d.values())if(b.url.pathname===a.pathname&&!b.key.includes("%"))return{...b,aliased:!0}}}(b,h,c,f,i);return j?(j.status=o(j),j.kind!==e.PrefetchKind.FULL&&h===e.PrefetchKind.FULL&&j.data.then(a=>{if(!(Array.isArray(a.flightData)&&a.flightData.some(a=>a.isRootRender&&null!==a.seedData)))return k({tree:d,url:b,nextUrl:c,prefetchCache:f,kind:null!=h?h:e.PrefetchKind.TEMPORARY})}),h&&j.kind===e.PrefetchKind.TEMPORARY&&(j.kind=h),j):k({tree:d,url:b,nextUrl:c,prefetchCache:f,kind:h||e.PrefetchKind.TEMPORARY})}function j(a){let{nextUrl:b,tree:c,prefetchCache:d,url:f,data:g,kind:i}=a,j=g.couldBeIntercepted?h(f,i,b):h(f,i),k={treeAtTimeOfPrefetch:c,data:Promise.resolve(g),kind:i,prefetchTime:Date.now(),lastUsedTime:Date.now(),staleTime:g.staleTime,key:j,status:e.PrefetchCacheEntryStatus.fresh,url:f};return d.set(j,k),k}function k(a){let{url:b,kind:c,tree:g,nextUrl:i,prefetchCache:j}=a,k=h(b,c),l=f.prefetchQueue.enqueue(()=>(0,d.fetchServerResponse)(b,{flightRouterState:g,nextUrl:i,prefetchKind:c}).then(a=>{let c;if(a.couldBeIntercepted&&(c=function(a){let{url:b,nextUrl:c,prefetchCache:d,existingCacheKey:e}=a,f=d.get(e);if(!f)return;let g=h(b,f.kind,c);return d.set(g,{...f,key:g}),d.delete(e),g}({url:b,existingCacheKey:k,nextUrl:i,prefetchCache:j})),a.prerendered){let b=j.get(null!=c?c:k);b&&(b.kind=e.PrefetchKind.FULL,-1!==a.staleTime&&(b.staleTime=a.staleTime))}return a})),m={treeAtTimeOfPrefetch:g,data:l,kind:c,prefetchTime:Date.now(),lastUsedTime:null,staleTime:-1,key:k,status:e.PrefetchCacheEntryStatus.fresh,url:b};return j.set(k,m),m}function l(a){for(let[b,c]of a)o(c)===e.PrefetchCacheEntryStatus.expired&&a.delete(b)}let m=1e3*Number("0"),n=1e3*Number("300");function o(a){let{kind:b,prefetchTime:c,lastUsedTime:d}=a;return Date.now()<(null!=d?d:c)+m?d?e.PrefetchCacheEntryStatus.reusable:e.PrefetchCacheEntryStatus.fresh:b===e.PrefetchKind.AUTO&&Date.now(){"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("arrow-up",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]])},71117:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]])},71563:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]])},71646:(a,b,c)=>{"use strict";c.d(b,{S:()=>e});var d=c(76713);function e(a){return null===a||(0,d.Ee)(a)||(0,d.Ny)(a)?1:(0,d.es)(a)?2:void 0}},71899:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("mouse-pointer-click",[["path",{d:"M14 4.1 12 6",key:"ita8i4"}],["path",{d:"m5.1 8-2.9-.8",key:"1go3kf"}],["path",{d:"m6 12-1.9 2",key:"mnht97"}],["path",{d:"M7.2 2.2 8 5.1",key:"1cfko1"}],["path",{d:"M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z",key:"s0h3yz"}]])},72869:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{addRefreshMarkerToActiveParallelSegments:function(){return function a(b,c){let[d,e,,g]=b;for(let h in d.includes(f.PAGE_SEGMENT_KEY)&&"refresh"!==g&&(b[2]=c,b[3]="refresh"),e)a(e[h],c)}},refreshInactiveParallelSegments:function(){return g}});let d=c(70395),e=c(60535),f=c(72454);async function g(a){let b=new Set;await h({...a,rootTree:a.updatedTree,fetchedSegments:b})}async function h(a){let{navigatedAt:b,state:c,updatedTree:f,updatedCache:g,includeNextUrl:i,fetchedSegments:j,rootTree:k=f,canonicalUrl:l}=a,[,m,n,o]=f,p=[];if(n&&n!==l&&"refresh"===o&&!j.has(n)){j.add(n);let a=(0,e.fetchServerResponse)(new URL(n,location.origin),{flightRouterState:[k[0],k[1],k[2],"refetch"],nextUrl:i?c.nextUrl:null}).then(a=>{let{flightData:c}=a;if("string"!=typeof c)for(let a of c)(0,d.applyFlightData)(b,g,g,a)});p.push(a)}for(let a in m){let d=h({navigatedAt:b,state:c,updatedTree:m[a],updatedCache:g,includeNextUrl:i,fetchedSegments:j,rootTree:k,canonicalUrl:l});p.push(d)}await Promise.all(p)}("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},73486:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"handleMutable",{enumerable:!0,get:function(){return f}});let d=c(18151);function e(a){return void 0!==a}function f(a,b){var c,f;let g=null==(c=b.shouldScroll)||c,h=a.nextUrl;if(e(b.patchedTree)){let c=(0,d.computeChangedPath)(a.tree,b.patchedTree);c?h=c:h||(h=a.canonicalUrl)}return{canonicalUrl:e(b.canonicalUrl)?b.canonicalUrl===a.canonicalUrl?a.canonicalUrl:b.canonicalUrl:a.canonicalUrl,pushRef:{pendingPush:e(b.pendingPush)?b.pendingPush:a.pushRef.pendingPush,mpaNavigation:e(b.mpaNavigation)?b.mpaNavigation:a.pushRef.mpaNavigation,preserveCustomHistoryState:e(b.preserveCustomHistoryState)?b.preserveCustomHistoryState:a.pushRef.preserveCustomHistoryState},focusAndScrollRef:{apply:!!g&&(!!e(null==b?void 0:b.scrollableSegments)||a.focusAndScrollRef.apply),onlyHashChange:b.onlyHashChange||!1,hashFragment:g?b.hashFragment&&""!==b.hashFragment?decodeURIComponent(b.hashFragment.slice(1)):a.focusAndScrollRef.hashFragment:null,segmentPaths:g?null!=(f=null==b?void 0:b.scrollableSegments)?f:a.focusAndScrollRef.segmentPaths:[]},cache:b.cache?b.cache:a.cache,prefetchCache:b.prefetchCache?b.prefetchCache:a.prefetchCache,tree:e(b.patchedTree)?b.patchedTree:a.tree,nextUrl:h}}("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},74097:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]])},75179:(a,b,c)=>{"use strict";function d(a){return a.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}c.d(b,{B:()=>d})},75535:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},76143:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"applyRouterStatePatchToTree",{enumerable:!0,get:function(){return function a(b,c,d,i){let j,[k,l,m,n,o]=c;if(1===b.length){let a=h(c,d);return(0,g.addRefreshMarkerToActiveParallelSegments)(a,i),a}let[p,q]=b;if(!(0,f.matchSegment)(p,k))return null;if(2===b.length)j=h(l[q],d);else if(null===(j=a((0,e.getNextFlightSegmentPath)(b),l[q],d,i)))return null;let r=[b[0],{...l,[q]:j},m,n];return o&&(r[4]=!0),(0,g.addRefreshMarkerToActiveParallelSegments)(r,i),r}}});let d=c(72454),e=c(21600),f=c(93754),g=c(72869);function h(a,b){let[c,e]=a,[g,i]=b;if(g===d.DEFAULT_SEGMENT_KEY&&c!==d.DEFAULT_SEGMENT_KEY)return a;if((0,f.matchSegment)(c,g)){let b={};for(let a in e)void 0!==i[a]?b[a]=h(e[a],i[a]):b[a]=e[a];for(let a in i)b[a]||(b[a]=i[a]);let d=[c,b];return a[2]&&(d[2]=a[2]),a[3]&&(d[3]=a[3]),a[4]&&(d[4]=a[4]),d}return b}("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},76180:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("square-pen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]])},76713:(a,b,c)=>{"use strict";c.d(b,{BM:()=>h,CW:()=>d,Ee:()=>l,HP:()=>k,JQ:()=>g,Ny:()=>o,On:()=>m,cx:()=>f,es:()=>n,lV:()=>e,ok:()=>i,ol:()=>j});let d=p(/[A-Za-z]/),e=p(/[\dA-Za-z]/),f=p(/[#-'*+\--9=?A-Z^-~]/);function g(a){return null!==a&&(a<32||127===a)}let h=p(/\d/),i=p(/[\dA-Fa-f]/),j=p(/[!-/:-@[-`{-~]/);function k(a){return null!==a&&a<-2}function l(a){return null!==a&&(a<0||32===a)}function m(a){return -2===a||-1===a||32===a}let n=p(/\p{P}|\p{S}/u),o=p(/\s/);function p(a){return function(b){return null!==b&&b>-1&&a.test(String.fromCharCode(b))}}},77377:(a,b)=>{"use strict";function c(a){let b=parseInt(a.slice(0,2),16),c=b>>1&63,d=Array(6);for(let a=0;a<6;a++){let b=c>>5-a&1;d[a]=1===b}return{type:1==(b>>7&1)?"use-cache":"server-action",usedArgs:d,hasRestArgs:1==(1&b)}}function d(a,b){let c=Array(a.length);for(let d=0;d=6&&b.hasRestArgs)&&(c[d]=a[d]);return c}Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{extractInfoFromServerReferenceId:function(){return c},omitUnusedArgs:function(){return d}})},77410:(a,b,c)=>{"use strict";c.d(b,{C:()=>d});let d=function(a){var b,c;if(null==a)return f;if("function"==typeof a)return e(a);if("object"==typeof a){return Array.isArray(a)?function(a){let b=[],c=-1;for(;++c{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{prefetchQueue:function(){return f},prefetchReducer:function(){return g}});let d=c(66241),e=c(70491),f=new d.PromiseQueue(5),g=function(a,b){(0,e.prunePrefetchCache)(a.prefetchCache);let{url:c}=b;return(0,e.getOrCreatePrefetchCacheEntry)({url:c,nextUrl:a.nextUrl,prefetchCache:a.prefetchCache,kind:b.kind,tree:a.tree,allowAliasing:!0}),a};("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},77850:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("layout-dashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]])},78092:(a,b,c)=>{"use strict";c.d(b,{q7:()=>D,bL:()=>C});var d=c(38301),e=c(2332),f=c(6406),g=c(88617),h=c(87868),i=c(11720),j=c(21124),k="Toggle",l=d.forwardRef((a,b)=>{let{pressed:c,defaultPressed:d,onPressedChange:e,...g}=a,[l,m]=(0,i.i)({prop:c,onChange:e,defaultProp:d??!1,caller:k});return(0,j.jsx)(f.sG.button,{type:"button","aria-pressed":l,"data-state":l?"on":"off","data-disabled":a.disabled?"":void 0,...g,ref:b,onClick:(0,h.mK)(a.onClick,()=>{a.disabled||m(!l)})})});l.displayName=k;var m=c(10498),n="ToggleGroup",[o,p]=(0,e.A)(n,[g.RG]),q=(0,g.RG)(),r=d.forwardRef((a,b)=>{let{type:c,...d}=a;if("single"===c)return(0,j.jsx)(u,{...d,ref:b});if("multiple"===c)return(0,j.jsx)(v,{...d,ref:b});throw Error(`Missing prop \`type\` expected on \`${n}\``)});r.displayName=n;var[s,t]=o(n),u=d.forwardRef((a,b)=>{let{value:c,defaultValue:e,onValueChange:f=()=>{},...g}=a,[h,k]=(0,i.i)({prop:c,defaultProp:e??"",onChange:f,caller:n});return(0,j.jsx)(s,{scope:a.__scopeToggleGroup,type:"single",value:d.useMemo(()=>h?[h]:[],[h]),onItemActivate:k,onItemDeactivate:d.useCallback(()=>k(""),[k]),children:(0,j.jsx)(y,{...g,ref:b})})}),v=d.forwardRef((a,b)=>{let{value:c,defaultValue:e,onValueChange:f=()=>{},...g}=a,[h,k]=(0,i.i)({prop:c,defaultProp:e??[],onChange:f,caller:n}),l=d.useCallback(a=>k((b=[])=>[...b,a]),[k]),m=d.useCallback(a=>k((b=[])=>b.filter(b=>b!==a)),[k]);return(0,j.jsx)(s,{scope:a.__scopeToggleGroup,type:"multiple",value:h,onItemActivate:l,onItemDeactivate:m,children:(0,j.jsx)(y,{...g,ref:b})})});r.displayName=n;var[w,x]=o(n),y=d.forwardRef((a,b)=>{let{__scopeToggleGroup:c,disabled:d=!1,rovingFocus:e=!0,orientation:h,dir:i,loop:k=!0,...l}=a,n=q(c),o=(0,m.jH)(i),p={role:"group",dir:o,...l};return(0,j.jsx)(w,{scope:c,rovingFocus:e,disabled:d,children:e?(0,j.jsx)(g.bL,{asChild:!0,...n,orientation:h,dir:o,loop:k,children:(0,j.jsx)(f.sG.div,{...p,ref:b})}):(0,j.jsx)(f.sG.div,{...p,ref:b})})}),z="ToggleGroupItem",A=d.forwardRef((a,b)=>{let c=t(z,a.__scopeToggleGroup),e=x(z,a.__scopeToggleGroup),f=q(a.__scopeToggleGroup),h=c.value.includes(a.value),i=e.disabled||a.disabled,k={...a,pressed:h,disabled:i},l=d.useRef(null);return e.rovingFocus?(0,j.jsx)(g.q7,{asChild:!0,...f,focusable:!i,active:h,ref:l,children:(0,j.jsx)(B,{...k,ref:b})}):(0,j.jsx)(B,{...k,ref:b})});A.displayName=z;var B=d.forwardRef((a,b)=>{let{__scopeToggleGroup:c,value:d,...e}=a,f=t(z,c),g={role:"radio","aria-checked":a.pressed,"aria-pressed":void 0},h="single"===f.type?g:void 0;return(0,j.jsx)(l,{...h,...e,ref:b,onPressedChange:a=>{a?f.onItemActivate(d):f.onItemDeactivate(d)}})}),C=r,D=A},78460:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]])},78733:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]])},78971:(a,b,c)=>{"use strict";c.d(b,{dc:()=>f,VG:()=>g});var d=c(77410);let e=[],f=!1;function g(a,b,c,g){let h;"function"==typeof b&&"function"!=typeof c?(g=c,c=b):h=b;let i=(0,d.C)(h),j=g?-1:1;(function a(d,h,k){let l=d&&"object"==typeof d?d:{};if("string"==typeof l.type){let a="string"==typeof l.tagName?l.tagName:"string"==typeof l.name?l.name:void 0;Object.defineProperty(m,"name",{value:"node (\x1b[33m"+d.type+(a?"<"+a+">":"")+"\x1b[39m)"})}return m;function m(){var l;let m,n,o,p=e;if((!b||i(d,h,k[k.length-1]||void 0))&&(p=Array.isArray(l=c(d,k))?l:"number"==typeof l?[!0,l]:null==l?e:[l])[0]===f)return p;if("children"in d&&d.children&&d.children&&"skip"!==p[0])for(n=(g?d.children.length:-1)+j,o=k.concat(d);n>-1&&n{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("server-cog",[["path",{d:"m10.852 14.772-.383.923",key:"11vil6"}],["path",{d:"M13.148 14.772a3 3 0 1 0-2.296-5.544l-.383-.923",key:"1v3clb"}],["path",{d:"m13.148 9.228.383-.923",key:"t2zzyc"}],["path",{d:"m13.53 15.696-.382-.924a3 3 0 1 1-2.296-5.544",key:"1bxfiv"}],["path",{d:"m14.772 10.852.923-.383",key:"k9m8cz"}],["path",{d:"m14.772 13.148.923.383",key:"1xvhww"}],["path",{d:"M4.5 10H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-.5",key:"tn8das"}],["path",{d:"M4.5 14H4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2h-.5",key:"1g2pve"}],["path",{d:"M6 18h.01",key:"uhywen"}],["path",{d:"M6 6h.01",key:"1utrut"}],["path",{d:"m9.228 10.852-.923-.383",key:"1wtb30"}],["path",{d:"m9.228 13.148-.923.383",key:"1a830x"}]])},79976:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"serverPatchReducer",{enumerable:!0,get:function(){return k}});let d=c(11830),e=c(76143),f=c(81711),g=c(3219),h=c(70395),i=c(73486),j=c(97163);function k(a,b){let{serverResponse:{flightData:c,canonicalUrl:k},navigatedAt:l}=b,m={};if(m.preserveCustomHistoryState=!1,"string"==typeof c)return(0,g.handleExternalUrl)(a,m,c,a.pushRef.pendingPush);let n=a.tree,o=a.cache;for(let b of c){let{segmentPath:c,tree:i}=b,p=(0,e.applyRouterStatePatchToTree)(["",...c],n,i,a.canonicalUrl);if(null===p)return a;if((0,f.isNavigatingToNewRootLayout)(n,p))return(0,g.handleExternalUrl)(a,m,a.canonicalUrl,a.pushRef.pendingPush);let q=k?(0,d.createHrefFromUrl)(k):void 0;q&&(m.canonicalUrl=q);let r=(0,j.createEmptyCacheNode)();(0,h.applyFlightData)(l,o,r,b),m.patchedTree=p,m.cache=r,o=r,n=p}return(0,i.handleMutable)(a,m)}("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},80101:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("crosshair",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"22",x2:"18",y1:"12",y2:"12",key:"l9bcsi"}],["line",{x1:"6",x2:"2",y1:"12",y2:"12",key:"13hhkx"}],["line",{x1:"12",x2:"12",y1:"6",y2:"2",key:"10w3f3"}],["line",{x1:"12",x2:"12",y1:"22",y2:"18",key:"15g9kq"}]])},80196:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},80414:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("table-2",[["path",{d:"M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18",key:"gugj83"}]])},81100:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]])},81711:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"isNavigatingToNewRootLayout",{enumerable:!0,get:function(){return function a(b,c){let d=b[0],e=c[0];if(Array.isArray(d)&&Array.isArray(e)){if(d[0]!==e[0]||d[2]!==e[2])return!0}else if(d!==e)return!0;if(b[4])return!c[4];if(c[4])return!0;let f=Object.values(b[1])[0],g=Object.values(c[1])[0];return!f||!g||a(f,g)}}}),("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},81925:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("funnel",[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]])},82548:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("layout-grid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]])},83224:(a,b,c)=>{"use strict";c.d(b,{N:()=>e});var d=c(76713);function e(a,b,c,e){let f=e?e-1:1/0,g=0;return function(e){return(0,d.On)(e)?(a.enter(c),function e(h){return(0,d.On)(h)&&g++{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("pen",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]])},84589:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"errorOnce",{enumerable:!0,get:function(){return c}});let c=a=>{}},86773:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("arrow-up-down",[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]])},86949:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("circle-help",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},87278:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]])},87762:(a,b,c)=>{"use strict";c.d(b,{G5:()=>aU,H_:()=>aM,JU:()=>aK,Mz:()=>aG,Pb:()=>aS,UC:()=>aI,UE:()=>H,VF:()=>aP,YJ:()=>aJ,ZL:()=>aH,ZP:()=>aT,bL:()=>aF,hN:()=>aO,i3:()=>aR,q7:()=>aL,wv:()=>aQ,z6:()=>aN});var d=c(38301),e=c(87868),f=c(825),g=c(92808),h=c(2332),i=c(10498),j=c(7412),k=c(70904),l=c(69998),m=c(75656),n=c(25122),o=c(61611),p=c(29988),q=c(6406),r=c(88617),s=c(96425),t=c(71700),u=c(61225),v=c(36409),w=c(21124),x=["Enter"," "],y=["ArrowUp","PageDown","End"],z=["ArrowDown","PageUp","Home",...y],A={ltr:[...x,"ArrowRight"],rtl:[...x,"ArrowLeft"]},B={ltr:["ArrowLeft"],rtl:["ArrowRight"]},C="Menu",[D,E,F]=(0,f.N)(C),[G,H]=(0,h.A)(C,[F,n.Bk,r.RG]),I=(0,n.Bk)(),J=(0,r.RG)(),[K,L]=G(C),[M,N]=G(C),O=a=>{let{__scopeMenu:b,open:c=!1,children:e,dir:f,onOpenChange:g,modal:h=!0}=a,j=I(b),[k,l]=d.useState(null),m=d.useRef(!1),o=(0,t.c)(g),p=(0,i.jH)(f);return d.useEffect(()=>{let a=()=>{m.current=!0,document.addEventListener("pointerdown",b,{capture:!0,once:!0}),document.addEventListener("pointermove",b,{capture:!0,once:!0})},b=()=>m.current=!1;return document.addEventListener("keydown",a,{capture:!0}),()=>{document.removeEventListener("keydown",a,{capture:!0}),document.removeEventListener("pointerdown",b,{capture:!0}),document.removeEventListener("pointermove",b,{capture:!0})}},[]),(0,w.jsx)(n.bL,{...j,children:(0,w.jsx)(K,{scope:b,open:c,onOpenChange:o,content:k,onContentChange:l,children:(0,w.jsx)(M,{scope:b,onClose:d.useCallback(()=>o(!1),[o]),isUsingKeyboardRef:m,dir:p,modal:h,children:e})})})};O.displayName=C;var P=d.forwardRef((a,b)=>{let{__scopeMenu:c,...d}=a,e=I(c);return(0,w.jsx)(n.Mz,{...e,...d,ref:b})});P.displayName="MenuAnchor";var Q="MenuPortal",[R,S]=G(Q,{forceMount:void 0}),T=a=>{let{__scopeMenu:b,forceMount:c,children:d,container:e}=a,f=L(Q,b);return(0,w.jsx)(R,{scope:b,forceMount:c,children:(0,w.jsx)(p.C,{present:c||f.open,children:(0,w.jsx)(o.Z,{asChild:!0,container:e,children:d})})})};T.displayName=Q;var U="MenuContent",[V,W]=G(U),X=d.forwardRef((a,b)=>{let c=S(U,a.__scopeMenu),{forceMount:d=c.forceMount,...e}=a,f=L(U,a.__scopeMenu),g=N(U,a.__scopeMenu);return(0,w.jsx)(D.Provider,{scope:a.__scopeMenu,children:(0,w.jsx)(p.C,{present:d||f.open,children:(0,w.jsx)(D.Slot,{scope:a.__scopeMenu,children:g.modal?(0,w.jsx)(Y,{...e,ref:b}):(0,w.jsx)(Z,{...e,ref:b})})})})}),Y=d.forwardRef((a,b)=>{let c=L(U,a.__scopeMenu),f=d.useRef(null),h=(0,g.s)(b,f);return d.useEffect(()=>{let a=f.current;if(a)return(0,u.Eq)(a)},[]),(0,w.jsx)(_,{...a,ref:h,trapFocus:c.open,disableOutsidePointerEvents:c.open,disableOutsideScroll:!0,onFocusOutside:(0,e.mK)(a.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>c.onOpenChange(!1)})}),Z=d.forwardRef((a,b)=>{let c=L(U,a.__scopeMenu);return(0,w.jsx)(_,{...a,ref:b,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>c.onOpenChange(!1)})}),$=(0,s.TL)("MenuContent.ScrollLock"),_=d.forwardRef((a,b)=>{let{__scopeMenu:c,loop:f=!1,trapFocus:h,onOpenAutoFocus:i,onCloseAutoFocus:m,disableOutsidePointerEvents:o,onEntryFocus:p,onEscapeKeyDown:q,onPointerDownOutside:s,onFocusOutside:t,onInteractOutside:u,onDismiss:x,disableOutsideScroll:A,...B}=a,C=L(U,c),D=N(U,c),F=I(c),G=J(c),H=E(c),[K,M]=d.useState(null),O=d.useRef(null),P=(0,g.s)(b,O,C.onContentChange),Q=d.useRef(0),R=d.useRef(""),S=d.useRef(0),T=d.useRef(null),W=d.useRef("right"),X=d.useRef(0),Y=A?v.A:d.Fragment;d.useEffect(()=>()=>window.clearTimeout(Q.current),[]),(0,k.Oh)();let Z=d.useCallback(a=>W.current===T.current?.side&&function(a,b){return!!b&&function(a,b){let{x:c,y:d}=a,e=!1;for(let a=0,f=b.length-1;ad!=l>d&&c<(k-i)*(d-j)/(l-j)+i&&(e=!e)}return e}({x:a.clientX,y:a.clientY},b)}(a,T.current?.area),[]);return(0,w.jsx)(V,{scope:c,searchRef:R,onItemEnter:d.useCallback(a=>{Z(a)&&a.preventDefault()},[Z]),onItemLeave:d.useCallback(a=>{Z(a)||(O.current?.focus(),M(null))},[Z]),onTriggerLeave:d.useCallback(a=>{Z(a)&&a.preventDefault()},[Z]),pointerGraceTimerRef:S,onPointerGraceIntentChange:d.useCallback(a=>{T.current=a},[]),children:(0,w.jsx)(Y,{...A?{as:$,allowPinchZoom:!0}:void 0,children:(0,w.jsx)(l.n,{asChild:!0,trapped:h,onMountAutoFocus:(0,e.mK)(i,a=>{a.preventDefault(),O.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:m,children:(0,w.jsx)(j.qW,{asChild:!0,disableOutsidePointerEvents:o,onEscapeKeyDown:q,onPointerDownOutside:s,onFocusOutside:t,onInteractOutside:u,onDismiss:x,children:(0,w.jsx)(r.bL,{asChild:!0,...G,dir:D.dir,orientation:"vertical",loop:f,currentTabStopId:K,onCurrentTabStopIdChange:M,onEntryFocus:(0,e.mK)(p,a=>{D.isUsingKeyboardRef.current||a.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,w.jsx)(n.UC,{role:"menu","aria-orientation":"vertical","data-state":aB(C.open),"data-radix-menu-content":"",dir:D.dir,...F,...B,ref:P,style:{outline:"none",...B.style},onKeyDown:(0,e.mK)(B.onKeyDown,a=>{let b=a.target.closest("[data-radix-menu-content]")===a.currentTarget,c=a.ctrlKey||a.altKey||a.metaKey,d=1===a.key.length;b&&("Tab"===a.key&&a.preventDefault(),!c&&d&&(a=>{let b=R.current+a,c=H().filter(a=>!a.disabled),d=document.activeElement,e=c.find(a=>a.ref.current===d)?.textValue,f=function(a,b,c){var d;let e=b.length>1&&Array.from(b).every(a=>a===b[0])?b[0]:b,f=c?a.indexOf(c):-1,g=(d=Math.max(f,0),a.map((b,c)=>a[(d+c)%a.length]));1===e.length&&(g=g.filter(a=>a!==c));let h=g.find(a=>a.toLowerCase().startsWith(e.toLowerCase()));return h!==c?h:void 0}(c.map(a=>a.textValue),b,e),g=c.find(a=>a.textValue===f)?.ref.current;!function a(b){R.current=b,window.clearTimeout(Q.current),""!==b&&(Q.current=window.setTimeout(()=>a(""),1e3))}(b),g&&setTimeout(()=>g.focus())})(a.key));let e=O.current;if(a.target!==e||!z.includes(a.key))return;a.preventDefault();let f=H().filter(a=>!a.disabled).map(a=>a.ref.current);y.includes(a.key)&&f.reverse(),function(a){let b=document.activeElement;for(let c of a)if(c===b||(c.focus(),document.activeElement!==b))return}(f)}),onBlur:(0,e.mK)(a.onBlur,a=>{a.currentTarget.contains(a.target)||(window.clearTimeout(Q.current),R.current="")}),onPointerMove:(0,e.mK)(a.onPointerMove,aE(a=>{let b=a.target,c=X.current!==a.clientX;a.currentTarget.contains(b)&&c&&(W.current=a.clientX>X.current?"right":"left",X.current=a.clientX)}))})})})})})})});X.displayName=U;var aa=d.forwardRef((a,b)=>{let{__scopeMenu:c,...d}=a;return(0,w.jsx)(q.sG.div,{role:"group",...d,ref:b})});aa.displayName="MenuGroup";var ab=d.forwardRef((a,b)=>{let{__scopeMenu:c,...d}=a;return(0,w.jsx)(q.sG.div,{...d,ref:b})});ab.displayName="MenuLabel";var ac="MenuItem",ad="menu.itemSelect",ae=d.forwardRef((a,b)=>{let{disabled:c=!1,onSelect:f,...h}=a,i=d.useRef(null),j=N(ac,a.__scopeMenu),k=W(ac,a.__scopeMenu),l=(0,g.s)(b,i),m=d.useRef(!1);return(0,w.jsx)(af,{...h,ref:l,disabled:c,onClick:(0,e.mK)(a.onClick,()=>{let a=i.current;if(!c&&a){let b=new CustomEvent(ad,{bubbles:!0,cancelable:!0});a.addEventListener(ad,a=>f?.(a),{once:!0}),(0,q.hO)(a,b),b.defaultPrevented?m.current=!1:j.onClose()}}),onPointerDown:b=>{a.onPointerDown?.(b),m.current=!0},onPointerUp:(0,e.mK)(a.onPointerUp,a=>{m.current||a.currentTarget?.click()}),onKeyDown:(0,e.mK)(a.onKeyDown,a=>{let b=""!==k.searchRef.current;c||b&&" "===a.key||x.includes(a.key)&&(a.currentTarget.click(),a.preventDefault())})})});ae.displayName=ac;var af=d.forwardRef((a,b)=>{let{__scopeMenu:c,disabled:f=!1,textValue:h,...i}=a,j=W(ac,c),k=J(c),l=d.useRef(null),m=(0,g.s)(b,l),[n,o]=d.useState(!1),[p,s]=d.useState("");return d.useEffect(()=>{let a=l.current;a&&s((a.textContent??"").trim())},[i.children]),(0,w.jsx)(D.ItemSlot,{scope:c,disabled:f,textValue:h??p,children:(0,w.jsx)(r.q7,{asChild:!0,...k,focusable:!f,children:(0,w.jsx)(q.sG.div,{role:"menuitem","data-highlighted":n?"":void 0,"aria-disabled":f||void 0,"data-disabled":f?"":void 0,...i,ref:m,onPointerMove:(0,e.mK)(a.onPointerMove,aE(a=>{f?j.onItemLeave(a):(j.onItemEnter(a),a.defaultPrevented||a.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,e.mK)(a.onPointerLeave,aE(a=>j.onItemLeave(a))),onFocus:(0,e.mK)(a.onFocus,()=>o(!0)),onBlur:(0,e.mK)(a.onBlur,()=>o(!1))})})})}),ag=d.forwardRef((a,b)=>{let{checked:c=!1,onCheckedChange:d,...f}=a;return(0,w.jsx)(ao,{scope:a.__scopeMenu,checked:c,children:(0,w.jsx)(ae,{role:"menuitemcheckbox","aria-checked":aC(c)?"mixed":c,...f,ref:b,"data-state":aD(c),onSelect:(0,e.mK)(f.onSelect,()=>d?.(!!aC(c)||!c),{checkForDefaultPrevented:!1})})})});ag.displayName="MenuCheckboxItem";var ah="MenuRadioGroup",[ai,aj]=G(ah,{value:void 0,onValueChange:()=>{}}),ak=d.forwardRef((a,b)=>{let{value:c,onValueChange:d,...e}=a,f=(0,t.c)(d);return(0,w.jsx)(ai,{scope:a.__scopeMenu,value:c,onValueChange:f,children:(0,w.jsx)(aa,{...e,ref:b})})});ak.displayName=ah;var al="MenuRadioItem",am=d.forwardRef((a,b)=>{let{value:c,...d}=a,f=aj(al,a.__scopeMenu),g=c===f.value;return(0,w.jsx)(ao,{scope:a.__scopeMenu,checked:g,children:(0,w.jsx)(ae,{role:"menuitemradio","aria-checked":g,...d,ref:b,"data-state":aD(g),onSelect:(0,e.mK)(d.onSelect,()=>f.onValueChange?.(c),{checkForDefaultPrevented:!1})})})});am.displayName=al;var an="MenuItemIndicator",[ao,ap]=G(an,{checked:!1}),aq=d.forwardRef((a,b)=>{let{__scopeMenu:c,forceMount:d,...e}=a,f=ap(an,c);return(0,w.jsx)(p.C,{present:d||aC(f.checked)||!0===f.checked,children:(0,w.jsx)(q.sG.span,{...e,ref:b,"data-state":aD(f.checked)})})});aq.displayName=an;var ar=d.forwardRef((a,b)=>{let{__scopeMenu:c,...d}=a;return(0,w.jsx)(q.sG.div,{role:"separator","aria-orientation":"horizontal",...d,ref:b})});ar.displayName="MenuSeparator";var as=d.forwardRef((a,b)=>{let{__scopeMenu:c,...d}=a,e=I(c);return(0,w.jsx)(n.i3,{...e,...d,ref:b})});as.displayName="MenuArrow";var at="MenuSub",[au,av]=G(at),aw=a=>{let{__scopeMenu:b,children:c,open:e=!1,onOpenChange:f}=a,g=L(at,b),h=I(b),[i,j]=d.useState(null),[k,l]=d.useState(null),o=(0,t.c)(f);return d.useEffect(()=>(!1===g.open&&o(!1),()=>o(!1)),[g.open,o]),(0,w.jsx)(n.bL,{...h,children:(0,w.jsx)(K,{scope:b,open:e,onOpenChange:o,content:k,onContentChange:l,children:(0,w.jsx)(au,{scope:b,contentId:(0,m.B)(),triggerId:(0,m.B)(),trigger:i,onTriggerChange:j,children:c})})})};aw.displayName=at;var ax="MenuSubTrigger",ay=d.forwardRef((a,b)=>{let c=L(ax,a.__scopeMenu),f=N(ax,a.__scopeMenu),h=av(ax,a.__scopeMenu),i=W(ax,a.__scopeMenu),j=d.useRef(null),{pointerGraceTimerRef:k,onPointerGraceIntentChange:l}=i,m={__scopeMenu:a.__scopeMenu},n=d.useCallback(()=>{j.current&&window.clearTimeout(j.current),j.current=null},[]);return d.useEffect(()=>n,[n]),d.useEffect(()=>{let a=k.current;return()=>{window.clearTimeout(a),l(null)}},[k,l]),(0,w.jsx)(P,{asChild:!0,...m,children:(0,w.jsx)(af,{id:h.triggerId,"aria-haspopup":"menu","aria-expanded":c.open,"aria-controls":h.contentId,"data-state":aB(c.open),...a,ref:(0,g.t)(b,h.onTriggerChange),onClick:b=>{a.onClick?.(b),a.disabled||b.defaultPrevented||(b.currentTarget.focus(),c.open||c.onOpenChange(!0))},onPointerMove:(0,e.mK)(a.onPointerMove,aE(b=>{i.onItemEnter(b),!b.defaultPrevented&&(a.disabled||c.open||j.current||(i.onPointerGraceIntentChange(null),j.current=window.setTimeout(()=>{c.onOpenChange(!0),n()},100)))})),onPointerLeave:(0,e.mK)(a.onPointerLeave,aE(a=>{n();let b=c.content?.getBoundingClientRect();if(b){let d=c.content?.dataset.side,e="right"===d,f=b[e?"left":"right"],g=b[e?"right":"left"];i.onPointerGraceIntentChange({area:[{x:a.clientX+(e?-5:5),y:a.clientY},{x:f,y:b.top},{x:g,y:b.top},{x:g,y:b.bottom},{x:f,y:b.bottom}],side:d}),window.clearTimeout(k.current),k.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(a),a.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:(0,e.mK)(a.onKeyDown,b=>{let d=""!==i.searchRef.current;a.disabled||d&&" "===b.key||A[f.dir].includes(b.key)&&(c.onOpenChange(!0),c.content?.focus(),b.preventDefault())})})})});ay.displayName=ax;var az="MenuSubContent",aA=d.forwardRef((a,b)=>{let c=S(U,a.__scopeMenu),{forceMount:f=c.forceMount,...h}=a,i=L(U,a.__scopeMenu),j=N(U,a.__scopeMenu),k=av(az,a.__scopeMenu),l=d.useRef(null),m=(0,g.s)(b,l);return(0,w.jsx)(D.Provider,{scope:a.__scopeMenu,children:(0,w.jsx)(p.C,{present:f||i.open,children:(0,w.jsx)(D.Slot,{scope:a.__scopeMenu,children:(0,w.jsx)(_,{id:k.contentId,"aria-labelledby":k.triggerId,...h,ref:m,align:"start",side:"rtl"===j.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:a=>{j.isUsingKeyboardRef.current&&l.current?.focus(),a.preventDefault()},onCloseAutoFocus:a=>a.preventDefault(),onFocusOutside:(0,e.mK)(a.onFocusOutside,a=>{a.target!==k.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:(0,e.mK)(a.onEscapeKeyDown,a=>{j.onClose(),a.preventDefault()}),onKeyDown:(0,e.mK)(a.onKeyDown,a=>{let b=a.currentTarget.contains(a.target),c=B[j.dir].includes(a.key);b&&c&&(i.onOpenChange(!1),k.trigger?.focus(),a.preventDefault())})})})})})});function aB(a){return a?"open":"closed"}function aC(a){return"indeterminate"===a}function aD(a){return aC(a)?"indeterminate":a?"checked":"unchecked"}function aE(a){return b=>"mouse"===b.pointerType?a(b):void 0}aA.displayName=az;var aF=O,aG=P,aH=T,aI=X,aJ=aa,aK=ab,aL=ae,aM=ag,aN=ak,aO=am,aP=aq,aQ=ar,aR=as,aS=aw,aT=ay,aU=aA},88205:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("file-code",[["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}]])},88617:(a,b,c)=>{"use strict";c.d(b,{RG:()=>v,bL:()=>E,q7:()=>F});var d=c(38301),e=c(87868),f=c(825),g=c(92808),h=c(2332),i=c(75656),j=c(6406),k=c(71700),l=c(11720),m=c(10498),n=c(21124),o="rovingFocusGroup.onEntryFocus",p={bubbles:!1,cancelable:!0},q="RovingFocusGroup",[r,s,t]=(0,f.N)(q),[u,v]=(0,h.A)(q,[t]),[w,x]=u(q),y=d.forwardRef((a,b)=>(0,n.jsx)(r.Provider,{scope:a.__scopeRovingFocusGroup,children:(0,n.jsx)(r.Slot,{scope:a.__scopeRovingFocusGroup,children:(0,n.jsx)(z,{...a,ref:b})})}));y.displayName=q;var z=d.forwardRef((a,b)=>{let{__scopeRovingFocusGroup:c,orientation:f,loop:h=!1,dir:i,currentTabStopId:r,defaultCurrentTabStopId:t,onCurrentTabStopIdChange:u,onEntryFocus:v,preventScrollOnEntryFocus:x=!1,...y}=a,z=d.useRef(null),A=(0,g.s)(b,z),B=(0,m.jH)(i),[C,E]=(0,l.i)({prop:r,defaultProp:t??null,onChange:u,caller:q}),[F,G]=d.useState(!1),H=(0,k.c)(v),I=s(c),J=d.useRef(!1),[K,L]=d.useState(0);return d.useEffect(()=>{let a=z.current;if(a)return a.addEventListener(o,H),()=>a.removeEventListener(o,H)},[H]),(0,n.jsx)(w,{scope:c,orientation:f,dir:B,loop:h,currentTabStopId:C,onItemFocus:d.useCallback(a=>E(a),[E]),onItemShiftTab:d.useCallback(()=>G(!0),[]),onFocusableItemAdd:d.useCallback(()=>L(a=>a+1),[]),onFocusableItemRemove:d.useCallback(()=>L(a=>a-1),[]),children:(0,n.jsx)(j.sG.div,{tabIndex:F||0===K?-1:0,"data-orientation":f,...y,ref:A,style:{outline:"none",...a.style},onMouseDown:(0,e.mK)(a.onMouseDown,()=>{J.current=!0}),onFocus:(0,e.mK)(a.onFocus,a=>{let b=!J.current;if(a.target===a.currentTarget&&b&&!F){let b=new CustomEvent(o,p);if(a.currentTarget.dispatchEvent(b),!b.defaultPrevented){let a=I().filter(a=>a.focusable);D([a.find(a=>a.active),a.find(a=>a.id===C),...a].filter(Boolean).map(a=>a.ref.current),x)}}J.current=!1}),onBlur:(0,e.mK)(a.onBlur,()=>G(!1))})})}),A="RovingFocusGroupItem",B=d.forwardRef((a,b)=>{let{__scopeRovingFocusGroup:c,focusable:f=!0,active:g=!1,tabStopId:h,children:k,...l}=a,m=(0,i.B)(),o=h||m,p=x(A,c),q=p.currentTabStopId===o,t=s(c),{onFocusableItemAdd:u,onFocusableItemRemove:v,currentTabStopId:w}=p;return d.useEffect(()=>{if(f)return u(),()=>v()},[f,u,v]),(0,n.jsx)(r.ItemSlot,{scope:c,id:o,focusable:f,active:g,children:(0,n.jsx)(j.sG.span,{tabIndex:q?0:-1,"data-orientation":p.orientation,...l,ref:b,onMouseDown:(0,e.mK)(a.onMouseDown,a=>{f?p.onItemFocus(o):a.preventDefault()}),onFocus:(0,e.mK)(a.onFocus,()=>p.onItemFocus(o)),onKeyDown:(0,e.mK)(a.onKeyDown,a=>{if("Tab"===a.key&&a.shiftKey)return void p.onItemShiftTab();if(a.target!==a.currentTarget)return;let b=function(a,b,c){var d;let e=(d=a.key,"rtl"!==c?d:"ArrowLeft"===d?"ArrowRight":"ArrowRight"===d?"ArrowLeft":d);if(!("vertical"===b&&["ArrowLeft","ArrowRight"].includes(e))&&!("horizontal"===b&&["ArrowUp","ArrowDown"].includes(e)))return C[e]}(a,p.orientation,p.dir);if(void 0!==b){if(a.metaKey||a.ctrlKey||a.altKey||a.shiftKey)return;a.preventDefault();let c=t().filter(a=>a.focusable).map(a=>a.ref.current);if("last"===b)c.reverse();else if("prev"===b||"next"===b){"prev"===b&&c.reverse();let d=c.indexOf(a.currentTarget);c=p.loop?function(a,b){return a.map((c,d)=>a[(b+d)%a.length])}(c,d+1):c.slice(d+1)}setTimeout(()=>D(c))}}),children:"function"==typeof k?k({isCurrentTabStop:q,hasTabStop:null!=w}):k})})});B.displayName=A;var C={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function D(a,b=!1){let c=document.activeElement;for(let d of a)if(d===c||(d.focus({preventScroll:b}),document.activeElement!==c))return}var E=y,F=B},88633:a=>{"use strict";var b=Object.prototype.hasOwnProperty,c=Object.prototype.toString,d=Object.defineProperty,e=Object.getOwnPropertyDescriptor,f=function(a){return"function"==typeof Array.isArray?Array.isArray(a):"[object Array]"===c.call(a)},g=function(a){if(!a||"[object Object]"!==c.call(a))return!1;var d,e=b.call(a,"constructor"),f=a.constructor&&a.constructor.prototype&&b.call(a.constructor.prototype,"isPrototypeOf");if(a.constructor&&!e&&!f)return!1;for(d in a);return void 0===d||b.call(a,d)},h=function(a,b){d&&"__proto__"===b.name?d(a,b.name,{enumerable:!0,configurable:!0,value:b.newValue,writable:!0}):a[b.name]=b.newValue},i=function(a,c){if("__proto__"===c){if(!b.call(a,c))return;else if(e)return e(a,c).value}return a[c]};a.exports=function a(){var b,c,d,e,j,k,l=arguments[0],m=1,n=arguments.length,o=!1;for("boolean"==typeof l&&(o=l,l=arguments[1]||{},m=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});m{"use strict";c.d(b,{C1:()=>x,bL:()=>v});var d=c(38301),e=c(92808),f=c(2332),g=c(87868),h=c(11720),i=c(10350),j=c(96386),k=c(29988),l=c(6406),m=c(21124),n="Checkbox",[o,p]=(0,f.A)(n),[q,r]=o(n);function s(a){let{__scopeCheckbox:b,checked:c,children:e,defaultChecked:f,disabled:g,form:i,name:j,onCheckedChange:k,required:l,value:o="on",internal_do_not_use_render:p}=a,[r,s]=(0,h.i)({prop:c,defaultProp:f??!1,onChange:k,caller:n}),[t,u]=d.useState(null),[v,w]=d.useState(null),x=d.useRef(!1),y=!t||!!i||!!t.closest("form"),z={checked:r,disabled:g,setChecked:s,control:t,setControl:u,name:j,form:i,value:o,hasConsumerStoppedPropagationRef:x,required:l,defaultChecked:!A(f)&&f,isFormControl:y,bubbleInput:v,setBubbleInput:w};return(0,m.jsx)(q,{scope:b,...z,children:"function"==typeof p?p(z):e})}var t="CheckboxTrigger",u=d.forwardRef(({__scopeCheckbox:a,onKeyDown:b,onClick:c,...f},h)=>{let{control:i,value:j,disabled:k,checked:n,required:o,setControl:p,setChecked:q,hasConsumerStoppedPropagationRef:s,isFormControl:u,bubbleInput:v}=r(t,a),w=(0,e.s)(h,p),x=d.useRef(n);return d.useEffect(()=>{let a=i?.form;if(a){let b=()=>q(x.current);return a.addEventListener("reset",b),()=>a.removeEventListener("reset",b)}},[i,q]),(0,m.jsx)(l.sG.button,{type:"button",role:"checkbox","aria-checked":A(n)?"mixed":n,"aria-required":o,"data-state":B(n),"data-disabled":k?"":void 0,disabled:k,value:j,...f,ref:w,onKeyDown:(0,g.mK)(b,a=>{"Enter"===a.key&&a.preventDefault()}),onClick:(0,g.mK)(c,a=>{q(a=>!!A(a)||!a),v&&u&&(s.current=a.isPropagationStopped(),s.current||a.stopPropagation())})})});u.displayName=t;var v=d.forwardRef((a,b)=>{let{__scopeCheckbox:c,name:d,checked:e,defaultChecked:f,required:g,disabled:h,value:i,onCheckedChange:j,form:k,...l}=a;return(0,m.jsx)(s,{__scopeCheckbox:c,checked:e,defaultChecked:f,disabled:h,required:g,onCheckedChange:j,name:d,form:k,value:i,internal_do_not_use_render:({isFormControl:a})=>(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(u,{...l,ref:b,__scopeCheckbox:c}),a&&(0,m.jsx)(z,{__scopeCheckbox:c})]})})});v.displayName=n;var w="CheckboxIndicator",x=d.forwardRef((a,b)=>{let{__scopeCheckbox:c,forceMount:d,...e}=a,f=r(w,c);return(0,m.jsx)(k.C,{present:d||A(f.checked)||!0===f.checked,children:(0,m.jsx)(l.sG.span,{"data-state":B(f.checked),"data-disabled":f.disabled?"":void 0,...e,ref:b,style:{pointerEvents:"none",...a.style}})})});x.displayName=w;var y="CheckboxBubbleInput",z=d.forwardRef(({__scopeCheckbox:a,...b},c)=>{let{control:f,hasConsumerStoppedPropagationRef:g,checked:h,defaultChecked:k,required:n,disabled:o,name:p,value:q,form:s,bubbleInput:t,setBubbleInput:u}=r(y,a),v=(0,e.s)(c,u),w=(0,i.Z)(h),x=(0,j.X)(f);d.useEffect(()=>{if(!t)return;let a=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,b=!g.current;if(w!==h&&a){let c=new Event("click",{bubbles:b});t.indeterminate=A(h),a.call(t,!A(h)&&h),t.dispatchEvent(c)}},[t,w,h,g]);let z=d.useRef(!A(h)&&h);return(0,m.jsx)(l.sG.input,{type:"checkbox","aria-hidden":!0,defaultChecked:k??z.current,required:n,disabled:o,name:p,value:q,form:s,...b,tabIndex:-1,ref:v,style:{...b.style,...x,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function A(a){return"indeterminate"===a}function B(a){return A(a)?"indeterminate":a?"checked":"unchecked"}z.displayName=y},89989:(a,b,c)=>{"use strict";c.d(b,{B8:()=>D,UC:()=>F,bL:()=>C,l9:()=>E});var d=c(38301),e=c(87868),f=c(2332),g=c(88617),h=c(29988),i=c(6406),j=c(10498),k=c(11720),l=c(75656),m=c(21124),n="Tabs",[o,p]=(0,f.A)(n,[g.RG]),q=(0,g.RG)(),[r,s]=o(n),t=d.forwardRef((a,b)=>{let{__scopeTabs:c,value:d,onValueChange:e,defaultValue:f,orientation:g="horizontal",dir:h,activationMode:o="automatic",...p}=a,q=(0,j.jH)(h),[s,t]=(0,k.i)({prop:d,onChange:e,defaultProp:f??"",caller:n});return(0,m.jsx)(r,{scope:c,baseId:(0,l.B)(),value:s,onValueChange:t,orientation:g,dir:q,activationMode:o,children:(0,m.jsx)(i.sG.div,{dir:q,"data-orientation":g,...p,ref:b})})});t.displayName=n;var u="TabsList",v=d.forwardRef((a,b)=>{let{__scopeTabs:c,loop:d=!0,...e}=a,f=s(u,c),h=q(c);return(0,m.jsx)(g.bL,{asChild:!0,...h,orientation:f.orientation,dir:f.dir,loop:d,children:(0,m.jsx)(i.sG.div,{role:"tablist","aria-orientation":f.orientation,...e,ref:b})})});v.displayName=u;var w="TabsTrigger",x=d.forwardRef((a,b)=>{let{__scopeTabs:c,value:d,disabled:f=!1,...h}=a,j=s(w,c),k=q(c),l=A(j.baseId,d),n=B(j.baseId,d),o=d===j.value;return(0,m.jsx)(g.q7,{asChild:!0,...k,focusable:!f,active:o,children:(0,m.jsx)(i.sG.button,{type:"button",role:"tab","aria-selected":o,"aria-controls":n,"data-state":o?"active":"inactive","data-disabled":f?"":void 0,disabled:f,id:l,...h,ref:b,onMouseDown:(0,e.mK)(a.onMouseDown,a=>{f||0!==a.button||!1!==a.ctrlKey?a.preventDefault():j.onValueChange(d)}),onKeyDown:(0,e.mK)(a.onKeyDown,a=>{[" ","Enter"].includes(a.key)&&j.onValueChange(d)}),onFocus:(0,e.mK)(a.onFocus,()=>{let a="manual"!==j.activationMode;o||f||!a||j.onValueChange(d)})})})});x.displayName=w;var y="TabsContent",z=d.forwardRef((a,b)=>{let{__scopeTabs:c,value:e,forceMount:f,children:g,...j}=a,k=s(y,c),l=A(k.baseId,e),n=B(k.baseId,e),o=e===k.value,p=d.useRef(o);return d.useEffect(()=>{let a=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(a)},[]),(0,m.jsx)(h.C,{present:f||o,children:({present:c})=>(0,m.jsx)(i.sG.div,{"data-state":o?"active":"inactive","data-orientation":k.orientation,role:"tabpanel","aria-labelledby":l,hidden:!c,id:n,tabIndex:0,...j,ref:b,style:{...a.style,animationDuration:p.current?"0s":void 0},children:c&&g})})});function A(a,b){return`${a}-trigger-${b}`}function B(a,b){return`${a}-content-${b}`}z.displayName=y;var C=t,D=v,E=x,F=z},90133:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},90771:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("toggle-left",[["circle",{cx:"9",cy:"12",r:"3",key:"u3jwor"}],["rect",{width:"20",height:"14",x:"2",y:"5",rx:"7",key:"g7kal2"}]])},90783:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"invalidateCacheBelowFlightSegmentPath",{enumerable:!0,get:function(){return function a(b,c,f){let g=f.length<=2,[h,i]=f,j=(0,d.createRouterCacheKey)(i),k=c.parallelRoutes.get(h);if(!k)return;let l=b.parallelRoutes.get(h);if(l&&l!==k||(l=new Map(k),b.parallelRoutes.set(h,l)),g)return void l.delete(j);let m=k.get(j),n=l.get(j);n&&m&&(n===m&&(n={lazyData:n.lazyData,rsc:n.rsc,prefetchRsc:n.prefetchRsc,head:n.head,prefetchHead:n.prefetchHead,parallelRoutes:new Map(n.parallelRoutes)},l.set(j,n)),a(n,m,(0,e.getNextFlightSegmentPath)(f)))}}});let d=c(95812),e=c(21600);("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},91044:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("test-tube",[["path",{d:"M14.5 2v17.5c0 1.4-1.1 2.5-2.5 2.5c-1.4 0-2.5-1.1-2.5-2.5V2",key:"125lnx"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M14.5 16h-5",key:"1ox875"}]])},91349:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"invalidateCacheByRouterState",{enumerable:!0,get:function(){return e}});let d=c(95812);function e(a,b,c){for(let e in c[1]){let f=c[1][e][0],g=(0,d.createRouterCacheKey)(f),h=b.parallelRoutes.get(e);if(h){let b=new Map(h);b.delete(g),a.parallelRoutes.set(e,b)}}}("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},91351:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("file-box",[["path",{d:"M14.5 22H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"16lz6z"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M3 13.1a2 2 0 0 0-1 1.76v3.24a2 2 0 0 0 .97 1.78L6 21.7a2 2 0 0 0 2.03.01L11 19.9a2 2 0 0 0 1-1.76V14.9a2 2 0 0 0-.97-1.78L8 11.3a2 2 0 0 0-2.03-.01Z",key:"99pj1s"}],["path",{d:"M7 17v5",key:"1yj1jh"}],["path",{d:"M11.7 14.2 7 17l-4.7-2.8",key:"1yk8tc"}]])},92464:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"addBasePath",{enumerable:!0,get:function(){return f}});let d=c(42511),e=c(11107);function f(a,b){return(0,e.normalizePathTrailingSlash)((0,d.addPathPrefix)(a,""))}("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},92714:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]])},92800:(a,b)=>{"use strict";function c(a){return a.replace(/\/$/,"")||"/"}Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"removeTrailingSlash",{enumerable:!0,get:function(){return c}})},94104:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("clipboard-list",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]])},94122:(a,b,c)=>{"use strict";let d,e;c.d(b,{TW:()=>ap,YZ:()=>am,Zk:()=>o});var f,g=c(38301);let h=(0,g.createContext)(null);h.displayName="PanelGroupContext";let i={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},j=(f||(f=c.t(g,2)))["useId".toString()],k="function"==typeof j?j:()=>null,l=0;function m(a=null){let b=k(),c=(0,g.useRef)(a||b||null);return null===c.current&&(c.current=""+l++),null!=a?a:c.current}function n({children:a,className:b="",collapsedSize:c,collapsible:d,defaultSize:e,forwardedRef:f,id:j,maxSize:k,minSize:l,onCollapse:n,onExpand:o,onResize:p,order:q,style:r,tagName:s="div",...t}){let u=(0,g.useContext)(h);if(null===u)throw Error("Panel components must be rendered within a PanelGroup container");let{collapsePanel:v,expandPanel:w,getPanelSize:x,getPanelStyle:y,groupId:z,isPanelCollapsed:A,reevaluatePanelConstraints:B,registerPanel:C,resizePanel:D,unregisterPanel:E}=u,F=m(j),G=(0,g.useRef)({callbacks:{onCollapse:n,onExpand:o,onResize:p},constraints:{collapsedSize:c,collapsible:d,defaultSize:e,maxSize:k,minSize:l},id:F,idIsFromProps:void 0!==j,order:q});(0,g.useRef)({didLogMissingDefaultSizeWarning:!1}),(0,g.useImperativeHandle)(f,()=>({collapse:()=>{v(G.current)},expand:a=>{w(G.current,a)},getId:()=>F,getSize:()=>x(G.current),isCollapsed:()=>A(G.current),isExpanded:()=>!A(G.current),resize:a=>{D(G.current,a)}}),[v,w,x,A,F,D]);let H=y(G.current,e);return(0,g.createElement)(s,{...t,children:a,className:b,id:F,style:{...H,...r},[i.groupId]:z,[i.panel]:"",[i.panelCollapsible]:d||void 0,[i.panelId]:F,[i.panelSize]:parseFloat(""+H.flexGrow).toFixed(1)})}let o=(0,g.forwardRef)((a,b)=>(0,g.createElement)(n,{...a,forwardedRef:b}));n.displayName="Panel",o.displayName="forwardRef(Panel)";let p=null,q=-1,r=null;function s(a,b,c){var e,f,g;let h=function(a,b,c){let d=(b&C)!=0,e=(b&D)!=0,f=(b&E)!=0,g=(b&F)!=0;if(b){if(d)if(f)return"se-resize";else if(g)return"ne-resize";else return"e-resize";else if(e)if(f)return"sw-resize";else if(g)return"nw-resize";else return"w-resize";else if(f)return"s-resize";else if(g)return"n-resize"}switch(a){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}(a,b,0);p!==h&&(p=h,null===r&&(r=document.createElement("style"),d&&r.setAttribute("nonce",d),document.head.appendChild(r)),q>=0&&(null==(g=r.sheet)||g.removeRule(q)),q=null!=(e=null==(f=r.sheet)?void 0:f.insertRule(`*{cursor: ${h} !important;}`))?e:-1)}function t(a){return"keydown"===a.type}function u(a){return a.type.startsWith("pointer")}function v(a){return a.type.startsWith("mouse")}function w(a){if(u(a)){if(a.isPrimary)return{x:a.clientX,y:a.clientY}}else if(v(a))return{x:a.clientX,y:a.clientY};return{x:1/0,y:1/0}}let x=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function y(a){let b=a.length;for(;b--;){let c=a[b];if(U(c,"Missing node"),function(a){let b=getComputedStyle(a);return!!("fixed"===b.position||"auto"!==b.zIndex&&("static"!==b.position||function(a){var b;let c=getComputedStyle(null!=(b=B(a))?b:a).display;return"flex"===c||"inline-flex"===c}(a))||1>+b.opacity||"transform"in b&&"none"!==b.transform||"webkitTransform"in b&&"none"!==b.webkitTransform||"mixBlendMode"in b&&"normal"!==b.mixBlendMode||"filter"in b&&"none"!==b.filter||"webkitFilter"in b&&"none"!==b.webkitFilter||"isolation"in b&&"isolate"===b.isolation||x.test(b.willChange))||"touch"===b.webkitOverflowScrolling}(c))return c}return null}function z(a){return a&&Number(getComputedStyle(a).zIndex)||0}function A(a){let b=[];for(;a;)b.push(a),a=B(a);return b}function B(a){let{parentNode:b}=a;return b&&b instanceof ShadowRoot?b.host:b}let C=1,D=2,E=4,F=8,G="coarse"===function(){if("function"==typeof matchMedia)return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}(),H=[],I=!1,J=new Map,K=new Map,L=new Set;function M(a){let{target:b}=a,{x:c,y:d}=w(a);I=!0,Q({target:b,x:c,y:d}),S(),H.length>0&&(T("down",a),R(),a.preventDefault(),P(b)||a.stopImmediatePropagation())}function N(a){let{x:b,y:c}=w(a);if(I&&"pointerleave"!==a.type&&0===a.buttons&&(I=!1,T("up",a)),!I){let{target:d}=a;Q({target:d,x:b,y:c})}T("move",a),R(),H.length>0&&a.preventDefault()}function O(a){let{target:b}=a,{x:c,y:d}=w(a);K.clear(),I=!1,H.length>0&&(a.preventDefault(),P(b)||a.stopImmediatePropagation()),T("up",a),Q({target:b,x:c,y:d}),R(),S()}function P(a){let b=a;for(;b;){if(b.hasAttribute(i.resizeHandle))return!0;b=b.parentElement}return!1}function Q({target:a,x:b,y:c}){H.splice(0);let d=null;(a instanceof HTMLElement||a instanceof SVGElement)&&(d=a),L.forEach(a=>{let{element:e,hitAreaMargins:f}=a,g=e.getBoundingClientRect(),{bottom:h,left:i,right:j,top:k}=g,l=G?f.coarse:f.fine;if(b>=i-l&&b<=j+l&&c>=k-l&&c<=h+l){if(null!==d&&document.contains(d)&&e!==d&&!e.contains(d)&&!d.contains(e)&&function(a,b){let c;if(a===b)throw Error("Cannot compare node with itself");let d={a:A(a),b:A(b)};for(;d.a.at(-1)===d.b.at(-1);)a=d.a.pop(),b=d.b.pop(),c=a;U(c,"Stacking order can only be calculated for elements with a common ancestor");let e={a:z(y(d.a)),b:z(y(d.b))};if(e.a===e.b){let a=c.childNodes,b={a:d.a.at(-1),b:d.b.at(-1)},e=a.length;for(;e--;){let c=a[e];if(c===b.a)return 1;if(c===b.b)return -1}}return Math.sign(e.a-e.b)}(d,e)>0){let a=d,b=!1;for(;a;){var m;if(a.contains(e))break;if(m=a.getBoundingClientRect(),m.xg.x&&m.yg.y){b=!0;break}a=a.parentElement}if(b)return}H.push(a)}})}function R(){let a=!1,b=!1;H.forEach(c=>{let{direction:d}=c;"horizontal"===d?a=!0:b=!0});let c=0;K.forEach(a=>{c|=a}),a&&b?s("intersection",c,I):a?s("horizontal",c,I):b?s("vertical",c,I):null!==r&&(document.head.removeChild(r),p=null,r=null,q=-1)}function S(){var a;null==(a=e)||a.abort();let b={capture:!0,signal:(e=new AbortController).signal};L.size&&(I?(H.length>0&&J.forEach((a,c)=>{let{body:d}=c;a>0&&(d.addEventListener("contextmenu",O,b),d.addEventListener("pointerleave",N,b),d.addEventListener("pointermove",N,b))}),J.forEach((a,c)=>{let{body:d}=c;d.addEventListener("pointerup",O,b),d.addEventListener("pointercancel",O,b)})):J.forEach((a,c)=>{let{body:d}=c;a>0&&(d.addEventListener("pointerdown",M,b),d.addEventListener("pointermove",N,b))}))}function T(a,b){L.forEach(c=>{let{setResizeHandlerState:d}=c;d(a,H.includes(c),b)})}function U(a,b){if(!a)throw console.error(b),Error(b)}function V(a,b,c=10){return a.toFixed(c)===b.toFixed(c)?0:a>b?1:-1}function W(a,b,c=10){return 0===V(a,b,c)}function X(a,b,c){return 0===V(a,b,c)}function Y({panelConstraints:a,panelIndex:b,size:c}){let d=a[b];U(null!=d,`Panel constraints not found for index ${b}`);let{collapsedSize:e=0,collapsible:f,maxSize:g=100,minSize:h=0}=d;return 0>V(c,h)&&(c=f&&0>V(c,(e+h)/2)?e:h),c=parseFloat((c=Math.min(g,c)).toFixed(10))}function Z({delta:a,initialLayout:b,panelConstraints:c,pivotIndices:d,prevLayout:e,trigger:f}){if(X(a,0))return b;let g=[...b],[h,i]=d;U(null!=h,"Invalid first pivot index"),U(null!=i,"Invalid second pivot index");let j=0;if("keyboard"===f){{let d=a<0?i:h,e=c[d];U(e,`Panel constraints not found for index ${d}`);let{collapsedSize:f=0,collapsible:g,minSize:j=0}=e;if(g){let c=b[d];if(U(null!=c,`Previous layout not found for panel index ${d}`),X(c,f)){let b=j-c;V(b,Math.abs(a))>0&&(a=a<0?0-b:b)}}}{let d=a<0?h:i,e=c[d];U(e,`No panel constraints found for index ${d}`);let{collapsedSize:f=0,collapsible:g,minSize:j=0}=e;if(g){let c=b[d];if(U(null!=c,`Previous layout not found for panel index ${d}`),X(c,j)){let b=c-f;V(b,Math.abs(a))>0&&(a=a<0?0-b:b)}}}}{let d=a<0?1:-1,e=a<0?i:h,f=0;for(;;){let a=b[e];if(U(null!=a,`Previous layout not found for panel index ${e}`),f+=Y({panelConstraints:c,panelIndex:e,size:100})-a,(e+=d)<0||e>=c.length)break}let g=Math.min(Math.abs(a),Math.abs(f));a=a<0?0-g:g}{let d=a<0?h:i;for(;d>=0&&d=0))break;a<0?d--:d++}}if(function(a,b,c){if(a.length!==b.length)return!1;for(let c=0;c=0&&d0?d--:d++}}}return X(g.reduce((a,b)=>b+a,0),100)?g:e}function $(a,b=document){return Array.from(b.querySelectorAll(`[${i.resizeHandleId}][data-panel-group-id="${a}"]`))}function _(a,b,c=document){let d=$(a,c).findIndex(a=>a.getAttribute(i.resizeHandleId)===b);return null!=d?d:null}function aa(a,b,c){let d=_(a,b,c);return null!=d?[d,d+1]:[-1,-1]}function ab(a,b=document){if((b instanceof HTMLElement||"object"==typeof b&&null!==b&&"tagName"in b&&"getAttribute"in b)&&b.dataset.panelGroupId==a)return b;let c=b.querySelector(`[data-panel-group][data-panel-group-id="${a}"]`);return c||null}function ac(a,b=document){let c=b.querySelector(`[${i.resizeHandleId}="${a}"]`);return c||null}function ad(a,b){let{x:c,y:d}=w(b);return"horizontal"===a?c:d}function ae(a,b,c){b.forEach((b,d)=>{let e=a[d];U(e,`Panel data not found for index ${d}`);let{callbacks:f,constraints:g,id:h}=e,{collapsedSize:i=0,collapsible:j}=g,k=c[h];if(null==k||b!==k){c[h]=b;let{onCollapse:a,onExpand:d,onResize:e}=f;e&&e(b,k),j&&(a||d)&&(d&&(null==k||W(k,i))&&!W(b,i)&&d(),a&&(null==k||!W(k,i))&&W(b,i)&&a())}})}function af(a,b){if(a.length!==b.length)return!1;for(let c=0;clocalStorage.getItem(a),a.setItem=(a,b)=>{localStorage.setItem(a,b)};else throw Error("localStorage not supported in this environment")}catch(b){console.error(b),a.getItem=()=>null,a.setItem=()=>{}}}function ah(a){return`react-resizable-panels:${a}`}function ai(a,b,c,d,e){var f;let g=ah(a),h=b.map(a=>{let{constraints:b,id:c,idIsFromProps:d,order:e}=a;return d?c:e?`${e}:${JSON.stringify(b)}`:JSON.stringify(b)}).sort((a,b)=>a.localeCompare(b)).join(","),i=null!=(f=function(a,b){try{let c=ah(a),d=b.getItem(c);if(d){let a=JSON.parse(d);if("object"==typeof a&&null!=a)return a}}catch(a){}return null}(a,e))?f:{};i[h]={expandToSizes:Object.fromEntries(c.entries()),layout:d};try{e.setItem(g,JSON.stringify(i))}catch(a){console.error(a)}}let aj={getItem:a=>(ag(aj),aj.getItem(a)),setItem:(a,b)=>{ag(aj),aj.setItem(a,b)}},ak={};function al({autoSaveId:a=null,children:b,className:c="",direction:d,forwardedRef:e,id:f=null,onLayout:j=null,keyboardResizeBy:k=null,storage:l=aj,style:n,tagName:o="div",...p}){let q=m(f),r=(0,g.useRef)(null),[s,w]=(0,g.useState)(null),[x,y]=(0,g.useState)([]),z=function(){let[a,b]=(0,g.useState)(0);return(0,g.useCallback)(()=>b(a=>a+1),[])}(),A=(0,g.useRef)({}),B=(0,g.useRef)(new Map),G=(0,g.useRef)(0),H=(0,g.useRef)({autoSaveId:a,direction:d,dragState:s,id:q,keyboardResizeBy:k,onLayout:j,storage:l}),I=(0,g.useRef)({layout:x,panelDataArray:[],panelDataArrayChanged:!1});(0,g.useRef)({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),(0,g.useImperativeHandle)(e,()=>({getId:()=>H.current.id,getLayout:()=>{let{layout:a}=I.current;return a},setLayout:a=>{let{onLayout:b}=H.current,{layout:c,panelDataArray:d}=I.current,e=function({layout:a,panelConstraints:b}){let c=[...a],d=c.reduce((a,b)=>a+b,0);if(c.length!==b.length)throw Error(`Invalid ${b.length} panel layout: ${c.map(a=>`${a}%`).join(", ")}`);if(!X(d,100)&&c.length>0)for(let a=0;aa.constraints)});!function(a,b){if(a.length!==b.length)return!1;for(let c=0;c{if(!f)return;let a=b.current;U(a,"Eager values not found");let{panelDataArray:e}=a;U(null!=ab(c,f),`No group found for id "${c}"`);let g=$(c,f);U(g,`No resize handles found for group id "${c}"`);let j=g.map(a=>{let b=a.getAttribute(i.resizeHandleId);U(b,"Resize handle element has no handle id attribute");let[g,j]=function(a,b,c,d=document){var e,f,g,h;let i=ac(b,d),j=$(a,d),k=i?j.indexOf(i):-1;return[null!=(e=null==(f=c[k])?void 0:f.id)?e:null,null!=(g=null==(h=c[k+1])?void 0:h.id)?g:null]}(c,b,e,f);if(null==g||null==j)return()=>{};let k=a=>{if(!a.defaultPrevented&&"Enter"===a.key){a.preventDefault();let i=e.findIndex(a=>a.id===g);if(i>=0){let a=e[i];U(a,`No panel data found for index ${i}`);let g=d[i],{collapsedSize:j=0,collapsible:k,minSize:l=0}=a.constraints;if(null!=g&&k){let a=Z({delta:X(g,j)?l-j:j-g,initialLayout:d,panelConstraints:e.map(a=>a.constraints),pivotIndices:aa(c,b,f),prevLayout:d,trigger:"keyboard"});d!==a&&h(a)}}}};return a.addEventListener("keydown",k),()=>{a.removeEventListener("keydown",k)}});return()=>{j.forEach(a=>a())}},[f,a,b,c,d,e,h])}({committedValuesRef:H,eagerValuesRef:I,groupId:q,layout:x,panelDataArray:I.current.panelDataArray,setLayout:y,panelGroupElement:r.current}),(0,g.useEffect)(()=>{let{panelDataArray:b}=I.current;if(a){if(0===x.length||x.length!==b.length)return;let c=ak[a];null==c&&(c=function(a,b=10){let c=null;return(...d)=>{null!==c&&clearTimeout(c),c=setTimeout(()=>{a(...d)},b)}}(ai,100),ak[a]=c),c(a,[...b],new Map(B.current),x,l)}},[a,x,l]),(0,g.useEffect)(()=>{});let J=(0,g.useCallback)(a=>{let{onLayout:b}=H.current,{layout:c,panelDataArray:d}=I.current;if(a.constraints.collapsible){let e=d.map(a=>a.constraints),{collapsedSize:f=0,panelSize:g,pivotIndices:h}=ao(d,a,c);if(U(null!=g,`Panel size not found for panel "${a.id}"`),!W(g,f)){B.current.set(a.id,g);let i=Z({delta:an(d,a)===d.length-1?g-f:f-g,initialLayout:c,panelConstraints:e,pivotIndices:h,prevLayout:c,trigger:"imperative-api"});af(c,i)||(y(i),I.current.layout=i,b&&b(i),ae(d,i,A.current))}}},[]),L=(0,g.useCallback)((a,b)=>{let{onLayout:c}=H.current,{layout:d,panelDataArray:e}=I.current;if(a.constraints.collapsible){let f=e.map(a=>a.constraints),{collapsedSize:g=0,panelSize:h=0,minSize:i=0,pivotIndices:j}=ao(e,a,d),k=null!=b?b:i;if(W(h,g)){let b=B.current.get(a.id),g=null!=b&&b>=k?b:k,i=Z({delta:an(e,a)===e.length-1?h-g:g-h,initialLayout:d,panelConstraints:f,pivotIndices:j,prevLayout:d,trigger:"imperative-api"});af(d,i)||(y(i),I.current.layout=i,c&&c(i),ae(e,i,A.current))}}},[]),M=(0,g.useCallback)(a=>{let{layout:b,panelDataArray:c}=I.current,{panelSize:d}=ao(c,a,b);return U(null!=d,`Panel size not found for panel "${a.id}"`),d},[]),N=(0,g.useCallback)((a,b)=>{let{panelDataArray:c}=I.current,d=an(c,a);return function({defaultSize:a,dragState:b,layout:c,panelData:d,panelIndex:e,precision:f=3}){let g=c[e];return{flexBasis:0,flexGrow:null==g?void 0!=a?a.toFixed(f):"1":1===d.length?"1":g.toFixed(f),flexShrink:1,overflow:"hidden",pointerEvents:null!==b?"none":void 0}}({defaultSize:b,dragState:s,layout:x,panelData:c,panelIndex:d})},[s,x]),O=(0,g.useCallback)(a=>{let{layout:b,panelDataArray:c}=I.current,{collapsedSize:d=0,collapsible:e,panelSize:f}=ao(c,a,b);return U(null!=f,`Panel size not found for panel "${a.id}"`),!0===e&&W(f,d)},[]),P=(0,g.useCallback)(a=>{let{layout:b,panelDataArray:c}=I.current,{collapsedSize:d=0,collapsible:e,panelSize:f}=ao(c,a,b);return U(null!=f,`Panel size not found for panel "${a.id}"`),!e||V(f,d)>0},[]),Q=(0,g.useCallback)(a=>{let{panelDataArray:b}=I.current;b.push(a),b.sort((a,b)=>{let c=a.order,d=b.order;return null==c&&null==d?0:null==c?-1:null==d?1:c-d}),I.current.panelDataArrayChanged=!0,z()},[z]),R=(0,g.useCallback)(a=>{let b=!1,c=r.current;return c&&"rtl"===window.getComputedStyle(c,null).getPropertyValue("direction")&&(b=!0),function(c){var d,e;c.preventDefault();let f=r.current;if(!f)return()=>null;let{direction:g,dragState:h,id:j,keyboardResizeBy:k,onLayout:l}=H.current,{layout:m,panelDataArray:n}=I.current,{initialLayout:o}=null!=h?h:{},p=aa(j,a,f),q=function(a,b,c,d,e,f){if(t(a)){let b="horizontal"===c,d=0;d=a.shiftKey?100:null!=e?e:10;let f=0;switch(a.key){case"ArrowDown":f=b?0:d;break;case"ArrowLeft":f=b?-d:0;break;case"ArrowRight":f=b?d:0;break;case"ArrowUp":f=b?0:-d;break;case"End":f=100;break;case"Home":f=-100}return f}return null==d?0:function(a,b,c,d,e){let f="horizontal"===c,g=ac(b,e);U(g,`No resize handle element found for id "${b}"`);let h=g.getAttribute(i.groupId);U(h,"Resize handle element has no group id attribute");let{initialCursorPosition:j}=d,k=ad(c,a),l=ab(h,e);U(l,`No group element found for id "${h}"`);let m=l.getBoundingClientRect();return(k-j)/(f?m.width:m.height)*100}(a,b,c,d,f)}(c,a,g,h,k,f),s="horizontal"===g;s&&b&&(q=-q);let w=Z({delta:q,initialLayout:null!=o?o:m,panelConstraints:n.map(a=>a.constraints),pivotIndices:p,prevLayout:m,trigger:t(c)?"keyboard":"mouse-or-touch"}),x=!af(m,w);(u(c)||v(c))&&G.current!=q&&((G.current=q,x||0===q)?K.set(a,0):s?(d=q<0?C:D,K.set(a,d)):(e=q<0?E:F,K.set(a,e))),x&&(y(w),I.current.layout=w,l&&l(w),ae(n,w,A.current))}},[]),S=(0,g.useCallback)((a,b)=>{let{onLayout:c}=H.current,{layout:d,panelDataArray:e}=I.current,f=e.map(a=>a.constraints),{panelSize:g,pivotIndices:h}=ao(e,a,d);U(null!=g,`Panel size not found for panel "${a.id}"`);let i=Z({delta:an(e,a)===e.length-1?g-b:b-g,initialLayout:d,panelConstraints:f,pivotIndices:h,prevLayout:d,trigger:"imperative-api"});af(d,i)||(y(i),I.current.layout=i,c&&c(i),ae(e,i,A.current))},[]),T=(0,g.useCallback)((a,b)=>{let{layout:c,panelDataArray:d}=I.current,{collapsedSize:e=0,collapsible:f}=b,{collapsedSize:g=0,collapsible:h,maxSize:i=100,minSize:j=0}=a.constraints,{panelSize:k}=ao(d,a,c);null!=k&&(f&&h&&W(k,e)?W(e,g)||S(a,g):ki&&S(a,i))},[S]),_=(0,g.useCallback)((a,b)=>{let{direction:c}=H.current,{layout:d}=I.current;if(!r.current)return;let e=ac(a,r.current);U(e,`Drag handle element not found for id "${a}"`);let f=ad(c,b);w({dragHandleId:a,dragHandleRect:e.getBoundingClientRect(),initialCursorPosition:f,initialLayout:d})},[]),ag=(0,g.useCallback)(()=>{w(null)},[]),ah=(0,g.useCallback)(a=>{let{panelDataArray:b}=I.current,c=an(b,a);c>=0&&(b.splice(c,1),delete A.current[a.id],I.current.panelDataArrayChanged=!0,z())},[z]),al=(0,g.useMemo)(()=>({collapsePanel:J,direction:d,dragState:s,expandPanel:L,getPanelSize:M,getPanelStyle:N,groupId:q,isPanelCollapsed:O,isPanelExpanded:P,reevaluatePanelConstraints:T,registerPanel:Q,registerResizeHandle:R,resizePanel:S,startDragging:_,stopDragging:ag,unregisterPanel:ah,panelGroupElement:r.current}),[J,s,d,L,M,N,q,O,P,T,Q,R,S,_,ag,ah]);return(0,g.createElement)(h.Provider,{value:al},(0,g.createElement)(o,{...p,children:b,className:c,id:f,ref:r,style:{display:"flex",flexDirection:"horizontal"===d?"row":"column",height:"100%",overflow:"hidden",width:"100%",...n},[i.group]:"",[i.groupDirection]:d,[i.groupId]:q}))}let am=(0,g.forwardRef)((a,b)=>(0,g.createElement)(al,{...a,forwardedRef:b}));function an(a,b){return a.findIndex(a=>a===b||a.id===b.id)}function ao(a,b,c){let d=an(a,b),e=d===a.length-1,f=c[d];return{...b.constraints,panelSize:f,pivotIndices:e?[d-1,d]:[d,d+1]}}function ap({children:a=null,className:b="",disabled:c=!1,hitAreaMargins:d,id:e,onBlur:f,onClick:j,onDragging:k,onFocus:l,onPointerDown:n,onPointerUp:o,style:p={},tabIndex:q=0,tagName:r="div",...s}){var t,u;let v=(0,g.useRef)(null),w=(0,g.useRef)({onClick:j,onDragging:k,onPointerDown:n,onPointerUp:o});(0,g.useEffect)(()=>{w.current.onClick=j,w.current.onDragging=k,w.current.onPointerDown=n,w.current.onPointerUp=o});let x=(0,g.useContext)(h);if(null===x)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");let{direction:y,groupId:z,registerResizeHandle:A,startDragging:B,stopDragging:C,panelGroupElement:D}=x,E=m(e),[F,G]=(0,g.useState)("inactive"),[I,M]=(0,g.useState)(!1),[N,O]=(0,g.useState)(null),P=(0,g.useRef)({state:F});(0,g.useEffect)(()=>{if(c)O(null);else{let a=A(E);O(()=>a)}},[c,E,A]);let Q=null!=(t=null==d?void 0:d.coarse)?t:15,T=null!=(u=null==d?void 0:d.fine)?u:5;return(0,g.useEffect)(()=>{if(c||null==N)return;let a=v.current;U(a,"Element ref not attached");let b=!1;return function(a,b,c,d,e){var f;let{ownerDocument:g}=b,h={direction:c,element:b,hitAreaMargins:d,setResizeHandlerState:e},i=null!=(f=J.get(g))?f:0;return J.set(g,i+1),L.add(h),S(),function(){var b;K.delete(a),L.delete(h);let c=null!=(b=J.get(g))?b:1;if(J.set(g,c-1),S(),1===c&&J.delete(g),H.includes(h)){let a=H.indexOf(h);a>=0&&H.splice(a,1),R(),e("up",!0,null)}}}(E,a,y,{coarse:Q,fine:T},(a,c,d)=>{if(!c)return void G("inactive");switch(a){case"down":{G("drag"),b=!1,U(d,'Expected event to be defined for "down" action'),B(E,d);let{onDragging:a,onPointerDown:c}=w.current;null==a||a(!0),null==c||c();break}case"move":{let{state:a}=P.current;b=!0,"drag"!==a&&G("hover"),U(d,'Expected event to be defined for "move" action'),N(d);break}case"up":{G("hover"),C();let{onClick:a,onDragging:c,onPointerUp:d}=w.current;null==c||c(!1),null==d||d(),b||null==a||a()}}})},[Q,y,c,T,A,E,N,B,C]),!function({disabled:a,handleId:b,resizeHandler:c,panelGroupElement:d}){(0,g.useEffect)(()=>{if(a||null==c||null==d)return;let e=ac(b,d);if(null==e)return;let f=a=>{if(!a.defaultPrevented)switch(a.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":a.preventDefault(),c(a);break;case"F6":{a.preventDefault();let c=e.getAttribute(i.groupId);U(c,`No group element found for id "${c}"`);let f=$(c,d),g=_(c,b,d);U(null!==g,`No resize element found for id "${b}"`);let h=a.shiftKey?g>0?g-1:f.length-1:g+1{e.removeEventListener("keydown",f)}},[d,a,b,c])}({disabled:c,handleId:E,resizeHandler:N,panelGroupElement:D}),(0,g.createElement)(r,{...s,children:a,className:b,id:e,onBlur:()=>{M(!1),null==f||f()},onFocus:()=>{M(!0),null==l||l()},ref:v,role:"separator",style:{touchAction:"none",userSelect:"none",...p},tabIndex:q,[i.groupDirection]:y,[i.groupId]:z,[i.resizeHandle]:"",[i.resizeHandleActive]:"drag"===F?"pointer":I?"keyboard":void 0,[i.resizeHandleEnabled]:!c,[i.resizeHandleId]:E,[i.resizeHandleState]:F})}al.displayName="PanelGroup",am.displayName="forwardRef(PanelGroup)",ap.displayName="PanelResizeHandle"},94684:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},96429:(a,b,c)=>{"use strict";c.d(b,{d:()=>e});let d={};function e(a,b){let c=b||d;return f(a,"boolean"!=typeof c.includeImageAlt||c.includeImageAlt,"boolean"!=typeof c.includeHtml||c.includeHtml)}function f(a,b,c){var d;if((d=a)&&"object"==typeof d){if("value"in a)return"html"!==a.type||c?a.value:"";if(b&&"alt"in a&&a.alt)return a.alt;if("children"in a)return g(a.children,b,c)}return Array.isArray(a)?g(a,b,c):""}function g(a,b,c){let d=[],e=-1;for(;++e{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("key-round",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]])},97150:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{addSearchParamsToPageSegments:function(){return m},handleAliasedPrefetchEntry:function(){return l}});let d=c(72454),e=c(97163),f=c(76143),g=c(11830),h=c(95812),i=c(28763),j=c(73486),k=c(3219);function l(a,b,c,l,n){let o,p=b.tree,q=b.cache,r=(0,g.createHrefFromUrl)(l),s=[];if("string"==typeof c)return!1;for(let b of c){if(!function a(b){if(!b)return!1;let c=b[2];if(b[3])return!0;for(let b in c)if(a(c[b]))return!0;return!1}(b.seedData))continue;let c=b.tree;c=m(c,Object.fromEntries(l.searchParams));let{seedData:g,isRootRender:j,pathToSegment:n}=b,t=["",...n];c=m(c,Object.fromEntries(l.searchParams));let u=(0,f.applyRouterStatePatchToTree)(t,p,c,r),v=(0,e.createEmptyCacheNode)();if(j&&g){let b=g[1];v.loading=g[3],v.rsc=b,function a(b,c,e,f,g){if(0!==Object.keys(f[1]).length)for(let i in f[1]){let j,k=f[1][i],l=k[0],m=(0,h.createRouterCacheKey)(l),n=null!==g&&void 0!==g[2][i]?g[2][i]:null;if(null!==n){let a=n[1],c=n[3];j={lazyData:null,rsc:l.includes(d.PAGE_SEGMENT_KEY)?null:a,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:c,navigatedAt:b}}else j={lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:null,navigatedAt:-1};let o=c.parallelRoutes.get(i);o?o.set(m,j):c.parallelRoutes.set(i,new Map([[m,j]])),a(b,j,e,k,n)}}(a,v,q,c,g)}else v.rsc=q.rsc,v.prefetchRsc=q.prefetchRsc,v.loading=q.loading,v.parallelRoutes=new Map(q.parallelRoutes),(0,i.fillCacheWithNewSubTreeDataButOnlyLoading)(a,v,q,b);for(let a of(u&&(p=u,q=v,o=!0),(0,k.generateSegmentsFromPatch)(c))){let c=[...b.pathToSegment,...a];c[c.length-1]!==d.DEFAULT_SEGMENT_KEY&&s.push(c)}}return!!o&&(n.patchedTree=p,n.cache=q,n.canonicalUrl=r,n.hashFragment=l.hash,n.scrollableSegments=s,(0,j.handleMutable)(b,n))}function m(a,b){let[c,e,...f]=a;if(c.includes(d.PAGE_SEGMENT_KEY))return[(0,d.addSearchParamsIfPageSegment)(c,b),e,...f];let g={};for(let[a,c]of Object.entries(e))g[a]=m(c,b);return[c,g,...f]}("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},97163:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{createEmptyCacheNode:function(){return G},createPrefetchURL:function(){return E},default:function(){return K},isExternalURL:function(){return D}});let d=c(35288),e=c(55823),f=c(21124),g=e._(c(38301)),h=c(12889),i=c(12591),j=c(11830),k=c(38398),l=c(22158),m=c(27963),n=c(92464),o=c(38065),p=c(47939),q=c(22398),r=c(25963),s=c(35103),t=c(33043),u=c(18151),v=c(58997),w=c(41439),x=c(69296),y=c(47847);c(30551);let z=d._(c(99384)),A=d._(c(54160)),B=c(12263),C={};function D(a){return a.origin!==window.location.origin}function E(a){let b;if((0,m.isBot)(window.navigator.userAgent))return null;try{b=new URL((0,n.addBasePath)(a),window.location.href)}catch(b){throw Object.defineProperty(Error("Cannot prefetch '"+a+"' because it cannot be converted to a URL."),"__NEXT_ERROR_CODE",{value:"E234",enumerable:!1,configurable:!0})}return D(b)?null:b}function F(a){let{appRouterState:b}=a;return(0,g.useInsertionEffect)(()=>{let{tree:a,pushRef:c,canonicalUrl:d}=b,e={...c.preserveCustomHistoryState?window.history.state:{},__NA:!0,__PRIVATE_NEXTJS_INTERNALS_TREE:a};c.pendingPush&&(0,j.createHrefFromUrl)(new URL(window.location.href))!==d?(c.pendingPush=!1,window.history.pushState(e,"",d)):window.history.replaceState(e,"",d)},[b]),(0,g.useEffect)(()=>{},[b.nextUrl,b.tree]),null}function G(){return{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:null,navigatedAt:-1}}function H(a){null==a&&(a={});let b=window.history.state,c=null==b?void 0:b.__NA;c&&(a.__NA=c);let d=null==b?void 0:b.__PRIVATE_NEXTJS_INTERNALS_TREE;return d&&(a.__PRIVATE_NEXTJS_INTERNALS_TREE=d),a}function I(a){let{headCacheNode:b}=a,c=null!==b?b.head:null,d=null!==b?b.prefetchHead:null,e=null!==d?d:c;return(0,g.useDeferredValue)(c,e)}function J(a){let b,{actionQueue:c,assetPrefix:d,globalError:e}=a,j=(0,l.useActionQueue)(c),{canonicalUrl:m}=j,{searchParams:n,pathname:v}=(0,g.useMemo)(()=>{let a=new URL(m,"http://n");return{searchParams:a.searchParams,pathname:(0,t.hasBasePath)(a.pathname)?(0,s.removeBasePath)(a.pathname):a.pathname}},[m]);(0,g.useEffect)(()=>{function a(a){var b;a.persisted&&(null==(b=window.history.state)?void 0:b.__PRIVATE_NEXTJS_INTERNALS_TREE)&&(C.pendingMpaPath=void 0,(0,l.dispatchAppRouterAction)({type:i.ACTION_RESTORE,url:new URL(window.location.href),tree:window.history.state.__PRIVATE_NEXTJS_INTERNALS_TREE}))}return window.addEventListener("pageshow",a),()=>{window.removeEventListener("pageshow",a)}},[]),(0,g.useEffect)(()=>{function a(a){let b="reason"in a?a.reason:a.error;if((0,y.isRedirectError)(b)){a.preventDefault();let c=(0,x.getURLFromRedirectError)(b);(0,x.getRedirectTypeFromError)(b)===y.RedirectType.push?w.publicAppRouterInstance.push(c,{}):w.publicAppRouterInstance.replace(c,{})}}return window.addEventListener("error",a),window.addEventListener("unhandledrejection",a),()=>{window.removeEventListener("error",a),window.removeEventListener("unhandledrejection",a)}},[]);let{pushRef:A}=j;if(A.mpaNavigation){if(C.pendingMpaPath!==m){let a=window.location;A.pendingPush?a.assign(m):a.replace(m),C.pendingMpaPath=m}throw r.unresolvedThenable}(0,g.useEffect)(()=>{let a=window.history.pushState.bind(window.history),b=window.history.replaceState.bind(window.history),c=a=>{var b;let c=window.location.href,d=null==(b=window.history.state)?void 0:b.__PRIVATE_NEXTJS_INTERNALS_TREE;(0,g.startTransition)(()=>{(0,l.dispatchAppRouterAction)({type:i.ACTION_RESTORE,url:new URL(null!=a?a:c,c),tree:d})})};window.history.pushState=function(b,d,e){return(null==b?void 0:b.__NA)||(null==b?void 0:b._N)||(b=H(b),e&&c(e)),a(b,d,e)},window.history.replaceState=function(a,d,e){return(null==a?void 0:a.__NA)||(null==a?void 0:a._N)||(a=H(a),e&&c(e)),b(a,d,e)};let d=a=>{if(a.state){if(!a.state.__NA)return void window.location.reload();(0,g.startTransition)(()=>{(0,w.dispatchTraverseAction)(window.location.href,a.state.__PRIVATE_NEXTJS_INTERNALS_TREE)})}};return window.addEventListener("popstate",d),()=>{window.history.pushState=a,window.history.replaceState=b,window.removeEventListener("popstate",d)}},[]);let{cache:D,tree:E,nextUrl:G,focusAndScrollRef:J}=j,K=(0,g.useMemo)(()=>(0,q.findHeadInCache)(D,E[1]),[D,E]),L=(0,g.useMemo)(()=>(0,u.getSelectedParams)(E),[E]),M=(0,g.useMemo)(()=>({parentTree:E,parentCacheNode:D,parentSegmentPath:null,url:m}),[E,D,m]),O=(0,g.useMemo)(()=>({tree:E,focusAndScrollRef:J,nextUrl:G}),[E,J,G]);if(null!==K){let[a,c,d]=K;b=(0,f.jsx)(I,{headCacheNode:a},d)}else b=null;let P=(0,f.jsxs)(p.RedirectBoundary,{children:[b,(0,f.jsx)(B.RootLayoutBoundary,{children:D.rsc}),(0,f.jsx)(o.AppRouterAnnouncer,{tree:E})]});return P=(0,f.jsx)(z.default,{errorComponent:e[0],errorStyles:e[1],children:P}),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(F,{appRouterState:j}),(0,f.jsx)(N,{}),(0,f.jsx)(k.PathParamsContext.Provider,{value:L,children:(0,f.jsx)(k.PathnameContext.Provider,{value:v,children:(0,f.jsx)(k.SearchParamsContext.Provider,{value:n,children:(0,f.jsx)(h.GlobalLayoutRouterContext.Provider,{value:O,children:(0,f.jsx)(h.AppRouterContext.Provider,{value:w.publicAppRouterInstance,children:(0,f.jsx)(h.LayoutRouterContext.Provider,{value:M,children:P})})})})})})]})}function K(a){let{actionQueue:b,globalErrorState:c,assetPrefix:d}=a;(0,v.useNavFailureHandler)();let e=(0,f.jsx)(J,{actionQueue:b,assetPrefix:d,globalError:c});return(0,f.jsx)(z.default,{errorComponent:A.default,children:e})}let L=new Set,M=new Set;function N(){let[,a]=g.default.useState(0),b=L.size;return(0,g.useEffect)(()=>{let c=()=>a(a=>a+1);return M.add(c),b!==L.size&&c(),()=>{M.delete(c)}},[b,a]),[...L].map((a,b)=>(0,f.jsx)("link",{rel:"stylesheet",href:""+a,precedence:"next"},b))}globalThis._N_E_STYLE_LOAD=function(a){let b=L.size;return L.add(a),L.size!==b&&M.forEach(a=>a()),Promise.resolve()},("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},97950:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]])},98688:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(23339).A)("wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]])},99384:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"default",{enumerable:!0,get:function(){return g}});let d=c(35288),e=c(21124);c(38301),c(57685);let f=c(94515);function g(a){let{children:b,errorComponent:c,errorStyles:d,errorScripts:g}=a;return(0,e.jsx)(f.ErrorBoundary,{errorComponent:c,errorStyles:d,errorScripts:g,children:b})}c(27963),("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)}}; \ No newline at end of file diff --git a/.next/server/chunks/6643.js b/.next/server/chunks/6643.js new file mode 100644 index 0000000000000000000000000000000000000000..e0e76359f371e9c4ef0a928b6f6696610b548dfd --- /dev/null +++ b/.next/server/chunks/6643.js @@ -0,0 +1,64 @@ +exports.id=6643,exports.ids=[6643],exports.modules={74051:(a,b,c)=>{"use strict";c.r(b),c.d(b,{closeAllConnections:()=>I,closeAnalyticsDatabase:()=>A,closeCoreDatabase:()=>C,closeDeploymentDatabase:()=>B,closeProjectDatabase:()=>G,closeRuntimeDatabase:()=>z,deleteDeploymentDatabase:()=>y,deleteProjectDatabase:()=>H,deploymentExists:()=>x,getAnalyticsDatabaseConnection:()=>v,getCoreDatabase:()=>t,getCoreDatabasePath:()=>L,getDeploymentDatabase:()=>w,getDeploymentDatabasePath:()=>K,getProjectDatabaseConnection:()=>F,getProjectDatabasePath:()=>D,getRuntimeDatabaseConnection:()=>u,listDeploymentIds:()=>J,projectDatabaseExists:()=>E});var d=c(87550),e=c.n(d),f=c(33873),g=c.n(f),h=c(29021),i=c.n(h);let j=null,k=new Map,l=new Map,m=new Map;function n(){return process.env.DATA_DIR||g().join(process.cwd(),"data")}function o(){let a=g().join(process.cwd(),"deployments"),b=g().join(process.cwd(),"sites");try{!i().existsSync(a)&&i().existsSync(b)&&i().renameSync(b,a)}catch{if(!i().existsSync(a))throw Error("Neither deployments/ nor sites/ directory exists")}return a}function p(a){i().existsSync(a)||i().mkdirSync(a,{recursive:!0})}function q(a,b){if(!/^[a-f0-9-]+$/i.test(a))throw Error(`Invalid ${b} format: ${a}`)}function r(a){a.pragma("journal_mode = WAL"),a.pragma("foreign_keys = ON"),a.pragma("synchronous = NORMAL"),a.pragma("cache_size = -64000"),a.pragma("temp_store = MEMORY")}function s(a,b){if(b&&!/^[a-f0-9-]+$/i.test(b))throw Error(`Invalid deployment ID format: ${b}`);let c=g().join(a,"deployment.sqlite"),d=g().join(a,"site.sqlite"),f=g().join(a,"runtime.sqlite"),h=g().join(a,"analytics.sqlite");if(i().existsSync(f))return;let j=null;if(i().existsSync(c)?j=c:i().existsSync(d)&&(j=d),j){var k=j;for(let a of(i().renameSync(k,f),["-wal","-shm"])){let b=k+a;i().existsSync(b)&&i().renameSync(b,f+a)}try{let a=new(e())(f);r(a);try{a.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='pageviews'").get()&&(a.exec(`ATTACH DATABASE '${h}' AS analytics_new`),a.exec(` + CREATE TABLE IF NOT EXISTS analytics_new.pageviews ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + page_path TEXT NOT NULL, + referrer TEXT, + country TEXT, + user_agent TEXT, + device_type TEXT, + session_id TEXT NOT NULL, + load_time INTEGER, + timestamp TEXT NOT NULL DEFAULT (datetime('now')) + ) + `),a.exec("CREATE INDEX IF NOT EXISTS analytics_new.idx_pageviews_timestamp ON pageviews(timestamp)"),a.exec("CREATE INDEX IF NOT EXISTS analytics_new.idx_pageviews_session_id ON pageviews(session_id)"),a.exec(` + CREATE TABLE IF NOT EXISTS analytics_new.interactions ( + id TEXT PRIMARY KEY, + session_id TEXT NOT NULL, + page_path TEXT NOT NULL, + interaction_type TEXT NOT NULL, + element_selector TEXT, + coordinates TEXT, + scroll_depth INTEGER, + time_on_page INTEGER, + timestamp TEXT NOT NULL DEFAULT (datetime('now')) + ) + `),a.exec("CREATE INDEX IF NOT EXISTS analytics_new.idx_interactions_page_path ON interactions(page_path)"),a.exec("CREATE INDEX IF NOT EXISTS analytics_new.idx_interactions_timestamp ON interactions(timestamp)"),a.exec(` + CREATE TABLE IF NOT EXISTS analytics_new.sessions ( + id TEXT PRIMARY KEY, + session_id TEXT NOT NULL, + entry_page TEXT, + exit_page TEXT, + page_count INTEGER DEFAULT 1, + duration INTEGER, + is_bounce INTEGER DEFAULT 1, + created_at TEXT NOT NULL DEFAULT (datetime('now')), + ended_at TEXT + ) + `),a.exec("CREATE INDEX IF NOT EXISTS analytics_new.idx_sessions_session_id ON sessions(session_id)"),a.exec("CREATE INDEX IF NOT EXISTS analytics_new.idx_sessions_created_at ON sessions(created_at)"),a.exec("INSERT INTO analytics_new.pageviews SELECT * FROM main.pageviews"),a.exec("INSERT INTO analytics_new.interactions SELECT * FROM main.interactions"),a.exec("INSERT INTO analytics_new.sessions SELECT * FROM main.sessions"),a.exec("DETACH DATABASE analytics_new"),a.exec("DROP TABLE IF EXISTS pageviews"),a.exec("DROP TABLE IF EXISTS interactions"),a.exec("DROP TABLE IF EXISTS sessions"))}finally{a.close()}}catch(a){console.error("[SQLite Migration] Failed to split deployment database:",a)}}}function t(){if(j)return j;let a=n();p(a);let b=g().join(a,"osws.sqlite");return r(j=new(e())(b)),j}function u(a){q(a,"deployment ID");let b=k.get(a);if(b)return b;let c=o(),d=g().join(c,a);p(d),s(d,a);let f=g().join(d,"runtime.sqlite"),h=new(e())(f);return r(h),k.set(a,h),h}function v(a){q(a,"deployment ID");let b=l.get(a);if(b)return b;let c=o(),d=g().join(c,a);p(d),s(d,a);let f=g().join(d,"analytics.sqlite"),h=new(e())(f);return r(h),l.set(a,h),h}function w(a){return u(a)}function x(a){q(a,"deployment ID");let b=o(),c=g().join(b,a),d=g().join(c,"runtime.sqlite"),e=g().join(c,"deployment.sqlite"),f=g().join(c,"site.sqlite");return i().existsSync(d)||i().existsSync(e)||i().existsSync(f)}function y(a){q(a,"deployment ID"),z(a),A(a);let b=o(),c=g().join(b,a);if(i().existsSync(c)){for(let a of i().readdirSync(c))i().unlinkSync(g().join(c,a));i().rmdirSync(c)}}function z(a){let b=k.get(a);if(b){try{b.close()}catch{}k.delete(a)}}function A(a){let b=l.get(a);if(b){try{b.close()}catch{}l.delete(a)}}function B(a){z(a),A(a)}function C(){if(j){try{j.close()}catch{}j=null}}function D(a){q(a,"project ID");let b=n();return g().join(b,"projects",a,"database.sqlite")}function E(a){return i().existsSync(D(a))}function F(a){q(a,"project ID");let b=m.get(a);if(b)return b;let c=n(),d=g().join(c,"projects",a);p(d);let f=g().join(d,"database.sqlite"),h=new(e())(f);return r(h),m.set(a,h),h}function G(a){let b=m.get(a);if(b){try{b.close()}catch{}m.delete(a)}}function H(a){q(a,"project ID"),G(a);let b=n(),c=g().join(b,"projects",a);if(i().existsSync(c)){for(let a of i().readdirSync(c))i().unlinkSync(g().join(c,a));i().rmdirSync(c)}}function I(){for(let[a]of k)z(a);for(let[a]of l)A(a);for(let[a]of m)G(a);C()}function J(){let a=o();return i().existsSync(a)?i().readdirSync(a,{withFileTypes:!0}).filter(a=>a.isDirectory()).filter(b=>{let c=g().join(a,b.name);return i().existsSync(g().join(c,"runtime.sqlite"))||i().existsSync(g().join(c,"deployment.sqlite"))||i().existsSync(g().join(c,"site.sqlite"))}).map(a=>a.name):[]}function K(a){q(a,"deployment ID");let b=o();return g().join(b,a,"runtime.sqlite")}function L(){let a=n();return g().join(a,"osws.sqlite")}},78335:()=>{},94471:(a,b,c)=>{"use strict";c.d(b,{XO:()=>h,ad:()=>g,p1:()=>i});var d=c(55511);let e=null;function f(){if(!e){let{getCoreDatabase:a}=c(74051);e=a()}return e}function g(a){try{var b;let c=f();if(!c)return;let e=(b=a.ip)&&"unknown"!==b?(0,d.createHash)("sha256").update(b).digest("hex").substring(0,8):"unknown",g=a.userAgent?.substring(0,255)||"";c.prepare(` + INSERT INTO request_log (site_id, path, status_code, ip_hash, user_agent, timestamp) + VALUES (?, ?, ?, ?, ?, datetime('now')) + `).run(a.deploymentId,a.path,a.statusCode,e,g)}catch(a){console.error("[RequestLogger] Failed to log request:",a)}}function h(a=24){try{let a=f();if(!a)return{requestsLastHour:0,requestsLastDay:0,errorCount:0,topDeployments:[],recentErrors:[]};let b=a.prepare(` + SELECT COUNT(*) as count FROM request_log + WHERE timestamp > datetime('now', '-1 hour') + `).get(),c=a.prepare(` + SELECT COUNT(*) as count FROM request_log + WHERE timestamp > datetime('now', '-24 hours') + `).get(),d=a.prepare(` + SELECT COUNT(*) as count FROM request_log + WHERE timestamp > datetime('now', '-24 hours') + AND status_code >= 400 + `).get(),e=a.prepare(` + SELECT site_id as deploymentId, COUNT(*) as count FROM request_log + WHERE timestamp > datetime('now', '-24 hours') + GROUP BY site_id + ORDER BY count DESC + LIMIT 10 + `).all(),g=a.prepare(` + SELECT site_id as deploymentId, path, status_code as statusCode, timestamp FROM request_log + WHERE status_code >= 400 + ORDER BY timestamp DESC + LIMIT 10 + `).all();return{requestsLastHour:b.count,requestsLastDay:c.count,errorCount:d.count,topDeployments:e,recentErrors:g}}catch(a){return console.error("[RequestLogger] Failed to get stats:",a),{requestsLastHour:0,requestsLastDay:0,errorCount:0,topDeployments:[],recentErrors:[]}}}function i(a=7){try{let b=f();if(!b)return 0;return b.prepare(` + DELETE FROM request_log + WHERE timestamp < datetime('now', '-' || ? || ' days') + `).run(a).changes}catch(a){return console.error("[RequestLogger] Failed to cleanup logs:",a),0}}},96487:()=>{}}; \ No newline at end of file diff --git a/.next/server/chunks/8704.js b/.next/server/chunks/70.js similarity index 54% rename from .next/server/chunks/8704.js rename to .next/server/chunks/70.js index ca5ab1052a1f5c5a1cb9adcb0fe2839c74771f97..d94d336e96d33d4dc1178b527b8f24533063e953 100644 --- a/.next/server/chunks/8704.js +++ b/.next/server/chunks/70.js @@ -1,4 +1,40 @@ -"use strict";exports.id=8704,exports.ids=[3614,8704],exports.modules={13614:(a,b,c)=>{c.d(b,{L9:()=>o,P4:()=>t,_u:()=>r,bD:()=>s,hc:()=>p,listSiteIds:()=>u,uD:()=>q});var d=c(87550),e=c.n(d),f=c(33873),g=c.n(f),h=c(29021),i=c.n(h);let j=null,k=new Map;function l(){return g().join(process.cwd(),"sites")}function m(a){i().existsSync(a)||i().mkdirSync(a,{recursive:!0})}function n(a){a.pragma("journal_mode = WAL"),a.pragma("foreign_keys = ON"),a.pragma("synchronous = NORMAL"),a.pragma("cache_size = -64000"),a.pragma("temp_store = MEMORY")}function o(){if(j)return j;let a=process.env.DATA_DIR||g().join(process.cwd(),"data");m(a);let b=g().join(a,"osws.sqlite");return n(j=new(e())(b)),j}function p(a){let b=k.get(a);if(b)return b;let c=l(),d=g().join(c,a);m(d);let f=g().join(d,"site.sqlite"),h=new(e())(f);return n(h),k.set(a,h),h}function q(a){let b=l(),c=g().join(b,a,"site.sqlite");return i().existsSync(c)}function r(a){s(a);let b=l(),c=g().join(b,a);if(i().existsSync(c)){for(let a of i().readdirSync(c))i().unlinkSync(g().join(c,a));i().rmdirSync(c)}}function s(a){let b=k.get(a);if(b){try{b.close()}catch{}k.delete(a)}}function t(){for(let[a]of k)s(a);if(j){try{j.close()}catch{}j=null}}function u(){let a=l();return i().existsSync(a)?i().readdirSync(a,{withFileTypes:!0}).filter(a=>a.isDirectory()).filter(b=>i().existsSync(g().join(a,b.name,"site.sqlite"))).map(a=>a.name):[]}},28704:(a,b,c)=>{c.d(b,{getSQLiteAdapter:()=>A});var d=c(13614),e=c(55511);let f={randomUUID:e.randomUUID},g=new Uint8Array(256),h=g.length,i=[];for(let a=0;a<256;++a)i.push((a+256).toString(16).slice(1));let j=function(a,b,c){if(f.randomUUID&&!b&&!a)return f.randomUUID();let d=(a=a||{}).random??a.rng?.()??(h>g.length-16&&((0,e.randomFillSync)(g),h=0),g.slice(h,h+=16));if(d.length<16)throw Error("Random bytes length must be >= 16");if(d[6]=15&d[6]|64,d[8]=63&d[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=d[a];return b}return function(a,b=0){return(i[a[b+0]]+i[a[b+1]]+i[a[b+2]]+i[a[b+3]]+"-"+i[a[b+4]]+i[a[b+5]]+"-"+i[a[b+6]]+i[a[b+7]]+"-"+i[a[b+8]]+i[a[b+9]]+"-"+i[a[b+10]]+i[a[b+11]]+i[a[b+12]]+i[a[b+13]]+i[a[b+14]]+i[a[b+15]]).toLowerCase()}(d)};var k=c(54605);function l(a){return a?"string"==typeof a?a:a.toISOString():null}function m(a){return"string"==typeof a?a:a.toISOString()}function n(a,b){if(!a)return b;try{return JSON.parse(a)}catch{return b}}function o(a){return a?new Date(a):new Date}class p{constructor(a){this.initialized=!1,this.siteId=a,this.db=(0,d.hc)(a)}init(){this.initialized||(this.db.exec(` +"use strict";exports.id=70,exports.ids=[70,3614],exports.modules={13614:(a,b,c)=>{c.d(b,{Bw:()=>A,Ez:()=>z,Hz:()=>B,Ib:()=>y,L9:()=>t,P4:()=>D,Ul:()=>v,listDeploymentIds:()=>E,q$:()=>C,qM:()=>x,sN:()=>u,yF:()=>w});var d=c(87550),e=c.n(d),f=c(33873),g=c.n(f),h=c(29021),i=c.n(h);let j=null,k=new Map,l=new Map,m=new Map;function n(){return process.env.DATA_DIR||g().join(process.cwd(),"data")}function o(){let a=g().join(process.cwd(),"deployments"),b=g().join(process.cwd(),"sites");try{!i().existsSync(a)&&i().existsSync(b)&&i().renameSync(b,a)}catch{if(!i().existsSync(a))throw Error("Neither deployments/ nor sites/ directory exists")}return a}function p(a){i().existsSync(a)||i().mkdirSync(a,{recursive:!0})}function q(a,b){if(!/^[a-f0-9-]+$/i.test(a))throw Error(`Invalid ${b} format: ${a}`)}function r(a){a.pragma("journal_mode = WAL"),a.pragma("foreign_keys = ON"),a.pragma("synchronous = NORMAL"),a.pragma("cache_size = -64000"),a.pragma("temp_store = MEMORY")}function s(a,b){if(b&&!/^[a-f0-9-]+$/i.test(b))throw Error(`Invalid deployment ID format: ${b}`);let c=g().join(a,"deployment.sqlite"),d=g().join(a,"site.sqlite"),f=g().join(a,"runtime.sqlite"),h=g().join(a,"analytics.sqlite");if(i().existsSync(f))return;let j=null;if(i().existsSync(c)?j=c:i().existsSync(d)&&(j=d),j){var k=j;for(let a of(i().renameSync(k,f),["-wal","-shm"])){let b=k+a;i().existsSync(b)&&i().renameSync(b,f+a)}try{let a=new(e())(f);r(a);try{a.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='pageviews'").get()&&(a.exec(`ATTACH DATABASE '${h}' AS analytics_new`),a.exec(` + CREATE TABLE IF NOT EXISTS analytics_new.pageviews ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + page_path TEXT NOT NULL, + referrer TEXT, + country TEXT, + user_agent TEXT, + device_type TEXT, + session_id TEXT NOT NULL, + load_time INTEGER, + timestamp TEXT NOT NULL DEFAULT (datetime('now')) + ) + `),a.exec("CREATE INDEX IF NOT EXISTS analytics_new.idx_pageviews_timestamp ON pageviews(timestamp)"),a.exec("CREATE INDEX IF NOT EXISTS analytics_new.idx_pageviews_session_id ON pageviews(session_id)"),a.exec(` + CREATE TABLE IF NOT EXISTS analytics_new.interactions ( + id TEXT PRIMARY KEY, + session_id TEXT NOT NULL, + page_path TEXT NOT NULL, + interaction_type TEXT NOT NULL, + element_selector TEXT, + coordinates TEXT, + scroll_depth INTEGER, + time_on_page INTEGER, + timestamp TEXT NOT NULL DEFAULT (datetime('now')) + ) + `),a.exec("CREATE INDEX IF NOT EXISTS analytics_new.idx_interactions_page_path ON interactions(page_path)"),a.exec("CREATE INDEX IF NOT EXISTS analytics_new.idx_interactions_timestamp ON interactions(timestamp)"),a.exec(` + CREATE TABLE IF NOT EXISTS analytics_new.sessions ( + id TEXT PRIMARY KEY, + session_id TEXT NOT NULL, + entry_page TEXT, + exit_page TEXT, + page_count INTEGER DEFAULT 1, + duration INTEGER, + is_bounce INTEGER DEFAULT 1, + created_at TEXT NOT NULL DEFAULT (datetime('now')), + ended_at TEXT + ) + `),a.exec("CREATE INDEX IF NOT EXISTS analytics_new.idx_sessions_session_id ON sessions(session_id)"),a.exec("CREATE INDEX IF NOT EXISTS analytics_new.idx_sessions_created_at ON sessions(created_at)"),a.exec("INSERT INTO analytics_new.pageviews SELECT * FROM main.pageviews"),a.exec("INSERT INTO analytics_new.interactions SELECT * FROM main.interactions"),a.exec("INSERT INTO analytics_new.sessions SELECT * FROM main.sessions"),a.exec("DETACH DATABASE analytics_new"),a.exec("DROP TABLE IF EXISTS pageviews"),a.exec("DROP TABLE IF EXISTS interactions"),a.exec("DROP TABLE IF EXISTS sessions"))}finally{a.close()}}catch(a){console.error("[SQLite Migration] Failed to split deployment database:",a)}}}function t(){if(j)return j;let a=n();p(a);let b=g().join(a,"osws.sqlite");return r(j=new(e())(b)),j}function u(a){q(a,"deployment ID");let b=k.get(a);if(b)return b;let c=o(),d=g().join(c,a);p(d),s(d,a);let f=g().join(d,"runtime.sqlite"),h=new(e())(f);return r(h),k.set(a,h),h}function v(a){q(a,"deployment ID");let b=l.get(a);if(b)return b;let c=o(),d=g().join(c,a);p(d),s(d,a);let f=g().join(d,"analytics.sqlite"),h=new(e())(f);return r(h),l.set(a,h),h}function w(a){q(a,"deployment ID");let b=o(),c=g().join(b,a),d=g().join(c,"runtime.sqlite"),e=g().join(c,"deployment.sqlite"),f=g().join(c,"site.sqlite");return i().existsSync(d)||i().existsSync(e)||i().existsSync(f)}function x(a){q(a,"deployment ID"),y(a),z(a);let b=o(),c=g().join(b,a);if(i().existsSync(c)){for(let a of i().readdirSync(c))i().unlinkSync(g().join(c,a));i().rmdirSync(c)}}function y(a){let b=k.get(a);if(b){try{b.close()}catch{}k.delete(a)}}function z(a){let b=l.get(a);if(b){try{b.close()}catch{}l.delete(a)}}function A(a){q(a,"project ID");let b=m.get(a);if(b)return b;let c=n(),d=g().join(c,"projects",a);p(d);let f=g().join(d,"database.sqlite"),h=new(e())(f);return r(h),m.set(a,h),h}function B(a){let b=m.get(a);if(b){try{b.close()}catch{}m.delete(a)}}function C(a){q(a,"project ID"),B(a);let b=n(),c=g().join(b,"projects",a);if(i().existsSync(c)){for(let a of i().readdirSync(c))i().unlinkSync(g().join(c,a));i().rmdirSync(c)}}function D(){for(let[a]of k)y(a);for(let[a]of l)z(a);for(let[a]of m)B(a);if(j){try{j.close()}catch{}j=null}}function E(){let a=o();return i().existsSync(a)?i().readdirSync(a,{withFileTypes:!0}).filter(a=>a.isDirectory()).filter(b=>{let c=g().join(a,b.name);return i().existsSync(g().join(c,"runtime.sqlite"))||i().existsSync(g().join(c,"deployment.sqlite"))||i().existsSync(g().join(c,"site.sqlite"))}).map(a=>a.name):[]}},40070:(a,b,c)=>{c.d(b,{getSQLiteAdapter:()=>D});var d=c(13614),e=c(55511);let f={randomUUID:e.randomUUID},g=new Uint8Array(256),h=g.length,i=[];for(let a=0;a<256;++a)i.push((a+256).toString(16).slice(1));let j=function(a,b,c){if(f.randomUUID&&!b&&!a)return f.randomUUID();let d=(a=a||{}).random??a.rng?.()??(h>g.length-16&&((0,e.randomFillSync)(g),h=0),g.slice(h,h+=16));if(d.length<16)throw Error("Random bytes length must be >= 16");if(d[6]=15&d[6]|64,d[8]=63&d[8]|128,b){if((c=c||0)<0||c+16>b.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[c+a]=d[a];return b}return function(a,b=0){return(i[a[b+0]]+i[a[b+1]]+i[a[b+2]]+i[a[b+3]]+"-"+i[a[b+4]]+i[a[b+5]]+"-"+i[a[b+6]]+i[a[b+7]]+"-"+i[a[b+8]]+i[a[b+9]]+"-"+i[a[b+10]]+i[a[b+11]]+i[a[b+12]]+i[a[b+13]]+i[a[b+14]]+i[a[b+15]]).toLowerCase()}(d)};var k=c(54605);function l(a){return a?"string"==typeof a?a:a.toISOString():null}function m(a){return"string"==typeof a?a:a.toISOString()}function n(a,b){if(!a)return b;try{return JSON.parse(a)}catch{return b}}function o(a){return a?new Date(a):new Date}class p{constructor(a){this.initialized=!1,this.deploymentId=a,this.db=(0,d.sN)(a)}init(){this.initialized||(this.db.exec(` CREATE TABLE IF NOT EXISTS site_info ( id TEXT PRIMARY KEY DEFAULT 'main', project_id TEXT NOT NULL, @@ -34,9 +70,7 @@ updated_at TEXT NOT NULL, metadata TEXT DEFAULT '{}' ) - `),this.db.exec(` - CREATE INDEX IF NOT EXISTS idx_files_path ON files(path) - `),this.db.exec(` + `),this.db.exec("CREATE INDEX IF NOT EXISTS idx_files_path ON files(path)"),this.db.exec(` CREATE TABLE IF NOT EXISTS file_tree_nodes ( id TEXT PRIMARY KEY, path TEXT NOT NULL UNIQUE, @@ -47,57 +81,7 @@ children TEXT DEFAULT '[]', metadata TEXT DEFAULT '{}' ) - `),this.db.exec(` - CREATE INDEX IF NOT EXISTS idx_tree_nodes_parent_path ON file_tree_nodes(parent_path) - `),this.db.exec(` - CREATE TABLE IF NOT EXISTS pageviews ( - id INTEGER PRIMARY KEY AUTOINCREMENT, - page_path TEXT NOT NULL, - referrer TEXT, - country TEXT, - user_agent TEXT, - device_type TEXT, - session_id TEXT NOT NULL, - load_time INTEGER, - timestamp TEXT NOT NULL DEFAULT (datetime('now')) - ) - `),this.db.exec(` - CREATE INDEX IF NOT EXISTS idx_pageviews_timestamp ON pageviews(timestamp) - `),this.db.exec(` - CREATE INDEX IF NOT EXISTS idx_pageviews_session_id ON pageviews(session_id) - `),this.db.exec(` - CREATE TABLE IF NOT EXISTS interactions ( - id TEXT PRIMARY KEY, - session_id TEXT NOT NULL, - page_path TEXT NOT NULL, - interaction_type TEXT NOT NULL, - element_selector TEXT, - coordinates TEXT, - scroll_depth INTEGER, - time_on_page INTEGER, - timestamp TEXT NOT NULL DEFAULT (datetime('now')) - ) - `),this.db.exec(` - CREATE INDEX IF NOT EXISTS idx_interactions_page_path ON interactions(page_path) - `),this.db.exec(` - CREATE INDEX IF NOT EXISTS idx_interactions_timestamp ON interactions(timestamp) - `),this.db.exec(` - CREATE TABLE IF NOT EXISTS sessions ( - id TEXT PRIMARY KEY, - session_id TEXT NOT NULL, - entry_page TEXT, - exit_page TEXT, - page_count INTEGER DEFAULT 1, - duration INTEGER, - is_bounce INTEGER DEFAULT 1, - created_at TEXT NOT NULL DEFAULT (datetime('now')), - ended_at TEXT - ) - `),this.db.exec(` - CREATE INDEX IF NOT EXISTS idx_sessions_session_id ON sessions(session_id) - `),this.db.exec(` - CREATE INDEX IF NOT EXISTS idx_sessions_created_at ON sessions(created_at) - `),this.db.exec(` + `),this.db.exec("CREATE INDEX IF NOT EXISTS idx_tree_nodes_parent_path ON file_tree_nodes(parent_path)"),this.db.exec(` CREATE TABLE IF NOT EXISTS edge_functions ( id TEXT PRIMARY KEY, name TEXT NOT NULL UNIQUE, @@ -109,9 +93,7 @@ created_at TEXT NOT NULL, updated_at TEXT NOT NULL ) - `),this.db.exec(` - CREATE INDEX IF NOT EXISTS idx_edge_functions_name ON edge_functions(name) - `),this.db.exec(` + `),this.db.exec("CREATE INDEX IF NOT EXISTS idx_edge_functions_name ON edge_functions(name)"),this.db.exec(` CREATE TABLE IF NOT EXISTS function_logs ( id INTEGER PRIMARY KEY AUTOINCREMENT, function_id TEXT NOT NULL, @@ -123,11 +105,7 @@ timestamp TEXT NOT NULL DEFAULT (datetime('now')), FOREIGN KEY (function_id) REFERENCES edge_functions(id) ON DELETE CASCADE ) - `),this.db.exec(` - CREATE INDEX IF NOT EXISTS idx_function_logs_function_id ON function_logs(function_id) - `),this.db.exec(` - CREATE INDEX IF NOT EXISTS idx_function_logs_timestamp ON function_logs(timestamp) - `),this.db.exec(` + `),this.db.exec("CREATE INDEX IF NOT EXISTS idx_function_logs_function_id ON function_logs(function_id)"),this.db.exec("CREATE INDEX IF NOT EXISTS idx_function_logs_timestamp ON function_logs(timestamp)"),this.db.exec(` CREATE TABLE IF NOT EXISTS server_functions ( id TEXT PRIMARY KEY, name TEXT NOT NULL UNIQUE, @@ -137,9 +115,7 @@ created_at TEXT NOT NULL, updated_at TEXT NOT NULL ) - `),this.db.exec(` - CREATE INDEX IF NOT EXISTS idx_server_functions_name ON server_functions(name) - `),this.db.exec(` + `),this.db.exec("CREATE INDEX IF NOT EXISTS idx_server_functions_name ON server_functions(name)"),this.db.exec(` CREATE TABLE IF NOT EXISTS secrets ( id TEXT PRIMARY KEY, name TEXT NOT NULL UNIQUE, @@ -150,9 +126,7 @@ created_at TEXT NOT NULL, updated_at TEXT NOT NULL ) - `),this.db.exec(` - CREATE INDEX IF NOT EXISTS idx_secrets_name ON secrets(name) - `),this.db.exec(` + `),this.db.exec("CREATE INDEX IF NOT EXISTS idx_secrets_name ON secrets(name)"),this.db.exec(` CREATE TABLE IF NOT EXISTS scheduled_functions ( id TEXT PRIMARY KEY, name TEXT NOT NULL UNIQUE, @@ -171,11 +145,7 @@ updated_at TEXT NOT NULL, FOREIGN KEY (function_id) REFERENCES edge_functions(id) ON DELETE CASCADE ) - `),this.db.exec(` - CREATE INDEX IF NOT EXISTS idx_scheduled_functions_name ON scheduled_functions(name) - `),this.db.exec(` - CREATE INDEX IF NOT EXISTS idx_scheduled_functions_next_run ON scheduled_functions(next_run_at) - `),this.initialized=!0)}close(){(0,d.bD)(this.siteId)}createSiteInfo(a){this.db.prepare(` + `),this.db.exec("CREATE INDEX IF NOT EXISTS idx_scheduled_functions_name ON scheduled_functions(name)"),this.db.exec("CREATE INDEX IF NOT EXISTS idx_scheduled_functions_next_run ON scheduled_functions(next_run_at)"),this.initialized=!0)}close(){(0,d.Ib)(this.deploymentId)}createDeploymentInfo(a){this.db.prepare(` INSERT OR REPLACE INTO site_info ( id, project_id, name, slug, enabled, under_construction, custom_domain, head_scripts, body_scripts, cdn_links, @@ -185,7 +155,7 @@ ) VALUES ( 'main', ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? ) - `).run(a.projectId,a.name,a.slug??null,+!!a.enabled,+!!a.underConstruction,a.customDomain??null,JSON.stringify(a.headScripts??[]),JSON.stringify(a.bodyScripts??[]),JSON.stringify(a.cdnLinks??[]),JSON.stringify(a.analytics??{}),JSON.stringify(a.seo??{}),JSON.stringify(a.compliance??{}),a.settingsVersion??1,a.lastPublishedVersion??null,a.previewImage??null,l(a.previewUpdatedAt),m(a.createdAt),m(a.updatedAt),l(a.publishedAt))}getSiteInfo(){let a=this.db.prepare("SELECT * FROM site_info WHERE id = ?").get("main");return a?{id:this.siteId,projectId:a.project_id,name:a.name,slug:a.slug,enabled:!!a.enabled,underConstruction:!!a.under_construction,customDomain:a.custom_domain,headScripts:n(a.head_scripts,[]),bodyScripts:n(a.body_scripts,[]),cdnLinks:n(a.cdn_links,[]),analytics:n(a.analytics,{enabled:!1,provider:"builtin",privacyMode:!0}),seo:n(a.seo,{}),compliance:n(a.compliance,{enabled:!1,bannerPosition:"bottom",bannerStyle:"bar",message:"",acceptButtonText:"Accept",declineButtonText:"Decline",mode:"opt-in",blockAnalytics:!1}),settingsVersion:a.settings_version,lastPublishedVersion:a.last_published_version,previewImage:a.preview_image,previewUpdatedAt:a.preview_updated_at?o(a.preview_updated_at):void 0,createdAt:o(a.created_at),updatedAt:o(a.updated_at),publishedAt:a.published_at?o(a.published_at):null}:null}updateSiteInfo(a){let b=[],c=[];if(void 0!==a.name&&(b.push("name = ?"),c.push(a.name)),void 0!==a.slug&&(b.push("slug = ?"),c.push(a.slug)),void 0!==a.enabled&&(b.push("enabled = ?"),c.push(+!!a.enabled)),void 0!==a.underConstruction&&(b.push("under_construction = ?"),c.push(+!!a.underConstruction)),void 0!==a.customDomain&&(b.push("custom_domain = ?"),c.push(a.customDomain)),void 0!==a.headScripts&&(b.push("head_scripts = ?"),c.push(JSON.stringify(a.headScripts))),void 0!==a.bodyScripts&&(b.push("body_scripts = ?"),c.push(JSON.stringify(a.bodyScripts))),void 0!==a.cdnLinks&&(b.push("cdn_links = ?"),c.push(JSON.stringify(a.cdnLinks))),void 0!==a.analytics&&(b.push("analytics = ?"),c.push(JSON.stringify(a.analytics))),void 0!==a.seo&&(b.push("seo = ?"),c.push(JSON.stringify(a.seo))),void 0!==a.compliance&&(b.push("compliance = ?"),c.push(JSON.stringify(a.compliance))),void 0!==a.settingsVersion&&(b.push("settings_version = ?"),c.push(a.settingsVersion)),void 0!==a.lastPublishedVersion&&(b.push("last_published_version = ?"),c.push(a.lastPublishedVersion)),void 0!==a.previewImage&&(b.push("preview_image = ?"),c.push(a.previewImage)),void 0!==a.previewUpdatedAt&&(b.push("preview_updated_at = ?"),c.push(l(a.previewUpdatedAt))),void 0!==a.updatedAt&&(b.push("updated_at = ?"),c.push(m(a.updatedAt))),void 0!==a.publishedAt&&(b.push("published_at = ?"),c.push(l(a.publishedAt))),0===b.length)return;a.updatedAt||(b.push("updated_at = ?"),c.push(new Date().toISOString()));let d=`UPDATE site_info SET ${b.join(", ")} WHERE id = 'main'`;this.db.prepare(d).run(...c)}createFile(a){let b,c=this.db.prepare(` + `).run(a.projectId,a.name,a.slug??null,+!!a.enabled,+!!a.underConstruction,a.customDomain??null,JSON.stringify(a.headScripts??[]),JSON.stringify(a.bodyScripts??[]),JSON.stringify(a.cdnLinks??[]),JSON.stringify(a.analytics??{}),JSON.stringify(a.seo??{}),JSON.stringify(a.compliance??{}),a.settingsVersion??1,a.lastPublishedVersion??null,a.previewImage??null,l(a.previewUpdatedAt),m(a.createdAt),m(a.updatedAt),l(a.publishedAt))}getDeploymentInfo(){let a=this.db.prepare("SELECT * FROM site_info WHERE id = ?").get("main");return a?{id:this.deploymentId,projectId:a.project_id,name:a.name,slug:a.slug,enabled:!!a.enabled,underConstruction:!!a.under_construction,customDomain:a.custom_domain,headScripts:n(a.head_scripts,[]),bodyScripts:n(a.body_scripts,[]),cdnLinks:n(a.cdn_links,[]),analytics:n(a.analytics,{enabled:!1,provider:"builtin",privacyMode:!0}),seo:n(a.seo,{}),compliance:n(a.compliance,{enabled:!1,bannerPosition:"bottom",bannerStyle:"bar",message:"",acceptButtonText:"Accept",declineButtonText:"Decline",mode:"opt-in",blockAnalytics:!1}),settingsVersion:a.settings_version,lastPublishedVersion:a.last_published_version,previewImage:a.preview_image,previewUpdatedAt:a.preview_updated_at?o(a.preview_updated_at):void 0,createdAt:o(a.created_at),updatedAt:o(a.updated_at),publishedAt:a.published_at?o(a.published_at):null}:null}updateDeploymentInfo(a){let b=[],c=[];if(void 0!==a.name&&(b.push("name = ?"),c.push(a.name)),void 0!==a.slug&&(b.push("slug = ?"),c.push(a.slug)),void 0!==a.enabled&&(b.push("enabled = ?"),c.push(+!!a.enabled)),void 0!==a.underConstruction&&(b.push("under_construction = ?"),c.push(+!!a.underConstruction)),void 0!==a.customDomain&&(b.push("custom_domain = ?"),c.push(a.customDomain)),void 0!==a.headScripts&&(b.push("head_scripts = ?"),c.push(JSON.stringify(a.headScripts))),void 0!==a.bodyScripts&&(b.push("body_scripts = ?"),c.push(JSON.stringify(a.bodyScripts))),void 0!==a.cdnLinks&&(b.push("cdn_links = ?"),c.push(JSON.stringify(a.cdnLinks))),void 0!==a.analytics&&(b.push("analytics = ?"),c.push(JSON.stringify(a.analytics))),void 0!==a.seo&&(b.push("seo = ?"),c.push(JSON.stringify(a.seo))),void 0!==a.compliance&&(b.push("compliance = ?"),c.push(JSON.stringify(a.compliance))),void 0!==a.settingsVersion&&(b.push("settings_version = ?"),c.push(a.settingsVersion)),void 0!==a.lastPublishedVersion&&(b.push("last_published_version = ?"),c.push(a.lastPublishedVersion)),void 0!==a.previewImage&&(b.push("preview_image = ?"),c.push(a.previewImage)),void 0!==a.previewUpdatedAt&&(b.push("preview_updated_at = ?"),c.push(l(a.previewUpdatedAt))),void 0!==a.updatedAt&&(b.push("updated_at = ?"),c.push(m(a.updatedAt))),void 0!==a.publishedAt&&(b.push("published_at = ?"),c.push(l(a.publishedAt))),0===b.length)return;a.updatedAt||(b.push("updated_at = ?"),c.push(new Date().toISOString()));let d=`UPDATE site_info SET ${b.join(", ")} WHERE id = 'main'`;this.db.prepare(d).run(...c)}createFile(a){let b,c=this.db.prepare(` INSERT INTO files ( id, path, name, type, content, mime_type, size, created_at, updated_at, metadata @@ -195,14 +165,92 @@ name = ?, type = ?, content = ?, mime_type = ?, size = ?, updated_at = ?, metadata = ? WHERE path = ? - `);b=a.content instanceof ArrayBuffer?Buffer.from(a.content).toString("base64"):"string"==typeof a.content?a.content:"",c.run(a.name,a.type,b,a.mimeType??null,a.size??0,m(a.updatedAt),JSON.stringify(a.metadata??{}),a.path)}deleteFile(a){this.db.prepare("DELETE FROM files WHERE path = ?").run(a)}listFiles(){return this.db.prepare("SELECT * FROM files ORDER BY path").all().map(a=>this.rowToFile(a))}deleteAllFiles(){this.db.prepare("DELETE FROM files").run()}rowToFile(a){let b=n(a.metadata,{}),c=a.type,d=a.content;if("image"===c||"video"===c||"binary"===c)try{let a=d;if(a.startsWith("data:")){let b=a.indexOf(",");-1!==b&&(a=a.slice(b+1))}d=Buffer.from(a,"base64").buffer}catch{}return{id:a.id,projectId:this.siteId,path:a.path,name:a.name,type:c,content:d,mimeType:a.mime_type,size:a.size,createdAt:o(a.created_at),updatedAt:o(a.updated_at),metadata:b}}createTreeNode(a){this.db.prepare(` + `);b=a.content instanceof ArrayBuffer?Buffer.from(a.content).toString("base64"):"string"==typeof a.content?a.content:"",c.run(a.name,a.type,b,a.mimeType??null,a.size??0,m(a.updatedAt),JSON.stringify(a.metadata??{}),a.path)}deleteFile(a){this.db.prepare("DELETE FROM files WHERE path = ?").run(a)}listFiles(){return this.db.prepare("SELECT * FROM files ORDER BY path").all().map(a=>this.rowToFile(a))}deleteAllFiles(){this.db.prepare("DELETE FROM files").run()}rowToFile(a){let b=n(a.metadata,{}),c=a.type,d=a.content;if("image"===c||"video"===c||"binary"===c)try{let a=d;if(a.startsWith("data:")){let b=a.indexOf(",");-1!==b&&(a=a.slice(b+1))}d=Buffer.from(a,"base64").buffer}catch{}return{id:a.id,projectId:this.deploymentId,path:a.path,name:a.name,type:c,content:d,mimeType:a.mime_type,size:a.size,createdAt:o(a.created_at),updatedAt:o(a.updated_at),metadata:b}}createTreeNode(a){this.db.prepare(` INSERT INTO file_tree_nodes (id, path, name, type, parent_path, is_expanded, children, metadata) VALUES (?, ?, ?, ?, ?, ?, ?, ?) `).run(a.id,a.path,a.name,a.type,a.parentPath,+!!a.isExpanded,JSON.stringify(a.children??[]),JSON.stringify(a.metadata??{}))}getTreeNode(a){let b=this.db.prepare("SELECT * FROM file_tree_nodes WHERE path = ?").get(a);return b?this.rowToTreeNode(b):null}updateTreeNode(a){this.db.prepare(` UPDATE file_tree_nodes SET name = ?, type = ?, parent_path = ?, is_expanded = ?, children = ?, metadata = ? WHERE path = ? - `).run(a.name,a.type,a.parentPath,+!!a.isExpanded,JSON.stringify(a.children??[]),JSON.stringify(a.metadata??{}),a.path)}deleteTreeNode(a){this.db.prepare("DELETE FROM file_tree_nodes WHERE path = ?").run(a)}getChildNodes(a){return this.db.prepare("SELECT * FROM file_tree_nodes WHERE parent_path IS ? ORDER BY type DESC, path").all(a).map(a=>this.rowToTreeNode(a))}getAllTreeNodes(){return this.db.prepare("SELECT * FROM file_tree_nodes ORDER BY path").all().map(a=>this.rowToTreeNode(a))}rowToTreeNode(a){return{id:a.id,projectId:this.siteId,path:a.path,name:a.name,type:a.type,parentPath:a.parent_path,isExpanded:!!a.is_expanded,children:n(a.children,[]),metadata:n(a.metadata,{})}}recordPageview(a){this.db.prepare(` + `).run(a.name,a.type,a.parentPath,+!!a.isExpanded,JSON.stringify(a.children??[]),JSON.stringify(a.metadata??{}),a.path)}deleteTreeNode(a){this.db.prepare("DELETE FROM file_tree_nodes WHERE path = ?").run(a)}getChildNodes(a){return this.db.prepare("SELECT * FROM file_tree_nodes WHERE parent_path IS ? ORDER BY type DESC, path").all(a).map(a=>this.rowToTreeNode(a))}getAllTreeNodes(){return this.db.prepare("SELECT * FROM file_tree_nodes ORDER BY path").all().map(a=>this.rowToTreeNode(a))}rowToTreeNode(a){return{id:a.id,projectId:this.deploymentId,path:a.path,name:a.name,type:a.type,parentPath:a.parent_path,isExpanded:!!a.is_expanded,children:n(a.children,[]),metadata:n(a.metadata,{})}}createFunction(a){let b=j(),c=new Date().toISOString();return this.db.prepare(` + INSERT INTO edge_functions ( + id, name, description, code, method, enabled, timeout_ms, created_at, updated_at + ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) + `).run(b,a.name,a.description??null,a.code,a.method,+!!a.enabled,a.timeoutMs,c,c),b}getFunction(a){let b=this.db.prepare("SELECT * FROM edge_functions WHERE id = ?").get(a);return b?this.rowToFunction(b):null}getFunctionByName(a){let b=this.db.prepare("SELECT * FROM edge_functions WHERE name = ?").get(a);return b?this.rowToFunction(b):null}updateFunction(a,b){let c=[],d=[];if(void 0!==b.name&&(c.push("name = ?"),d.push(b.name)),void 0!==b.description&&(c.push("description = ?"),d.push(b.description)),void 0!==b.code&&(c.push("code = ?"),d.push(b.code)),void 0!==b.method&&(c.push("method = ?"),d.push(b.method)),void 0!==b.enabled&&(c.push("enabled = ?"),d.push(+!!b.enabled)),void 0!==b.timeoutMs&&(c.push("timeout_ms = ?"),d.push(b.timeoutMs)),0===c.length)return;c.push("updated_at = ?"),d.push(new Date().toISOString()),d.push(a);let e=`UPDATE edge_functions SET ${c.join(", ")} WHERE id = ?`;this.db.prepare(e).run(...d)}deleteFunction(a){this.db.prepare("DELETE FROM edge_functions WHERE id = ?").run(a)}listFunctions(){return this.db.prepare("SELECT * FROM edge_functions ORDER BY name").all().map(a=>this.rowToFunction(a))}rowToFunction(a){return{id:a.id,projectId:"",name:a.name,description:a.description,code:a.code,method:a.method,enabled:!!a.enabled,timeoutMs:a.timeout_ms,createdAt:o(a.created_at),updatedAt:o(a.updated_at)}}logFunctionExecution(a,b){this.db.prepare(` + INSERT INTO function_logs (function_id, method, path, status_code, duration_ms, error) + VALUES (?, ?, ?, ?, ?, ?) + `).run(a,b.method,b.path,b.statusCode,b.durationMs,b.error??null)}getFunctionLogs(a,b=100){return this.db.prepare(` + SELECT * FROM function_logs WHERE function_id = ? + ORDER BY timestamp DESC LIMIT ? + `).all(a,b).map(a=>this.rowToFunctionLog(a))}getRecentLogs(a=100){return this.db.prepare(` + SELECT * FROM function_logs ORDER BY timestamp DESC LIMIT ? + `).all(a).map(a=>this.rowToFunctionLog(a))}clearFunctionLogs(a,b){a&&b?this.db.prepare("DELETE FROM function_logs WHERE function_id = ? AND timestamp < ?").run(a,b.toISOString()):a?this.db.prepare("DELETE FROM function_logs WHERE function_id = ?").run(a):b?this.db.prepare("DELETE FROM function_logs WHERE timestamp < ?").run(b.toISOString()):this.db.prepare("DELETE FROM function_logs").run()}rowToFunctionLog(a){return{id:a.id,functionId:a.function_id,method:a.method,path:a.path,statusCode:a.status_code,durationMs:a.duration_ms,error:a.error,timestamp:o(a.timestamp)}}createServerFunction(a){let b=j(),c=new Date().toISOString();return this.db.prepare(` + INSERT INTO server_functions ( + id, name, description, code, enabled, created_at, updated_at + ) VALUES (?, ?, ?, ?, ?, ?, ?) + `).run(b,a.name,a.description??null,a.code,+!!a.enabled,c,c),b}getServerFunction(a){let b=this.db.prepare("SELECT * FROM server_functions WHERE id = ?").get(a);return b?this.rowToServerFunction(b):null}getServerFunctionByName(a){let b=this.db.prepare("SELECT * FROM server_functions WHERE name = ?").get(a);return b?this.rowToServerFunction(b):null}updateServerFunction(a,b){let c=[],d=[];if(void 0!==b.name&&(c.push("name = ?"),d.push(b.name)),void 0!==b.description&&(c.push("description = ?"),d.push(b.description)),void 0!==b.code&&(c.push("code = ?"),d.push(b.code)),void 0!==b.enabled&&(c.push("enabled = ?"),d.push(+!!b.enabled)),0===c.length)return;c.push("updated_at = ?"),d.push(new Date().toISOString()),d.push(a);let e=`UPDATE server_functions SET ${c.join(", ")} WHERE id = ?`;this.db.prepare(e).run(...d)}deleteServerFunction(a){this.db.prepare("DELETE FROM server_functions WHERE id = ?").run(a)}listServerFunctions(){return this.db.prepare("SELECT * FROM server_functions ORDER BY name").all().map(a=>this.rowToServerFunction(a))}rowToServerFunction(a){return{id:a.id,projectId:"",name:a.name,description:a.description,code:a.code,enabled:!!a.enabled,createdAt:o(a.created_at),updatedAt:o(a.updated_at)}}createSecret(a,b,c){if(!(0,k.yg)())throw Error("Secrets encryption not configured. Set SECRETS_ENCRYPTION_KEY environment variable.");let d=j(),e=new Date().toISOString(),f=(0,k.MG)(b);return this.db.prepare(` + INSERT INTO secrets (id, name, encrypted_value, iv, auth_tag, description, created_at, updated_at) + VALUES (?, ?, ?, ?, ?, ?, ?, ?) + `).run(d,a,f.encryptedValue,f.iv,f.authTag,c||null,e,e),d}getSecret(a){let b=this.db.prepare("SELECT * FROM secrets WHERE id = ?").get(a);return b?this.rowToSecret(b):null}getSecretByName(a){let b=this.db.prepare("SELECT * FROM secrets WHERE name = ?").get(a);return b?this.rowToSecret(b):null}updateSecretValue(a,b){if(!(0,k.yg)())throw Error("Secrets encryption not configured. Set SECRETS_ENCRYPTION_KEY environment variable.");let c=new Date().toISOString(),d=(0,k.MG)(b);this.db.prepare(` + UPDATE secrets + SET encrypted_value = ?, iv = ?, auth_tag = ?, updated_at = ? + WHERE id = ? + `).run(d.encryptedValue,d.iv,d.authTag,c,a)}updateSecretMetadata(a,b){let c=new Date().toISOString();void 0!==b.name&&this.db.prepare("UPDATE secrets SET name = ?, updated_at = ? WHERE id = ?").run(b.name,c,a),void 0!==b.description&&this.db.prepare("UPDATE secrets SET description = ?, updated_at = ? WHERE id = ?").run(b.description,c,a)}deleteSecret(a){this.db.prepare("DELETE FROM secrets WHERE id = ?").run(a)}listSecrets(){return this.db.prepare("SELECT * FROM secrets ORDER BY name").all().map(a=>this.rowToSecret(a))}listSecretsWithValues(){return this.db.prepare("SELECT name, encrypted_value, iv, auth_tag FROM secrets").all().map(a=>({name:a.name,encryptedValue:a.encrypted_value,iv:a.iv,authTag:a.auth_tag}))}rowToSecret(a){return{id:a.id,projectId:"",name:a.name,description:a.description,hasValue:null!==a.encrypted_value&&""!==a.encrypted_value,createdAt:o(a.created_at),updatedAt:o(a.updated_at)}}createSecretPlaceholder(a,b){let c=j(),d=new Date().toISOString();return this.db.prepare(` + INSERT INTO secrets (id, name, encrypted_value, iv, auth_tag, description, created_at, updated_at) + VALUES (?, ?, '', '', '', ?, ?, ?) + `).run(c,a,b||null,d,d),c}createScheduledFunction(a){let b=j(),c=new Date().toISOString();return this.db.prepare(` + INSERT INTO scheduled_functions ( + id, name, description, function_id, cron_expression, timezone, + config, enabled, last_run_at, next_run_at, last_status, last_error, + last_duration_ms, created_at, updated_at + ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) + `).run(b,a.name,a.description??null,a.functionId,a.cronExpression,a.timezone||"UTC",JSON.stringify(a.config||{}),+!!a.enabled,l(a.lastRunAt),l(a.nextRunAt),a.lastStatus??null,a.lastError??null,a.lastDurationMs??null,c,c),b}getScheduledFunction(a){let b=this.db.prepare("SELECT * FROM scheduled_functions WHERE id = ?").get(a);return b?this.rowToScheduledFunction(b):null}getScheduledFunctionByName(a){let b=this.db.prepare("SELECT * FROM scheduled_functions WHERE name = ?").get(a);return b?this.rowToScheduledFunction(b):null}updateScheduledFunction(a,b){let c=[],d=[];if(void 0!==b.name&&(c.push("name = ?"),d.push(b.name)),void 0!==b.description&&(c.push("description = ?"),d.push(b.description)),void 0!==b.functionId&&(c.push("function_id = ?"),d.push(b.functionId)),void 0!==b.cronExpression&&(c.push("cron_expression = ?"),d.push(b.cronExpression)),void 0!==b.timezone&&(c.push("timezone = ?"),d.push(b.timezone)),void 0!==b.config&&(c.push("config = ?"),d.push(JSON.stringify(b.config))),void 0!==b.enabled&&(c.push("enabled = ?"),d.push(+!!b.enabled)),void 0!==b.lastRunAt&&(c.push("last_run_at = ?"),d.push(l(b.lastRunAt))),void 0!==b.nextRunAt&&(c.push("next_run_at = ?"),d.push(l(b.nextRunAt))),void 0!==b.lastStatus&&(c.push("last_status = ?"),d.push(b.lastStatus)),void 0!==b.lastError&&(c.push("last_error = ?"),d.push(b.lastError)),void 0!==b.lastDurationMs&&(c.push("last_duration_ms = ?"),d.push(b.lastDurationMs)),0===c.length)return;c.push("updated_at = ?"),d.push(new Date().toISOString()),d.push(a);let e=`UPDATE scheduled_functions SET ${c.join(", ")} WHERE id = ?`;this.db.prepare(e).run(...d)}deleteScheduledFunction(a){this.db.prepare("DELETE FROM scheduled_functions WHERE id = ?").run(a)}listScheduledFunctions(){return this.db.prepare("SELECT * FROM scheduled_functions ORDER BY name").all().map(a=>this.rowToScheduledFunction(a))}listDueScheduledFunctions(){return this.db.prepare("SELECT * FROM scheduled_functions WHERE enabled = 1 AND next_run_at IS NOT NULL AND next_run_at <= strftime('%Y-%m-%dT%H:%M:%fZ', 'now')").all().map(a=>this.rowToScheduledFunction(a))}rowToScheduledFunction(a){return{id:a.id,projectId:"",name:a.name,description:a.description,functionId:a.function_id,cronExpression:a.cron_expression,timezone:a.timezone,config:n(a.config,{}),enabled:!!a.enabled,lastRunAt:a.last_run_at?o(a.last_run_at):void 0,nextRunAt:a.next_run_at?o(a.next_run_at):void 0,lastStatus:a.last_status,lastError:a.last_error,lastDurationMs:a.last_duration_ms,createdAt:o(a.created_at),updatedAt:o(a.updated_at)}}executeDDL(a){this.db.exec(a)}static{this.SYSTEM_TABLES=["site_info","files","file_tree_nodes","edge_functions","function_logs","server_functions","secrets","scheduled_functions"]}executeRawSQL(a,b){if(a.trim().toLowerCase().startsWith("select")){let c=this.db.prepare(a),d=b?c.all(...b):c.all();if(0===d.length)return{columns:[],rows:[],rowsAffected:0};let e=Object.keys(d[0]),f=d.map(a=>e.map(b=>a[b]));return{columns:e,rows:f,rowsAffected:0}}{let c=this.db.prepare(a);return{columns:[],rows:[],rowsAffected:(b?c.run(...b):c.run()).changes}}}getTableSchema(){return this.db.prepare(` + SELECT name FROM sqlite_master + WHERE type = 'table' AND name NOT LIKE 'sqlite_%' + ORDER BY name + `).all().map(a=>{let b=p.SYSTEM_TABLES.includes(a.name),c=this.db.prepare(`PRAGMA table_info('${a.name}')`).all(),d=this.db.prepare(`SELECT COUNT(*) as count FROM "${a.name}"`).get();return{name:a.name,columns:c.map(a=>({name:a.name,type:a.type,nullable:!a.notnull,primaryKey:a.pk>0,defaultValue:a.dflt_value??void 0})),rowCount:d.count,isSystemTable:b}})}getTableData(a,b=100,c=0){if(!this.db.prepare(` + SELECT name FROM sqlite_master WHERE type = 'table' AND name = ? + `).get(a))throw Error(`Table "${a}" does not exist`);let d=this.db.prepare(`SELECT COUNT(*) as count FROM "${a}"`).get(),e=this.db.prepare(`SELECT * FROM "${a}" LIMIT ? OFFSET ?`).all(b,c);if(0===e.length)return{columns:[],rows:[],total:d.count};let f=Object.keys(e[0]),g=e.map(a=>f.map(b=>a[b]));return{columns:f,rows:g,total:d.count}}isSystemTable(a){return p.SYSTEM_TABLES.includes(a)}executeUserQuery(a,b){let c=a.trim().toUpperCase(),d=this.validateNotSystemTable(c);if(d)return{columns:[],rows:[],rowsAffected:0,error:d};try{return this.executeRawSQL(a,b)}catch(a){return{columns:[],rows:[],rowsAffected:0,error:a instanceof Error?a.message:String(a)}}}validateNotSystemTable(a){let b=a.match(/^(DROP|ALTER|TRUNCATE)\s+TABLE\s+(?:IF\s+EXISTS\s+)?["'`]?(\w+)["'`]?/i);if(b){let a=b[2].toLowerCase();if(p.SYSTEM_TABLES.includes(a))return`Cannot modify system table: ${a}`}let c=a.match(/^INSERT\s+INTO\s+["'`]?(\w+)["'`]?/i);if(c){let a=c[1].toLowerCase();if(p.SYSTEM_TABLES.includes(a))return`Cannot insert into system table: ${a}`}let d=a.match(/^UPDATE\s+["'`]?(\w+)["'`]?/i);if(d){let a=d[1].toLowerCase();if(p.SYSTEM_TABLES.includes(a))return`Cannot update system table: ${a}`}let e=a.match(/^DELETE\s+FROM\s+["'`]?(\w+)["'`]?/i);if(e){let a=e[1].toLowerCase();if(p.SYSTEM_TABLES.includes(a))return`Cannot delete from system table: ${a}`}return null}getSchemaForExport(){let a=this.getTableSchema().filter(a=>!a.isSystemTable);if(0===a.length)return"-- No user tables defined\n-- Create tables using the SQL Editor or edge functions\n";let b="-- Database Schema\n";for(let c of(b+=`-- ${a.length} user table(s) + +`,a))b+=`-- Table: ${c.name} (${c.rowCount} rows) +`,b+=`CREATE TABLE ${c.name} ( +`,b+=c.columns.map(a=>{let b=` ${a.name} ${a.type}`;return a.primaryKey&&(b+=" PRIMARY KEY"),a.nullable||(b+=" NOT NULL"),void 0!==a.defaultValue&&(b+=` DEFAULT ${a.defaultValue}`),b}).join(",\n"),b+="\n);\n\n";return b}}class q{constructor(a){this.initialized=!1,this.deploymentId=a,this.db=(0,d.Ul)(a)}init(){this.initialized||(this.db.exec(` + CREATE TABLE IF NOT EXISTS pageviews ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + page_path TEXT NOT NULL, + referrer TEXT, + country TEXT, + user_agent TEXT, + device_type TEXT, + session_id TEXT NOT NULL, + load_time INTEGER, + timestamp TEXT NOT NULL DEFAULT (datetime('now')) + ) + `),this.db.exec("CREATE INDEX IF NOT EXISTS idx_pageviews_timestamp ON pageviews(timestamp)"),this.db.exec("CREATE INDEX IF NOT EXISTS idx_pageviews_session_id ON pageviews(session_id)"),this.db.exec(` + CREATE TABLE IF NOT EXISTS interactions ( + id TEXT PRIMARY KEY, + session_id TEXT NOT NULL, + page_path TEXT NOT NULL, + interaction_type TEXT NOT NULL, + element_selector TEXT, + coordinates TEXT, + scroll_depth INTEGER, + time_on_page INTEGER, + timestamp TEXT NOT NULL DEFAULT (datetime('now')) + ) + `),this.db.exec("CREATE INDEX IF NOT EXISTS idx_interactions_page_path ON interactions(page_path)"),this.db.exec("CREATE INDEX IF NOT EXISTS idx_interactions_timestamp ON interactions(timestamp)"),this.db.exec(` + CREATE TABLE IF NOT EXISTS sessions ( + id TEXT PRIMARY KEY, + session_id TEXT NOT NULL, + entry_page TEXT, + exit_page TEXT, + page_count INTEGER DEFAULT 1, + duration INTEGER, + is_bounce INTEGER DEFAULT 1, + created_at TEXT NOT NULL DEFAULT (datetime('now')), + ended_at TEXT + ) + `),this.db.exec("CREATE INDEX IF NOT EXISTS idx_sessions_session_id ON sessions(session_id)"),this.db.exec("CREATE INDEX IF NOT EXISTS idx_sessions_created_at ON sessions(created_at)"),this.initialized=!0)}close(){(0,d.Ez)(this.deploymentId)}recordPageview(a){this.db.prepare(` INSERT INTO pageviews ( page_path, referrer, country, user_agent, device_type, session_id, load_time @@ -272,7 +320,7 @@ FROM interactions WHERE page_path = ? AND interaction_type = ? AND coordinates IS NOT NULL GROUP BY coordinates - `).all(a,b).map(a=>{let b=n(a.coordinates,{x:0,y:0});return{x:b.x,y:b.y,count:a.count}})}getClickData(a,b,c,d=1e4){let e=` + `).all(a,b).map(a=>{let b=function(a,b){if(!a)return b;try{return JSON.parse(a)}catch{return b}}(a.coordinates,{x:0,y:0});return{x:b.x,y:b.y,count:a.count}})}getClickData(a,b,c,d=1e4){let e=` SELECT coordinates, element_selector, timestamp FROM interactions WHERE page_path = ? AND interaction_type = 'click' AND coordinates IS NOT NULL @@ -337,49 +385,21 @@ duration, is_bounce, created_at, ended_at FROM sessions ORDER BY created_at DESC - `).all()),b}createFunction(a){let b=j(),c=new Date().toISOString();return this.db.prepare(` - INSERT INTO edge_functions ( - id, name, description, code, method, enabled, timeout_ms, created_at, updated_at - ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) - `).run(b,a.name,a.description??null,a.code,a.method,+!!a.enabled,a.timeoutMs,c,c),b}getFunction(a){let b=this.db.prepare("SELECT * FROM edge_functions WHERE id = ?").get(a);return b?this.rowToFunction(b):null}getFunctionByName(a){let b=this.db.prepare("SELECT * FROM edge_functions WHERE name = ?").get(a);return b?this.rowToFunction(b):null}updateFunction(a,b){let c=[],d=[];if(void 0!==b.name&&(c.push("name = ?"),d.push(b.name)),void 0!==b.description&&(c.push("description = ?"),d.push(b.description)),void 0!==b.code&&(c.push("code = ?"),d.push(b.code)),void 0!==b.method&&(c.push("method = ?"),d.push(b.method)),void 0!==b.enabled&&(c.push("enabled = ?"),d.push(+!!b.enabled)),void 0!==b.timeoutMs&&(c.push("timeout_ms = ?"),d.push(b.timeoutMs)),0===c.length)return;c.push("updated_at = ?"),d.push(new Date().toISOString()),d.push(a);let e=`UPDATE edge_functions SET ${c.join(", ")} WHERE id = ?`;this.db.prepare(e).run(...d)}deleteFunction(a){this.db.prepare("DELETE FROM edge_functions WHERE id = ?").run(a)}listFunctions(){return this.db.prepare("SELECT * FROM edge_functions ORDER BY name").all().map(a=>this.rowToFunction(a))}rowToFunction(a){return{id:a.id,name:a.name,description:a.description,code:a.code,method:a.method,enabled:!!a.enabled,timeoutMs:a.timeout_ms,createdAt:o(a.created_at),updatedAt:o(a.updated_at)}}logFunctionExecution(a,b){this.db.prepare(` - INSERT INTO function_logs (function_id, method, path, status_code, duration_ms, error) - VALUES (?, ?, ?, ?, ?, ?) - `).run(a,b.method,b.path,b.statusCode,b.durationMs,b.error??null)}getFunctionLogs(a,b=100){return this.db.prepare(` - SELECT * FROM function_logs WHERE function_id = ? - ORDER BY timestamp DESC LIMIT ? - `).all(a,b).map(a=>this.rowToFunctionLog(a))}getRecentLogs(a=100){return this.db.prepare(` - SELECT * FROM function_logs ORDER BY timestamp DESC LIMIT ? - `).all(a).map(a=>this.rowToFunctionLog(a))}clearFunctionLogs(a,b){a&&b?this.db.prepare("DELETE FROM function_logs WHERE function_id = ? AND timestamp < ?").run(a,b.toISOString()):a?this.db.prepare("DELETE FROM function_logs WHERE function_id = ?").run(a):b?this.db.prepare("DELETE FROM function_logs WHERE timestamp < ?").run(b.toISOString()):this.db.prepare("DELETE FROM function_logs").run()}rowToFunctionLog(a){return{id:a.id,functionId:a.function_id,method:a.method,path:a.path,statusCode:a.status_code,durationMs:a.duration_ms,error:a.error,timestamp:o(a.timestamp)}}createServerFunction(a){let b=j(),c=new Date().toISOString();return this.db.prepare(` - INSERT INTO server_functions ( - id, name, description, code, enabled, created_at, updated_at - ) VALUES (?, ?, ?, ?, ?, ?, ?) - `).run(b,a.name,a.description??null,a.code,+!!a.enabled,c,c),b}getServerFunction(a){let b=this.db.prepare("SELECT * FROM server_functions WHERE id = ?").get(a);return b?this.rowToServerFunction(b):null}getServerFunctionByName(a){let b=this.db.prepare("SELECT * FROM server_functions WHERE name = ?").get(a);return b?this.rowToServerFunction(b):null}updateServerFunction(a,b){let c=[],d=[];if(void 0!==b.name&&(c.push("name = ?"),d.push(b.name)),void 0!==b.description&&(c.push("description = ?"),d.push(b.description)),void 0!==b.code&&(c.push("code = ?"),d.push(b.code)),void 0!==b.enabled&&(c.push("enabled = ?"),d.push(+!!b.enabled)),0===c.length)return;c.push("updated_at = ?"),d.push(new Date().toISOString()),d.push(a);let e=`UPDATE server_functions SET ${c.join(", ")} WHERE id = ?`;this.db.prepare(e).run(...d)}deleteServerFunction(a){this.db.prepare("DELETE FROM server_functions WHERE id = ?").run(a)}listServerFunctions(){return this.db.prepare("SELECT * FROM server_functions ORDER BY name").all().map(a=>this.rowToServerFunction(a))}rowToServerFunction(a){return{id:a.id,name:a.name,description:a.description,code:a.code,enabled:!!a.enabled,createdAt:o(a.created_at),updatedAt:o(a.updated_at)}}createSecret(a,b,c){if(!(0,k.yg)())throw Error("Secrets encryption not configured. Set SECRETS_ENCRYPTION_KEY environment variable.");let d=j(),e=new Date().toISOString(),f=(0,k.MG)(b);return this.db.prepare(` - INSERT INTO secrets (id, name, encrypted_value, iv, auth_tag, description, created_at, updated_at) - VALUES (?, ?, ?, ?, ?, ?, ?, ?) - `).run(d,a,f.encryptedValue,f.iv,f.authTag,c||null,e,e),d}getSecret(a){let b=this.db.prepare("SELECT * FROM secrets WHERE id = ?").get(a);return b?this.rowToSecret(b):null}getSecretByName(a){let b=this.db.prepare("SELECT * FROM secrets WHERE name = ?").get(a);return b?this.rowToSecret(b):null}updateSecretValue(a,b){if(!(0,k.yg)())throw Error("Secrets encryption not configured. Set SECRETS_ENCRYPTION_KEY environment variable.");let c=new Date().toISOString(),d=(0,k.MG)(b);this.db.prepare(` - UPDATE secrets - SET encrypted_value = ?, iv = ?, auth_tag = ?, updated_at = ? - WHERE id = ? - `).run(d.encryptedValue,d.iv,d.authTag,c,a)}updateSecretMetadata(a,b){let c=new Date().toISOString();void 0!==b.name&&this.db.prepare("UPDATE secrets SET name = ?, updated_at = ? WHERE id = ?").run(b.name,c,a),void 0!==b.description&&this.db.prepare("UPDATE secrets SET description = ?, updated_at = ? WHERE id = ?").run(b.description,c,a)}deleteSecret(a){this.db.prepare("DELETE FROM secrets WHERE id = ?").run(a)}listSecrets(){return this.db.prepare("SELECT * FROM secrets ORDER BY name").all().map(a=>this.rowToSecret(a))}listSecretsWithValues(){return this.db.prepare("SELECT name, encrypted_value, iv, auth_tag FROM secrets").all().map(a=>({name:a.name,encryptedValue:a.encrypted_value,iv:a.iv,authTag:a.auth_tag}))}rowToSecret(a){return{id:a.id,name:a.name,description:a.description,hasValue:null!==a.encrypted_value&&""!==a.encrypted_value,createdAt:o(a.created_at),updatedAt:o(a.updated_at)}}createSecretPlaceholder(a,b){let c=j(),d=new Date().toISOString();return this.db.prepare(` - INSERT INTO secrets (id, name, encrypted_value, iv, auth_tag, description, created_at, updated_at) - VALUES (?, ?, '', '', '', ?, ?, ?) - `).run(c,a,b||null,d,d),c}createScheduledFunction(a){let b=j(),c=new Date().toISOString();return this.db.prepare(` - INSERT INTO scheduled_functions ( - id, name, description, function_id, cron_expression, timezone, - config, enabled, last_run_at, next_run_at, last_status, last_error, - last_duration_ms, created_at, updated_at - ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) - `).run(b,a.name,a.description??null,a.functionId,a.cronExpression,a.timezone||"UTC",JSON.stringify(a.config||{}),+!!a.enabled,l(a.lastRunAt),l(a.nextRunAt),a.lastStatus??null,a.lastError??null,a.lastDurationMs??null,c,c),b}getScheduledFunction(a){let b=this.db.prepare("SELECT * FROM scheduled_functions WHERE id = ?").get(a);return b?this.rowToScheduledFunction(b):null}getScheduledFunctionByName(a){let b=this.db.prepare("SELECT * FROM scheduled_functions WHERE name = ?").get(a);return b?this.rowToScheduledFunction(b):null}updateScheduledFunction(a,b){let c=[],d=[];if(void 0!==b.name&&(c.push("name = ?"),d.push(b.name)),void 0!==b.description&&(c.push("description = ?"),d.push(b.description)),void 0!==b.functionId&&(c.push("function_id = ?"),d.push(b.functionId)),void 0!==b.cronExpression&&(c.push("cron_expression = ?"),d.push(b.cronExpression)),void 0!==b.timezone&&(c.push("timezone = ?"),d.push(b.timezone)),void 0!==b.config&&(c.push("config = ?"),d.push(JSON.stringify(b.config))),void 0!==b.enabled&&(c.push("enabled = ?"),d.push(+!!b.enabled)),void 0!==b.lastRunAt&&(c.push("last_run_at = ?"),d.push(l(b.lastRunAt))),void 0!==b.nextRunAt&&(c.push("next_run_at = ?"),d.push(l(b.nextRunAt))),void 0!==b.lastStatus&&(c.push("last_status = ?"),d.push(b.lastStatus)),void 0!==b.lastError&&(c.push("last_error = ?"),d.push(b.lastError)),void 0!==b.lastDurationMs&&(c.push("last_duration_ms = ?"),d.push(b.lastDurationMs)),0===c.length)return;c.push("updated_at = ?"),d.push(new Date().toISOString()),d.push(a);let e=`UPDATE scheduled_functions SET ${c.join(", ")} WHERE id = ?`;this.db.prepare(e).run(...d)}deleteScheduledFunction(a){this.db.prepare("DELETE FROM scheduled_functions WHERE id = ?").run(a)}listScheduledFunctions(){return this.db.prepare("SELECT * FROM scheduled_functions ORDER BY name").all().map(a=>this.rowToScheduledFunction(a))}listDueScheduledFunctions(){return this.db.prepare("SELECT * FROM scheduled_functions WHERE enabled = 1 AND next_run_at IS NOT NULL AND next_run_at <= strftime('%Y-%m-%dT%H:%M:%fZ', 'now')").all().map(a=>this.rowToScheduledFunction(a))}rowToScheduledFunction(a){return{id:a.id,name:a.name,description:a.description,functionId:a.function_id,cronExpression:a.cron_expression,timezone:a.timezone,config:n(a.config,{}),enabled:!!a.enabled,lastRunAt:a.last_run_at?o(a.last_run_at):void 0,nextRunAt:a.next_run_at?o(a.next_run_at):void 0,lastStatus:a.last_status,lastError:a.last_error,lastDurationMs:a.last_duration_ms,createdAt:o(a.created_at),updatedAt:o(a.updated_at)}}executeDDL(a){this.db.exec(a)}static{this.SYSTEM_TABLES=["site_info","files","file_tree_nodes","pageviews","interactions","sessions","edge_functions","function_logs","server_functions","secrets","scheduled_functions"]}executeRawSQL(a,b){if(a.trim().toLowerCase().startsWith("select")){let c=this.db.prepare(a),d=b?c.all(...b):c.all();if(0===d.length)return{columns:[],rows:[],rowsAffected:0};let e=Object.keys(d[0]),f=d.map(a=>e.map(b=>a[b]));return{columns:e,rows:f,rowsAffected:0}}{let c=this.db.prepare(a);return{columns:[],rows:[],rowsAffected:(b?c.run(...b):c.run()).changes}}}getTableSchema(){return this.db.prepare(` + `).all()),b}}function r(a){return`"${a.replace(/"/g,'""')}"`}class s{constructor(a){this.projectId=a,this.db=(0,d.Bw)(a)}init(){}close(){(0,d.Hz)(this.projectId)}executeDDL(a){this.db.exec(a)}getTableSchema(){return this.db.prepare(` SELECT name FROM sqlite_master WHERE type = 'table' AND name NOT LIKE 'sqlite_%' ORDER BY name - `).all().map(a=>{let b=p.SYSTEM_TABLES.includes(a.name),c=this.db.prepare(`PRAGMA table_info('${a.name}')`).all(),d=this.db.prepare(`SELECT COUNT(*) as count FROM "${a.name}"`).get();return{name:a.name,columns:c.map(a=>({name:a.name,type:a.type,nullable:!a.notnull,primaryKey:a.pk>0,defaultValue:a.dflt_value??void 0})),rowCount:d.count,isSystemTable:b}})}getTableData(a,b=100,c=0){if(!this.db.prepare(` + `).all().map(a=>{let b=r(a.name),c=this.db.prepare(`PRAGMA table_info(${b})`).all(),d=this.db.prepare(`SELECT COUNT(*) as count FROM ${b}`).get();return{name:a.name,columns:c.map(a=>({name:a.name,type:a.type,nullable:!a.notnull,primaryKey:a.pk>0,defaultValue:a.dflt_value??void 0})),rowCount:d.count,isSystemTable:!1}})}executeRawSQL(a,b){if(a.trim().toLowerCase().startsWith("select")){let c=this.db.prepare(a),d=b?c.all(...b):c.all();if(0===d.length)return{columns:[],rows:[],rowsAffected:0};let e=Object.keys(d[0]),f=d.map(a=>e.map(b=>a[b]));return{columns:e,rows:f,rowsAffected:0}}{let c=this.db.prepare(a);return{columns:[],rows:[],rowsAffected:(b?c.run(...b):c.run()).changes}}}getTableData(a,b=100,c=0){if(!this.db.prepare(` SELECT name FROM sqlite_master WHERE type = 'table' AND name = ? - `).get(a))throw Error(`Table "${a}" does not exist`);let d=this.db.prepare(`SELECT COUNT(*) as count FROM "${a}"`).get(),e=this.db.prepare(`SELECT * FROM "${a}" LIMIT ? OFFSET ?`).all(b,c);if(0===e.length)return{columns:[],rows:[],total:d.count};let f=Object.keys(e[0]),g=e.map(a=>f.map(b=>a[b]));return{columns:f,rows:g,total:d.count}}isSystemTable(a){return p.SYSTEM_TABLES.includes(a)}executeUserQuery(a,b){let c=a.trim().toUpperCase(),d=this.validateNotSystemTable(c);if(d)return{columns:[],rows:[],rowsAffected:0,error:d};try{return this.executeRawSQL(a,b)}catch(a){return{columns:[],rows:[],rowsAffected:0,error:a instanceof Error?a.message:String(a)}}}validateNotSystemTable(a){let b=a.match(/^(DROP|ALTER|TRUNCATE)\s+TABLE\s+(?:IF\s+EXISTS\s+)?["'`]?(\w+)["'`]?/i);if(b){let a=b[2].toLowerCase();if(p.SYSTEM_TABLES.includes(a))return`Cannot modify system table: ${a}`}let c=a.match(/^INSERT\s+INTO\s+["'`]?(\w+)["'`]?/i);if(c){let a=c[1].toLowerCase();if(p.SYSTEM_TABLES.includes(a))return`Cannot insert into system table: ${a}`}let d=a.match(/^UPDATE\s+["'`]?(\w+)["'`]?/i);if(d){let a=d[1].toLowerCase();if(p.SYSTEM_TABLES.includes(a))return`Cannot update system table: ${a}`}let e=a.match(/^DELETE\s+FROM\s+["'`]?(\w+)["'`]?/i);if(e){let a=e[1].toLowerCase();if(p.SYSTEM_TABLES.includes(a))return`Cannot delete from system table: ${a}`}return null}getSchemaForExport(){let a=this.getTableSchema().filter(a=>!a.isSystemTable);if(0===a.length)return"-- No user tables defined\n-- Create tables using the SQL Editor or edge functions\n";let b="-- Database Schema\n";for(let c of(b+=`-- ${a.length} user table(s) - -`,a))b+=`-- Table: ${c.name} (${c.rowCount} rows) -`,b+=`CREATE TABLE ${c.name} ( -`,b+=c.columns.map(a=>{let b=` ${a.name} ${a.type}`;return a.primaryKey&&(b+=" PRIMARY KEY"),a.nullable||(b+=" NOT NULL"),void 0!==a.defaultValue&&(b+=` DEFAULT ${a.defaultValue}`),b}).join(",\n"),b+="\n);\n\n";return b}}let q={enabled:!1,provider:"builtin",privacyMode:!0},r={enabled:!1,bannerPosition:"bottom",bannerStyle:"bar",message:"This site uses cookies to improve your experience.",acceptButtonText:"Accept",declineButtonText:"Decline",mode:"opt-in",blockAnalytics:!0},s={},t=[{id:"initial_schema_v1",up:a=>{a.exec(` + `).get(a))throw Error(`Table "${a}" does not exist`);let d=r(a),e=this.db.prepare(`SELECT COUNT(*) as count FROM ${d}`).get(),f=this.db.prepare(`SELECT * FROM ${d} LIMIT ? OFFSET ?`).all(b,c);if(0===f.length)return{columns:[],rows:[],total:e.count};let g=Object.keys(f[0]),h=f.map(a=>g.map(b=>a[b]));return{columns:g,rows:h,total:e.count}}getSchemaForExport(){let a=this.db.prepare(` + SELECT sql FROM sqlite_master + WHERE type = 'table' AND name NOT LIKE 'sqlite_%' AND sql IS NOT NULL + ORDER BY name + `).all(),b=this.db.prepare(` + SELECT sql FROM sqlite_master + WHERE type = 'index' AND sql IS NOT NULL + ORDER BY name + `).all();return 0===a.length?"":[...a,...b].map(a=>a.sql+";").join("\n\n")+"\n"}}let t={enabled:!1,provider:"builtin",privacyMode:!0},u={enabled:!1,bannerPosition:"bottom",bannerStyle:"bar",message:"This site uses cookies to improve your experience.",acceptButtonText:"Accept",declineButtonText:"Decline",mode:"opt-in",blockAnalytics:!0},v={},w=[{id:"initial_schema_v1",up:a=>{a.exec(` CREATE TABLE IF NOT EXISTS _migrations ( id TEXT PRIMARY KEY, applied_at TEXT NOT NULL DEFAULT (datetime('now')) @@ -500,18 +520,106 @@ CREATE INDEX IF NOT EXISTS idx_request_log_timestamp ON request_log(timestamp) `),a.exec(` CREATE INDEX IF NOT EXISTS idx_request_log_site_id ON request_log(site_id) - `)}}];function u(a,b){if(!a)return b;try{return JSON.parse(a)}catch{return b}}function v(a){return a?new Date(a):new Date}function w(a){return a?"string"==typeof a?a:a.toISOString():null}function x(a){return"string"==typeof a?a:a.toISOString()}class y{async init(){this.initialized||(this.db=(0,d.L9)(),await this.runMigrations(),this.initialized=!0)}async close(){for(let[,a]of this.siteDatabases)a.close();this.siteDatabases.clear(),(0,d.P4)(),this.db=null,this.initialized=!1}getDB(){if(!this.db)throw Error("SQLiteAdapter not initialized. Call init() first.");return this.db}getOrCreateSiteDB(a){let b=this.siteDatabases.get(a);return b||((b=new p(a)).init(),this.siteDatabases.set(a,b)),b}async enableSiteDatabase(a){this.getDB().prepare("UPDATE sites SET database_enabled = 1 WHERE id = ?").run(a),this.getOrCreateSiteDB(a)}async disableSiteDatabase(a){this.getDB().prepare("UPDATE sites SET database_enabled = 0 WHERE id = ?").run(a);let b=this.siteDatabases.get(a);b&&(b.close(),this.siteDatabases.delete(a)),(0,d.uD)(a)&&(0,d._u)(a)}async runMigrations(){let a=this.getDB();a.exec(` + `)}},{id:"rename_sites_to_deployments_v4",up:a=>{a.exec("ALTER TABLE sites RENAME TO deployments"),a.exec("DROP INDEX IF EXISTS idx_sites_project_id"),a.exec(` + CREATE INDEX IF NOT EXISTS idx_deployments_project_id ON deployments(project_id) + `)}},{id:"add_project_server_features_v5",up:a=>{a.exec(` + CREATE TABLE IF NOT EXISTS project_edge_functions ( + id TEXT PRIMARY KEY, + project_id TEXT NOT NULL, + name TEXT NOT NULL, + description TEXT, + code TEXT NOT NULL, + method TEXT NOT NULL DEFAULT 'GET' CHECK(method IN ('GET', 'POST', 'PUT', 'DELETE', 'ANY')), + enabled INTEGER DEFAULT 1, + timeout_ms INTEGER DEFAULT 5000, + created_at TEXT NOT NULL DEFAULT (datetime('now')), + updated_at TEXT NOT NULL DEFAULT (datetime('now')), + UNIQUE(project_id, name), + FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE + ) + `),a.exec("CREATE INDEX IF NOT EXISTS idx_project_edge_functions_project_id ON project_edge_functions(project_id)"),a.exec(` + CREATE TABLE IF NOT EXISTS project_server_functions ( + id TEXT PRIMARY KEY, + project_id TEXT NOT NULL, + name TEXT NOT NULL, + description TEXT, + code TEXT NOT NULL, + enabled INTEGER DEFAULT 1, + created_at TEXT NOT NULL DEFAULT (datetime('now')), + updated_at TEXT NOT NULL DEFAULT (datetime('now')), + UNIQUE(project_id, name), + FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE + ) + `),a.exec("CREATE INDEX IF NOT EXISTS idx_project_server_functions_project_id ON project_server_functions(project_id)"),a.exec(` + CREATE TABLE IF NOT EXISTS project_secrets ( + id TEXT PRIMARY KEY, + project_id TEXT NOT NULL, + name TEXT NOT NULL, + description TEXT, + has_value INTEGER DEFAULT 0, + value TEXT, + created_at TEXT NOT NULL DEFAULT (datetime('now')), + updated_at TEXT NOT NULL DEFAULT (datetime('now')), + UNIQUE(project_id, name), + FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE + ) + `),a.exec("CREATE INDEX IF NOT EXISTS idx_project_secrets_project_id ON project_secrets(project_id)"),a.exec(` + CREATE TABLE IF NOT EXISTS project_scheduled_functions ( + id TEXT PRIMARY KEY, + project_id TEXT NOT NULL, + name TEXT NOT NULL, + description TEXT, + function_id TEXT NOT NULL, + cron_expression TEXT NOT NULL, + timezone TEXT DEFAULT 'UTC', + config TEXT DEFAULT '{}', + enabled INTEGER DEFAULT 1, + last_run_at TEXT, + next_run_at TEXT, + last_status TEXT, + last_error TEXT, + last_duration_ms INTEGER, + created_at TEXT NOT NULL DEFAULT (datetime('now')), + updated_at TEXT NOT NULL DEFAULT (datetime('now')), + UNIQUE(project_id, name), + FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE + ) + `),a.exec("CREATE INDEX IF NOT EXISTS idx_project_scheduled_functions_project_id ON project_scheduled_functions(project_id)")}}];function x(a,b){if(!a)return b;try{return JSON.parse(a)}catch{return b}}function y(a){return a?new Date(a):new Date}function z(a){return a?"string"==typeof a?a:a.toISOString():null}function A(a){return"string"==typeof a?a:a.toISOString()}class B{async init(){this.initialized||(this.db=(0,d.L9)(),await this.runMigrations(),this.initialized=!0)}async close(){for(let[,a]of this.deploymentDatabases)a.close();for(let[,a]of(this.deploymentDatabases.clear(),this.analyticsDatabases))a.close();for(let[,a]of(this.analyticsDatabases.clear(),this.projectDatabases))a.close();this.projectDatabases.clear(),(0,d.P4)(),this.db=null,this.initialized=!1}getProjectDatabase(a){let b=this.projectDatabases.get(a);return b||((b=new s(a)).init(),this.projectDatabases.set(a,b)),b}getDB(){if(!this.db)throw Error("SQLiteAdapter not initialized. Call init() first.");return this.db}getOrCreateDeploymentDB(a){let b=this.deploymentDatabases.get(a);return b||((b=new p(a)).init(),this.deploymentDatabases.set(a,b)),b}async createEdgeFunction(a){this.getDB().prepare(` + INSERT INTO project_edge_functions (id, project_id, name, description, code, method, enabled, timeout_ms, created_at, updated_at) + VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) + `).run(a.id,a.projectId,a.name,a.description||null,a.code,a.method,+!!a.enabled,a.timeoutMs,A(a.createdAt),A(a.updatedAt))}async getEdgeFunction(a){let b=this.getDB().prepare("SELECT * FROM project_edge_functions WHERE id = ?").get(a);return b?this.rowToEdgeFunction(b):null}async listEdgeFunctions(a){return this.getDB().prepare("SELECT * FROM project_edge_functions WHERE project_id = ? ORDER BY name").all(a).map(a=>this.rowToEdgeFunction(a))}async updateEdgeFunction(a){this.getDB().prepare(` + UPDATE project_edge_functions SET name = ?, description = ?, code = ?, method = ?, enabled = ?, timeout_ms = ?, updated_at = ? + WHERE id = ? + `).run(a.name,a.description||null,a.code,a.method,+!!a.enabled,a.timeoutMs,A(a.updatedAt),a.id)}async deleteEdgeFunction(a){this.getDB().prepare("DELETE FROM project_edge_functions WHERE id = ?").run(a)}rowToEdgeFunction(a){return{id:a.id,projectId:a.project_id,name:a.name,description:a.description||void 0,code:a.code,method:a.method,enabled:1===a.enabled,timeoutMs:a.timeout_ms,createdAt:y(a.created_at),updatedAt:y(a.updated_at)}}async createServerFunction(a){this.getDB().prepare(` + INSERT INTO project_server_functions (id, project_id, name, description, code, enabled, created_at, updated_at) + VALUES (?, ?, ?, ?, ?, ?, ?, ?) + `).run(a.id,a.projectId,a.name,a.description||null,a.code,+!!a.enabled,A(a.createdAt),A(a.updatedAt))}async getServerFunction(a){let b=this.getDB().prepare("SELECT * FROM project_server_functions WHERE id = ?").get(a);return b?this.rowToServerFunction(b):null}async listServerFunctions(a){return this.getDB().prepare("SELECT * FROM project_server_functions WHERE project_id = ? ORDER BY name").all(a).map(a=>this.rowToServerFunction(a))}async updateServerFunction(a){this.getDB().prepare(` + UPDATE project_server_functions SET name = ?, description = ?, code = ?, enabled = ?, updated_at = ? + WHERE id = ? + `).run(a.name,a.description||null,a.code,+!!a.enabled,A(a.updatedAt),a.id)}async deleteServerFunction(a){this.getDB().prepare("DELETE FROM project_server_functions WHERE id = ?").run(a)}rowToServerFunction(a){return{id:a.id,projectId:a.project_id,name:a.name,description:a.description||void 0,code:a.code,enabled:1===a.enabled,createdAt:y(a.created_at),updatedAt:y(a.updated_at)}}async createSecret(a){this.getDB().prepare(` + INSERT INTO project_secrets (id, project_id, name, description, has_value, value, created_at, updated_at) + VALUES (?, ?, ?, ?, ?, ?, ?, ?) + `).run(a.id,a.projectId,a.name,a.description||null,+!!a.hasValue,a.value||null,A(a.createdAt),A(a.updatedAt))}async getSecret(a){let b=this.getDB().prepare("SELECT * FROM project_secrets WHERE id = ?").get(a);return b?this.rowToSecret(b):null}async listSecrets(a){return this.getDB().prepare("SELECT * FROM project_secrets WHERE project_id = ? ORDER BY name").all(a).map(a=>this.rowToSecret(a))}async updateSecret(a){this.getDB().prepare(` + UPDATE project_secrets SET name = ?, description = ?, has_value = ?, value = ?, updated_at = ? + WHERE id = ? + `).run(a.name,a.description||null,+!!a.hasValue,a.value||null,A(a.updatedAt),a.id)}async deleteSecret(a){this.getDB().prepare("DELETE FROM project_secrets WHERE id = ?").run(a)}rowToSecret(a){return{id:a.id,projectId:a.project_id,name:a.name,description:a.description||void 0,hasValue:1===a.has_value,value:a.value||void 0,createdAt:y(a.created_at),updatedAt:y(a.updated_at)}}async createScheduledFunction(a){this.getDB().prepare(` + INSERT INTO project_scheduled_functions (id, project_id, name, description, function_id, cron_expression, timezone, config, enabled, last_run_at, next_run_at, last_status, last_error, last_duration_ms, created_at, updated_at) + VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) + `).run(a.id,a.projectId,a.name,a.description||null,a.functionId,a.cronExpression,a.timezone,JSON.stringify(a.config),+!!a.enabled,z(a.lastRunAt??null),z(a.nextRunAt??null),a.lastStatus||null,a.lastError||null,a.lastDurationMs??null,A(a.createdAt),A(a.updatedAt))}async getScheduledFunction(a){let b=this.getDB().prepare("SELECT * FROM project_scheduled_functions WHERE id = ?").get(a);return b?this.rowToScheduledFunction(b):null}async listScheduledFunctions(a){return this.getDB().prepare("SELECT * FROM project_scheduled_functions WHERE project_id = ? ORDER BY name").all(a).map(a=>this.rowToScheduledFunction(a))}async updateScheduledFunction(a){this.getDB().prepare(` + UPDATE project_scheduled_functions SET name = ?, description = ?, function_id = ?, cron_expression = ?, timezone = ?, config = ?, enabled = ?, last_run_at = ?, next_run_at = ?, last_status = ?, last_error = ?, last_duration_ms = ?, updated_at = ? + WHERE id = ? + `).run(a.name,a.description||null,a.functionId,a.cronExpression,a.timezone,JSON.stringify(a.config),+!!a.enabled,z(a.lastRunAt??null),z(a.nextRunAt??null),a.lastStatus||null,a.lastError||null,a.lastDurationMs??null,A(a.updatedAt),a.id)}async deleteScheduledFunction(a){this.getDB().prepare("DELETE FROM project_scheduled_functions WHERE id = ?").run(a)}rowToScheduledFunction(a){return{id:a.id,projectId:a.project_id,name:a.name,description:a.description||void 0,functionId:a.function_id,cronExpression:a.cron_expression,timezone:a.timezone,config:x(a.config,{}),enabled:1===a.enabled,lastRunAt:a.last_run_at?y(a.last_run_at):void 0,nextRunAt:a.next_run_at?y(a.next_run_at):void 0,lastStatus:a.last_status||void 0,lastError:a.last_error||void 0,lastDurationMs:a.last_duration_ms??void 0,createdAt:y(a.created_at),updatedAt:y(a.updated_at)}}async enableDeploymentDatabase(a){this.getDB().prepare("UPDATE deployments SET database_enabled = 1 WHERE id = ?").run(a),this.getOrCreateDeploymentDB(a)}async disableDeploymentDatabase(a){this.getDB().prepare("UPDATE deployments SET database_enabled = 0 WHERE id = ?").run(a);let b=this.deploymentDatabases.get(a);b&&(b.close(),this.deploymentDatabases.delete(a)),(0,d.yF)(a)&&(0,d.qM)(a)}async runMigrations(){let a=this.getDB();a.exec(` CREATE TABLE IF NOT EXISTS _migrations ( id TEXT PRIMARY KEY, applied_at TEXT NOT NULL DEFAULT (datetime('now')) ) - `);let b=new Set(a.prepare("SELECT id FROM _migrations").all().map(a=>a.id)),c=a.transaction(c=>{b.has(c.id)||(c.up(a),a.prepare("INSERT INTO _migrations (id) VALUES (?)").run(c.id))});for(let a of t)c(a)}async createProject(a){this.getDB().prepare(` + `);let b=new Set(a.prepare("SELECT id FROM _migrations").all().map(a=>a.id)),c=a.transaction(c=>{b.has(c.id)||(c.up(a),a.prepare("INSERT INTO _migrations (id) VALUES (?)").run(c.id))});for(let a of w)c(a)}async createProject(a){this.getDB().prepare(` INSERT INTO projects ( id, name, description, created_at, updated_at, last_saved_at, last_saved_checkpoint_id, settings, cost_tracking, preview_image, last_synced_at, server_updated_at ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) - `).run(a.id,a.name,a.description??null,x(a.createdAt),x(a.updatedAt),w(a.lastSavedAt),a.lastSavedCheckpointId??null,JSON.stringify(a.settings??{}),JSON.stringify(a.costTracking??{}),a.previewImage??null,w(a.lastSyncedAt),w(a.serverUpdatedAt))}async getProject(a){let b=this.getDB().prepare("SELECT * FROM projects WHERE id = ?").get(a);return b?this.rowToProject(b):null}async updateProject(a){this.getDB().prepare(` + `).run(a.id,a.name,a.description??null,A(a.createdAt),A(a.updatedAt),z(a.lastSavedAt),a.lastSavedCheckpointId??null,JSON.stringify(a.settings??{}),JSON.stringify(a.costTracking??{}),a.previewImage??null,z(a.lastSyncedAt),z(a.serverUpdatedAt))}async getProject(a){let b=this.getDB().prepare("SELECT * FROM projects WHERE id = ?").get(a);return b?this.rowToProject(b):null}async updateProject(a){this.getDB().prepare(` UPDATE projects SET name = ?, description = ?, @@ -524,17 +632,17 @@ last_synced_at = ?, server_updated_at = ? WHERE id = ? - `).run(a.name,a.description??null,x(a.updatedAt),w(a.lastSavedAt),a.lastSavedCheckpointId??null,JSON.stringify(a.settings??{}),JSON.stringify(a.costTracking??{}),a.previewImage??null,w(a.lastSyncedAt),w(a.serverUpdatedAt),a.id)}async deleteProject(a){this.getDB().prepare("DELETE FROM projects WHERE id = ?").run(a),(0,d.uD)(a)&&(this.siteDatabases.delete(a),(0,d._u)(a))}async listProjects(a){return this.getDB().prepare("SELECT * FROM projects ORDER BY updated_at DESC").all().map(a=>this.rowToProject(a))}rowToProject(a){return{id:a.id,name:a.name,description:a.description,createdAt:v(a.created_at),updatedAt:v(a.updated_at),lastSavedAt:a.last_saved_at?v(a.last_saved_at):void 0,lastSavedCheckpointId:a.last_saved_checkpoint_id,settings:u(a.settings,{}),costTracking:u(a.cost_tracking,void 0),previewImage:a.preview_image,lastSyncedAt:a.last_synced_at?v(a.last_synced_at):void 0,serverUpdatedAt:a.server_updated_at?v(a.server_updated_at):void 0}}async createFile(a){let b,c=this.getDB();b=a.content instanceof ArrayBuffer?Buffer.from(a.content).toString("base64"):"string"==typeof a.content?a.content:"",c.prepare(` + `).run(a.name,a.description??null,A(a.updatedAt),z(a.lastSavedAt),a.lastSavedCheckpointId??null,JSON.stringify(a.settings??{}),JSON.stringify(a.costTracking??{}),a.previewImage??null,z(a.lastSyncedAt),z(a.serverUpdatedAt),a.id)}async deleteProject(a){this.getDB().prepare("DELETE FROM projects WHERE id = ?").run(a),(0,d.yF)(a)&&(this.deploymentDatabases.delete(a),(0,d.qM)(a)),this.projectDatabases.delete(a),(0,d.q$)(a)}async listProjects(a){return this.getDB().prepare("SELECT * FROM projects ORDER BY updated_at DESC").all().map(a=>this.rowToProject(a))}rowToProject(a){return{id:a.id,name:a.name,description:a.description,createdAt:y(a.created_at),updatedAt:y(a.updated_at),lastSavedAt:a.last_saved_at?y(a.last_saved_at):void 0,lastSavedCheckpointId:a.last_saved_checkpoint_id,settings:x(a.settings,{}),costTracking:x(a.cost_tracking,void 0),previewImage:a.preview_image,lastSyncedAt:a.last_synced_at?y(a.last_synced_at):void 0,serverUpdatedAt:a.server_updated_at?y(a.server_updated_at):void 0}}async createFile(a){let b,c=this.getDB();b=a.content instanceof ArrayBuffer?Buffer.from(a.content).toString("base64"):"string"==typeof a.content?a.content:"",c.prepare(` INSERT INTO files ( id, project_id, path, name, type, content, mime_type, size, created_at, updated_at, metadata ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) - `).run(a.id,a.projectId,a.path,a.name,a.type,b,a.mimeType??null,a.size??0,x(a.createdAt),x(a.updatedAt),JSON.stringify(a.metadata??{}))}async getFile(a,b){let c=this.getDB().prepare("SELECT * FROM files WHERE project_id = ? AND path = ?").get(a,b);return c?this.rowToFile(c,a):null}async updateFile(a){let b,c=this.getDB();b=a.content instanceof ArrayBuffer?Buffer.from(a.content).toString("base64"):"string"==typeof a.content?a.content:"",c.prepare(` + `).run(a.id,a.projectId,a.path,a.name,a.type,b,a.mimeType??null,a.size??0,A(a.createdAt),A(a.updatedAt),JSON.stringify(a.metadata??{}))}async getFile(a,b){let c=this.getDB().prepare("SELECT * FROM files WHERE project_id = ? AND path = ?").get(a,b);return c?this.rowToFile(c,a):null}async updateFile(a){let b,c=this.getDB();b=a.content instanceof ArrayBuffer?Buffer.from(a.content).toString("base64"):"string"==typeof a.content?a.content:"",c.prepare(` UPDATE files SET name = ?, type = ?, content = ?, mime_type = ?, size = ?, updated_at = ?, metadata = ? WHERE project_id = ? AND path = ? - `).run(a.name,a.type,b,a.mimeType??null,a.size??0,x(a.updatedAt),JSON.stringify(a.metadata??{}),a.projectId,a.path)}async deleteFile(a,b){this.getDB().prepare("DELETE FROM files WHERE project_id = ? AND path = ?").run(a,b)}async listFiles(a){return this.getDB().prepare("SELECT * FROM files WHERE project_id = ? ORDER BY path").all(a).map(b=>this.rowToFile(b,a))}async deleteProjectFiles(a){this.getDB().prepare("DELETE FROM files WHERE project_id = ?").run(a)}rowToFile(a,b){let c=a.type,d=a.content,e=d;if(("image"===c||"video"===c)&&d)try{let a=d;if(d.startsWith("data:")){let b=d.indexOf(",");-1!==b&&(a=d.slice(b+1))}let b=Buffer.from(a,"base64");e=b.buffer.slice(b.byteOffset,b.byteOffset+b.byteLength)}catch{e=d}return{id:a.id,projectId:b,path:a.path,name:a.name,type:c,content:e,mimeType:a.mime_type,size:a.size,createdAt:v(a.created_at),updatedAt:v(a.updated_at),metadata:u(a.metadata,{})}}async createTreeNode(a){this.getDB().prepare(` + `).run(a.name,a.type,b,a.mimeType??null,a.size??0,A(a.updatedAt),JSON.stringify(a.metadata??{}),a.projectId,a.path)}async deleteFile(a,b){this.getDB().prepare("DELETE FROM files WHERE project_id = ? AND path = ?").run(a,b)}async listFiles(a){return this.getDB().prepare("SELECT * FROM files WHERE project_id = ? ORDER BY path").all(a).map(b=>this.rowToFile(b,a))}async deleteProjectFiles(a){this.getDB().prepare("DELETE FROM files WHERE project_id = ?").run(a)}rowToFile(a,b){let c=a.type,d=a.content,e=d;if(("image"===c||"video"===c)&&d)try{let a=d;if(d.startsWith("data:")){let b=d.indexOf(",");-1!==b&&(a=d.slice(b+1))}let b=Buffer.from(a,"base64");e=b.buffer.slice(b.byteOffset,b.byteOffset+b.byteLength)}catch{e=d}return{id:a.id,projectId:b,path:a.path,name:a.name,type:c,content:e,mimeType:a.mime_type,size:a.size,createdAt:y(a.created_at),updatedAt:y(a.updated_at),metadata:x(a.metadata,{})}}async createTreeNode(a){this.getDB().prepare(` INSERT INTO file_tree_nodes ( id, project_id, path, name, type, parent_path, is_expanded, metadata ) VALUES (?, ?, ?, ?, ?, ?, ?, ?) @@ -542,7 +650,7 @@ UPDATE file_tree_nodes SET name = ?, type = ?, parent_path = ?, is_expanded = ?, metadata = ? WHERE project_id = ? AND path = ? - `).run(a.name,a.type,a.parentPath??null,+!!a.isExpanded,JSON.stringify(a.metadata??{}),a.projectId,a.path)}async deleteTreeNode(a,b){this.getDB().prepare("DELETE FROM file_tree_nodes WHERE project_id = ? AND path = ?").run(a,b)}async getChildNodes(a,b){let c=this.getDB();return(null===b?c.prepare("SELECT * FROM file_tree_nodes WHERE project_id = ? AND parent_path IS NULL ORDER BY type DESC, name").all(a):c.prepare("SELECT * FROM file_tree_nodes WHERE project_id = ? AND parent_path = ? ORDER BY type DESC, name").all(a,b)).map(b=>this.rowToTreeNode(b,a))}async getAllTreeNodes(a){return this.getDB().prepare("SELECT * FROM file_tree_nodes WHERE project_id = ? ORDER BY path").all(a).map(b=>this.rowToTreeNode(b,a))}rowToTreeNode(a,b){return{id:a.id,projectId:b,path:a.path,name:a.name,type:a.type,parentPath:a.parent_path,isExpanded:!!a.is_expanded,metadata:u(a.metadata,{})}}async saveCustomTemplate(a){let b=this.getDB();b.prepare("SELECT id FROM custom_templates WHERE id = ?").get(a.id)?b.prepare(` + `).run(a.name,a.type,a.parentPath??null,+!!a.isExpanded,JSON.stringify(a.metadata??{}),a.projectId,a.path)}async deleteTreeNode(a,b){this.getDB().prepare("DELETE FROM file_tree_nodes WHERE project_id = ? AND path = ?").run(a,b)}async getChildNodes(a,b){let c=this.getDB();return(null===b?c.prepare("SELECT * FROM file_tree_nodes WHERE project_id = ? AND parent_path IS NULL ORDER BY type DESC, name").all(a):c.prepare("SELECT * FROM file_tree_nodes WHERE project_id = ? AND parent_path = ? ORDER BY type DESC, name").all(a,b)).map(b=>this.rowToTreeNode(b,a))}async getAllTreeNodes(a){return this.getDB().prepare("SELECT * FROM file_tree_nodes WHERE project_id = ? ORDER BY path").all(a).map(b=>this.rowToTreeNode(b,a))}rowToTreeNode(a,b){return{id:a.id,projectId:b,path:a.path,name:a.name,type:a.type,parentPath:a.parent_path,isExpanded:!!a.is_expanded,metadata:x(a.metadata,{})}}async saveCustomTemplate(a){let b=this.getDB();b.prepare("SELECT id FROM custom_templates WHERE id = ?").get(a.id)?b.prepare(` UPDATE custom_templates SET name = ?, description = ?, version = ?, files = ?, directories = ?, assets = ?, @@ -553,30 +661,30 @@ id, name, description, version, files, directories, assets, metadata, imported_at ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) - `).run(a.id,a.name,a.description,a.version,JSON.stringify(a.files??[]),JSON.stringify(a.directories??[]),JSON.stringify(a.assets??[]),JSON.stringify(a.metadata??{}),x(a.importedAt))}async getCustomTemplate(a){let b=this.getDB().prepare("SELECT * FROM custom_templates WHERE id = ?").get(a);return b?this.rowToTemplate(b):null}async getAllCustomTemplates(){return this.getDB().prepare("SELECT * FROM custom_templates ORDER BY imported_at DESC").all().map(a=>this.rowToTemplate(a))}async deleteCustomTemplate(a){this.getDB().prepare("DELETE FROM custom_templates WHERE id = ?").run(a)}rowToTemplate(a){return{id:a.id,name:a.name,description:a.description,version:a.version,files:u(a.files,[]),directories:u(a.directories,[]),assets:u(a.assets,[]),metadata:u(a.metadata,{license:"personal"}),importedAt:v(a.imported_at)}}async createSkill(a){this.getDB().prepare(` + `).run(a.id,a.name,a.description,a.version,JSON.stringify(a.files??[]),JSON.stringify(a.directories??[]),JSON.stringify(a.assets??[]),JSON.stringify(a.metadata??{}),A(a.importedAt))}async getCustomTemplate(a){let b=this.getDB().prepare("SELECT * FROM custom_templates WHERE id = ?").get(a);return b?this.rowToTemplate(b):null}async getAllCustomTemplates(){return this.getDB().prepare("SELECT * FROM custom_templates ORDER BY imported_at DESC").all().map(a=>this.rowToTemplate(a))}async deleteCustomTemplate(a){this.getDB().prepare("DELETE FROM custom_templates WHERE id = ?").run(a)}rowToTemplate(a){return{id:a.id,name:a.name,description:a.description,version:a.version,files:x(a.files,[]),directories:x(a.directories,[]),assets:x(a.assets,[]),metadata:x(a.metadata,{license:"personal"}),importedAt:y(a.imported_at)}}async createSkill(a){this.getDB().prepare(` INSERT INTO skills ( id, name, description, content, markdown, is_built_in, created_at, updated_at ) VALUES (?, ?, ?, ?, ?, 0, ?, ?) - `).run(a.id,a.name,a.description,a.content,a.markdown,x(a.createdAt),x(a.updatedAt))}async getSkill(a){let b=this.getDB().prepare("SELECT * FROM skills WHERE id = ?").get(a);return b?this.rowToSkill(b):null}async updateSkill(a){this.getDB().prepare(` + `).run(a.id,a.name,a.description,a.content,a.markdown,A(a.createdAt),A(a.updatedAt))}async getSkill(a){let b=this.getDB().prepare("SELECT * FROM skills WHERE id = ?").get(a);return b?this.rowToSkill(b):null}async updateSkill(a){this.getDB().prepare(` UPDATE skills SET name = ?, description = ?, content = ?, markdown = ?, updated_at = ? WHERE id = ? AND is_built_in = 0 - `).run(a.name,a.description,a.content,a.markdown,x(a.updatedAt),a.id)}async deleteSkill(a){this.getDB().prepare("DELETE FROM skills WHERE id = ? AND is_built_in = 0").run(a)}async getAllSkills(){return this.getDB().prepare("SELECT * FROM skills ORDER BY name").all().map(a=>this.rowToSkill(a))}rowToSkill(a){return{id:a.id,name:a.name,description:a.description,content:a.content,markdown:a.markdown,isBuiltIn:!!a.is_built_in,createdAt:v(a.created_at),updatedAt:v(a.updated_at)}}async createSite(a){this.getDB().prepare(` - INSERT INTO sites ( + `).run(a.name,a.description,a.content,a.markdown,A(a.updatedAt),a.id)}async deleteSkill(a){this.getDB().prepare("DELETE FROM skills WHERE id = ? AND is_built_in = 0").run(a)}async getAllSkills(){return this.getDB().prepare("SELECT * FROM skills ORDER BY name").all().map(a=>this.rowToSkill(a))}rowToSkill(a){return{id:a.id,name:a.name,description:a.description,content:a.content,markdown:a.markdown,isBuiltIn:!!a.is_built_in,createdAt:y(a.created_at),updatedAt:y(a.updated_at)}}async createDeployment(a){this.getDB().prepare(` + INSERT INTO deployments ( id, project_id, name, slug, enabled, under_construction, custom_domain, head_scripts, body_scripts, cdn_links, analytics, seo, compliance, settings_version, last_published_version, preview_image, preview_updated_at, database_enabled, created_at, updated_at, published_at ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) - `).run(a.id,a.projectId,a.name,a.slug??null,+!!a.enabled,+!!a.underConstruction,a.customDomain??null,JSON.stringify(a.headScripts??[]),JSON.stringify(a.bodyScripts??[]),JSON.stringify(a.cdnLinks??[]),JSON.stringify(a.analytics??q),JSON.stringify(a.seo??s),JSON.stringify(a.compliance??r),a.settingsVersion??1,a.lastPublishedVersion??null,a.previewImage??null,w(a.previewUpdatedAt),+!!a.databaseEnabled,x(a.createdAt),x(a.updatedAt),w(a.publishedAt))}async getSite(a){let b=this.getDB().prepare("SELECT * FROM sites WHERE id = ?").get(a);return b?this.rowToSite(b):null}async getSiteBySlug(a){let b=this.getDB().prepare("SELECT * FROM sites WHERE slug = ?").get(a);return b?this.rowToSite(b):null}async listSites(){return this.getDB().prepare("SELECT * FROM sites ORDER BY updated_at DESC").all().map(a=>this.rowToSite(a))}async listSitesByProject(a){return this.getDB().prepare("SELECT * FROM sites WHERE project_id = ? ORDER BY created_at").all(a).map(a=>this.rowToSite(a))}async updateSite(a){this.getDB().prepare(` - UPDATE sites SET + `).run(a.id,a.projectId,a.name,a.slug??null,+!!a.enabled,+!!a.underConstruction,a.customDomain??null,JSON.stringify(a.headScripts??[]),JSON.stringify(a.bodyScripts??[]),JSON.stringify(a.cdnLinks??[]),JSON.stringify(a.analytics??t),JSON.stringify(a.seo??v),JSON.stringify(a.compliance??u),a.settingsVersion??1,a.lastPublishedVersion??null,a.previewImage??null,z(a.previewUpdatedAt),+!!a.databaseEnabled,A(a.createdAt),A(a.updatedAt),z(a.publishedAt))}async getDeployment(a){let b=this.getDB().prepare("SELECT * FROM deployments WHERE id = ?").get(a);return b?this.rowToDeployment(b):null}async getDeploymentBySlug(a){let b=this.getDB().prepare("SELECT * FROM deployments WHERE slug = ?").get(a);return b?this.rowToDeployment(b):null}async listDeployments(){return this.getDB().prepare("SELECT * FROM deployments ORDER BY updated_at DESC").all().map(a=>this.rowToDeployment(a))}async listDeploymentsByProject(a){return this.getDB().prepare("SELECT * FROM deployments WHERE project_id = ? ORDER BY created_at").all(a).map(a=>this.rowToDeployment(a))}async updateDeployment(a){this.getDB().prepare(` + UPDATE deployments SET project_id = ?, name = ?, slug = ?, enabled = ?, under_construction = ?, custom_domain = ?, head_scripts = ?, body_scripts = ?, cdn_links = ?, analytics = ?, seo = ?, compliance = ?, settings_version = ?, last_published_version = ?, preview_image = ?, preview_updated_at = ?, database_enabled = ?, updated_at = ?, published_at = ? WHERE id = ? - `).run(a.projectId,a.name,a.slug??null,+!!a.enabled,+!!a.underConstruction,a.customDomain??null,JSON.stringify(a.headScripts??[]),JSON.stringify(a.bodyScripts??[]),JSON.stringify(a.cdnLinks??[]),JSON.stringify(a.analytics??q),JSON.stringify(a.seo??s),JSON.stringify(a.compliance??r),a.settingsVersion??1,a.lastPublishedVersion??null,a.previewImage??null,w(a.previewUpdatedAt),+!!a.databaseEnabled,x(a.updatedAt),w(a.publishedAt),a.id)}async deleteSite(a){this.getDB().prepare("DELETE FROM sites WHERE id = ?").run(a);let b=this.siteDatabases.get(a);b&&(b.close(),this.siteDatabases.delete(a)),(0,d.uD)(a)&&(0,d._u)(a)}rowToSite(a){return{id:a.id,projectId:a.project_id,name:a.name,slug:a.slug,enabled:!!a.enabled,underConstruction:!!a.under_construction,customDomain:a.custom_domain,headScripts:u(a.head_scripts,[]),bodyScripts:u(a.body_scripts,[]),cdnLinks:u(a.cdn_links,[]),analytics:u(a.analytics,q),seo:u(a.seo,s),compliance:u(a.compliance,r),settingsVersion:a.settings_version??1,lastPublishedVersion:a.last_published_version,previewImage:a.preview_image,previewUpdatedAt:a.preview_updated_at?v(a.preview_updated_at):void 0,databaseEnabled:!!a.database_enabled,createdAt:v(a.created_at),updatedAt:v(a.updated_at),publishedAt:a.published_at?v(a.published_at):void 0}}getSiteDatabaseForAnalytics(a){let b=this.getSiteSync(a);return b&&b.databaseEnabled?this.getOrCreateSiteDB(a):null}getSiteSync(a){let b=this.getDB().prepare("SELECT * FROM sites WHERE id = ?").get(a);return b?this.rowToSite(b):null}constructor(){this.db=null,this.initialized=!1,this.siteDatabases=new Map}}let z=null;function A(){return z||(z=new y),z}},54605:(a,b,c)=>{c.d(b,{MG:()=>i,wu:()=>j,yg:()=>h});var d=c(55511),e=c.n(d);let f="aes-256-gcm";function g(){let a=process.env.SECRETS_ENCRYPTION_KEY;if(!a)throw Error("SECRETS_ENCRYPTION_KEY environment variable not set");let b=Buffer.from(a,"base64");if(32!==b.length)throw Error(`Invalid SECRETS_ENCRYPTION_KEY: expected 32 bytes, got ${b.length}`);return b}function h(){try{return g(),!0}catch{return!1}}function i(a){let b=g(),c=e().randomBytes(16),d=e().createCipheriv(f,b,c),h=d.update(a,"utf8","base64");return{encryptedValue:h+=d.final("base64"),iv:c.toString("base64"),authTag:d.getAuthTag().toString("base64")}}function j(a,b,c){let d=g(),h=e().createDecipheriv(f,d,Buffer.from(b,"base64"));h.setAuthTag(Buffer.from(c,"base64"));let i=h.update(a,"base64","utf8");return i+h.final("utf8")}}}; \ No newline at end of file + `).run(a.projectId,a.name,a.slug??null,+!!a.enabled,+!!a.underConstruction,a.customDomain??null,JSON.stringify(a.headScripts??[]),JSON.stringify(a.bodyScripts??[]),JSON.stringify(a.cdnLinks??[]),JSON.stringify(a.analytics??t),JSON.stringify(a.seo??v),JSON.stringify(a.compliance??u),a.settingsVersion??1,a.lastPublishedVersion??null,a.previewImage??null,z(a.previewUpdatedAt),+!!a.databaseEnabled,A(a.updatedAt),z(a.publishedAt),a.id)}async deleteDeployment(a){this.getDB().prepare("DELETE FROM deployments WHERE id = ?").run(a);let b=this.deploymentDatabases.get(a);b&&(b.close(),this.deploymentDatabases.delete(a)),(0,d.yF)(a)&&(0,d.qM)(a)}rowToDeployment(a){return{id:a.id,projectId:a.project_id,name:a.name,slug:a.slug,enabled:!!a.enabled,underConstruction:!!a.under_construction,customDomain:a.custom_domain,headScripts:x(a.head_scripts,[]),bodyScripts:x(a.body_scripts,[]),cdnLinks:x(a.cdn_links,[]),analytics:x(a.analytics,t),seo:x(a.seo,v),compliance:x(a.compliance,u),settingsVersion:a.settings_version??1,lastPublishedVersion:a.last_published_version,previewImage:a.preview_image,previewUpdatedAt:a.preview_updated_at?y(a.preview_updated_at):void 0,databaseEnabled:!!a.database_enabled,createdAt:y(a.created_at),updatedAt:y(a.updated_at),publishedAt:a.published_at?y(a.published_at):void 0}}getDeploymentDatabaseForAnalytics(a){let b=this.getDeploymentSync(a);return b&&b.databaseEnabled?this.getOrCreateDeploymentDB(a):null}getAnalyticsDatabaseInstance(a){let b=this.getDeploymentSync(a);if(!b||!b.databaseEnabled)return null;let c=this.analyticsDatabases.get(a);return c||((c=new q(a)).init(),this.analyticsDatabases.set(a,c)),c}getDeploymentSync(a){let b=this.getDB().prepare("SELECT * FROM deployments WHERE id = ?").get(a);return b?this.rowToDeployment(b):null}constructor(){this.db=null,this.initialized=!1,this.deploymentDatabases=new Map,this.analyticsDatabases=new Map,this.projectDatabases=new Map}}let C=null;function D(){return C||(C=new B),C}},54605:(a,b,c)=>{c.d(b,{MG:()=>i,wu:()=>j,yg:()=>h});var d=c(55511),e=c.n(d);let f="aes-256-gcm";function g(){let a=process.env.SECRETS_ENCRYPTION_KEY;if(!a)throw Error("SECRETS_ENCRYPTION_KEY environment variable not set");let b=Buffer.from(a,"base64");if(32!==b.length)throw Error(`Invalid SECRETS_ENCRYPTION_KEY: expected 32 bytes, got ${b.length}`);return b}function h(){try{return g(),!0}catch{return!1}}function i(a){let b=g(),c=e().randomBytes(16),d=e().createCipheriv(f,b,c),h=d.update(a,"utf8","base64");return{encryptedValue:h+=d.final("base64"),iv:c.toString("base64"),authTag:d.getAuthTag().toString("base64")}}function j(a,b,c){let d=g(),h=e().createDecipheriv(f,d,Buffer.from(b,"base64"));h.setAuthTag(Buffer.from(c,"base64"));let i=h.update(a,"base64","utf8");return i+h.final("utf8")}}}; \ No newline at end of file diff --git a/.next/server/chunks/740.js b/.next/server/chunks/740.js index b4c989c35c5ec5454e0946b45afc8c18b671c673..e4a17d1551f7c3509a95f4ed54c87e8afc8f2b8a 100644 --- a/.next/server/chunks/740.js +++ b/.next/server/chunks/740.js @@ -1 +1 @@ -"use strict";exports.id=740,exports.ids=[740],exports.modules={70740:(a,b,c)=>{async function d(a){}async function e(){return{serverProjectCount:0,serverSiteCount:0,serverLastUpdated:null,localProjectCount:0,isUninitialized:!1,needsSync:!1,loading:!1,error:"Server mode not enabled"}}c.d(b,{autoSyncProject:()=>d,jP:()=>e}),c(11482),c(15514),c(42830)}}; \ No newline at end of file +"use strict";exports.id=740,exports.ids=[740],exports.modules={70740:(a,b,c)=>{async function d(a){}async function e(){return{serverProjectCount:0,serverDeploymentCount:0,serverLastUpdated:null,localProjectCount:0,isUninitialized:!1,needsSync:!1,loading:!1,error:"Server mode not enabled"}}c.d(b,{autoSyncProject:()=>d,jP:()=>e}),c(11482),c(15514),c(42830)}}; \ No newline at end of file diff --git a/.next/server/chunks/7894.js b/.next/server/chunks/7894.js index de73b6641b6a89b1c21974add9208e1f82215090..791c1afa175ab39c9fb77ff5423cdc621c4996bb 100644 --- a/.next/server/chunks/7894.js +++ b/.next/server/chunks/7894.js @@ -1,4 +1,4 @@ -exports.id=7894,exports.ids=[7894],exports.modules={6636:(a,b,c)=>{"use strict";c.d(b,{skillsService:()=>d._}),c(15857);var d=c(7143)},7143:(a,b,c)=>{"use strict";c.d(b,{_:()=>l});var d=c(12897),e=c(15857),f=c(15514),g=c(39193),h=c.n(g);let i="osw_custom_skills",j="osw_skills_enabled_state";class k{async init(){if(!this.initialized)try{let a=localStorage.getItem(i);a&&JSON.parse(a).forEach(a=>{a.createdAt=new Date(a.createdAt),a.updatedAt=new Date(a.updatedAt),this.customSkills.set(a.id,a)});let b=localStorage.getItem(j);if(b){let a=JSON.parse(b);this.enabledState={globalEnabled:a.globalEnabled??!0,skillEvaluationEnabled:a.skillEvaluationEnabled??!1,disabledSkills:new Set(a.disabledSkills||[])}}this.initialized=!0,f.v.info(`[SkillsService] Loaded ${this.customSkills.size} custom skills`)}catch(a){f.v.error("[SkillsService] Failed to load custom skills",a)}}saveCustomSkills(){try{let a=Array.from(this.customSkills.values());localStorage.setItem(i,JSON.stringify(a))}catch(a){throw f.v.error("[SkillsService] Failed to save custom skills",a),Error("Failed to save skills")}}saveEnabledState(){try{let a={globalEnabled:this.enabledState.globalEnabled,skillEvaluationEnabled:this.enabledState.skillEvaluationEnabled,disabledSkills:Array.from(this.enabledState.disabledSkills)};localStorage.setItem(j,JSON.stringify(a))}catch(a){f.v.error("[SkillsService] Failed to save enabled state",a)}}async getAllSkills(){await this.init();let a=[];for(let b of e.Sj)try{let{frontmatter:c,markdown:e}=(0,d.N1)(b.content);a.push({id:b.id,name:c.name,description:c.description,content:b.content,markdown:e,isBuiltIn:!0,createdAt:new Date("2025-01-01"),updatedAt:new Date("2025-01-01")})}catch(a){f.v.error(`[SkillsService] Failed to parse built-in skill: ${b.id}`,a)}return a.push(...Array.from(this.customSkills.values())),a}async getSkillsMetadata(){return(await this.getAllSkills()).map(a=>({id:a.id,name:a.name,description:a.description,path:`/.skills/${a.id}.md`,isBuiltIn:a.isBuiltIn}))}async getSkill(a){await this.init();let b=this.customSkills.get(a);if(b)return b;let c=e.Sj.find(b=>b.id===a);if(c)try{let{frontmatter:a,markdown:b}=(0,d.N1)(c.content);return{id:c.id,name:a.name,description:a.description,content:c.content,markdown:b,isBuiltIn:!0,createdAt:new Date("2025-01-01"),updatedAt:new Date("2025-01-01")}}catch(b){f.v.error(`[SkillsService] Failed to parse built-in skill: ${a}`,b)}return null}async createSkill(a){await this.init();try{let{frontmatter:b,markdown:c}=(0,d.N1)(a),g=b.name;if(this.customSkills.has(g)||e.Sj.some(a=>a.id===g))throw Error(`Skill with name "${g}" already exists`);let h={id:g,name:b.name,description:b.description,content:a,markdown:c,isBuiltIn:!1,createdAt:new Date,updatedAt:new Date};return this.customSkills.set(g,h),this.saveCustomSkills(),f.v.info(`[SkillsService] Created skill: ${g}`),h}catch(a){if(a instanceof Error)throw a;throw Error("Failed to create skill")}}async updateSkill(a,b){await this.init();let c=this.customSkills.get(a);if(!c)throw Error(`Skill "${a}" not found`);if(c.isBuiltIn)throw Error("Cannot update built-in skills");try{let{frontmatter:e,markdown:g}=(0,d.N1)(b);if(e.name!==a)throw Error("Skill name cannot be changed. Create a new skill instead.");let h={...c,name:e.name,description:e.description,content:b,markdown:g,updatedAt:new Date};return this.customSkills.set(a,h),this.saveCustomSkills(),f.v.info(`[SkillsService] Updated skill: ${a}`),h}catch(a){if(a instanceof Error)throw a;throw Error("Failed to update skill")}}async deleteSkill(a){await this.init();let b=this.customSkills.get(a);if(!b)throw Error(`Skill "${a}" not found`);if(b.isBuiltIn)throw Error("Cannot delete built-in skills");this.customSkills.delete(a),this.saveCustomSkills(),f.v.info(`[SkillsService] Deleted skill: ${a}`)}async importSkills(a){await this.init();let b=[];try{let c=await h().loadAsync(a);for(let[a,d]of Object.entries(c.files)){if(d.dir||!a.endsWith(".md"))continue;let c=await d.async("string");try{let a=await this.createSkill(c);b.push(a)}catch(b){f.v.warn(`[SkillsService] Failed to import ${a}:`,b)}}return f.v.info(`[SkillsService] Imported ${b.length} skills`),b}catch(a){throw f.v.error("[SkillsService] Failed to import skills",a),Error("Failed to import skills")}}async importSkillFile(a){let b=await a.text();return this.createSkill(b)}async exportSkills(a){await this.init();let b=new(h());for(let c of a){let a=await this.getSkill(c);if(!a){f.v.warn(`[SkillsService] Skill not found for export: ${c}`);continue}b.file(`${a.id}.md`,a.content)}return f.v.info(`[SkillsService] Exported ${a.length} skills`),await b.generateAsync({type:"blob"})}async clearCustomSkills(){this.customSkills.clear(),localStorage.removeItem(i),f.v.info("[SkillsService] Cleared all custom skills")}async isGloballyEnabled(){return await this.init(),this.enabledState.globalEnabled}async setGlobalEnabled(a){await this.init(),this.enabledState.globalEnabled=a,this.saveEnabledState(),f.v.info(`[SkillsService] Global enabled set to: ${a}`)}async isEvaluationEnabled(){return await this.init(),this.enabledState.globalEnabled&&this.enabledState.skillEvaluationEnabled}async setEvaluationEnabled(a){await this.init(),this.enabledState.skillEvaluationEnabled=a,this.saveEnabledState(),f.v.info(`[SkillsService] Skill evaluation set to: ${a}`)}async isSkillEnabled(a){return await this.init(),!!this.enabledState.globalEnabled&&!this.enabledState.disabledSkills.has(a)}async enableSkill(a){await this.init(),this.enabledState.disabledSkills.delete(a),this.saveEnabledState(),f.v.info(`[SkillsService] Enabled skill: ${a}`)}async disableSkill(a){await this.init(),this.enabledState.disabledSkills.add(a),this.saveEnabledState(),f.v.info(`[SkillsService] Disabled skill: ${a}`)}async getEnabledSkills(){return(await this.init(),this.enabledState.globalEnabled)?(await this.getAllSkills()).filter(a=>!this.enabledState.disabledSkills.has(a.id)):[]}async getEnabledSkillsMetadata(){return(await this.getEnabledSkills()).map(a=>({id:a.id,name:a.name,description:a.description,path:`/.skills/${a.id}.md`,isBuiltIn:a.isBuiltIn}))}async getCustomSkills(){return await this.init(),Array.from(this.customSkills.values())}async updateSyncMetadata(a,b,c){await this.init();let d=this.customSkills.get(a);if(!d||d.isBuiltIn)return;let e={...d,lastSyncedAt:b,serverUpdatedAt:c};this.customSkills.set(a,e),this.saveCustomSkills(),f.v.info(`[SkillsService] Updated sync metadata for skill: ${a}`)}async importFromServer(a){await this.init();let b={...a,createdAt:new Date(a.createdAt),updatedAt:new Date(a.updatedAt),lastSyncedAt:new Date,serverUpdatedAt:new Date(a.updatedAt),isBuiltIn:!1};this.customSkills.set(b.id,b),this.saveCustomSkills(),f.v.info(`[SkillsService] Imported skill from server: ${b.id}`)}async hasSkill(a){return await this.init(),this.customSkills.has(a)||e.Sj.some(b=>b.id===a)}constructor(){this.customSkills=new Map,this.initialized=!1,this.enabledState={globalEnabled:!0,skillEvaluationEnabled:!1,disabledSkills:new Set}}}let l=new k},7629:(a,b,c)=>{"use strict";c.d(b,{p:()=>f});var d=c(21124);c(38301);var e=c(15514);function f({className:a,type:b,...c}){return(0,d.jsx)("input",{type:b,"data-slot":"input",className:(0,e.cn)("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","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",a),...c})}},11482:(a,b,c)=>{"use strict";c.d(b,{vfs:()=>n});var d=c(2117),e=c(39193),f=c.n(e),g=c(15514),h=c(96352),i=c(49186),j=c(13531),k=c(6636);class l{async init(){return this.initPromise&&this.db||(this.initPromise=new Promise((a,b)=>{let c=indexedDB.open("osw-studio-db",4);c.onerror=()=>b(c.error),c.onsuccess=()=>{this.db=c.result,a()},c.onupgradeneeded=a=>{let b=a.target.result;if(!b.objectStoreNames.contains("projects")){let a=b.createObjectStore("projects",{keyPath:"id"});a.createIndex("name","name",{unique:!1}),a.createIndex("createdAt","createdAt",{unique:!1})}if(!b.objectStoreNames.contains("files")){let a=b.createObjectStore("files",{keyPath:"id"});a.createIndex("projectId","projectId",{unique:!1}),a.createIndex("path",["projectId","path"],{unique:!0}),a.createIndex("type","type",{unique:!1})}if(!b.objectStoreNames.contains("fileTree")){let a=b.createObjectStore("fileTree",{keyPath:"id"});a.createIndex("projectId","projectId",{unique:!1}),a.createIndex("path",["projectId","path"],{unique:!0}),a.createIndex("parentPath",["projectId","parentPath"],{unique:!1})}if(!b.objectStoreNames.contains("conversations")){let a=b.createObjectStore("conversations",{keyPath:"id"});a.createIndex("projectId","projectId",{unique:!1}),a.createIndex("lastUpdated","lastUpdated",{unique:!1})}if(!b.objectStoreNames.contains("checkpoints")){let a=b.createObjectStore("checkpoints",{keyPath:"id"});a.createIndex("projectId","projectId",{unique:!1}),a.createIndex("timestamp","timestamp",{unique:!1})}if(!b.objectStoreNames.contains("customTemplates")){let a=b.createObjectStore("customTemplates",{keyPath:"id"});a.createIndex("name","name",{unique:!1}),a.createIndex("importedAt","importedAt",{unique:!1})}if(!b.objectStoreNames.contains("skills")){let a=b.createObjectStore("skills",{keyPath:"id"});a.createIndex("name","name",{unique:!1}),a.createIndex("isBuiltIn","isBuiltIn",{unique:!1})}if(!b.objectStoreNames.contains("debugEvents")){let a=b.createObjectStore("debugEvents",{keyPath:"id"});a.createIndex("projectId","projectId",{unique:!1}),a.createIndex("timestamp","timestamp",{unique:!1})}}})),this.initPromise}async close(){this.db&&(this.db.close(),this.db=null)}getDB(){if(!this.db)throw Error("IndexedDB not initialized. Call init() first.");return this.db}getDatabase(){return this.getDB()}async createProject(a){let b=this.getDB().transaction(["projects"],"readwrite").objectStore("projects");await this.promisify(b.add(a))}async getProject(a){let b=this.getDB().transaction(["projects"],"readonly").objectStore("projects"),c=await this.promisify(b.get(a));return c?this.hydrateProject(c):null}async updateProject(a){let b=this.getDB().transaction(["projects"],"readwrite").objectStore("projects");await this.promisify(b.put(a))}async deleteProject(a){let b=this.getDB();await this.deleteProjectFiles(a);let c=b.transaction(["projects"],"readwrite").objectStore("projects");await this.promisify(c.delete(a))}async listProjects(a){let b=this.getDB().transaction(["projects"],"readonly").objectStore("projects"),c=await this.promisify(b.getAll()),d=c?.map(a=>this.hydrateProject(a))||[];return a&&a.length>0?d.map(b=>{let c={};return a.forEach(a=>{a in b&&(c[a]=b[a])}),c}):d}async createFile(a){let b=this.getDB().transaction(["files"],"readwrite").objectStore("files");await this.promisify(b.add(a))}async getFile(a,b){let c=this.getDB().transaction(["files"],"readonly").objectStore("files").index("path");return await this.promisify(c.get([a,b]))||null}async updateFile(a){let b=this.getDB().transaction(["files"],"readwrite").objectStore("files");await this.promisify(b.put(a))}async deleteFile(a,b){let c=await this.getFile(a,b);if(c){let a=this.getDB().transaction(["files"],"readwrite").objectStore("files");await this.promisify(a.delete(c.id))}}async listFiles(a){let b=this.getDB().transaction(["files"],"readonly").objectStore("files").index("projectId");return await this.promisify(b.getAll(a))||[]}async deleteProjectFiles(a){let b=await this.listFiles(a),c=this.getDB().transaction(["files"],"readwrite").objectStore("files");for(let a of b)await this.promisify(c.delete(a.id))}async createTreeNode(a){let b=this.getDB().transaction(["fileTree"],"readwrite").objectStore("fileTree");await this.promisify(b.add(a))}async getTreeNode(a,b){let c=this.getDB().transaction(["fileTree"],"readonly").objectStore("fileTree").index("path");return await this.promisify(c.get([a,b]))||null}async updateTreeNode(a){let b=this.getDB().transaction(["fileTree"],"readwrite").objectStore("fileTree");await this.promisify(b.put(a))}async deleteTreeNode(a,b){let c=await this.getTreeNode(a,b);if(c){let a=this.getDB().transaction(["fileTree"],"readwrite").objectStore("fileTree");await this.promisify(a.delete(c.id))}}async getChildNodes(a,b){let c=this.getDB().transaction(["fileTree"],"readonly").objectStore("fileTree").index("parentPath");return await this.promisify(c.getAll(null===b?[a]:[a,b]))||[]}async getAllTreeNodes(a){let b=this.getDB().transaction(["fileTree"],"readonly").objectStore("fileTree").index("projectId");return await this.promisify(b.getAll(a))||[]}async saveCustomTemplate(a){let b=this.getDB().transaction(["customTemplates"],"readwrite").objectStore("customTemplates");await this.promisify(b.put(a))}async getCustomTemplate(a){let b=this.getDB().transaction(["customTemplates"],"readonly").objectStore("customTemplates"),c=await this.promisify(b.get(a));return c?this.hydrateCustomTemplate(c):null}async getAllCustomTemplates(){let a=this.getDB().transaction(["customTemplates"],"readonly").objectStore("customTemplates");return(await this.promisify(a.getAll())).map(a=>this.hydrateCustomTemplate(a))}async deleteCustomTemplate(a){let b=this.getDB().transaction(["customTemplates"],"readwrite").objectStore("customTemplates");await this.promisify(b.delete(a))}async createSkill(a){let b=this.getDB().transaction(["skills"],"readwrite").objectStore("skills"),c={...a,isBuiltIn:!1};await this.promisify(b.add(c))}async getSkill(a){let b=this.getDB().transaction(["skills"],"readonly").objectStore("skills"),c=await this.promisify(b.get(a));return c?this.hydrateSkill(c):null}async updateSkill(a){let b=this.getDB().transaction(["skills"],"readwrite").objectStore("skills"),c={...a,isBuiltIn:!1};await this.promisify(b.put(c))}async deleteSkill(a){let b=this.getDB().transaction(["skills"],"readwrite").objectStore("skills");await this.promisify(b.delete(a))}async getAllSkills(){let a=this.getDB().transaction(["skills"],"readonly").objectStore("skills");return(await this.promisify(a.getAll())).filter(a=>!a.isBuiltIn).map(a=>this.hydrateSkill(a))}promisify(a){return new Promise((b,c)=>{a.onsuccess=()=>b(a.result),a.onerror=()=>c(a.error)})}hydrateProject(a){return{...a,createdAt:a.createdAt?new Date(a.createdAt):new Date,updatedAt:a.updatedAt?new Date(a.updatedAt):new Date,lastSavedAt:a.lastSavedAt?new Date(a.lastSavedAt):null}}hydrateCustomTemplate(a){return{...a,importedAt:a.importedAt?new Date(a.importedAt):new Date}}hydrateSkill(a){return{...a,createdAt:a.createdAt?new Date(a.createdAt):new Date,updatedAt:a.updatedAt?new Date(a.updatedAt):new Date}}constructor(){this.db=null,this.initPromise=null}}class m{constructor(){this.initialized=!1,this.initPromise=null,this.transientFiles=new Map,this.syncTimeouts=new Map,this.serverContextSiteId=null,this.serverContextMetadata=null,this.adapter=new l}async init(){this.initialized?await this.adapter.init():(this.initPromise||(this.initPromise=(async()=>{await this.adapter.init(),await this.mountTransientSkills(),this.initialized=!0})()),await this.initPromise)}getStorageAdapter(){if(!this.initialized)throw Error("VirtualFileSystem not initialized. Call init() first.");return this.adapter}getDatabase(){if(!(this.adapter instanceof l))throw Error("Direct database access only available with IndexedDBAdapter");return this.adapter.getDatabase()}async mountTransientSkills(){try{for(let a of(await k.skillsService.getEnabledSkills())){let b=`/.skills/${a.id}.md`,c={id:`transient-skill-${a.id}`,projectId:"transient",path:b,name:`${a.id}.md`,type:"text",content:a.content,mimeType:"text/markdown",size:new Blob([a.content]).size,createdAt:a.createdAt,updatedAt:a.updatedAt,metadata:{isTransient:!0,isBuiltIn:a.isBuiltIn}};this.transientFiles.set(b,c)}g.v.info(`[VFS] Mounted ${this.transientFiles.size} transient skill files`)}catch(a){g.v.error("[VFS] Failed to mount transient skills",a)}}isTransientPath(a){return a.startsWith("/.")}async reloadTransientSkills(){let a=new Map;for(let[b,c]of this.transientFiles)b.startsWith("/.server/")&&a.set(b,c);for(let[b,c]of(this.transientFiles.clear(),await this.mountTransientSkills(),a))this.transientFiles.set(b,c)}getServerContextSiteId(){return this.serverContextSiteId}hasServerContext(){return null!==this.serverContextSiteId}getServerContextMetadata(){return this.serverContextMetadata}async mountServerContext(a,b){g.v.warn("[VFS] Server context only available in Server Mode")}async fetchServerContextFromAPI(a,b){try{this.unmountServerContext();let c=await fetch(`/api/admin/sites/${a}/server-context`);if(!c.ok){let a=await c.json().catch(()=>({error:"Failed to fetch server context"}));throw Error(a.error||"Failed to fetch server context")}let d=await c.json();for(let a of d.files){let b={id:`transient-server-${a.path.replace(/[^a-z0-9]/gi,"-")}`,projectId:"transient",path:a.path,name:a.path.split("/").pop()||"",type:"text",content:a.content,mimeType:a.path.endsWith(".sql")?"text/sql":a.path.endsWith(".json")?"application/json":a.path.endsWith(".js")?"application/javascript":"text/markdown",size:new Blob([a.content]).size,createdAt:new Date,updatedAt:new Date,metadata:{isTransient:!0,isServerContext:!0,isReadOnly:a.isReadOnly}};this.transientFiles.set(a.path,b)}for(let a of["edge-functions","server-functions","secrets","scheduled-functions"]){let b=`/.server/${a}/`;Array.from(this.transientFiles.keys()).some(a=>a.startsWith(b))||this.mountTransientFile(`/.server/${a}/.gitkeep`,"",!0)}this.serverContextSiteId=a,this.serverContextMetadata=d.metadata,"undefined"!=typeof sessionStorage&&sessionStorage.setItem("vfs_serverContextSiteId",a),g.v.info(`[VFS] Mounted server context for site ${a} (${b}) via API`),window.dispatchEvent(new Event("filesChanged"))}catch(a){g.v.error("[VFS] Failed to fetch server context from API",a)}}async refreshServerContext(){if(!this.serverContextSiteId)return;let a=this.serverContextMetadata?.siteName||"";await this.fetchServerContextFromAPI(this.serverContextSiteId,a)}unmountServerContext(){let a=[];for(let b of this.transientFiles.keys())b.startsWith("/.server/")&&(this.transientFiles.delete(b),a.push(b));this.serverContextSiteId&&(g.v.info(`[VFS] Unmounted server context (${a.length} files)`),this.serverContextSiteId=null,this.serverContextMetadata=null,"undefined"!=typeof sessionStorage&&sessionStorage.removeItem("vfs_serverContextSiteId"))}getTransientFilesInDirectory(a){let b=a.endsWith("/")?a:a+"/",c=[];for(let[a,d]of this.transientFiles)a.startsWith(b)&&c.push(d);return c}mountTransientFile(a,b,c=!0){let d={id:`transient-server-${a.replace(/[^a-z0-9]/gi,"-")}`,projectId:"transient",path:a,name:a.split("/").pop()||"",type:"text",content:b,mimeType:a.endsWith(".sql")?"text/sql":a.endsWith(".json")?"application/json":a.endsWith(".js")?"application/javascript":"text/markdown",size:new Blob([b]).size,createdAt:new Date,updatedAt:new Date,metadata:{isTransient:!0,isServerContext:!0,isReadOnly:c}};this.transientFiles.set(a,d)}async updateServerContextFile(a,b){if(!this.serverContextSiteId&&"undefined"!=typeof sessionStorage){let a=sessionStorage.getItem("vfs_serverContextSiteId");a&&(g.v.info(`[VFS] Recovered serverContextSiteId from sessionStorage: ${a}`),this.serverContextSiteId=a)}if(!this.serverContextSiteId)throw Error("No site selected. Select a site from the Site Selector.");if("/.server/db/schema.sql"===a)throw Error(`Cannot modify ${a} - read-only file`);if(a.startsWith("/.server/secrets/")&&a.endsWith(".json"))return await this.updateSecretFromFile(a,b);if(a.startsWith("/.server/edge-functions/")&&a.endsWith(".json"))return await this.updateEdgeFunctionFromFile(a,b);if(a.startsWith("/.server/server-functions/")&&a.endsWith(".json"))return await this.updateServerFunctionFromFile(a,b);if(a.startsWith("/.server/scheduled-functions/")&&a.endsWith(".json"))return await this.updateScheduledFunctionFromFile(a,b);throw Error(`Cannot modify ${a} - unrecognized server context path`)}async mutateServerContextViaAPI(a,b,c){if(!this.serverContextSiteId)throw Error("No site selected. Select a site from the Site Selector.");let d=await fetch(`/api/admin/sites/${this.serverContextSiteId}/server-context/mutate`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({operation:a,path:b,content:c})}),e=await d.json();if(!e.success)throw Error(e.error||"Mutation failed");if("delete"===a)return this.transientFiles.delete(b),window.dispatchEvent(new Event("filesChanged")),{id:"deleted",projectId:"transient",path:b,name:b.split("/").pop()||"",type:"text",content:"",mimeType:"text/plain",size:0,createdAt:new Date,updatedAt:new Date,metadata:{isTransient:!0,isServerContext:!0,isReadOnly:!1}};if(e.file){let a=e.file.path;b!==a&&this.transientFiles.delete(b);let c={id:`transient-server-${a.replace(/[^a-z0-9]/gi,"-")}`,projectId:"transient",path:a,name:a.split("/").pop()||"",type:"text",content:e.file.content,mimeType:a.endsWith(".json")?"application/json":a.endsWith(".sql")?"text/sql":"text/markdown",size:new Blob([e.file.content]).size,createdAt:new Date,updatedAt:new Date,metadata:{isTransient:!0,isServerContext:!0,isReadOnly:e.file.isReadOnly}};this.transientFiles.set(a,c);let d=a.substring(0,a.lastIndexOf("/")+1)+".gitkeep";return this.transientFiles.has(d)&&this.transientFiles.delete(d),window.dispatchEvent(new Event("filesChanged")),c}throw Error("No file returned from mutation")}async updateEdgeFunctionFromFile(a,b){let d,{getSQLiteAdapter:e}=await import("./adapters/server"),{validateEdgeFunctionData:f,generateEdgeFunctionFile:g}=await c.e(9975).then(c.bind(c,19975));try{d=JSON.parse(b)}catch(b){let a=b instanceof Error?b.message:String(b);throw Error(`Invalid JSON: ${a}`)}let h=f(d);if(!h.valid)throw Error(`Validation failed: ${h.errors.join("; ")}`);let i=d,j=e();await j.init();let k=j.getSiteDatabaseForAnalytics(this.serverContextSiteId);if(!k)throw Error("Site database not available");let l=a.split("/").pop().replace(".json",""),m=k.getFunctionByName(l);if(m){if(k.updateFunction(m.id,{name:i.name,code:i.code,method:i.method,description:i.description,enabled:i.enabled??!0,timeoutMs:i.timeoutMs??5e3}),i.name!==l){this.transientFiles.delete(a);let b=`/.server/edge-functions/${i.name}.json`,c=k.getFunctionByName(i.name);return this.mountTransientFile(b,g(c),!1),this.transientFiles.get(b)}}else k.createFunction({name:i.name,code:i.code,method:i.method,description:i.description,enabled:i.enabled??!0,timeoutMs:i.timeoutMs??5e3});let n=k.getFunctionByName(i.name);this.mountTransientFile(a,g(n),!1);let o="/.server/edge-functions/.gitkeep";return this.transientFiles.has(o)&&this.transientFiles.delete(o),this.transientFiles.get(a)}async updateServerFunctionFromFile(a,b){let d,{getSQLiteAdapter:e}=await import("./adapters/server"),{validateServerFunctionData:f,generateServerFunctionFile:g}=await c.e(9975).then(c.bind(c,19975));try{d=JSON.parse(b)}catch(b){let a=b instanceof Error?b.message:String(b);throw Error(`Invalid JSON: ${a}`)}let h=f(d);if(!h.valid)throw Error(`Validation failed: ${h.errors.join("; ")}`);let i=d,j=e();await j.init();let k=j.getSiteDatabaseForAnalytics(this.serverContextSiteId);if(!k)throw Error("Site database not available");let l=a.split("/").pop().replace(".json",""),m=k.getServerFunctionByName(l);if(m){if(k.updateServerFunction(m.id,{name:i.name,code:i.code,description:i.description,enabled:i.enabled??!0}),i.name!==l){this.transientFiles.delete(a);let b=`/.server/server-functions/${i.name}.json`,c=k.getServerFunctionByName(i.name);return this.mountTransientFile(b,g(c),!1),this.transientFiles.get(b)}}else k.createServerFunction({name:i.name,code:i.code,description:i.description,enabled:i.enabled??!0});let n=k.getServerFunctionByName(i.name);this.mountTransientFile(a,g(n),!1);let o="/.server/server-functions/.gitkeep";return this.transientFiles.has(o)&&this.transientFiles.delete(o),this.transientFiles.get(a)}async updateScheduledFunctionFromFile(a,b){let d,{getSQLiteAdapter:e}=await import("./adapters/server"),{validateScheduledFunctionData:f,generateScheduledFunctionFile:g}=await c.e(9975).then(c.bind(c,19975));try{d=JSON.parse(b)}catch(b){let a=b instanceof Error?b.message:String(b);throw Error(`Invalid JSON: ${a}`)}let h=f(d);if(!h.valid)throw Error(`Validation failed: ${h.errors.join("; ")}`);let i=d,j=e();await j.init();let k=j.getSiteDatabaseForAnalytics(this.serverContextSiteId);if(!k)throw Error("Site database not available");let l=k.getFunctionByName(i.functionName);if(!l)throw Error(`Edge function "${i.functionName}" not found. Create it first.`);let m=a.split("/").pop().replace(".json",""),n=k.getScheduledFunctionByName(m);if(n){if(k.updateScheduledFunction(n.id,{name:i.name,functionId:l.id,cronExpression:i.cronExpression,timezone:i.timezone||"UTC",description:i.description,enabled:i.enabled??!0,config:i.config||{}}),i.name!==m){this.transientFiles.delete(a);let b=`/.server/scheduled-functions/${i.name}.json`,c=k.getScheduledFunctionByName(i.name);return this.mountTransientFile(b,g(c,i.functionName),!1),this.transientFiles.get(b)}}else k.createScheduledFunction({name:i.name,functionId:l.id,cronExpression:i.cronExpression,timezone:i.timezone||"UTC",description:i.description,enabled:i.enabled??!0,config:i.config||{}});let o=k.getScheduledFunctionByName(i.name);this.mountTransientFile(a,g(o,i.functionName),!1);let p="/.server/scheduled-functions/.gitkeep";return this.transientFiles.has(p)&&this.transientFiles.delete(p),this.transientFiles.get(a)}async updateSecretFromFile(a,b){let d,{getSQLiteAdapter:e}=await import("./adapters/server"),{validateSecretData:f,generateSecretFile:g}=await c.e(9975).then(c.bind(c,19975));try{d=JSON.parse(b)}catch(b){let a=b instanceof Error?b.message:String(b);throw Error(`Invalid JSON: ${a}`)}let h=f(d);if(!h.valid)throw Error(`Validation failed: ${h.errors.join("; ")}`);let i=d,j=e();await j.init();let k=j.getSiteDatabaseForAnalytics(this.serverContextSiteId);if(!k)throw Error("Site database not available");let l=a.split("/").pop().replace(".json",""),m=k.getSecretByName(l);if(m){if(k.updateSecretMetadata(m.id,{name:i.name,description:i.description||""}),i.name!==l){this.transientFiles.delete(a);let b=`/.server/secrets/${i.name}.json`,c=k.getSecretByName(i.name);return this.mountTransientFile(b,g(c),!1),this.transientFiles.get(b)}}else k.createSecretPlaceholder(i.name,i.description||"");let n=k.getSecretByName(i.name);this.mountTransientFile(a,g(n),!1);let o="/.server/secrets/.gitkeep";return this.transientFiles.has(o)&&this.transientFiles.delete(o),this.transientFiles.get(a)}async createServerContextFile(a,b){if(!this.serverContextSiteId&&"undefined"!=typeof sessionStorage){let a=sessionStorage.getItem("vfs_serverContextSiteId");a&&(g.v.info(`[VFS] Recovered serverContextSiteId from sessionStorage: ${a}`),this.serverContextSiteId=a)}if(!this.serverContextSiteId)throw Error("No site selected. Select a site from the Site Selector.");if(this.transientFiles.has(a))throw Error(`File already exists: ${a}`);if(a.startsWith("/.server/secrets/")&&a.endsWith(".json"))return await this.updateSecretFromFile(a,b);if(a.startsWith("/.server/edge-functions/")&&a.endsWith(".json"))return await this.updateEdgeFunctionFromFile(a,b);if(a.startsWith("/.server/server-functions/")&&a.endsWith(".json"))return await this.updateServerFunctionFromFile(a,b);if(a.startsWith("/.server/scheduled-functions/")&&a.endsWith(".json"))return await this.updateScheduledFunctionFromFile(a,b);throw Error(`Cannot create ${a} - only secrets, edge functions, server functions, and scheduled functions (.json) can be created`)}async deleteServerContextFile(a){if(!this.serverContextSiteId&&"undefined"!=typeof sessionStorage){let a=sessionStorage.getItem("vfs_serverContextSiteId");a&&(g.v.info(`[VFS] Recovered serverContextSiteId from sessionStorage: ${a}`),this.serverContextSiteId=a)}if(!this.serverContextSiteId)throw Error("No site selected");if("/.server/db/schema.sql"===a)throw Error(`Cannot delete ${a} - read-only file`);if(a.startsWith("/.server/secrets/")&&a.endsWith(".json")){let{getSQLiteAdapter:b}=await import("./adapters/server"),c=b();await c.init();let d=c.getSiteDatabaseForAnalytics(this.serverContextSiteId);if(!d)throw Error("Site database not available");let e=a.split("/").pop().replace(".json",""),f=d.getSecretByName(e);if(!f)throw Error(`Secret not found: ${e}`);d.deleteSecret(f.id),this.transientFiles.delete(a);return}if(a.startsWith("/.server/edge-functions/")&&a.endsWith(".json")){let{getSQLiteAdapter:b}=await import("./adapters/server"),c=b();await c.init();let d=c.getSiteDatabaseForAnalytics(this.serverContextSiteId);if(!d)throw Error("Site database not available");let e=a.split("/").pop().replace(".json",""),f=d.getFunctionByName(e);if(!f)throw Error(`Edge function not found: ${e}`);d.deleteFunction(f.id),this.transientFiles.delete(a);return}if(a.startsWith("/.server/server-functions/")&&a.endsWith(".json")){let{getSQLiteAdapter:b}=await import("./adapters/server"),c=b();await c.init();let d=c.getSiteDatabaseForAnalytics(this.serverContextSiteId);if(!d)throw Error("Site database not available");let e=a.split("/").pop().replace(".json",""),f=d.getServerFunctionByName(e);if(!f)throw Error(`Server function not found: ${e}`);d.deleteServerFunction(f.id),this.transientFiles.delete(a);return}throw Error(`Cannot delete ${a} - read-only file`)}ensureInitialized(){if(!this.initialized)throw Error("VirtualFileSystem not initialized. Call init() first.")}triggerAutoSync(a){}clearSyncTimeout(a){let b=this.syncTimeouts.get(a);b&&(clearTimeout(b),this.syncTimeouts.delete(a),g.v.debug(`[VFS] Cleared sync timeout for project ${a}`))}async createFile(a,b,c){this.ensureInitialized();try{if((b=b.replace(/\\n$|\\r$|\n$|\r$/,"").trim()).startsWith("/.server/"))return await this.createServerContextFile(b,c);if(await this.adapter.getFile(a,b))throw g.v.error("VFS: File already exists",{projectId:a,path:b}),Error(`File already exists: ${b}`);if(!(0,h.fu)(b))throw Error(`Unsupported file type: ${b}`);let e=(0,h.Gr)(b),f=c instanceof ArrayBuffer?c.byteLength:new Blob([c]).size,j=h.Q6[e];if(f>j)throw Error(`File too large. Maximum size for ${e} files is ${Math.round(j/1024/1024)}MB`);let k={id:(0,d.A)(),projectId:a,path:b,name:b.split("/").pop()||"",type:e,content:c,mimeType:(0,h.N$)(b),size:f,createdAt:new Date,updatedAt:new Date,metadata:{isEntry:"/index.html"===b}};return await this.adapter.createFile(k),await this.updateFileTree(a,b,"create"),i.$.markDirty(a),k}catch(a){throw a}}async readFile(a,b){if(this.ensureInitialized(),!a||"string"!=typeof a)throw g.v.error("VFS: Invalid projectId for readFile",{projectId:a,path:b}),Error("Invalid projectId provided");if(!b||"string"!=typeof b)throw g.v.error("VFS: Invalid path for readFile",{projectId:a,path:b}),Error("Invalid file path provided");let c=b.replace(/\\n$|\\r$|\n$|\r$/,"").trim();if(!c)throw g.v.error("VFS: Empty path after cleaning for readFile",{projectId:a,originalPath:b,cleanPath:c}),Error("Empty file path after cleaning");if(this.isTransientPath(c)){let a=this.transientFiles.get(c);if(a)return a;throw Error(`Transient file not found: ${c}`)}let d=await this.adapter.getFile(a,c);if(!d)throw g.v.error("VFS: File not found for read",{projectId:a,path:c,originalPath:b}),Error(`File not found: ${c}`);return d}async fileExists(a,b){this.ensureInitialized();try{if(this.isTransientPath(b))return this.transientFiles.has(b);return!!await this.adapter.getFile(a,b)}catch{return!1}}async updateFile(a,b,c){this.ensureInitialized();try{let d=b.replace(/\\n$|\\r$|\n$|\r$/,"").trim();if(d.includes("\n")||d.includes("@@")||d.includes("\\n")||d.length>200)throw g.v.error("VFS: Invalid path detected",{projectId:a,path:b.slice(0,100)+"..."}),Error(`Invalid file path: ${b.slice(0,50)}...`);if((b=d).startsWith("/.server/"))return await this.updateServerContextFile(b,c);let e=await this.adapter.getFile(a,b);if(!e)throw g.v.error("VFS: File not found for update",{projectId:a,path:b}),Error(`File not found: ${b}`);return e.content=c,e.size=c instanceof ArrayBuffer?c.byteLength:new Blob([c]).size,e.updatedAt=new Date,await this.adapter.updateFile(e),i.$.markDirty(a),e}catch(a){throw a}}async patchFile(a,b,c){this.ensureInitialized();let d=(await this.readFile(a,b)).content;for(let a of c){if(!d.includes(a.search))throw g.v.error("VFS: Pattern not found in file",{path:b,searchPattern:a.search.substring(0,100),contentSnippet:d.substring(0,300)}),Error(`Pattern not found in file: ${a.search.substring(0,50)}...`);d=d.replace(a.search,a.replace)}return await this.updateFile(a,b,d)}async deleteFile(a,b){this.ensureInitialized();try{await this.adapter.deleteFile(a,b),await this.updateFileTree(a,b,"delete"),i.$.markDirty(a)}catch(a){throw a}}async renameFile(a,b,c){this.ensureInitialized();let d=await this.readFile(a,b);return await this.deleteFile(a,b),await this.createFile(a,c,d.content)}async createDirectory(a,b){if(this.ensureInitialized(),await this.adapter.getTreeNode(a,b))return;let c=b.split("/").pop()||b,e={id:(0,d.A)(),projectId:a,path:b,name:c,type:"directory",parentPath:this.getParentPath(b),children:[]};await this.adapter.createTreeNode(e),i.$.markDirty(a)}async listDirectory(a,b,c){let d;this.ensureInitialized();let e=await this.adapter.listFiles(a);if(d="/"===b?e:e.filter(a=>{let c=a.path,d=b.endsWith("/")?b:b+"/";return c.startsWith(d)&&-1===c.slice(d.length).indexOf("/")}),c?.includeTransient){let a=Array.from(this.transientFiles.values());if("/"===b)d=[...d,...a];else{let c=b.endsWith("/")?b:b+"/",e=a.filter(a=>a.path.startsWith(c)&&-1===a.path.slice(c.length).indexOf("/")),f=new Set;for(let b of a)if(b.path.startsWith(c)){let a=b.path.slice(c.length),d=a.indexOf("/");-1!==d&&f.add(a.slice(0,d))}let g=new Date;d=[...d,...e,...Array.from(f).map(a=>({id:`transient-dir-${c}${a}`,projectId:"transient",path:c+a,name:a,type:"text",content:"",mimeType:"",size:0,createdAt:g,updatedAt:g,metadata:{isTransient:!0,isServerContext:!0,isReadOnly:!0}}))]}}return d}async getAllFilesAndDirectories(a,b){this.ensureInitialized();let c=[...await this.adapter.listFiles(a),...(await this.adapter.getAllTreeNodes(a)).filter(a=>"directory"===a.type).map(a=>({path:a.path,name:a.path.split("/").filter(Boolean).pop()||a.path,type:"directory"}))];return b?.includeTransient&&(c=[...c,...Array.from(this.transientFiles.values())]),c}async deleteDirectory(a,b){this.ensureInitialized();let c=await this.adapter.listFiles(a),d=b.endsWith("/")?b:b+"/";for(let b of c)b.path.startsWith(d)&&await this.deleteFile(a,b.path);await this.adapter.deleteTreeNode(a,b),i.$.markDirty(a)}async renameDirectory(a,b,c){this.ensureInitialized();let e=await this.adapter.getTreeNode(a,b);if(e){await this.adapter.deleteTreeNode(a,b);let f={id:(0,d.A)(),projectId:a,path:c,name:c.split("/").pop()||c,type:"directory",parentPath:this.getParentPath(c),children:e.children};await this.adapter.createTreeNode(f),i.$.markDirty(a)}let f=b.endsWith("/")?b:b+"/",g=c.endsWith("/")?c:c+"/";for(let b of(await this.adapter.listFiles(a)).filter(a=>a.path.startsWith(f))){let c=g+b.path.substring(f.length);await this.renameFile(a,b.path,c)}for(let c of(await this.adapter.getAllTreeNodes(a)).filter(a=>"directory"===a.type&&a.path.startsWith(f)&&a.path!==b)){let b=g+c.path.substring(f.length);await this.adapter.deleteTreeNode(a,c.path);let e={id:(0,d.A)(),projectId:a,path:b,name:b.split("/").pop()||b,type:"directory",parentPath:this.getParentPath(b),children:c.children};await this.adapter.createTreeNode(e)}}async moveFile(a,b,c){if(this.ensureInitialized(),await this.adapter.getFile(a,c))throw Error(`File already exists at destination: ${c}`);let d=await this.readFile(a,b),e=await this.createFile(a,c,d.content);return await this.deleteFile(a,b),e}async moveDirectory(a,b,c){this.ensureInitialized();let d=c.endsWith("/")?c:c+"/",e=b.endsWith("/")?b:b+"/";if(d.startsWith(e))throw Error("Cannot move a directory into itself");await this.renameDirectory(a,b,c)}async createProject(a,b,c){this.ensureInitialized();try{let e={id:c||(0,d.A)(),name:a,description:b,createdAt:new Date,updatedAt:new Date,settings:{},lastSavedCheckpointId:null,lastSavedAt:null,costTracking:{totalCost:0,providerBreakdown:{},sessionHistory:[]}};await this.adapter.createProject(e);let f={id:(0,d.A)(),projectId:e.id,path:"/",name:"/",type:"directory",parentPath:null,children:[]};return await this.adapter.createTreeNode(f),e}catch(a){throw a}}async getProject(a){this.ensureInitialized();let b=await this.adapter.getProject(a);if(!b)throw Error(`Project not found: ${a}`);return b}async updateProject(a,b){this.ensureInitialized(),b?.preserveUpdatedAt||(a.updatedAt=new Date),await this.adapter.updateProject(a)}async updateProjectCost(a,b){this.ensureInitialized();let c=await this.getProject(a);if(!c)throw Error(`Project not found: ${a}`);c.costTracking||(c.costTracking={totalCost:0,providerBreakdown:{},sessionHistory:[]}),c.costTracking.totalCost+=b.cost,c.costTracking.providerBreakdown[b.provider]||(c.costTracking.providerBreakdown[b.provider]={totalCost:0,tokenUsage:{input:0,output:0},requestCount:0,lastUpdated:new Date});let d=c.costTracking.providerBreakdown[b.provider];d.totalCost+=b.cost,"delta"!==b.mode&&(d.requestCount+=1),d.lastUpdated=new Date,b.tokenUsage&&(d.tokenUsage.input+=b.tokenUsage.input,d.tokenUsage.output+=b.tokenUsage.output),b.sessionId&&"delta"!==b.mode&&(c.costTracking.sessionHistory||(c.costTracking.sessionHistory=[]),c.costTracking.sessionHistory.push({sessionId:b.sessionId,cost:b.cost,provider:b.provider,timestamp:new Date,tokenUsage:b.tokenUsage}),c.costTracking.sessionHistory.length>100&&(c.costTracking.sessionHistory=c.costTracking.sessionHistory.slice(-100))),await this.updateProject(c)}async applyProjectCostDelta(a,b){this.ensureInitialized();let c=await this.getProject(a);if(!c)throw Error(`Project not found: ${a}`);c.costTracking||(c.costTracking={totalCost:0,providerBreakdown:{},sessionHistory:[]}),c.costTracking.totalCost+=b.costDelta,c.costTracking.providerBreakdown[b.provider]||(c.costTracking.providerBreakdown[b.provider]={totalCost:0,tokenUsage:{input:0,output:0},requestCount:0,lastUpdated:new Date});let d=c.costTracking.providerBreakdown[b.provider];d.totalCost+=b.costDelta,d.lastUpdated=new Date,b.tokenUsageDelta&&(d.tokenUsage.input+=b.tokenUsageDelta.input,d.tokenUsage.output+=b.tokenUsageDelta.output),b.sessionId&&(c.costTracking.sessionHistory||(c.costTracking.sessionHistory=[]),c.costTracking.sessionHistory.push({sessionId:b.sessionId,cost:b.costDelta,provider:b.provider,timestamp:new Date,tokenUsage:b.tokenUsageDelta,correction:!0}),c.costTracking.sessionHistory.length>100&&(c.costTracking.sessionHistory=c.costTracking.sessionHistory.slice(-100))),await this.updateProject(c)}async deleteProject(a){this.ensureInitialized(),await this.adapter.deleteProject(a)}async listProjects(){return this.ensureInitialized(),await this.adapter.listProjects()}async listFiles(a){return this.ensureInitialized(),await this.adapter.listFiles(a)}async getFileTree(a){return this.ensureInitialized(),await this.adapter.getTreeNode(a,"/")}async searchFiles(a,b,c){this.ensureInitialized();let d=await this.adapter.listFiles(a),{regex:e=!1,fileType:f,limit:g=20,searchIn:h="both"}=c||{},i=d;if(f){let a=f.startsWith(".")?f:`.${f}`;i=d.filter(b=>b.path.endsWith(a))}let j=e?a=>{try{return RegExp(b,"i").test(a)}catch{return a.toLowerCase().includes(b.toLowerCase())}}:a=>a.toLowerCase().includes(b.toLowerCase());return i.filter(a=>"filename"===h?j(a.name)||j(a.path):"content"===h?"string"==typeof a.content&&j(a.content):j(a.name)||j(a.path)||"string"==typeof a.content&&j(a.content)).slice(0,g)}async findReferences(a,b,c="any"){this.ensureInitialized();let d=await this.adapter.listFiles(a),e=[],f=[];switch(c){case"class":f.push(RegExp(`class=["'][^"']*\\b${b}\\b[^"']*["']`,"gi")),f.push(RegExp(`\\.${b}\\b`,"g")),f.push(RegExp(`classList\\.(add|remove|toggle|contains)\\(['"\`]${b}['"\`]`,"g"));break;case"id":f.push(RegExp(`id=["']${b}["']`,"gi")),f.push(RegExp(`#${b}\\b`,"g")),f.push(RegExp(`getElementById\\(['"\`]${b}['"\`]`,"g")),f.push(RegExp(`querySelector\\(['"\`]#${b}['"\`]`,"g"));break;case"function":f.push(RegExp(`function\\s+${b}\\s*\\(`,"g")),f.push(RegExp(`(?:const|let|var)\\s+${b}\\s*=\\s*(?:\\([^)]*\\)|[^=])\\s*=>`,"g")),f.push(RegExp(`${b}\\s*\\(`,"g"));break;case"variable":f.push(RegExp(`(?:const|let|var)\\s+${b}\\b`,"g")),f.push(RegExp(`\\b${b}\\b`,"g"));break;default:f.push(RegExp(`\\b${b}\\b`,"gi"))}for(let a of d){if("string"!=typeof a.content)continue;let b=[];a.content.split("\n").forEach((a,c)=>{for(let d of f)if(d.test(a)){b.push({line:c+1,text:a.trim()});break}}),b.length>0&&e.push({file:a,matches:b})}return e}async getFileStats(a,b){this.ensureInitialized();let c=await this.adapter.getFile(a,b);if(!c)throw Error(`File not found: ${b}`);let d=("string"==typeof c.content?c.content:"").split("\n");return{path:c.path,size:c.size,lines:d.length,type:c.type,preview:d.slice(0,10),lastModified:c.updatedAt}}async getProjectSize(a){return this.ensureInitialized(),(await this.adapter.listFiles(a)).reduce((a,b)=>a+b.size,0)}async getProjectStats(a){let b;this.ensureInitialized();let c=await this.adapter.listFiles(a),d=0,e={};for(let a of c){d+=a.size;let b=a.path.split(".").pop()?.toUpperCase()||"OTHER";e[b]=(e[b]||0)+1}return b=d<1024?`${d} B`:d<1048576?`${(d/1024).toFixed(1)} KB`:`${(d/1048576).toFixed(2)} MB`,{fileCount:c.length,totalSize:d,fileTypes:e,formattedSize:b}}async exportProject(a){return this.ensureInitialized(),{project:await this.getProject(a),files:await this.adapter.listFiles(a)}}async exportProjectAsZip(a){this.ensureInitialized();let b=new(f());try{let c=new j.B(this,a);for(let a of(await c.compileProject()).files){let c=a.path.startsWith("/")?a.path.slice(1):a.path;this.shouldExcludeFromExport(a.path)||(a.content,b.file(c,a.content))}c.cleanupBlobUrls()}catch(c){for(let d of(g.v.warn("Failed to compile Handlebars templates during export, falling back to raw files:",c),await this.adapter.listFiles(a))){let a=d.path.startsWith("/")?d.path.slice(1):d.path;this.shouldExcludeFromExport(d.path)||(d.content,b.file(a,d.content))}}return await b.generateAsync({type:"blob",compression:"DEFLATE",compressionOptions:{level:6}})}shouldExcludeFromExport(a){return!!(a.endsWith(".hbs")||a.endsWith(".handlebars")||a.startsWith("/templates/"))||"/data.json"===a}async duplicateProject(a){this.ensureInitialized();let b=await this.getProject(a),c=await this.adapter.listFiles(a),d=`${b.name} (Copy)`.slice(0,50),e=await this.createProject(d,b.description);return await i.$.runWithSuppressedDirty(e.id,async()=>{for(let a of c)await this.createFile(e.id,a.path,a.content)}),e}async importProject(a){this.ensureInitialized();let b=await this.createProject(a.project.name,a.project.description);return await i.$.runWithSuppressedDirty(b.id,async()=>{for(let c of a.files)await this.createFile(b.id,c.path,c.content)}),b}getParentPath(a){if("/"===a)return null;let b=a.split("/").filter(Boolean);return 1===b.length?"/":(b.pop(),"/"+b.join("/"))}async updateFileTree(a,b,c){let d=this.getParentPath(b);if(null===d)return;let e=await this.adapter.getTreeNode(a,d);if(e||"create"!==c||(await this.createDirectory(a,d),e=await this.adapter.getTreeNode(a,d)),e){let a=e.children||[];if("create"!==c||a.includes(b)){if("delete"===c){let c=a.indexOf(b);c>-1&&a.splice(c,1)}}else a.push(b);e.children=a,await this.adapter.updateTreeNode(e)}}}let n=new m},12897:(a,b,c)=>{"use strict";c.d(b,{$7:()=>f,In:()=>g,N1:()=>e});let d=/^---\s*\n([\s\S]*?)\n---\s*\n([\s\S]*)$/;function e(a){let b=a.match(d);if(!b)throw Error("Invalid SKILL.md format: Missing YAML frontmatter");let[,c,e]=b;try{let a=function(a){let b=a.split("\n"),c={};for(let a of b){let b=a.trim();if(!b||b.startsWith("#"))continue;let d=b.indexOf(":");if(-1===d)continue;let e=b.slice(0,d).trim(),f=b.slice(d+1).trim();(f.startsWith('"')&&f.endsWith('"')||f.startsWith("'")&&f.endsWith("'"))&&(f=f.slice(1,-1)),"true"===f?f=!0:"false"===f?f=!1:isNaN(Number(f))||""===f||(f=Number(f)),c[e]=f}return c}(c);return function(a){if(!a.name||"string"!=typeof a.name)throw Error('Missing or invalid "name" field in frontmatter');if(!a.description||"string"!=typeof a.description)throw Error('Missing or invalid "description" field in frontmatter');if(!/^[a-z0-9-]+$/.test(a.name))throw Error('Skill name must be lowercase with hyphens only (e.g., "my-skill-name")');if(a.description.length>500)throw Error("Description must be 500 characters or less")}(a),{frontmatter:a,markdown:e.trim()}}catch(a){throw Error(`Failed to parse SKILL.md: ${a instanceof Error?a.message:"Unknown error"}`)}}function f(a,b){let c=[];for(let[b,d]of Object.entries(a))null!=d&&("string"==typeof d&&(d.includes(":")||d.includes("\n"))?c.push(`${b}: "${d}"`):c.push(`${b}: ${d}`));return`--- +exports.id=7894,exports.ids=[7894],exports.modules={6636:(a,b,c)=>{"use strict";c.d(b,{skillsService:()=>d._}),c(15857);var d=c(7143)},7143:(a,b,c)=>{"use strict";c.d(b,{_:()=>l});var d=c(12897),e=c(15857),f=c(15514),g=c(39193),h=c.n(g);let i="osw_custom_skills",j="osw_skills_enabled_state";class k{async init(){if(!this.initialized)try{let a=localStorage.getItem(i);a&&JSON.parse(a).forEach(a=>{a.createdAt=new Date(a.createdAt),a.updatedAt=new Date(a.updatedAt),this.customSkills.set(a.id,a)});let b=localStorage.getItem(j);if(b){let a=JSON.parse(b);this.enabledState={globalEnabled:a.globalEnabled??!0,skillEvaluationEnabled:a.skillEvaluationEnabled??!1,disabledSkills:new Set(a.disabledSkills||[])}}this.initialized=!0,f.v.info(`[SkillsService] Loaded ${this.customSkills.size} custom skills`)}catch(a){f.v.error("[SkillsService] Failed to load custom skills",a)}}saveCustomSkills(){try{let a=Array.from(this.customSkills.values());localStorage.setItem(i,JSON.stringify(a))}catch(a){throw f.v.error("[SkillsService] Failed to save custom skills",a),Error("Failed to save skills")}}saveEnabledState(){try{let a={globalEnabled:this.enabledState.globalEnabled,skillEvaluationEnabled:this.enabledState.skillEvaluationEnabled,disabledSkills:Array.from(this.enabledState.disabledSkills)};localStorage.setItem(j,JSON.stringify(a))}catch(a){f.v.error("[SkillsService] Failed to save enabled state",a)}}async getAllSkills(){await this.init();let a=[];for(let b of e.Sj)try{let{frontmatter:c,markdown:e}=(0,d.N1)(b.content);a.push({id:b.id,name:c.name,description:c.description,content:b.content,markdown:e,isBuiltIn:!0,createdAt:new Date("2025-01-01"),updatedAt:new Date("2025-01-01")})}catch(a){f.v.error(`[SkillsService] Failed to parse built-in skill: ${b.id}`,a)}return a.push(...Array.from(this.customSkills.values())),a}async getSkillsMetadata(){return(await this.getAllSkills()).map(a=>({id:a.id,name:a.name,description:a.description,path:`/.skills/${a.id}.md`,isBuiltIn:a.isBuiltIn}))}async getSkill(a){await this.init();let b=this.customSkills.get(a);if(b)return b;let c=e.Sj.find(b=>b.id===a);if(c)try{let{frontmatter:a,markdown:b}=(0,d.N1)(c.content);return{id:c.id,name:a.name,description:a.description,content:c.content,markdown:b,isBuiltIn:!0,createdAt:new Date("2025-01-01"),updatedAt:new Date("2025-01-01")}}catch(b){f.v.error(`[SkillsService] Failed to parse built-in skill: ${a}`,b)}return null}async createSkill(a){await this.init();try{let{frontmatter:b,markdown:c}=(0,d.N1)(a),g=b.name;if(this.customSkills.has(g)||e.Sj.some(a=>a.id===g))throw Error(`Skill with name "${g}" already exists`);let h={id:g,name:b.name,description:b.description,content:a,markdown:c,isBuiltIn:!1,createdAt:new Date,updatedAt:new Date};return this.customSkills.set(g,h),this.saveCustomSkills(),f.v.info(`[SkillsService] Created skill: ${g}`),h}catch(a){if(a instanceof Error)throw a;throw Error("Failed to create skill")}}async updateSkill(a,b){await this.init();let c=this.customSkills.get(a);if(!c)throw Error(`Skill "${a}" not found`);if(c.isBuiltIn)throw Error("Cannot update built-in skills");try{let{frontmatter:e,markdown:g}=(0,d.N1)(b);if(e.name!==a)throw Error("Skill name cannot be changed. Create a new skill instead.");let h={...c,name:e.name,description:e.description,content:b,markdown:g,updatedAt:new Date};return this.customSkills.set(a,h),this.saveCustomSkills(),f.v.info(`[SkillsService] Updated skill: ${a}`),h}catch(a){if(a instanceof Error)throw a;throw Error("Failed to update skill")}}async deleteSkill(a){await this.init();let b=this.customSkills.get(a);if(!b)throw Error(`Skill "${a}" not found`);if(b.isBuiltIn)throw Error("Cannot delete built-in skills");this.customSkills.delete(a),this.saveCustomSkills(),f.v.info(`[SkillsService] Deleted skill: ${a}`)}async importSkills(a){await this.init();let b=[];try{let c=await h().loadAsync(a);for(let[a,d]of Object.entries(c.files)){if(d.dir||!a.endsWith(".md"))continue;let c=await d.async("string");try{let a=await this.createSkill(c);b.push(a)}catch(b){f.v.warn(`[SkillsService] Failed to import ${a}:`,b)}}return f.v.info(`[SkillsService] Imported ${b.length} skills`),b}catch(a){throw f.v.error("[SkillsService] Failed to import skills",a),Error("Failed to import skills")}}async importSkillFile(a){let b=await a.text();return this.createSkill(b)}async exportSkills(a){await this.init();let b=new(h());for(let c of a){let a=await this.getSkill(c);if(!a){f.v.warn(`[SkillsService] Skill not found for export: ${c}`);continue}b.file(`${a.id}.md`,a.content)}return f.v.info(`[SkillsService] Exported ${a.length} skills`),await b.generateAsync({type:"blob"})}async clearCustomSkills(){this.customSkills.clear(),localStorage.removeItem(i),f.v.info("[SkillsService] Cleared all custom skills")}async isGloballyEnabled(){return await this.init(),this.enabledState.globalEnabled}async setGlobalEnabled(a){await this.init(),this.enabledState.globalEnabled=a,this.saveEnabledState(),f.v.info(`[SkillsService] Global enabled set to: ${a}`)}async isEvaluationEnabled(){return await this.init(),this.enabledState.globalEnabled&&this.enabledState.skillEvaluationEnabled}async setEvaluationEnabled(a){await this.init(),this.enabledState.skillEvaluationEnabled=a,this.saveEnabledState(),f.v.info(`[SkillsService] Skill evaluation set to: ${a}`)}async isSkillEnabled(a){return await this.init(),!!this.enabledState.globalEnabled&&!this.enabledState.disabledSkills.has(a)}async enableSkill(a){await this.init(),this.enabledState.disabledSkills.delete(a),this.saveEnabledState(),f.v.info(`[SkillsService] Enabled skill: ${a}`)}async disableSkill(a){await this.init(),this.enabledState.disabledSkills.add(a),this.saveEnabledState(),f.v.info(`[SkillsService] Disabled skill: ${a}`)}async getEnabledSkills(){return(await this.init(),this.enabledState.globalEnabled)?(await this.getAllSkills()).filter(a=>!this.enabledState.disabledSkills.has(a.id)):[]}async getEnabledSkillsMetadata(){return(await this.getEnabledSkills()).map(a=>({id:a.id,name:a.name,description:a.description,path:`/.skills/${a.id}.md`,isBuiltIn:a.isBuiltIn}))}async getCustomSkills(){return await this.init(),Array.from(this.customSkills.values())}async updateSyncMetadata(a,b,c){await this.init();let d=this.customSkills.get(a);if(!d||d.isBuiltIn)return;let e={...d,lastSyncedAt:b,serverUpdatedAt:c};this.customSkills.set(a,e),this.saveCustomSkills(),f.v.info(`[SkillsService] Updated sync metadata for skill: ${a}`)}async importFromServer(a){await this.init();let b={...a,createdAt:new Date(a.createdAt),updatedAt:new Date(a.updatedAt),lastSyncedAt:new Date,serverUpdatedAt:new Date(a.updatedAt),isBuiltIn:!1};this.customSkills.set(b.id,b),this.saveCustomSkills(),f.v.info(`[SkillsService] Imported skill from server: ${b.id}`)}async hasSkill(a){return await this.init(),this.customSkills.has(a)||e.Sj.some(b=>b.id===a)}constructor(){this.customSkills=new Map,this.initialized=!1,this.enabledState={globalEnabled:!0,skillEvaluationEnabled:!1,disabledSkills:new Set}}}let l=new k},7629:(a,b,c)=>{"use strict";c.d(b,{p:()=>f});var d=c(21124);c(38301);var e=c(15514);function f({className:a,type:b,...c}){return(0,d.jsx)("input",{type:b,"data-slot":"input",className:(0,e.cn)("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","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",a),...c})}},11482:(a,b,c)=>{"use strict";c.d(b,{vfs:()=>n});var d=c(2117),e=c(39193),f=c.n(e),g=c(15514),h=c(96352),i=c(49186),j=c(13531),k=c(6636);class l{async init(){return this.initPromise&&this.db||(this.initPromise=new Promise((a,b)=>{let c=indexedDB.open("osw-studio-db",5);c.onerror=()=>b(c.error),c.onsuccess=()=>{this.db=c.result,a()},c.onupgradeneeded=a=>{let b=a.target.result;if(!b.objectStoreNames.contains("projects")){let a=b.createObjectStore("projects",{keyPath:"id"});a.createIndex("name","name",{unique:!1}),a.createIndex("createdAt","createdAt",{unique:!1})}if(!b.objectStoreNames.contains("files")){let a=b.createObjectStore("files",{keyPath:"id"});a.createIndex("projectId","projectId",{unique:!1}),a.createIndex("path",["projectId","path"],{unique:!0}),a.createIndex("type","type",{unique:!1})}if(!b.objectStoreNames.contains("fileTree")){let a=b.createObjectStore("fileTree",{keyPath:"id"});a.createIndex("projectId","projectId",{unique:!1}),a.createIndex("path",["projectId","path"],{unique:!0}),a.createIndex("parentPath",["projectId","parentPath"],{unique:!1})}if(!b.objectStoreNames.contains("conversations")){let a=b.createObjectStore("conversations",{keyPath:"id"});a.createIndex("projectId","projectId",{unique:!1}),a.createIndex("lastUpdated","lastUpdated",{unique:!1})}if(!b.objectStoreNames.contains("checkpoints")){let a=b.createObjectStore("checkpoints",{keyPath:"id"});a.createIndex("projectId","projectId",{unique:!1}),a.createIndex("timestamp","timestamp",{unique:!1})}if(!b.objectStoreNames.contains("customTemplates")){let a=b.createObjectStore("customTemplates",{keyPath:"id"});a.createIndex("name","name",{unique:!1}),a.createIndex("importedAt","importedAt",{unique:!1})}if(!b.objectStoreNames.contains("skills")){let a=b.createObjectStore("skills",{keyPath:"id"});a.createIndex("name","name",{unique:!1}),a.createIndex("isBuiltIn","isBuiltIn",{unique:!1})}if(!b.objectStoreNames.contains("debugEvents")){let a=b.createObjectStore("debugEvents",{keyPath:"id"});a.createIndex("projectId","projectId",{unique:!1}),a.createIndex("timestamp","timestamp",{unique:!1})}if(!b.objectStoreNames.contains("edgeFunctions")){let a=b.createObjectStore("edgeFunctions",{keyPath:"id"});a.createIndex("projectId","projectId",{unique:!1}),a.createIndex("projectIdName",["projectId","name"],{unique:!0})}if(!b.objectStoreNames.contains("serverFunctions")){let a=b.createObjectStore("serverFunctions",{keyPath:"id"});a.createIndex("projectId","projectId",{unique:!1}),a.createIndex("projectIdName",["projectId","name"],{unique:!0})}if(!b.objectStoreNames.contains("secrets")){let a=b.createObjectStore("secrets",{keyPath:"id"});a.createIndex("projectId","projectId",{unique:!1}),a.createIndex("projectIdName",["projectId","name"],{unique:!0})}if(!b.objectStoreNames.contains("scheduledFunctions")){let a=b.createObjectStore("scheduledFunctions",{keyPath:"id"});a.createIndex("projectId","projectId",{unique:!1}),a.createIndex("projectIdName",["projectId","name"],{unique:!0})}}})),this.initPromise}async close(){this.db&&(this.db.close(),this.db=null)}getDB(){if(!this.db)throw Error("IndexedDB not initialized. Call init() first.");return this.db}getDatabase(){return this.getDB()}async createProject(a){let b=this.getDB().transaction(["projects"],"readwrite").objectStore("projects");await this.promisify(b.add(a))}async getProject(a){let b=this.getDB().transaction(["projects"],"readonly").objectStore("projects"),c=await this.promisify(b.get(a));return c?this.hydrateProject(c):null}async updateProject(a){let b=this.getDB().transaction(["projects"],"readwrite").objectStore("projects");await this.promisify(b.put(a))}async deleteProject(a){let b=this.getDB(),c=(await this.listFiles(a)).map(a=>a.id),d=(await this.getAllTreeNodes(a)).map(a=>a.id),e=(await this.listEdgeFunctions(a)).map(a=>a.id),f=(await this.listServerFunctions(a)).map(a=>a.id),g=(await this.listSecrets(a)).map(a=>a.id),h=(await this.listScheduledFunctions(a)).map(a=>a.id),i=b.transaction(["projects","files","fileTree","edgeFunctions","serverFunctions","secrets","scheduledFunctions"],"readwrite"),j=(a,b)=>{let c=i.objectStore(a);for(let a of b)c.delete(a)};j("files",c),j("fileTree",d),j("edgeFunctions",e),j("serverFunctions",f),j("secrets",g),j("scheduledFunctions",h),i.objectStore("projects").delete(a),await new Promise((a,b)=>{i.oncomplete=()=>a(),i.onerror=()=>b(i.error),i.onabort=()=>b(i.error||Error("Transaction aborted"))})}async listProjects(a){let b=this.getDB().transaction(["projects"],"readonly").objectStore("projects"),c=await this.promisify(b.getAll()),d=c?.map(a=>this.hydrateProject(a))||[];return a&&a.length>0?d.map(b=>{let c={};return a.forEach(a=>{a in b&&(c[a]=b[a])}),c}):d}async createFile(a){let b=this.getDB().transaction(["files"],"readwrite").objectStore("files");await this.promisify(b.add(a))}async getFile(a,b){let c=this.getDB().transaction(["files"],"readonly").objectStore("files").index("path");return await this.promisify(c.get([a,b]))||null}async updateFile(a){let b=this.getDB().transaction(["files"],"readwrite").objectStore("files");await this.promisify(b.put(a))}async deleteFile(a,b){let c=await this.getFile(a,b);if(c){let a=this.getDB().transaction(["files"],"readwrite").objectStore("files");await this.promisify(a.delete(c.id))}}async listFiles(a){let b=this.getDB().transaction(["files"],"readonly").objectStore("files").index("projectId");return await this.promisify(b.getAll(a))||[]}async deleteProjectFiles(a){let b=await this.listFiles(a),c=this.getDB().transaction(["files"],"readwrite").objectStore("files");for(let a of b)await this.promisify(c.delete(a.id))}async createTreeNode(a){let b=this.getDB().transaction(["fileTree"],"readwrite").objectStore("fileTree");await this.promisify(b.add(a))}async getTreeNode(a,b){let c=this.getDB().transaction(["fileTree"],"readonly").objectStore("fileTree").index("path");return await this.promisify(c.get([a,b]))||null}async updateTreeNode(a){let b=this.getDB().transaction(["fileTree"],"readwrite").objectStore("fileTree");await this.promisify(b.put(a))}async deleteTreeNode(a,b){let c=await this.getTreeNode(a,b);if(c){let a=this.getDB().transaction(["fileTree"],"readwrite").objectStore("fileTree");await this.promisify(a.delete(c.id))}}async getChildNodes(a,b){let c=this.getDB().transaction(["fileTree"],"readonly").objectStore("fileTree").index("parentPath");return await this.promisify(c.getAll(null===b?[a]:[a,b]))||[]}async getAllTreeNodes(a){let b=this.getDB().transaction(["fileTree"],"readonly").objectStore("fileTree").index("projectId");return await this.promisify(b.getAll(a))||[]}async saveCustomTemplate(a){let b=this.getDB().transaction(["customTemplates"],"readwrite").objectStore("customTemplates");await this.promisify(b.put(a))}async getCustomTemplate(a){let b=this.getDB().transaction(["customTemplates"],"readonly").objectStore("customTemplates"),c=await this.promisify(b.get(a));return c?this.hydrateCustomTemplate(c):null}async getAllCustomTemplates(){let a=this.getDB().transaction(["customTemplates"],"readonly").objectStore("customTemplates");return(await this.promisify(a.getAll())).map(a=>this.hydrateCustomTemplate(a))}async deleteCustomTemplate(a){let b=this.getDB().transaction(["customTemplates"],"readwrite").objectStore("customTemplates");await this.promisify(b.delete(a))}async createSkill(a){let b=this.getDB().transaction(["skills"],"readwrite").objectStore("skills"),c={...a,isBuiltIn:!1};await this.promisify(b.add(c))}async getSkill(a){let b=this.getDB().transaction(["skills"],"readonly").objectStore("skills"),c=await this.promisify(b.get(a));return c?this.hydrateSkill(c):null}async updateSkill(a){let b=this.getDB().transaction(["skills"],"readwrite").objectStore("skills"),c={...a,isBuiltIn:!1};await this.promisify(b.put(c))}async deleteSkill(a){let b=this.getDB().transaction(["skills"],"readwrite").objectStore("skills");await this.promisify(b.delete(a))}async getAllSkills(){let a=this.getDB().transaction(["skills"],"readonly").objectStore("skills");return(await this.promisify(a.getAll())).filter(a=>!a.isBuiltIn).map(a=>this.hydrateSkill(a))}async createEdgeFunction(a){let b=this.getDB().transaction(["edgeFunctions"],"readwrite").objectStore("edgeFunctions");await this.promisify(b.add(a))}async getEdgeFunction(a){let b=this.getDB().transaction(["edgeFunctions"],"readonly").objectStore("edgeFunctions"),c=await this.promisify(b.get(a));return c?this.hydrateEdgeFunction(c):null}async listEdgeFunctions(a){let b=this.getDB().transaction(["edgeFunctions"],"readonly").objectStore("edgeFunctions").index("projectId");return(await this.promisify(b.getAll(a))||[]).map(a=>this.hydrateEdgeFunction(a))}async updateEdgeFunction(a){let b=this.getDB().transaction(["edgeFunctions"],"readwrite").objectStore("edgeFunctions");await this.promisify(b.put(a))}async deleteEdgeFunction(a){let b=this.getDB().transaction(["edgeFunctions"],"readwrite").objectStore("edgeFunctions");await this.promisify(b.delete(a))}async createServerFunction(a){let b=this.getDB().transaction(["serverFunctions"],"readwrite").objectStore("serverFunctions");await this.promisify(b.add(a))}async getServerFunction(a){let b=this.getDB().transaction(["serverFunctions"],"readonly").objectStore("serverFunctions"),c=await this.promisify(b.get(a));return c?this.hydrateServerFunction(c):null}async listServerFunctions(a){let b=this.getDB().transaction(["serverFunctions"],"readonly").objectStore("serverFunctions").index("projectId");return(await this.promisify(b.getAll(a))||[]).map(a=>this.hydrateServerFunction(a))}async updateServerFunction(a){let b=this.getDB().transaction(["serverFunctions"],"readwrite").objectStore("serverFunctions");await this.promisify(b.put(a))}async deleteServerFunction(a){let b=this.getDB().transaction(["serverFunctions"],"readwrite").objectStore("serverFunctions");await this.promisify(b.delete(a))}async createSecret(a){let b=this.getDB().transaction(["secrets"],"readwrite").objectStore("secrets");await this.promisify(b.add(a))}async getSecret(a){let b=this.getDB().transaction(["secrets"],"readonly").objectStore("secrets"),c=await this.promisify(b.get(a));return c?this.hydrateSecret(c):null}async listSecrets(a){let b=this.getDB().transaction(["secrets"],"readonly").objectStore("secrets").index("projectId");return(await this.promisify(b.getAll(a))||[]).map(a=>this.hydrateSecret(a))}async updateSecret(a){let b=this.getDB().transaction(["secrets"],"readwrite").objectStore("secrets");await this.promisify(b.put(a))}async deleteSecret(a){let b=this.getDB().transaction(["secrets"],"readwrite").objectStore("secrets");await this.promisify(b.delete(a))}async createScheduledFunction(a){let b=this.getDB().transaction(["scheduledFunctions"],"readwrite").objectStore("scheduledFunctions");await this.promisify(b.add(a))}async getScheduledFunction(a){let b=this.getDB().transaction(["scheduledFunctions"],"readonly").objectStore("scheduledFunctions"),c=await this.promisify(b.get(a));return c?this.hydrateScheduledFunction(c):null}async listScheduledFunctions(a){let b=this.getDB().transaction(["scheduledFunctions"],"readonly").objectStore("scheduledFunctions").index("projectId");return(await this.promisify(b.getAll(a))||[]).map(a=>this.hydrateScheduledFunction(a))}async updateScheduledFunction(a){let b=this.getDB().transaction(["scheduledFunctions"],"readwrite").objectStore("scheduledFunctions");await this.promisify(b.put(a))}async deleteScheduledFunction(a){let b=this.getDB().transaction(["scheduledFunctions"],"readwrite").objectStore("scheduledFunctions");await this.promisify(b.delete(a))}promisify(a){return new Promise((b,c)=>{a.onsuccess=()=>b(a.result),a.onerror=()=>c(a.error)})}hydrateProject(a){return{...a,createdAt:a.createdAt?new Date(a.createdAt):new Date,updatedAt:a.updatedAt?new Date(a.updatedAt):new Date,lastSavedAt:a.lastSavedAt?new Date(a.lastSavedAt):null}}hydrateCustomTemplate(a){return{...a,importedAt:a.importedAt?new Date(a.importedAt):new Date}}hydrateSkill(a){return{...a,createdAt:a.createdAt?new Date(a.createdAt):new Date,updatedAt:a.updatedAt?new Date(a.updatedAt):new Date}}hydrateEdgeFunction(a){return{...a,createdAt:a.createdAt?new Date(a.createdAt):new Date,updatedAt:a.updatedAt?new Date(a.updatedAt):new Date}}hydrateServerFunction(a){return{...a,createdAt:a.createdAt?new Date(a.createdAt):new Date,updatedAt:a.updatedAt?new Date(a.updatedAt):new Date}}hydrateSecret(a){return{...a,createdAt:a.createdAt?new Date(a.createdAt):new Date,updatedAt:a.updatedAt?new Date(a.updatedAt):new Date}}hydrateScheduledFunction(a){return{...a,createdAt:a.createdAt?new Date(a.createdAt):new Date,updatedAt:a.updatedAt?new Date(a.updatedAt):new Date,lastRunAt:a.lastRunAt?new Date(a.lastRunAt):void 0,nextRunAt:a.nextRunAt?new Date(a.nextRunAt):void 0}}constructor(){this.db=null,this.initPromise=null}}class m{constructor(){this.initialized=!1,this.initPromise=null,this.transientFiles=new Map,this.syncTimeouts=new Map,this.serverContextProjectId=null,this.runtimeDeploymentId=null,this.serverContextMetadata=null,this.adapter=new l}async init(){this.initialized?await this.adapter.init():(this.initPromise||(this.initPromise=(async()=>{await this.adapter.init(),await this.mountTransientSkills(),this.initialized=!0})()),await this.initPromise)}getStorageAdapter(){if(!this.initialized)throw Error("VirtualFileSystem not initialized. Call init() first.");return this.adapter}getDatabase(){if(!(this.adapter instanceof l))throw Error("Direct database access only available with IndexedDBAdapter");return this.adapter.getDatabase()}async mountTransientSkills(){try{for(let a of(await k.skillsService.getEnabledSkills())){let b=`/.skills/${a.id}.md`,c={id:`transient-skill-${a.id}`,projectId:"transient",path:b,name:`${a.id}.md`,type:"text",content:a.content,mimeType:"text/markdown",size:new Blob([a.content]).size,createdAt:a.createdAt,updatedAt:a.updatedAt,metadata:{isTransient:!0,isBuiltIn:a.isBuiltIn}};this.transientFiles.set(b,c)}g.v.info(`[VFS] Mounted ${this.transientFiles.size} transient skill files`)}catch(a){g.v.error("[VFS] Failed to mount transient skills",a)}}isTransientPath(a){return a.startsWith("/.")}async reloadTransientSkills(){let a=new Map;for(let[b,c]of this.transientFiles)b.startsWith("/.server/")&&a.set(b,c);for(let[b,c]of(this.transientFiles.clear(),await this.mountTransientSkills(),a))this.transientFiles.set(b,c)}getServerContextProjectId(){return this.serverContextProjectId}getRuntimeDeploymentId(){return this.runtimeDeploymentId}getServerContextDeploymentId(){return this.runtimeDeploymentId}hasServerContext(){return null!==this.serverContextProjectId}getServerContextMetadata(){return this.serverContextMetadata}async mountProjectBackendContext(a){}async mountDeploymentRuntimeContext(a){}unmountDeploymentRuntimeContext(){this.runtimeDeploymentId&&(this.transientFiles.delete("/.server/db/schema.sql"),this.runtimeDeploymentId=null,this.serverContextMetadata&&(this.serverContextMetadata.runtimeDeploymentId=void 0,this.serverContextMetadata.hasDatabase=!1),"undefined"!=typeof sessionStorage&&sessionStorage.removeItem("vfs_runtimeDeploymentId"),g.v.info("[VFS] Disconnected deployment runtime"))}async mountBackendContext(a,b){await this.mountDeploymentRuntimeContext(a)}async refreshServerContext(){this.serverContextProjectId&&(await this.mountProjectBackendContext(this.serverContextProjectId),this.runtimeDeploymentId&&await this.mountDeploymentRuntimeContext(this.runtimeDeploymentId))}unmountBackendContext(){let a=[];for(let b of this.transientFiles.keys())b.startsWith("/.server/")&&(this.transientFiles.delete(b),a.push(b));(this.serverContextProjectId||this.runtimeDeploymentId)&&(g.v.info(`[VFS] Unmounted server context (${a.length} files)`),this.serverContextProjectId=null,this.runtimeDeploymentId=null,this.serverContextMetadata=null,"undefined"!=typeof sessionStorage&&(sessionStorage.removeItem("vfs_serverContextProjectId"),sessionStorage.removeItem("vfs_runtimeDeploymentId")))}getTransientFilesInDirectory(a){let b=a.endsWith("/")?a:a+"/",c=[];for(let[a,d]of this.transientFiles)a.startsWith(b)&&c.push(d);return c}mountTransientFile(a,b,c=!0){let d={id:`transient-server-${a.replace(/[^a-z0-9]/gi,"-")}`,projectId:"transient",path:a,name:a.split("/").pop()||"",type:"text",content:b,mimeType:a.endsWith(".sql")?"text/sql":a.endsWith(".json")?"application/json":a.endsWith(".js")?"application/javascript":"text/markdown",size:new Blob([b]).size,createdAt:new Date,updatedAt:new Date,metadata:{isTransient:!0,isServerContext:!0,isReadOnly:c}};this.transientFiles.set(a,d)}async updateServerContextFile(a,b){if(!this.serverContextProjectId&&"undefined"!=typeof sessionStorage){let a=sessionStorage.getItem("vfs_serverContextProjectId");a&&(g.v.info(`[VFS] Recovered serverContextProjectId from sessionStorage: ${a}`),this.serverContextProjectId=a)}if(!this.serverContextProjectId)throw Error("No project server context mounted.");if("/.server/db/schema.sql"===a)throw Error(`Cannot modify ${a} - read-only file`);if(a.startsWith("/.server/edge-functions/")&&a.endsWith(".json"))return await this.upsertEdgeFunctionFromFile(a,b);if(a.startsWith("/.server/server-functions/")&&a.endsWith(".json"))return await this.upsertServerFunctionFromFile(a,b);if(a.startsWith("/.server/secrets/")&&a.endsWith(".json"))return await this.upsertSecretFromFile(a,b);if(a.startsWith("/.server/scheduled-functions/")&&a.endsWith(".json"))return await this.upsertScheduledFunctionFromFile(a,b);throw Error(`Cannot modify ${a} - unrecognized server context path`)}async upsertEdgeFunctionFromFile(a,b){let d,{validateEdgeFunctionData:e,generateEdgeFunctionFile:f}=await c.e(9975).then(c.bind(c,19975)),{v4:g}=await c.e(4141).then(c.bind(c,4141));try{d=JSON.parse(b)}catch(a){throw Error(`Invalid JSON: ${a instanceof Error?a.message:String(a)}`)}let h=e(d);if(!h.valid)throw Error(`Validation failed: ${h.errors.join("; ")}`);let i=d,j=this.serverContextProjectId,k=this.adapter,l=a.split("/").pop().replace(".json",""),m=k.listEdgeFunctions?(await k.listEdgeFunctions(j)).find(a=>a.name===l):void 0,n=new Date;if(m&&k.updateEdgeFunction){let b={...m,name:i.name,code:i.code,method:i.method,description:i.description,enabled:i.enabled??!0,timeoutMs:i.timeoutMs??5e3,updatedAt:n};if(await k.updateEdgeFunction(b),i.name!==l){this.transientFiles.delete(a);let c=`/.server/edge-functions/${i.name}.json`;return this.mountTransientFile(c,f(b),!1),this.removeGitkeep("/.server/edge-functions/"),this.notifyFilesChanged(),this.transientFiles.get(c)}this.mountTransientFile(a,f(b),!1)}else if(k.createEdgeFunction){let b={id:g(),projectId:j,name:i.name,code:i.code,method:i.method,description:i.description,enabled:i.enabled??!0,timeoutMs:i.timeoutMs??5e3,createdAt:n,updatedAt:n};await k.createEdgeFunction(b),this.mountTransientFile(a,f(b),!1)}this.removeGitkeep("/.server/edge-functions/"),this.notifyFilesChanged(),this.triggerServerFeatureSync(j);let o=this.transientFiles.get(a);if(!o)throw Error(`Failed to create server context file at ${a}`);return o}async upsertServerFunctionFromFile(a,b){let d,{validateServerFunctionData:e,generateServerFunctionFile:f}=await c.e(9975).then(c.bind(c,19975)),{v4:g}=await c.e(4141).then(c.bind(c,4141));try{d=JSON.parse(b)}catch(a){throw Error(`Invalid JSON: ${a instanceof Error?a.message:String(a)}`)}let h=e(d);if(!h.valid)throw Error(`Validation failed: ${h.errors.join("; ")}`);let i=d,j=this.serverContextProjectId,k=this.adapter,l=a.split("/").pop().replace(".json",""),m=k.listServerFunctions?(await k.listServerFunctions(j)).find(a=>a.name===l):void 0,n=new Date;if(m&&k.updateServerFunction){let b={...m,name:i.name,code:i.code,description:i.description,enabled:i.enabled??!0,updatedAt:n};if(await k.updateServerFunction(b),i.name!==l){this.transientFiles.delete(a);let c=`/.server/server-functions/${i.name}.json`;return this.mountTransientFile(c,f(b),!1),this.removeGitkeep("/.server/server-functions/"),this.notifyFilesChanged(),this.transientFiles.get(c)}this.mountTransientFile(a,f(b),!1)}else if(k.createServerFunction){let b={id:g(),projectId:j,name:i.name,code:i.code,description:i.description,enabled:i.enabled??!0,createdAt:n,updatedAt:n};await k.createServerFunction(b),this.mountTransientFile(a,f(b),!1)}this.removeGitkeep("/.server/server-functions/"),this.notifyFilesChanged(),this.triggerServerFeatureSync(j);let o=this.transientFiles.get(a);if(!o)throw Error(`Failed to create server context file at ${a}`);return o}async upsertSecretFromFile(a,b){let d,{validateSecretData:e,generateSecretFile:f}=await c.e(9975).then(c.bind(c,19975)),{v4:g}=await c.e(4141).then(c.bind(c,4141));try{d=JSON.parse(b)}catch(a){throw Error(`Invalid JSON: ${a instanceof Error?a.message:String(a)}`)}let h=e(d);if(!h.valid)throw Error(`Validation failed: ${h.errors.join("; ")}`);let i=d,j=this.serverContextProjectId,k=this.adapter,l=a.split("/").pop().replace(".json",""),m=k.listSecrets?(await k.listSecrets(j)).find(a=>a.name===l):void 0,n=new Date;if(m&&k.updateSecret){let b={...m,name:i.name,description:i.description,updatedAt:n};if(await k.updateSecret(b),i.name!==l){this.transientFiles.delete(a);let c=`/.server/secrets/${i.name}.json`;return this.mountTransientFile(c,f(b),!1),this.removeGitkeep("/.server/secrets/"),this.notifyFilesChanged(),this.transientFiles.get(c)}this.mountTransientFile(a,f(b),!1)}else if(k.createSecret){let b={id:g(),projectId:j,name:i.name,description:i.description,hasValue:!1,createdAt:n,updatedAt:n};await k.createSecret(b),this.mountTransientFile(a,f(b),!1)}this.removeGitkeep("/.server/secrets/"),this.notifyFilesChanged(),this.triggerServerFeatureSync(j);let o=this.transientFiles.get(a);if(!o)throw Error(`Failed to create server context file at ${a}`);return o}async upsertScheduledFunctionFromFile(a,b){let d,{validateScheduledFunctionData:e,generateScheduledFunctionFile:f}=await c.e(9975).then(c.bind(c,19975)),{v4:g}=await c.e(4141).then(c.bind(c,4141));try{d=JSON.parse(b)}catch(a){throw Error(`Invalid JSON: ${a instanceof Error?a.message:String(a)}`)}let h=e(d);if(!h.valid)throw Error(`Validation failed: ${h.errors.join("; ")}`);let i=d,j=this.serverContextProjectId,k=this.adapter,l=(k.listEdgeFunctions?await k.listEdgeFunctions(j):[]).find(a=>a.name===i.functionName);if(!l)throw Error(`Edge function "${i.functionName}" not found. Create it first.`);let m=a.split("/").pop().replace(".json",""),n=k.listScheduledFunctions?(await k.listScheduledFunctions(j)).find(a=>a.name===m):void 0,o=new Date;if(n&&k.updateScheduledFunction){let b={...n,name:i.name,functionId:l.id,cronExpression:i.cronExpression,timezone:i.timezone||"UTC",description:i.description,enabled:i.enabled??!0,config:i.config||{},updatedAt:o};if(await k.updateScheduledFunction(b),i.name!==m){this.transientFiles.delete(a);let c=`/.server/scheduled-functions/${i.name}.json`;return this.mountTransientFile(c,f(b,i.functionName),!1),this.removeGitkeep("/.server/scheduled-functions/"),this.notifyFilesChanged(),this.transientFiles.get(c)}this.mountTransientFile(a,f(b,i.functionName),!1)}else if(k.createScheduledFunction){let b={id:g(),projectId:j,name:i.name,functionId:l.id,cronExpression:i.cronExpression,timezone:i.timezone||"UTC",description:i.description,enabled:i.enabled??!0,config:i.config||{},createdAt:o,updatedAt:o};await k.createScheduledFunction(b),this.mountTransientFile(a,f(b,i.functionName),!1)}this.removeGitkeep("/.server/scheduled-functions/"),this.notifyFilesChanged(),this.triggerServerFeatureSync(j);let p=this.transientFiles.get(a);if(!p)throw Error(`Failed to create server context file at ${a}`);return p}removeGitkeep(a){let b=a+".gitkeep";this.transientFiles.has(b)&&this.transientFiles.delete(b)}notifyFilesChanged(){}triggerServerFeatureSync(a){}async createServerContextFile(a,b){if(!this.serverContextProjectId&&"undefined"!=typeof sessionStorage){let a=sessionStorage.getItem("vfs_serverContextProjectId");a&&(this.serverContextProjectId=a)}if(!this.serverContextProjectId)throw Error("No project server context mounted.");if(this.transientFiles.has(a))throw Error(`File already exists: ${a}`);return await this.updateServerContextFile(a,b)}async deleteServerContextFile(a){if(!this.serverContextProjectId&&"undefined"!=typeof sessionStorage){let a=sessionStorage.getItem("vfs_serverContextProjectId");a&&(this.serverContextProjectId=a)}if(!this.serverContextProjectId)throw Error("No project server context mounted.");if("/.server/db/schema.sql"===a)throw Error(`Cannot delete ${a} - read-only file`);let b=this.serverContextProjectId,c=this.adapter,d=a.split("/").pop().replace(".json","");if(a.startsWith("/.server/edge-functions/")&&a.endsWith(".json")){let a=(c.listEdgeFunctions?await c.listEdgeFunctions(b):[]).find(a=>a.name===d);a&&c.deleteEdgeFunction&&await c.deleteEdgeFunction(a.id)}else if(a.startsWith("/.server/server-functions/")&&a.endsWith(".json")){let a=(c.listServerFunctions?await c.listServerFunctions(b):[]).find(a=>a.name===d);a&&c.deleteServerFunction&&await c.deleteServerFunction(a.id)}else if(a.startsWith("/.server/secrets/")&&a.endsWith(".json")){let a=(c.listSecrets?await c.listSecrets(b):[]).find(a=>a.name===d);a&&c.deleteSecret&&await c.deleteSecret(a.id)}else if(a.startsWith("/.server/scheduled-functions/")&&a.endsWith(".json")){let a=(c.listScheduledFunctions?await c.listScheduledFunctions(b):[]).find(a=>a.name===d);a&&c.deleteScheduledFunction&&await c.deleteScheduledFunction(a.id)}else throw Error(`Cannot delete ${a} - read-only file`);this.transientFiles.delete(a),this.notifyFilesChanged(),this.triggerServerFeatureSync(b)}ensureInitialized(){if(!this.initialized)throw Error("VirtualFileSystem not initialized. Call init() first.")}triggerAutoSync(a){}clearSyncTimeout(a){let b=this.syncTimeouts.get(a);b&&(clearTimeout(b),this.syncTimeouts.delete(a),g.v.debug(`[VFS] Cleared sync timeout for project ${a}`))}async createFile(a,b,c){this.ensureInitialized();try{if((b=b.replace(/\\n$|\\r$|\n$|\r$/,"").trim()).startsWith("/.server/"))return await this.createServerContextFile(b,c);if(await this.adapter.getFile(a,b))throw g.v.error("VFS: File already exists",{projectId:a,path:b}),Error(`File already exists: ${b}`);if(!(0,h.fu)(b))throw Error(`Unsupported file type: ${b}`);let e=(0,h.Gr)(b),f=c instanceof ArrayBuffer?c.byteLength:new Blob([c]).size,j=h.Q6[e];if(f>j)throw Error(`File too large. Maximum size for ${e} files is ${Math.round(j/1024/1024)}MB`);let k={id:(0,d.A)(),projectId:a,path:b,name:b.split("/").pop()||"",type:e,content:c,mimeType:(0,h.N$)(b),size:f,createdAt:new Date,updatedAt:new Date,metadata:{isEntry:"/index.html"===b}};return await this.adapter.createFile(k),await this.updateFileTree(a,b,"create"),i.$.markDirty(a),k}catch(a){throw a}}async readFile(a,b){if(this.ensureInitialized(),!a||"string"!=typeof a)throw g.v.error("VFS: Invalid projectId for readFile",{projectId:a,path:b}),Error("Invalid projectId provided");if(!b||"string"!=typeof b)throw g.v.error("VFS: Invalid path for readFile",{projectId:a,path:b}),Error("Invalid file path provided");let c=b.replace(/\\n$|\\r$|\n$|\r$/,"").trim();if(!c)throw g.v.error("VFS: Empty path after cleaning for readFile",{projectId:a,originalPath:b,cleanPath:c}),Error("Empty file path after cleaning");if(this.isTransientPath(c)){let a=this.transientFiles.get(c);if(a)return a;throw Error(`Transient file not found: ${c}`)}let d=await this.adapter.getFile(a,c);if(!d)throw g.v.error("VFS: File not found for read",{projectId:a,path:c,originalPath:b}),Error(`File not found: ${c}`);return d}async fileExists(a,b){this.ensureInitialized();try{if(this.isTransientPath(b))return this.transientFiles.has(b);return!!await this.adapter.getFile(a,b)}catch{return!1}}async updateFile(a,b,c){this.ensureInitialized();try{let d=b.replace(/\\n$|\\r$|\n$|\r$/,"").trim();if(d.includes("\n")||d.includes("@@")||d.includes("\\n")||d.length>200)throw g.v.error("VFS: Invalid path detected",{projectId:a,path:b.slice(0,100)+"..."}),Error(`Invalid file path: ${b.slice(0,50)}...`);if((b=d).startsWith("/.server/"))return await this.updateServerContextFile(b,c);let e=await this.adapter.getFile(a,b);if(!e)throw g.v.error("VFS: File not found for update",{projectId:a,path:b}),Error(`File not found: ${b}`);return e.content=c,e.size=c instanceof ArrayBuffer?c.byteLength:new Blob([c]).size,e.updatedAt=new Date,await this.adapter.updateFile(e),i.$.markDirty(a),e}catch(a){throw a}}async patchFile(a,b,c){this.ensureInitialized();let d=(await this.readFile(a,b)).content;for(let a of c){if(!d.includes(a.search))throw g.v.error("VFS: Pattern not found in file",{path:b,searchPattern:a.search.substring(0,100),contentSnippet:d.substring(0,300)}),Error(`Pattern not found in file: ${a.search.substring(0,50)}...`);d=d.replace(a.search,a.replace)}return await this.updateFile(a,b,d)}async deleteFile(a,b){this.ensureInitialized();try{await this.adapter.deleteFile(a,b),await this.updateFileTree(a,b,"delete"),i.$.markDirty(a)}catch(a){throw a}}async renameFile(a,b,c){this.ensureInitialized();let d=await this.readFile(a,b);return await this.deleteFile(a,b),await this.createFile(a,c,d.content)}async createDirectory(a,b){if(this.ensureInitialized(),await this.adapter.getTreeNode(a,b))return;let c=b.split("/").pop()||b,e={id:(0,d.A)(),projectId:a,path:b,name:c,type:"directory",parentPath:this.getParentPath(b),children:[]};await this.adapter.createTreeNode(e),i.$.markDirty(a)}async listDirectory(a,b,c){let d;this.ensureInitialized();let e=await this.adapter.listFiles(a);if(d="/"===b?e:e.filter(a=>{let c=a.path,d=b.endsWith("/")?b:b+"/";return c.startsWith(d)&&-1===c.slice(d.length).indexOf("/")}),c?.includeTransient){let a=Array.from(this.transientFiles.values());if("/"===b)d=[...d,...a];else{let c=b.endsWith("/")?b:b+"/",e=a.filter(a=>a.path.startsWith(c)&&-1===a.path.slice(c.length).indexOf("/")),f=new Set;for(let b of a)if(b.path.startsWith(c)){let a=b.path.slice(c.length),d=a.indexOf("/");-1!==d&&f.add(a.slice(0,d))}let g=new Date;d=[...d,...e,...Array.from(f).map(a=>({id:`transient-dir-${c}${a}`,projectId:"transient",path:c+a,name:a,type:"text",content:"",mimeType:"",size:0,createdAt:g,updatedAt:g,metadata:{isTransient:!0,isServerContext:!0,isReadOnly:!0}}))]}}return d}async getAllFilesAndDirectories(a,b){this.ensureInitialized();let c=[...await this.adapter.listFiles(a),...(await this.adapter.getAllTreeNodes(a)).filter(a=>"directory"===a.type).map(a=>({path:a.path,name:a.path.split("/").filter(Boolean).pop()||a.path,type:"directory"}))];return b?.includeTransient&&(c=[...c,...Array.from(this.transientFiles.values())]),c}async deleteDirectory(a,b){this.ensureInitialized();let c=await this.adapter.listFiles(a),d=b.endsWith("/")?b:b+"/";for(let b of c)b.path.startsWith(d)&&await this.deleteFile(a,b.path);await this.adapter.deleteTreeNode(a,b),i.$.markDirty(a)}async renameDirectory(a,b,c){this.ensureInitialized();let e=await this.adapter.getTreeNode(a,b);if(e){await this.adapter.deleteTreeNode(a,b);let f={id:(0,d.A)(),projectId:a,path:c,name:c.split("/").pop()||c,type:"directory",parentPath:this.getParentPath(c),children:e.children};await this.adapter.createTreeNode(f),i.$.markDirty(a)}let f=b.endsWith("/")?b:b+"/",g=c.endsWith("/")?c:c+"/";for(let b of(await this.adapter.listFiles(a)).filter(a=>a.path.startsWith(f))){let c=g+b.path.substring(f.length);await this.renameFile(a,b.path,c)}for(let c of(await this.adapter.getAllTreeNodes(a)).filter(a=>"directory"===a.type&&a.path.startsWith(f)&&a.path!==b)){let b=g+c.path.substring(f.length);await this.adapter.deleteTreeNode(a,c.path);let e={id:(0,d.A)(),projectId:a,path:b,name:b.split("/").pop()||b,type:"directory",parentPath:this.getParentPath(b),children:c.children};await this.adapter.createTreeNode(e)}}async moveFile(a,b,c){if(this.ensureInitialized(),await this.adapter.getFile(a,c))throw Error(`File already exists at destination: ${c}`);let d=await this.readFile(a,b),e=await this.createFile(a,c,d.content);return await this.deleteFile(a,b),e}async moveDirectory(a,b,c){this.ensureInitialized();let d=c.endsWith("/")?c:c+"/",e=b.endsWith("/")?b:b+"/";if(d.startsWith(e))throw Error("Cannot move a directory into itself");await this.renameDirectory(a,b,c)}async createProject(a,b,c){this.ensureInitialized();try{let e={id:c||(0,d.A)(),name:a,description:b,createdAt:new Date,updatedAt:new Date,settings:{},lastSavedCheckpointId:null,lastSavedAt:null,costTracking:{totalCost:0,providerBreakdown:{},sessionHistory:[]}};await this.adapter.createProject(e);let f={id:(0,d.A)(),projectId:e.id,path:"/",name:"/",type:"directory",parentPath:null,children:[]};return await this.adapter.createTreeNode(f),e}catch(a){throw a}}async getProject(a){this.ensureInitialized();let b=await this.adapter.getProject(a);if(!b)throw Error(`Project not found: ${a}`);return b}async updateProject(a,b){this.ensureInitialized(),b?.preserveUpdatedAt||(a.updatedAt=new Date),await this.adapter.updateProject(a)}async updateProjectCost(a,b){this.ensureInitialized();let c=await this.getProject(a);if(!c)throw Error(`Project not found: ${a}`);c.costTracking||(c.costTracking={totalCost:0,providerBreakdown:{},sessionHistory:[]}),c.costTracking.totalCost+=b.cost,c.costTracking.providerBreakdown[b.provider]||(c.costTracking.providerBreakdown[b.provider]={totalCost:0,tokenUsage:{input:0,output:0},requestCount:0,lastUpdated:new Date});let d=c.costTracking.providerBreakdown[b.provider];d.totalCost+=b.cost,"delta"!==b.mode&&(d.requestCount+=1),d.lastUpdated=new Date,b.tokenUsage&&(d.tokenUsage.input+=b.tokenUsage.input,d.tokenUsage.output+=b.tokenUsage.output),b.sessionId&&"delta"!==b.mode&&(c.costTracking.sessionHistory||(c.costTracking.sessionHistory=[]),c.costTracking.sessionHistory.push({sessionId:b.sessionId,cost:b.cost,provider:b.provider,timestamp:new Date,tokenUsage:b.tokenUsage}),c.costTracking.sessionHistory.length>100&&(c.costTracking.sessionHistory=c.costTracking.sessionHistory.slice(-100))),await this.updateProject(c)}async applyProjectCostDelta(a,b){this.ensureInitialized();let c=await this.getProject(a);if(!c)throw Error(`Project not found: ${a}`);c.costTracking||(c.costTracking={totalCost:0,providerBreakdown:{},sessionHistory:[]}),c.costTracking.totalCost+=b.costDelta,c.costTracking.providerBreakdown[b.provider]||(c.costTracking.providerBreakdown[b.provider]={totalCost:0,tokenUsage:{input:0,output:0},requestCount:0,lastUpdated:new Date});let d=c.costTracking.providerBreakdown[b.provider];d.totalCost+=b.costDelta,d.lastUpdated=new Date,b.tokenUsageDelta&&(d.tokenUsage.input+=b.tokenUsageDelta.input,d.tokenUsage.output+=b.tokenUsageDelta.output),b.sessionId&&(c.costTracking.sessionHistory||(c.costTracking.sessionHistory=[]),c.costTracking.sessionHistory.push({sessionId:b.sessionId,cost:b.costDelta,provider:b.provider,timestamp:new Date,tokenUsage:b.tokenUsageDelta,correction:!0}),c.costTracking.sessionHistory.length>100&&(c.costTracking.sessionHistory=c.costTracking.sessionHistory.slice(-100))),await this.updateProject(c)}async deleteProject(a){this.ensureInitialized(),await this.adapter.deleteProject(a)}async listProjects(){return this.ensureInitialized(),await this.adapter.listProjects()}async listFiles(a){return this.ensureInitialized(),await this.adapter.listFiles(a)}async getFileTree(a){return this.ensureInitialized(),await this.adapter.getTreeNode(a,"/")}async searchFiles(a,b,c){this.ensureInitialized();let d=await this.adapter.listFiles(a),{regex:e=!1,fileType:f,limit:g=20,searchIn:h="both"}=c||{},i=d;if(f){let a=f.startsWith(".")?f:`.${f}`;i=d.filter(b=>b.path.endsWith(a))}let j=e?a=>{try{return RegExp(b,"i").test(a)}catch{return a.toLowerCase().includes(b.toLowerCase())}}:a=>a.toLowerCase().includes(b.toLowerCase());return i.filter(a=>"filename"===h?j(a.name)||j(a.path):"content"===h?"string"==typeof a.content&&j(a.content):j(a.name)||j(a.path)||"string"==typeof a.content&&j(a.content)).slice(0,g)}async findReferences(a,b,c="any"){this.ensureInitialized();let d=await this.adapter.listFiles(a),e=[],f=[];switch(c){case"class":f.push(RegExp(`class=["'][^"']*\\b${b}\\b[^"']*["']`,"gi")),f.push(RegExp(`\\.${b}\\b`,"g")),f.push(RegExp(`classList\\.(add|remove|toggle|contains)\\(['"\`]${b}['"\`]`,"g"));break;case"id":f.push(RegExp(`id=["']${b}["']`,"gi")),f.push(RegExp(`#${b}\\b`,"g")),f.push(RegExp(`getElementById\\(['"\`]${b}['"\`]`,"g")),f.push(RegExp(`querySelector\\(['"\`]#${b}['"\`]`,"g"));break;case"function":f.push(RegExp(`function\\s+${b}\\s*\\(`,"g")),f.push(RegExp(`(?:const|let|var)\\s+${b}\\s*=\\s*(?:\\([^)]*\\)|[^=])\\s*=>`,"g")),f.push(RegExp(`${b}\\s*\\(`,"g"));break;case"variable":f.push(RegExp(`(?:const|let|var)\\s+${b}\\b`,"g")),f.push(RegExp(`\\b${b}\\b`,"g"));break;default:f.push(RegExp(`\\b${b}\\b`,"gi"))}for(let a of d){if("string"!=typeof a.content)continue;let b=[];a.content.split("\n").forEach((a,c)=>{for(let d of f)if(d.test(a)){b.push({line:c+1,text:a.trim()});break}}),b.length>0&&e.push({file:a,matches:b})}return e}async getFileStats(a,b){this.ensureInitialized();let c=await this.adapter.getFile(a,b);if(!c)throw Error(`File not found: ${b}`);let d=("string"==typeof c.content?c.content:"").split("\n");return{path:c.path,size:c.size,lines:d.length,type:c.type,preview:d.slice(0,10),lastModified:c.updatedAt}}async getProjectSize(a){return this.ensureInitialized(),(await this.adapter.listFiles(a)).reduce((a,b)=>a+b.size,0)}async getProjectStats(a){let b;this.ensureInitialized();let c=await this.adapter.listFiles(a),d=0,e={};for(let a of c){d+=a.size;let b=a.path.split(".").pop()?.toUpperCase()||"OTHER";e[b]=(e[b]||0)+1}return b=d<1024?`${d} B`:d<1048576?`${(d/1024).toFixed(1)} KB`:`${(d/1048576).toFixed(2)} MB`,{fileCount:c.length,totalSize:d,fileTypes:e,formattedSize:b}}async exportProject(a){return this.ensureInitialized(),{project:await this.getProject(a),files:await this.adapter.listFiles(a)}}async exportProjectAsZip(a){this.ensureInitialized();let b=new(f());try{let c=new j.B(this,a);for(let a of(await c.compileProject()).files){let c=a.path.startsWith("/")?a.path.slice(1):a.path;this.shouldExcludeFromExport(a.path)||(a.content,b.file(c,a.content))}c.cleanupBlobUrls()}catch(c){for(let d of(g.v.warn("Failed to compile Handlebars templates during export, falling back to raw files:",c),await this.adapter.listFiles(a))){let a=d.path.startsWith("/")?d.path.slice(1):d.path;this.shouldExcludeFromExport(d.path)||(d.content,b.file(a,d.content))}}return await b.generateAsync({type:"blob",compression:"DEFLATE",compressionOptions:{level:6}})}shouldExcludeFromExport(a){return!!(a.endsWith(".hbs")||a.endsWith(".handlebars")||a.startsWith("/templates/"))||"/data.json"===a}async duplicateProject(a){this.ensureInitialized();let b=await this.getProject(a),c=await this.adapter.listFiles(a),d=`${b.name} (Copy)`.slice(0,50),e=await this.createProject(d,b.description);return await i.$.runWithSuppressedDirty(e.id,async()=>{for(let a of c)await this.createFile(e.id,a.path,a.content)}),e}async importProject(a){this.ensureInitialized();let b=await this.createProject(a.project.name,a.project.description);return await i.$.runWithSuppressedDirty(b.id,async()=>{for(let c of a.files)await this.createFile(b.id,c.path,c.content)}),b}getParentPath(a){if("/"===a)return null;let b=a.split("/").filter(Boolean);return 1===b.length?"/":(b.pop(),"/"+b.join("/"))}async updateFileTree(a,b,c){let d=this.getParentPath(b);if(null===d)return;let e=await this.adapter.getTreeNode(a,d);if(e||"create"!==c||(await this.createDirectory(a,d),e=await this.adapter.getTreeNode(a,d)),e){let a=e.children||[];if("create"!==c||a.includes(b)){if("delete"===c){let c=a.indexOf(b);c>-1&&a.splice(c,1)}}else a.push(b);e.children=a,await this.adapter.updateTreeNode(e)}}}let n=new m},12897:(a,b,c)=>{"use strict";c.d(b,{$7:()=>f,In:()=>g,N1:()=>e});let d=/^---\s*\n([\s\S]*?)\n---\s*\n([\s\S]*)$/;function e(a){let b=a.match(d);if(!b)throw Error("Invalid SKILL.md format: Missing YAML frontmatter");let[,c,e]=b;try{let a=function(a){let b=a.split("\n"),c={};for(let a of b){let b=a.trim();if(!b||b.startsWith("#"))continue;let d=b.indexOf(":");if(-1===d)continue;let e=b.slice(0,d).trim(),f=b.slice(d+1).trim();(f.startsWith('"')&&f.endsWith('"')||f.startsWith("'")&&f.endsWith("'"))&&(f=f.slice(1,-1)),"true"===f?f=!0:"false"===f?f=!1:isNaN(Number(f))||""===f||(f=Number(f)),c[e]=f}return c}(c);return function(a){if(!a.name||"string"!=typeof a.name)throw Error('Missing or invalid "name" field in frontmatter');if(!a.description||"string"!=typeof a.description)throw Error('Missing or invalid "description" field in frontmatter');if(!/^[a-z0-9-]+$/.test(a.name))throw Error('Skill name must be lowercase with hyphens only (e.g., "my-skill-name")');if(a.description.length>500)throw Error("Description must be 500 characters or less")}(a),{frontmatter:a,markdown:e.trim()}}catch(a){throw Error(`Failed to parse SKILL.md: ${a instanceof Error?a.message:"Unknown error"}`)}}function f(a,b){let c=[];for(let[b,d]of Object.entries(a))null!=d&&("string"==typeof d&&(d.includes(":")||d.includes("\n"))?c.push(`${b}: "${d}"`):c.push(`${b}: ${d}`));return`--- ${c.join("\n")} --- @@ -18,11 +18,11 @@ ${b.trim()} ## Best Practices [List best practices and recommendations] -`)}},13531:(a,b,c)=>{"use strict";c.d(b,{B:()=>g});var d=c(2733),e=c.n(d),f=c(15514);class g{constructor(a,b,c,d){this.blobUrls=new Map,this.fileHashes=new Map,this.templateCache=new Map,this.partialsRegistered=!1,this.vfs=a,this.projectId=b,this.siteId=d,this.baseUrl="",c&&(this.blobUrls=new Map(c)),this.handlebars=e().create(),this.registerHelpers()}registerHelpers(){this.handlebars.registerHelper("eq",(a,b)=>a===b),this.handlebars.registerHelper("ne",(a,b)=>a!==b),this.handlebars.registerHelper("lt",(a,b)=>aa>b),this.handlebars.registerHelper("lte",(a,b)=>a<=b),this.handlebars.registerHelper("gte",(a,b)=>a>=b),this.handlebars.registerHelper("and",function(){let a=Array.prototype.slice.call(arguments,0,-1);return a.every(a=>a)}),this.handlebars.registerHelper("or",function(){let a=Array.prototype.slice.call(arguments,0,-1);return a.some(a=>a)}),this.handlebars.registerHelper("not",a=>!a),this.handlebars.registerHelper("add",(a,b)=>a+b),this.handlebars.registerHelper("subtract",(a,b)=>a-b),this.handlebars.registerHelper("multiply",(a,b)=>a*b),this.handlebars.registerHelper("divide",(a,b)=>a/b),this.handlebars.registerHelper("uppercase",a=>a?.toUpperCase()),this.handlebars.registerHelper("lowercase",a=>a?.toLowerCase()),this.handlebars.registerHelper("concat",function(){let a=Array.prototype.slice.call(arguments,0,-1);return a.join("")}),this.handlebars.registerHelper("json",a=>JSON.stringify(a,null,2)),this.handlebars.registerHelper("formatDate",a=>new Date(a).toLocaleDateString()),this.handlebars.registerHelper("limit",(a,b)=>a?.slice(0,b))}async registerPartials(){if(!this.partialsRegistered)try{for(let a of(await this.vfs.getAllFilesAndDirectories(this.projectId)).filter(a=>"content"in a&&a.path.startsWith("/templates/")&&(a.path.endsWith(".hbs")||a.path.endsWith(".handlebars")))){let b=a.content,c=a.path.replace(/^\/templates\//,"").replace(/\.hbs$/,"").replace(/\.handlebars$/,"");this.handlebars.registerPartial(c,b);let d=c.split("/").pop();if(d&&this.handlebars.registerPartial(d,b),c.includes("/")){let a=c.replace(/\//g,"-");this.handlebars.registerPartial(a,b)}}this.partialsRegistered=!0}catch(a){}}async compileTemplate(a,b={}){let c=this.templateCache.get(a);if(!c)try{let b=(await this.vfs.readFile(this.projectId,a)).content;c=this.handlebars.compile(b),this.templateCache.set(a,c)}catch(b){return f.v.error(`Failed to compile template ${a}:`,b),""}return c(b)}async compileProject(a=!1){await this.registerPartials();let b=await this.vfs.listDirectory(this.projectId,"/"),c=new Map(this.blobUrls),d=new Map,e=[];for(let f of b){let b;if("template"===f.type||"html"===f.type||"css"===f.type)continue;b="image"===f.type||"video"===f.type?{path:f.path,content:f.content,mimeType:f.mimeType}:"js"===f.type?await this.processJS(f):{path:f.path,content:f.content,mimeType:f.mimeType};let g=this.hashContent(b.content),h=this.fileHashes.get(b.path);if(a&&h===g&&c.has(b.path)){let a=c.get(b.path);d.set(b.path,a),b.blobUrl=a,c.delete(b.path)}else{let a=new Blob([b.content],{type:b.mimeType}),c=URL.createObjectURL(a);d.set(b.path,c),b.blobUrl=c,this.fileHashes.set(b.path,g)}e.push(b)}for(let f of b){if("html"!==f.type)continue;let b=await this.processHTML(f,d),g=this.hashContent(b.content),h=this.fileHashes.get(b.path);if(a&&h===g&&c.has(b.path)){let a=c.get(b.path);d.set(b.path,a),b.blobUrl=a,c.delete(b.path)}else{let a=new Blob([b.content],{type:b.mimeType}),c=URL.createObjectURL(a);d.set(b.path,c),b.blobUrl=c,this.fileHashes.set(b.path,g)}e.push(b)}let f=[...e];for(let e of b)if("css"===e.type){let b=await this.processCSS(e,d),g=this.hashContent(b.content),h=this.fileHashes.get(b.path);if(a&&h===g&&c.has(b.path)){let a=c.get(b.path);d.set(b.path,a),b.blobUrl=a,c.delete(b.path)}else{let a=new Blob([b.content],{type:b.mimeType}),c=URL.createObjectURL(a);d.set(b.path,c),b.blobUrl=c,this.fileHashes.set(b.path,g)}f.push(b)}let g=this.generateRoutes(b);if(a)for(let[,a]of c)URL.revokeObjectURL(a);else a||this.cleanupBlobUrls();return this.blobUrls=d,{entryPoint:"/index.html",files:f,routes:g,blobUrls:this.blobUrls}}hashContent(a){let b=0;if(a instanceof ArrayBuffer){let c=new Uint8Array(a);for(let a=0;a +`)}},13531:(a,b,c)=>{"use strict";c.d(b,{B:()=>g});var d=c(2733),e=c.n(d),f=c(15514);class g{constructor(a,b,c,d){this.blobUrls=new Map,this.fileHashes=new Map,this.templateCache=new Map,this.partialsRegistered=!1,this.vfs=a,this.projectId=b,this.deploymentId=d,this.baseUrl="",c&&(this.blobUrls=new Map(c)),this.handlebars=e().create(),this.registerHelpers()}registerHelpers(){this.handlebars.registerHelper("eq",(a,b)=>a===b),this.handlebars.registerHelper("ne",(a,b)=>a!==b),this.handlebars.registerHelper("lt",(a,b)=>aa>b),this.handlebars.registerHelper("lte",(a,b)=>a<=b),this.handlebars.registerHelper("gte",(a,b)=>a>=b),this.handlebars.registerHelper("and",function(){let a=Array.prototype.slice.call(arguments,0,-1);return a.every(a=>a)}),this.handlebars.registerHelper("or",function(){let a=Array.prototype.slice.call(arguments,0,-1);return a.some(a=>a)}),this.handlebars.registerHelper("not",a=>!a),this.handlebars.registerHelper("add",(a,b)=>a+b),this.handlebars.registerHelper("subtract",(a,b)=>a-b),this.handlebars.registerHelper("multiply",(a,b)=>a*b),this.handlebars.registerHelper("divide",(a,b)=>a/b),this.handlebars.registerHelper("uppercase",a=>a?.toUpperCase()),this.handlebars.registerHelper("lowercase",a=>a?.toLowerCase()),this.handlebars.registerHelper("concat",function(){let a=Array.prototype.slice.call(arguments,0,-1);return a.join("")}),this.handlebars.registerHelper("json",a=>JSON.stringify(a,null,2)),this.handlebars.registerHelper("formatDate",a=>new Date(a).toLocaleDateString()),this.handlebars.registerHelper("limit",(a,b)=>a?.slice(0,b))}async registerPartials(){if(!this.partialsRegistered)try{for(let a of(await this.vfs.getAllFilesAndDirectories(this.projectId)).filter(a=>"content"in a&&a.path.startsWith("/templates/")&&(a.path.endsWith(".hbs")||a.path.endsWith(".handlebars")))){let b=a.content,c=a.path.replace(/^\/templates\//,"").replace(/\.hbs$/,"").replace(/\.handlebars$/,"");this.handlebars.registerPartial(c,b);let d=c.split("/").pop();if(d&&this.handlebars.registerPartial(d,b),c.includes("/")){let a=c.replace(/\//g,"-");this.handlebars.registerPartial(a,b)}}this.partialsRegistered=!0}catch(a){}}async compileTemplate(a,b={}){let c=this.templateCache.get(a);if(!c)try{let b=(await this.vfs.readFile(this.projectId,a)).content;c=this.handlebars.compile(b),this.templateCache.set(a,c)}catch(b){return f.v.error(`Failed to compile template ${a}:`,b),""}return c(b)}async compileProject(a=!1){await this.registerPartials();let b=await this.vfs.listDirectory(this.projectId,"/"),c=new Map(this.blobUrls),d=new Map,e=[];for(let f of b){let b;if("template"===f.type||"html"===f.type||"css"===f.type)continue;b="image"===f.type||"video"===f.type?{path:f.path,content:f.content,mimeType:f.mimeType}:"js"===f.type?await this.processJS(f):{path:f.path,content:f.content,mimeType:f.mimeType};let g=this.hashContent(b.content),h=this.fileHashes.get(b.path);if(a&&h===g&&c.has(b.path)){let a=c.get(b.path);d.set(b.path,a),b.blobUrl=a,c.delete(b.path)}else{let a=new Blob([b.content],{type:b.mimeType}),c=URL.createObjectURL(a);d.set(b.path,c),b.blobUrl=c,this.fileHashes.set(b.path,g)}e.push(b)}for(let f of b){if("html"!==f.type)continue;let b=await this.processHTML(f,d),g=this.hashContent(b.content),h=this.fileHashes.get(b.path);if(a&&h===g&&c.has(b.path)){let a=c.get(b.path);d.set(b.path,a),b.blobUrl=a,c.delete(b.path)}else{let a=new Blob([b.content],{type:b.mimeType}),c=URL.createObjectURL(a);d.set(b.path,c),b.blobUrl=c,this.fileHashes.set(b.path,g)}e.push(b)}let f=[...e];for(let e of b)if("css"===e.type){let b=await this.processCSS(e,d),g=this.hashContent(b.content),h=this.fileHashes.get(b.path);if(a&&h===g&&c.has(b.path)){let a=c.get(b.path);d.set(b.path,a),b.blobUrl=a,c.delete(b.path)}else{let a=new Blob([b.content],{type:b.mimeType}),c=URL.createObjectURL(a);d.set(b.path,c),b.blobUrl=c,this.fileHashes.set(b.path,g)}f.push(b)}let g=this.generateRoutes(b);if(a)for(let[,a]of c)URL.revokeObjectURL(a);else a||this.cleanupBlobUrls();return this.blobUrls=d,{entryPoint:"/index.html",files:f,routes:g,blobUrls:this.blobUrls}}hashContent(a){let b=0;if(a instanceof ArrayBuffer){let c=new Uint8Array(a);for(let a=0;a // VFS Asset Interceptor - Auto-injected by OSW Studio (function() { const vfsBlobUrls = ${JSON.stringify(d)}; - const siteId = ${JSON.stringify(e)}; + const deploymentId = ${JSON.stringify(e)}; // Helper function to resolve VFS paths to blob URLs function resolveVfsUrl(url) { @@ -35,7 +35,7 @@ ${b.trim()} // Helper function to check if a URL looks like an edge function call function isEdgeFunctionUrl(url) { - if (!url || typeof url !== 'string' || !siteId) return false; + if (!url || typeof url !== 'string' || !deploymentId) return false; // Skip external URLs, blob URLs, data URLs, and hash-only URLs if (url.startsWith('http://') || url.startsWith('https://') || url.startsWith('blob:') || url.startsWith('data:') || @@ -54,14 +54,14 @@ ${b.trim()} // Helper function to convert an edge function URL to the API endpoint function toEdgeFunctionApiUrl(url) { - if (!siteId) return url; + if (!deploymentId) return url; // Normalize the path let path = url; if (!path.startsWith('/')) path = '/' + path; // Remove leading slash for the function name const functionPath = path.substring(1); // Return the API endpoint URL - return '/api/sites/' + siteId + '/functions/' + functionPath; + return '/api/deployments/' + deploymentId + '/functions/' + functionPath; } // Intercept Image src setter to handle ALL image loading @@ -202,7 +202,7 @@ ${b.trim()} }; // Intercept form submissions for edge functions - if (siteId) { + if (deploymentId) { document.addEventListener('submit', function(e) { const form = e.target; if (!(form instanceof HTMLFormElement)) return; @@ -1932,11 +1932,11 @@ API endpoints created at `+"`/.server/edge-functions/{name}.json`"+` fetch('/list-products') fetch('/create-order', { method: 'POST', headers: {'Content-Type': 'application/json'}, body: JSON.stringify({name: 'Test'}) }) -// WRONG - never hardcode site IDs or /api/sites/ paths -fetch('/api/sites/my-site/functions/list-products') // BROKEN +// WRONG - never hardcode deployment IDs or /api/deployments/ paths +fetch('/api/deployments/my-deployment/functions/list-products') // BROKEN `+"```"+` -The fetch interceptor (injected automatically in both preview and published sites) rewrites `+"`fetch('/list-products')`"+` → `+"`/api/sites/{siteId}/functions/list-products`"+` transparently. You never need to know the siteId in client code. +The fetch interceptor (injected automatically in both preview and published deployments) rewrites `+"`fetch('/list-products')`"+` → `+"`/api/deployments/{deploymentId}/functions/list-products`"+` transparently. You never need to know the deploymentId in client code. ### File Location `+"```"+` @@ -2328,7 +2328,7 @@ console.log(result.lastInsertRowid); `+"```"+` `},{id:"database",content:String.raw`--- name: server-database -description: Server Mode - SQLite database operations for published sites. +description: Server Mode - SQLite database operations for published deployments. --- # Database Operations @@ -2342,7 +2342,7 @@ Guide for SQLite database access via edge functions. ### Option 1: sqlite3 Shell Command (Server Mode Only) -In Server Mode with a published site selected, use the `+"`sqlite3`"+` shell command for quick queries: +In Server Mode with a published deployment selected, use the `+"`sqlite3`"+` shell command for quick queries: `+"```"+`bash # Query data @@ -2358,7 +2358,7 @@ sqlite3 "CREATE TABLE IF NOT EXISTS products (id INTEGER PRIMARY KEY, name TEXT) sqlite3 "INSERT INTO products (name) VALUES ('Test Product')" `+"```"+` -**Note:** sqlite3 requires Server Mode with a site context. In Browser Mode, use edge functions instead. +**Note:** sqlite3 requires Server Mode with a deployment context. In Browser Mode, use edge functions instead. ### Option 2: Edge Functions (All Modes) @@ -2433,8 +2433,8 @@ json_patch({ }) `+"```"+` -**Important**: After publishing the site, call the init endpoint to create tables: -`+"`POST /api/sites/{siteId}/functions/init-db`"+` +**Important**: After publishing the deployment, call the init endpoint to create tables: +`+"`POST /api/deployments/{deploymentId}/functions/init-db`"+` --- @@ -2673,8 +2673,8 @@ This ensures the table exists before any operation, without requiring a separate ## Protected Tables System tables cannot be modified: -- `+"`_files`"+` - Published site files -- `+"`_settings`"+` - Site configuration +- `+"`_files`"+` - Published deployment files +- `+"`_settings`"+` - Deployment configuration - `+"`_analytics`"+` - Analytics data - `+"`_edge_functions`"+` - Edge function definitions - `+"`_server_functions`"+` - Server function definitions @@ -3009,14 +3009,14 @@ Examples: {"cmd": ["rg", "-A", "5", "-B", "2", "function", "/src"]} {"cmd": ["rg", "-i", "todo", "/"]} -Tip: Use -C for balanced context. PATH defaults to / if omitted.`,exitCode:2};let i=new RegExp(g,c.i?"i":""),k=await a.getAllFilesAndDirectories(b,{includeTransient:!0}),l="/"===h?"/":h.endsWith("/")?h:h+"/",m=[];for(let a of k){if("type"in a&&"directory"===a.type||!a.path.startsWith(l)&&a.path!==h||"string"!=typeof a.content)continue;let b=a.content.split(/\r?\n/),d=new Set;for(let a=0;aa-b);for(let e of(m.length>0&&m.push(""),j)){let f=c.n?`${e+1}:`:"";d.has(e),m.push(`${a.path}:${f}${b[e]}`)}}if(0===m.length){let a="/"===h?"workspace root":h;return{stdout:"",stderr:`rg: pattern "${g}" not found in ${a}`,exitCode:1}}return{stdout:d(m.join("\n")),stderr:"",exitCode:0}}case"find":{let c,f,g,h;for(let a=0;aa.path===i||a.path.startsWith(l)).filter(a=>"f"===g?!("type"in a)||"directory"!==a.type:"d"!==g||"type"in a&&"directory"===a.type).map(a=>a.path).filter(a=>!m||m.test(a.split("/").pop()||a)).sort();return{stdout:d(n.join("\n")),stderr:"",exitCode:0}}case"mkdir":{let c=j.includes("-p"),d=j.filter(a=>a&&"-p"!==a).map(a=>e(a));if(0===d.length)return{stdout:"",stderr:"mkdir: missing operand",exitCode:2};let g=!1,h=[];for(let e of d)if(e){if(e.startsWith("/.server/")){h.push(`mkdir: cannot create '${e}': server context directories are auto-generated`),g=!0;continue}try{c?await f(a,b,e):await a.createDirectory(b,e)}catch(a){g=!0,h.push(`mkdir: cannot create directory '${e}': ${a?.message||"unknown error"}`)}}return{stdout:"",stderr:h.join("\n"),exitCode:+!!g}}case"touch":{let c=j.filter(a=>a&&!a.startsWith("-")).map(a=>e(a));if(0===c.length)return{stdout:"",stderr:"touch: missing file operand",exitCode:2};let d=!1,f=[];for(let e of c)if(e)try{await a.readFile(b,e)}catch{try{await a.createFile(b,e,"")}catch(a){d=!0,f.push(`touch: cannot touch '${e}': ${a?.message||"cannot create file"}`)}}return{stdout:"",stderr:f.join("\n"),exitCode:+!!d}}case"rm":{let c=!1,f=!1,g=!1,h=[];for(let a of j)a&&a.startsWith("-")?((a.includes("r")||a.includes("R"))&&(c=!0),a.includes("f")&&(f=!0),a.includes("v")&&(g=!0)):a&&h.push(a);if(0===h.length)return{stdout:"",stderr:"rm: missing operand",exitCode:2};let i=!1,k=[],l=[];for(let d of h){let h=e(d);if(!h){f||(i=!0);continue}if(h.startsWith("/.server/")){try{await a.deleteServerContextFile(h),g&&k.push(`removed '${h}'`)}catch(a){if(!f){i=!0;let b=`rm: cannot remove '${h}': ${a?.message||"unknown error"}`;l.push(b),g&&k.push(b)}}continue}try{await a.deleteFile(b,h),g&&k.push(`removed '${h}'`)}catch{if(c)try{await a.deleteDirectory(b,h),g&&k.push(`removed directory '${h}'`)}catch{if(!f){i=!0;let a=`rm: cannot remove '${h}': No such file or directory`;l.push(a),g&&k.push(a)}}else if(!f){i=!0;let a=`rm: cannot remove '${h}': Is a directory (use -r to remove directories)`;l.push(a),g&&k.push(a)}}}let m=g?k.join("\n"):"",n=i?l.join("\n"):"";return{stdout:d(m),stderr:n,exitCode:+!!i}}case"mv":{let[c,d]=j,f=e(c),g=e(d);if(!f||!g)return{stdout:"",stderr:"mv: missing operands",exitCode:2};try{return await a.renameFile(b,f,g),{stdout:"",stderr:"",exitCode:0}}catch{return await a.renameDirectory(b,f,g),{stdout:"",stderr:"",exitCode:0}}}case"cp":{let c=j.includes("-r"),[d,g]=j.filter(a=>"-r"!==a);if(d=e(d),g=e(g),!d||!g)return{stdout:"",stderr:"cp: missing operands",exitCode:2};try{let c=await a.readFile(b,d),e=(c.content,c.content);try{await a.createFile(b,g,e)}catch{await a.updateFile(b,g,e)}return{stdout:"",stderr:"",exitCode:0}}catch{if(!c)return{stdout:"",stderr:"cp: -r required for directories",exitCode:1};let e=await a.getAllFilesAndDirectories(b,{includeTransient:!0}),h=d.endsWith("/")?d:d+"/";for(let c of e)if((!("type"in c)||"directory"!==c.type)&&(c.path===d||c.path.startsWith(h))){let e=c.path.slice(d.length),h=(g.endsWith("/")?g.slice(0,-1):g)+e;await f(a,b,h.split("/").slice(0,-1).join("/"));let i=(c.content,c.content);try{await a.createFile(b,h,i)}catch{await a.updateFile(b,h,i)}}return{stdout:"",stderr:"",exitCode:0}}}case"echo":{let c=j.indexOf(">");if(-1===c)return{stdout:d(j.join(" ")),stderr:"",exitCode:0};let g=j.slice(0,c).join(" "),h=j[c+1],i=e(h);if(!i)return{stdout:"",stderr:"echo: missing file path after >",exitCode:2};try{let c=i.split("/").slice(0,-1).join("/")||"/";"/"!==c&&await f(a,b,c);try{await a.createFile(b,i,g)}catch{await a.updateFile(b,i,g)}return{stdout:"",stderr:"",exitCode:0}}catch(a){return{stdout:"",stderr:`echo: ${i}: ${a?.message||"cannot write file"}`,exitCode:1}}}case"sqlite3":return{stdout:"",stderr:`sqlite3: requires Server Mode with a published site +Tip: Use -C for balanced context. PATH defaults to / if omitted.`,exitCode:2};let i=new RegExp(g,c.i?"i":""),k=await a.getAllFilesAndDirectories(b,{includeTransient:!0}),l="/"===h?"/":h.endsWith("/")?h:h+"/",m=[];for(let a of k){if("type"in a&&"directory"===a.type||!a.path.startsWith(l)&&a.path!==h||"string"!=typeof a.content)continue;let b=a.content.split(/\r?\n/),d=new Set;for(let a=0;aa-b);for(let e of(m.length>0&&m.push(""),j)){let f=c.n?`${e+1}:`:"";d.has(e),m.push(`${a.path}:${f}${b[e]}`)}}if(0===m.length){let a="/"===h?"workspace root":h;return{stdout:"",stderr:`rg: pattern "${g}" not found in ${a}`,exitCode:1}}return{stdout:d(m.join("\n")),stderr:"",exitCode:0}}case"find":{let c,f,g,h;for(let a=0;aa.path===i||a.path.startsWith(l)).filter(a=>"f"===g?!("type"in a)||"directory"!==a.type:"d"!==g||"type"in a&&"directory"===a.type).map(a=>a.path).filter(a=>!m||m.test(a.split("/").pop()||a)).sort();return{stdout:d(n.join("\n")),stderr:"",exitCode:0}}case"mkdir":{let c=j.includes("-p"),d=j.filter(a=>a&&"-p"!==a).map(a=>e(a));if(0===d.length)return{stdout:"",stderr:"mkdir: missing operand",exitCode:2};let g=!1,h=[];for(let e of d)if(e){if(e.startsWith("/.server/")){h.push(`mkdir: cannot create '${e}': server context directories are auto-generated`),g=!0;continue}try{c?await f(a,b,e):await a.createDirectory(b,e)}catch(a){g=!0,h.push(`mkdir: cannot create directory '${e}': ${a?.message||"unknown error"}`)}}return{stdout:"",stderr:h.join("\n"),exitCode:+!!g}}case"touch":{let c=j.filter(a=>a&&!a.startsWith("-")).map(a=>e(a));if(0===c.length)return{stdout:"",stderr:"touch: missing file operand",exitCode:2};let d=!1,f=[];for(let e of c)if(e)try{await a.readFile(b,e)}catch{try{await a.createFile(b,e,"")}catch(a){d=!0,f.push(`touch: cannot touch '${e}': ${a?.message||"cannot create file"}`)}}return{stdout:"",stderr:f.join("\n"),exitCode:+!!d}}case"rm":{let c=!1,f=!1,g=!1,h=[];for(let a of j)a&&a.startsWith("-")?((a.includes("r")||a.includes("R"))&&(c=!0),a.includes("f")&&(f=!0),a.includes("v")&&(g=!0)):a&&h.push(a);if(0===h.length)return{stdout:"",stderr:"rm: missing operand",exitCode:2};let i=!1,k=[],l=[];for(let d of h){let h=e(d);if(!h){f||(i=!0);continue}if(h.startsWith("/.server/")){try{await a.deleteServerContextFile(h),g&&k.push(`removed '${h}'`)}catch(a){if(!f){i=!0;let b=`rm: cannot remove '${h}': ${a?.message||"unknown error"}`;l.push(b),g&&k.push(b)}}continue}try{await a.deleteFile(b,h),g&&k.push(`removed '${h}'`)}catch{if(c)try{await a.deleteDirectory(b,h),g&&k.push(`removed directory '${h}'`)}catch{if(!f){i=!0;let a=`rm: cannot remove '${h}': No such file or directory`;l.push(a),g&&k.push(a)}}else if(!f){i=!0;let a=`rm: cannot remove '${h}': Is a directory (use -r to remove directories)`;l.push(a),g&&k.push(a)}}}let m=g?k.join("\n"):"",n=i?l.join("\n"):"";return{stdout:d(m),stderr:n,exitCode:+!!i}}case"mv":{let[c,d]=j,f=e(c),g=e(d);if(!f||!g)return{stdout:"",stderr:"mv: missing operands",exitCode:2};try{return await a.renameFile(b,f,g),{stdout:"",stderr:"",exitCode:0}}catch{return await a.renameDirectory(b,f,g),{stdout:"",stderr:"",exitCode:0}}}case"cp":{let c=j.includes("-r"),[d,g]=j.filter(a=>"-r"!==a);if(d=e(d),g=e(g),!d||!g)return{stdout:"",stderr:"cp: missing operands",exitCode:2};try{let c=await a.readFile(b,d),e=(c.content,c.content);try{await a.createFile(b,g,e)}catch{await a.updateFile(b,g,e)}return{stdout:"",stderr:"",exitCode:0}}catch{if(!c)return{stdout:"",stderr:"cp: -r required for directories",exitCode:1};let e=await a.getAllFilesAndDirectories(b,{includeTransient:!0}),h=d.endsWith("/")?d:d+"/";for(let c of e)if((!("type"in c)||"directory"!==c.type)&&(c.path===d||c.path.startsWith(h))){let e=c.path.slice(d.length),h=(g.endsWith("/")?g.slice(0,-1):g)+e;await f(a,b,h.split("/").slice(0,-1).join("/"));let i=(c.content,c.content);try{await a.createFile(b,h,i)}catch{await a.updateFile(b,h,i)}}return{stdout:"",stderr:"",exitCode:0}}}case"echo":{let c=j.indexOf(">");if(-1===c)return{stdout:d(j.join(" ")),stderr:"",exitCode:0};let g=j.slice(0,c).join(" "),h=j[c+1],i=e(h);if(!i)return{stdout:"",stderr:"echo: missing file path after >",exitCode:2};try{let c=i.split("/").slice(0,-1).join("/")||"/";"/"!==c&&await f(a,b,c);try{await a.createFile(b,i,g)}catch{await a.updateFile(b,i,g)}return{stdout:"",stderr:"",exitCode:0}}catch(a){return{stdout:"",stderr:`echo: ${i}: ${a?.message||"cannot write file"}`,exitCode:1}}}case"sqlite3":return{stdout:"",stderr:`sqlite3: requires Server Mode with a published deployment The sqlite3 command requires: 1. Server Mode (not Browser Mode) -2. A site to be selected and published +2. A deployment to be selected and published -If you are in Server Mode with a published site, this error indicates the site context is not set. -Please ensure the site is selected in the workspace before using sqlite3. +If you are in Server Mode with a published deployment, this error indicates the deployment context is not set. +Please ensure the deployment is selected in the workspace before using sqlite3. Alternative: Use edge functions for database access via db.query() and db.run()`,exitCode:1};default:{let a="bash"===i?` Don't use "bash" as a command - call the shell tool directly with your command. @@ -3049,7 +3049,7 @@ Correct shell tool usage: {"cmd": ["sqlite3", "-json", "SELECT * FROM products"]} - SQL output as JSON Note: Use json_patch tool for file editing. Use rg (ripgrep) instead of grep for better context management. -Note: sqlite3 is only available in Server Mode and when a site context is selected.`,exitCode:127}}}}catch(a){return{stdout:"",stderr:a?.message||String(a),exitCode:1}}}c.d(b,{_:()=>i});let i={execute:async(a,b)=>{let{vfs:d}=await Promise.resolve().then(c.bind(c,11482));await d.init();let e=await g(d,a,b);return{success:0===e.exitCode,stdout:e.stdout,stderr:e.stderr}}}},38190:(a,b,c)=>{"use strict";c.d(b,{V:()=>g,b:()=>h});var d=c(47247);let e="openrouter";function f(a){if(!a)return;let b=Number(a);if(Number.isFinite(b)&&!(b<=0))return b<.01?1e6*b:b}function g(a,b){if(!Array.isArray(b)||0===b.length)return;let c={};for(let d of b){if(!d?.pricing)continue;let b={input:d.pricing.input,output:d.pricing.output,reasoning:d.pricing.reasoning};Number.isFinite(b.input)&&Number.isFinite(b.output)&&(c[d.id]=b,c[`${a}/${d.id}`]=b)}if(a===e)for(let[a,b]of Object.entries(c)){let d=a.split("/").pop();d&&!c[d]&&(c[d]=b)}Object.keys(c).length>0&&d.s.setProviderPricing(a,c)}function h(a){if(!Array.isArray(a)||0===a.length)return;let b={};for(let c of a){let a=f(c.pricing?.prompt),d=f(c.pricing?.completion),g=f(c.pricing?.internal_reasoning);if(void 0===a||void 0===d)continue;let h={input:a,output:d,reasoning:g};b[c.id]=h,b[`${e}/${c.id}`]=h,c.canonical_slug&&(b[c.canonical_slug]=h)}Object.keys(b).length>0&&d.s.setProviderPricing(e,b)}},38502:(a,b,c)=>{"use strict";c.d(b,{Toaster:()=>g});var d=c(21124),e=c(45523),f=c(42830);let g=({...a})=>{let{theme:b}=(0,e.D)();return(0,d.jsx)(f.l$,{theme:b,className:"toaster group",closeButton:!0,style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)"},...a})}},41316:(a,b,c)=>{"use strict";c.d(b,{_S:()=>g,cH:()=>e,ensureValidCodexToken:()=>i,kW:()=>f,tv:()=>j});var d=c(47247);async function e(a){let b=await fetch("/api/auth/codex/connect",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify(a)});if(!b.ok)throw Error((await b.json().catch(()=>({error:"Connect failed"}))).error||"Failed to connect Codex session");return b.json()}async function f(){if(!(await fetch("/api/auth/codex/disconnect",{method:"POST",credentials:"same-origin"})).ok)throw Error("Failed to clear server session");d.s.clearCodexAuth()}async function g(){let a=await fetch("/api/auth/codex/status",{credentials:"same-origin"});return!!a.ok&&!!(await a.json()).hasRefreshToken}async function h(){let a=await fetch("/api/auth/codex/token",{method:"POST",credentials:"same-origin"});if(!a.ok)throw Error((await a.json().catch(()=>({error:"Token refresh failed"}))).error||`Token refresh failed: ${a.status}`);return a.json()}async function i(){let a=d.s.getCodexAuth();if(!a)throw Error("ChatGPT session not found. Please log in via Settings.");if(!d.s.isCodexTokenExpired())return a.access_token;try{let a=await h();return d.s.setCodexAuth(a),a.access_token}catch{throw d.s.clearCodexAuth(),Error("ChatGPT session expired. Please re-authenticate in Settings.")}}function j(a){let b=JSON.parse(a),c=b.tokens||b,d=c.access_token||c.token,e=c.refresh_token;if(!d)throw Error("Missing access_token in pasted JSON");if(!e)throw Error("Missing refresh_token in pasted JSON");return{access_token:d,refresh_token:e,expires_at:c.expires_at||b.expires_at||Math.floor(Date.now()/1e3)+3600,user_email:c.user_email||b.user_email||c.email||b.email}}},45432:(a,b,c)=>{Promise.resolve().then(c.t.bind(c,54160,23)),Promise.resolve().then(c.t.bind(c,31603,23)),Promise.resolve().then(c.t.bind(c,68495,23)),Promise.resolve().then(c.t.bind(c,75170,23)),Promise.resolve().then(c.t.bind(c,77526,23)),Promise.resolve().then(c.t.bind(c,78922,23)),Promise.resolve().then(c.t.bind(c,29234,23)),Promise.resolve().then(c.t.bind(c,12263,23)),Promise.resolve().then(c.bind(c,82146))},47247:(a,b,c)=>{"use strict";c.d(b,{s:()=>e});class d{getSettings(){return{}}setSetting(a,b){}hasSeenTour(){return!!this.getSettings().hasSeenGuidedTour}setHasSeenTour(a){this.setSetting("hasSeenGuidedTour",a)}getApiKey(){let a=this.getSelectedProvider();return a?this.getProviderApiKey(a):this.getSettings().openRouterApiKey||null}setApiKey(a){let b=this.getSelectedProvider();b&&this.setProviderApiKey(b,a),this.setSetting("openRouterApiKey",a)}getDefaultModel(){let a=this.getSelectedProvider();return a?this.getProviderModel(a)||this.getProviderDefaultModel(a):this.getSettings().defaultModel||"deepseek/deepseek-chat"}setDefaultModel(a){let b=this.getSelectedProvider();b&&this.setProviderModel(b,a),this.setSetting("defaultModel",a)}getSelectedProvider(){return this.getSettings().selectedProvider||"huggingface"}setSelectedProvider(a){this.setSetting("selectedProvider",a)}getProviderApiKey(a){let b=this.getSettings();return b.providerKeys?.[a]?b.providerKeys[a]:"openrouter"===a&&b.openRouterApiKey?b.openRouterApiKey:null}setProviderApiKey(a,b){let c=this.getSettings().providerKeys||{};c[a]=b,this.setSetting("providerKeys",c),"openrouter"===a&&this.setSetting("openRouterApiKey",b)}getProviderModel(a){let b=this.getSettings();return b.providerModels?.[a]?b.providerModels[a]:"openrouter"===a&&b.defaultModel?b.defaultModel:null}setProviderModel(a,b){let c=this.getSettings().providerModels||{};c[a]=b,this.setSetting("providerModels",c),"openrouter"===a&&this.setSetting("defaultModel",b)}getModelPricing(a,b){let c=this.getSettings(),d=c.modelPricing?.[a];return d&&(d[b]||d[`${a}/${b}`]||(b.includes("/")?d[b.split("/").pop()??""]:null))||null}setModelPricing(a,b,c){}setProviderPricing(a,b){}clearProviderPricing(a){}getProviderDefaultModel(a){switch(a){case"openrouter":default:return"deepseek/deepseek-chat";case"openai":return"gpt-4o-mini";case"openai-codex":return"gpt-5.3-codex";case"anthropic":return"claude-3-5-haiku-20241022";case"groq":return"llama-3.3-70b-versatile";case"gemini":return"gemini-1.5-flash";case"huggingface":return"Qwen/Qwen2.5-Coder-32B-Instruct";case"ollama":return"llama3.2:latest";case"lmstudio":return"local-model";case"sambanova":return"Meta-Llama-3.3-70B-Instruct"}}getTheme(){return this.getSettings().theme||"dark"}setTheme(a){this.setSetting("theme",a)}clearSettings(){}getCostSettings(){return this.getSettings().costSettings||{showCosts:!0,warningThreshold:80}}setCostSettings(a){this.setSetting("costSettings",a)}getCurrentSession(){let a=this.getSettings().currentSession;return a?{...a,startTime:new Date(a.startTime)}:null}startNewSession(){let a={sessionId:Date.now().toString(),startTime:new Date,totalCost:0,messageCount:0,providerBreakdown:{}};return this.setSetting("currentSession",a),a}updateSessionCost(a,b){let c=this.getCurrentSession();c||(c=this.startNewSession()),c.totalCost+=b,c.messageCount+=1;let d=a.provider||"unknown";c.providerBreakdown[d]||(c.providerBreakdown[d]={cost:0,tokenUsage:{input:0,output:0},requestCount:0}),c.providerBreakdown[d].cost+=b,c.providerBreakdown[d].tokenUsage.input+=a.promptTokens,c.providerBreakdown[d].tokenUsage.output+=a.completionTokens,c.providerBreakdown[d].requestCount+=1;let e=this.getSettings().lifetimeCosts||{total:0,byProvider:{}};e.total+=b,e.byProvider[d]=(e.byProvider[d]||0)+b,this.setSetting("currentSession",c),this.setSetting("lifetimeCosts",e)}adjustSessionCost(a,b,c){if(!b&&!c)return;let d=this.getCurrentSession();if(!d)return;let e=a||"unknown";d.totalCost+=b,d.providerBreakdown[e]||(d.providerBreakdown[e]={cost:0,tokenUsage:{input:0,output:0},requestCount:0}),d.providerBreakdown[e].cost+=b,c&&(d.providerBreakdown[e].tokenUsage.input+=c.input,d.providerBreakdown[e].tokenUsage.output+=c.output);let f=this.getSettings().lifetimeCosts||{total:0,byProvider:{}};f.total+=b,f.byProvider[e]=(f.byProvider[e]||0)+b,this.setSetting("currentSession",d),this.setSetting("lifetimeCosts",f)}getLifetimeCosts(){return this.getSettings().lifetimeCosts||{total:0,byProvider:{}}}resetLifetimeCosts(){this.setSetting("lifetimeCosts",{total:0,byProvider:{},lastReset:new Date})}checkCostLimits(){let a=this.getCostSettings(),b=this.getCurrentSession();if(!b||!a.dailyLimit)return{warning:!1,exceeded:!1};let c=b.totalCost/a.dailyLimit*100;return c>=100?{warning:!1,exceeded:!0,message:`Daily limit of $${a.dailyLimit.toFixed(2)} exceeded`}:a.warningThreshold&&c>=a.warningThreshold?{warning:!0,exceeded:!1,message:`${c.toFixed(0)}% of daily limit used ($${b.totalCost.toFixed(2)} of $${a.dailyLimit.toFixed(2)})`}:{warning:!1,exceeded:!1}}getCachedModels(a){let b=this.getSettings(),c=b.modelCache?.[a];return c?new Date>new Date(c.expiresAt)?(this.clearModelCache(a),null):c:null}setCachedModels(a,b){let c=this.getSettings(),d=new Date,e=new Date(d.getTime()+864e5),f=c.modelCache||{};f[a]={models:b,timestamp:d.toISOString(),expiresAt:e.toISOString()},this.setSetting("modelCache",f)}clearModelCache(a){if(a){let b=this.getSettings().modelCache||{};delete b[a],this.setSetting("modelCache",b)}else this.setSetting("modelCache",{})}isCacheValid(a){return null!==this.getCachedModels(a)}getCodexAuth(){return this.getSettings().codexAuth||null}setCodexAuth(a){this.setSetting("codexAuth",a),this.setProviderApiKey("openai-codex",a.access_token)}clearCodexAuth(){let a=this.getSettings();delete a.codexAuth;let b=a.providerKeys||{};delete b["openai-codex"],this.setSetting("providerKeys",b)}isCodexTokenExpired(){let a=this.getCodexAuth();return!a||Date.now()/1e3>=a.expires_at-60}getHFAuth(){return this.getSettings().hfAuth||null}setHFAuth(a){this.setSetting("hfAuth",a),this.setProviderApiKey("huggingface",a.access_token)}clearHFAuth(){let a=this.getSettings();delete a.hfAuth;let b=a.providerKeys||{};delete b.huggingface,this.setSetting("providerKeys",b)}getReasoningEnabled(a){let b=this.getSettings();return b.reasoningEnabled?.[a]??!1}setReasoningEnabled(a,b){let c={...this.getSettings().reasoningEnabled||{}};c[a]=b,this.setSetting("reasoningEnabled",c)}constructor(){this.STORAGE_KEY="osw-studio-settings"}}let e=new d},49186:(a,b,c)=>{"use strict";c.d(b,{$:()=>h});var d=c(98763),e=c(11482),f=c(15514);class g{subscribe(a){return this.listeners.add(a),()=>this.listeners.delete(a)}emit(a){let b={projectId:a,dirty:this.isDirty(a)};for(let a of this.listeners)try{a(b)}catch(a){f.v.error("[SaveManager] Listener error",a)}}setDirty(a,b){let c=this.dirtyProjects.has(a);b&&!c?(this.dirtyProjects.add(a),this.emit(a)):!b&&c&&(this.dirtyProjects.delete(a),this.emit(a))}markDirty(a){this.isSuppressed(a)||this.setDirty(a,!0)}markClean(a){this.setDirty(a,!1)}isDirty(a){return this.dirtyProjects.has(a)}beginSuppression(a){let b=this.suppressionCounts.get(a)??0;this.suppressionCounts.set(a,b+1)}endSuppression(a){let b=this.suppressionCounts.get(a)??0;if(b<=1)return void this.suppressionCounts.delete(a);this.suppressionCounts.set(a,b-1)}async runWithSuppressedDirty(a,b){this.beginSuppression(a);try{return await b()}finally{this.endSuppression(a)}}isSuppressed(a){return(this.suppressionCounts.get(a)??0)>0}async save(a,b){await e.vfs.init();let c=await e.vfs.getProject(a),f=`Manual save @ ${new Date().toLocaleTimeString()}`,g=await d.Y.createCheckpoint(a,b||f,{kind:"manual",baseRevisionId:c.lastSavedCheckpointId??null});return c.lastSavedCheckpointId=g.id,c.lastSavedAt=new Date(g.timestamp),await e.vfs.updateProject(c),e.vfs.triggerAutoSync?.(a),this.manualCheckpoints.set(a,g.id),this.markClean(a),g}async restoreLastSaved(a){await e.vfs.init();let b=(await e.vfs.getProject(a)).lastSavedCheckpointId;if(!b)return f.v.warn("[SaveManager] No saved checkpoint to restore",{projectId:a}),!1;let c=await this.runWithSuppressedDirty(a,async()=>{if(!await d.Y.checkpointExists(b))return f.v.warn("[SaveManager] Saved checkpoint missing",{projectId:a,checkpointId:b}),!1;let c=await d.Y.restoreCheckpoint(b);return c||f.v.error("[SaveManager] Failed to restore saved checkpoint",{projectId:a,checkpointId:b}),c});return c&&this.markClean(a),c}getSavedCheckpointId(a){return this.manualCheckpoints.get(a)??null}async syncProjectSaveState(a){await e.vfs.init();let b=await e.vfs.getProject(a);b.lastSavedCheckpointId?this.manualCheckpoints.set(a,b.lastSavedCheckpointId):this.manualCheckpoints.delete(a)}constructor(){this.dirtyProjects=new Set,this.listeners=new Set,this.suppressionCounts=new Map,this.manualCheckpoints=new Map}}let h=new g},49308:(a,b,c)=>{"use strict";c.d(b,{g:()=>e});var d=c(21124);function e({width:a=64,height:b=64,className:c}){return(0,d.jsx)("div",{style:{width:a,height:b},className:c,dangerouslySetInnerHTML:{__html:` +Note: sqlite3 is only available in Server Mode and when a deployment context is selected.`,exitCode:127}}}}catch(a){return{stdout:"",stderr:a?.message||String(a),exitCode:1}}}c.d(b,{_:()=>i});let i={execute:async(a,b)=>{let{vfs:d}=await Promise.resolve().then(c.bind(c,11482));await d.init();let e=await g(d,a,b);return{success:0===e.exitCode,stdout:e.stdout,stderr:e.stderr}}}},38190:(a,b,c)=>{"use strict";c.d(b,{V:()=>g,b:()=>h});var d=c(47247);let e="openrouter";function f(a){if(!a)return;let b=Number(a);if(Number.isFinite(b)&&!(b<=0))return b<.01?1e6*b:b}function g(a,b){if(!Array.isArray(b)||0===b.length)return;let c={};for(let d of b){if(!d?.pricing)continue;let b={input:d.pricing.input,output:d.pricing.output,reasoning:d.pricing.reasoning};Number.isFinite(b.input)&&Number.isFinite(b.output)&&(c[d.id]=b,c[`${a}/${d.id}`]=b)}if(a===e)for(let[a,b]of Object.entries(c)){let d=a.split("/").pop();d&&!c[d]&&(c[d]=b)}Object.keys(c).length>0&&d.s.setProviderPricing(a,c)}function h(a){if(!Array.isArray(a)||0===a.length)return;let b={};for(let c of a){let a=f(c.pricing?.prompt),d=f(c.pricing?.completion),g=f(c.pricing?.internal_reasoning);if(void 0===a||void 0===d)continue;let h={input:a,output:d,reasoning:g};b[c.id]=h,b[`${e}/${c.id}`]=h,c.canonical_slug&&(b[c.canonical_slug]=h)}Object.keys(b).length>0&&d.s.setProviderPricing(e,b)}},38502:(a,b,c)=>{"use strict";c.d(b,{Toaster:()=>g});var d=c(21124),e=c(45523),f=c(42830);let g=({...a})=>{let{theme:b}=(0,e.D)();return(0,d.jsx)(f.l$,{theme:b,className:"toaster group",closeButton:!0,style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)"},...a})}},41316:(a,b,c)=>{"use strict";c.d(b,{_S:()=>g,cH:()=>e,ensureValidCodexToken:()=>i,kW:()=>f,tv:()=>j});var d=c(47247);async function e(a){let b=await fetch("/api/auth/codex/connect",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify(a)});if(!b.ok)throw Error((await b.json().catch(()=>({error:"Connect failed"}))).error||"Failed to connect Codex session");return b.json()}async function f(){if(!(await fetch("/api/auth/codex/disconnect",{method:"POST",credentials:"same-origin"})).ok)throw Error("Failed to clear server session");d.s.clearCodexAuth()}async function g(){let a=await fetch("/api/auth/codex/status",{credentials:"same-origin"});return!!a.ok&&!!(await a.json()).hasRefreshToken}async function h(){let a=await fetch("/api/auth/codex/token",{method:"POST",credentials:"same-origin"});if(!a.ok)throw Error((await a.json().catch(()=>({error:"Token refresh failed"}))).error||`Token refresh failed: ${a.status}`);return a.json()}async function i(){let a=d.s.getCodexAuth();if(!a)throw Error("ChatGPT session not found. Please log in via Settings.");if(!d.s.isCodexTokenExpired())return a.access_token;try{let a=await h();return d.s.setCodexAuth(a),a.access_token}catch{throw d.s.clearCodexAuth(),Error("ChatGPT session expired. Please re-authenticate in Settings.")}}function j(a){let b=JSON.parse(a),c=b.tokens||b,d=c.access_token||c.token,e=c.refresh_token;if(!d)throw Error("Missing access_token in pasted JSON");if(!e)throw Error("Missing refresh_token in pasted JSON");return{access_token:d,refresh_token:e,expires_at:c.expires_at||b.expires_at||Math.floor(Date.now()/1e3)+3600,user_email:c.user_email||b.user_email||c.email||b.email}}},45432:(a,b,c)=>{Promise.resolve().then(c.t.bind(c,54160,23)),Promise.resolve().then(c.t.bind(c,31603,23)),Promise.resolve().then(c.t.bind(c,68495,23)),Promise.resolve().then(c.t.bind(c,75170,23)),Promise.resolve().then(c.t.bind(c,77526,23)),Promise.resolve().then(c.t.bind(c,78922,23)),Promise.resolve().then(c.t.bind(c,29234,23)),Promise.resolve().then(c.t.bind(c,12263,23)),Promise.resolve().then(c.bind(c,82146))},47247:(a,b,c)=>{"use strict";c.d(b,{D:()=>f,s:()=>e});class d{getSettings(){return{}}setSetting(a,b){}hasSeenTour(){return!!this.getSettings().hasSeenGuidedTour}setHasSeenTour(a){this.setSetting("hasSeenGuidedTour",a)}getApiKey(){let a=this.getSelectedProvider();return a?this.getProviderApiKey(a):this.getSettings().openRouterApiKey||null}setApiKey(a){let b=this.getSelectedProvider();b&&this.setProviderApiKey(b,a),this.setSetting("openRouterApiKey",a)}getDefaultModel(){let a=this.getSelectedProvider();return a?this.getProviderModel(a)||this.getProviderDefaultModel(a):this.getSettings().defaultModel||"deepseek/deepseek-chat"}setDefaultModel(a){let b=this.getSelectedProvider();b&&this.setProviderModel(b,a),this.setSetting("defaultModel",a)}getSelectedProvider(){return this.getSettings().selectedProvider||"huggingface"}setSelectedProvider(a){this.setSetting("selectedProvider",a)}getProviderApiKey(a){let b=this.getSettings();return b.providerKeys?.[a]?b.providerKeys[a]:"openrouter"===a&&b.openRouterApiKey?b.openRouterApiKey:null}setProviderApiKey(a,b){let c=this.getSettings().providerKeys||{};c[a]=b,this.setSetting("providerKeys",c),"openrouter"===a&&this.setSetting("openRouterApiKey",b)}getProviderModel(a){let b=this.getSettings();return b.providerModels?.[a]?b.providerModels[a]:"openrouter"===a&&b.defaultModel?b.defaultModel:null}setProviderModel(a,b){let c=this.getSettings().providerModels||{};c[a]=b,this.setSetting("providerModels",c),"openrouter"===a&&this.setSetting("defaultModel",b)}getModelPricing(a,b){let c=this.getSettings(),d=c.modelPricing?.[a];return d&&(d[b]||d[`${a}/${b}`]||(b.includes("/")?d[b.split("/").pop()??""]:null))||null}setModelPricing(a,b,c){}setProviderPricing(a,b){}clearProviderPricing(a){}getProviderDefaultModel(a){switch(a){case"openrouter":default:return"deepseek/deepseek-chat";case"openai":return"gpt-4o-mini";case"openai-codex":return"gpt-5.3-codex";case"anthropic":return"claude-3-5-haiku-20241022";case"groq":return"llama-3.3-70b-versatile";case"gemini":return"gemini-1.5-flash";case"huggingface":return"Qwen/Qwen2.5-Coder-32B-Instruct";case"ollama":return"llama3.2:latest";case"lmstudio":return"local-model";case"sambanova":return"Meta-Llama-3.3-70B-Instruct"}}getTheme(){return this.getSettings().theme||"dark"}setTheme(a){this.setSetting("theme",a)}clearSettings(){}getCostSettings(){return this.getSettings().costSettings||{showCosts:!0,warningThreshold:80}}setCostSettings(a){this.setSetting("costSettings",a)}getCurrentSession(){let a=this.getSettings().currentSession;return a?{...a,startTime:new Date(a.startTime)}:null}startNewSession(){let a={sessionId:Date.now().toString(),startTime:new Date,totalCost:0,messageCount:0,providerBreakdown:{}};return this.setSetting("currentSession",a),a}updateSessionCost(a,b){let c=this.getCurrentSession();c||(c=this.startNewSession()),c.totalCost+=b,c.messageCount+=1;let d=a.provider||"unknown";c.providerBreakdown[d]||(c.providerBreakdown[d]={cost:0,tokenUsage:{input:0,output:0},requestCount:0}),c.providerBreakdown[d].cost+=b,c.providerBreakdown[d].tokenUsage.input+=a.promptTokens,c.providerBreakdown[d].tokenUsage.output+=a.completionTokens,c.providerBreakdown[d].requestCount+=1;let e=this.getSettings().lifetimeCosts||{total:0,byProvider:{}};e.total+=b,e.byProvider[d]=(e.byProvider[d]||0)+b,this.setSetting("currentSession",c),this.setSetting("lifetimeCosts",e)}adjustSessionCost(a,b,c){if(!b&&!c)return;let d=this.getCurrentSession();if(!d)return;let e=a||"unknown";d.totalCost+=b,d.providerBreakdown[e]||(d.providerBreakdown[e]={cost:0,tokenUsage:{input:0,output:0},requestCount:0}),d.providerBreakdown[e].cost+=b,c&&(d.providerBreakdown[e].tokenUsage.input+=c.input,d.providerBreakdown[e].tokenUsage.output+=c.output);let f=this.getSettings().lifetimeCosts||{total:0,byProvider:{}};f.total+=b,f.byProvider[e]=(f.byProvider[e]||0)+b,this.setSetting("currentSession",d),this.setSetting("lifetimeCosts",f)}getLifetimeCosts(){return this.getSettings().lifetimeCosts||{total:0,byProvider:{}}}resetLifetimeCosts(){this.setSetting("lifetimeCosts",{total:0,byProvider:{},lastReset:new Date})}checkCostLimits(){let a=this.getCostSettings(),b=this.getCurrentSession();if(!b||!a.dailyLimit)return{warning:!1,exceeded:!1};let c=b.totalCost/a.dailyLimit*100;return c>=100?{warning:!1,exceeded:!0,message:`Daily limit of $${a.dailyLimit.toFixed(2)} exceeded`}:a.warningThreshold&&c>=a.warningThreshold?{warning:!0,exceeded:!1,message:`${c.toFixed(0)}% of daily limit used ($${b.totalCost.toFixed(2)} of $${a.dailyLimit.toFixed(2)})`}:{warning:!1,exceeded:!1}}getCachedModels(a){let b=this.getSettings(),c=b.modelCache?.[a];return c?new Date>new Date(c.expiresAt)?(this.clearModelCache(a),null):c:null}setCachedModels(a,b){let c=this.getSettings(),d=new Date,e=new Date(d.getTime()+864e5),f=c.modelCache||{};f[a]={models:b,timestamp:d.toISOString(),expiresAt:e.toISOString()},this.setSetting("modelCache",f)}clearModelCache(a){if(a){let b=this.getSettings().modelCache||{};delete b[a],this.setSetting("modelCache",b)}else this.setSetting("modelCache",{})}isCacheValid(a){return null!==this.getCachedModels(a)}getCodexAuth(){return this.getSettings().codexAuth||null}setCodexAuth(a){this.setSetting("codexAuth",a),this.setProviderApiKey("openai-codex",a.access_token)}clearCodexAuth(){let a=this.getSettings();delete a.codexAuth;let b=a.providerKeys||{};delete b["openai-codex"],this.setSetting("providerKeys",b)}isCodexTokenExpired(){let a=this.getCodexAuth();return!a||Date.now()/1e3>=a.expires_at-60}getHFAuth(){return this.getSettings().hfAuth||null}setHFAuth(a){this.setSetting("hfAuth",a),this.setProviderApiKey("huggingface",a.access_token)}clearHFAuth(){let a=this.getSettings();delete a.hfAuth;let b=a.providerKeys||{};delete b.huggingface,this.setSetting("providerKeys",b)}getReasoningEnabled(a){let b=this.getSettings();return b.reasoningEnabled?.[a]??!1}setReasoningEnabled(a,b){let c={...this.getSettings().reasoningEnabled||{}};c[a]=b,this.setSetting("reasoningEnabled",c)}constructor(){this.STORAGE_KEY="osw-studio-settings"}}let e=new d;function f(a){return!0}},49186:(a,b,c)=>{"use strict";c.d(b,{$:()=>h});var d=c(98763),e=c(11482),f=c(15514);class g{subscribe(a){return this.listeners.add(a),()=>this.listeners.delete(a)}emit(a){let b={projectId:a,dirty:this.isDirty(a)};for(let a of this.listeners)try{a(b)}catch(a){f.v.error("[SaveManager] Listener error",a)}}setDirty(a,b){let c=this.dirtyProjects.has(a);b&&!c?(this.dirtyProjects.add(a),this.emit(a)):!b&&c&&(this.dirtyProjects.delete(a),this.emit(a))}markDirty(a){this.isSuppressed(a)||this.setDirty(a,!0)}markClean(a){this.setDirty(a,!1)}isDirty(a){return this.dirtyProjects.has(a)}beginSuppression(a){let b=this.suppressionCounts.get(a)??0;this.suppressionCounts.set(a,b+1)}endSuppression(a){let b=this.suppressionCounts.get(a)??0;if(b<=1)return void this.suppressionCounts.delete(a);this.suppressionCounts.set(a,b-1)}async runWithSuppressedDirty(a,b){this.beginSuppression(a);try{return await b()}finally{this.endSuppression(a)}}isSuppressed(a){return(this.suppressionCounts.get(a)??0)>0}async save(a,b){await e.vfs.init();let c=await e.vfs.getProject(a),f=`Manual save @ ${new Date().toLocaleTimeString()}`,g=await d.Y.createCheckpoint(a,b||f,{kind:"manual",baseRevisionId:c.lastSavedCheckpointId??null});return c.lastSavedCheckpointId=g.id,c.lastSavedAt=new Date(g.timestamp),await e.vfs.updateProject(c),e.vfs.triggerAutoSync?.(a),this.manualCheckpoints.set(a,g.id),this.markClean(a),g}async restoreLastSaved(a){await e.vfs.init();let b=(await e.vfs.getProject(a)).lastSavedCheckpointId;if(!b)return f.v.warn("[SaveManager] No saved checkpoint to restore",{projectId:a}),!1;let c=await this.runWithSuppressedDirty(a,async()=>{if(!await d.Y.checkpointExists(b))return f.v.warn("[SaveManager] Saved checkpoint missing",{projectId:a,checkpointId:b}),!1;let c=await d.Y.restoreCheckpoint(b);return c||f.v.error("[SaveManager] Failed to restore saved checkpoint",{projectId:a,checkpointId:b}),c});return c&&this.markClean(a),c}getSavedCheckpointId(a){return this.manualCheckpoints.get(a)??null}async syncProjectSaveState(a){await e.vfs.init();let b=await e.vfs.getProject(a);b.lastSavedCheckpointId?this.manualCheckpoints.set(a,b.lastSavedCheckpointId):this.manualCheckpoints.delete(a)}constructor(){this.dirtyProjects=new Set,this.listeners=new Set,this.suppressionCounts=new Map,this.manualCheckpoints=new Map}}let h=new g},49308:(a,b,c)=>{"use strict";c.d(b,{g:()=>e});var d=c(21124);function e({width:a=64,height:b=64,className:c}){return(0,d.jsx)("div",{style:{width:a,height:b},className:c,dangerouslySetInnerHTML:{__html:` {if("string"!=typeof b.cmd)return'Error: cmd must be a string. Pass the complete command as a single string (e.g., "ls -la /")';let d=function(a){let b=[],c="",d=!1,e="",f=!1;for(let g=0;g0&&(b.push(c),c=""):c+=h}return c.length>0&&b.push(c),function(a){let b=[];for(let c of a){let a=c.match(/^(.+)\{([^}]+)\}(.*)$/);if(a){let[,c,d,e]=a;for(let a of d.split(",").map(a=>a.trim()))b.push(c+a+e)}else b.push(c)}return b}(b)}(b.cmd),e=d[0];if(c.isReadOnly&&q(d))return`Error: Write operations are disabled in read-only mode. "${d[0]}" is not allowed.`;let f=g.vfs.getServerContextSiteId();if(["sqlite3"].includes(e)&&f)try{let a=await fetch("/api/shell/execute",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({siteId:f,cmd:d})});if(!a.ok){let b=await a.json().catch(()=>({}));return`Error: ${b.stderr||"Server request failed"}`}let b=await a.json();if(0===b.exitCode)return b.stdout&&b.stdout.trim().length>0?b.stdout:"Command succeeded with no output";return`Error: ${b.stderr||"Command failed"}`}catch(b){let a=b instanceof Error?b.message:"Server request failed";return`Error: ${a}`}let i=await h._.execute(a,d);if(q(d)&&d.some(a=>a.includes("/.server/"))&&g.vfs.hasServerContext()&&await g.vfs.refreshServerContext(),i.success)return i.stdout&&i.stdout.trim().length>0?i.stdout:"Command succeeded with no output";{let a=i.stderr&&i.stderr.trim().length>0?i.stderr:"Command failed";return`Error: ${a}`}}}}),this.register({id:"json_patch",definition:{name:"json_patch",description:`Edit files using structured patch operations. Supports three operation types: +- {"cmd": "grep -r pattern /"}`,parameters:{type:"object",properties:{cmd:{type:"string",description:"Single shell command to execute (complete command with all arguments as a string)"}},required:["cmd"]}},executor:{execute:async(a,b,c)=>{if("string"!=typeof b.cmd)return'Error: cmd must be a string. Pass the complete command as a single string (e.g., "ls -la /")';let d=function(a){let b=[],c="",d=!1,e="",f=!1;for(let g=0;g0&&(b.push(c),c=""):c+=h}return c.length>0&&b.push(c),function(a){let b=[];for(let c of a){let a=c.match(/^(.+)\{([^}]+)\}(.*)$/);if(a){let[,c,d,e]=a;for(let a of d.split(",").map(a=>a.trim()))b.push(c+a+e)}else b.push(c)}return b}(b)}(b.cmd),e=d[0];if(c.isReadOnly&&q(d))return`Error: Write operations are disabled in read-only mode. "${d[0]}" is not allowed.`;let f=g.vfs.getRuntimeDeploymentId();if(["sqlite3"].includes(e)&&f)try{let a=await fetch("/api/shell/execute",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({deploymentId:f,cmd:d})});if(!a.ok){let b=await a.json().catch(()=>({}));return`Error: ${b.stderr||"Server request failed"}`}let b=await a.json();if(0===b.exitCode)return b.stdout&&b.stdout.trim().length>0?b.stdout:"Command succeeded with no output";return`Error: ${b.stderr||"Command failed"}`}catch(b){let a=b instanceof Error?b.message:"Server request failed";return`Error: ${a}`}let i=await h._.execute(a,d);if(q(d)&&d.some(a=>a.includes("/.server/"))&&g.vfs.hasServerContext()&&await g.vfs.refreshServerContext(),i.success)return i.stdout&&i.stdout.trim().length>0?i.stdout:"Command succeeded with no output";{let a=i.stderr&&i.stderr.trim().length>0?i.stderr:"Command failed";return`Error: ${a}`}}}}),this.register({id:"json_patch",definition:{name:"json_patch",description:`Edit files using structured patch operations. Supports three operation types: IMPORTANT: The 'operations' parameter must be a direct array, NOT a JSON string. ❌ Wrong: "operations": "[{...}]" @@ -3379,10 +3379,12 @@ json_patch: { "file_path": "${a}", "operations": [{"type": "rewrite", "content": // Step 2: Fill in sections with UPDATE operations \`\`\``}),this.onProgress?.("tool_status",{toolIndex:b,status:"failed",error:`Tool call truncated for ${a} - retry with smaller operations`});continue}}f.push({role:"tool",tool_call_id:j.id,content:`Error: ${a}`}),this.onProgress?.("tool_status",{toolIndex:b,status:"failed",error:a}),(0,E.u4)("tool_call",{tool:j.function.name,success:!1})}}return{results:f,continuationNeeded:h,continuationFilePath:e}}async streamLLMResponse(a,b){let{provider:d,apiKey:e,model:f}=this.getProviderConfig();if("openai-codex"===d){let{ensureValidCodexToken:a}=await Promise.resolve().then(c.bind(c,41316));e=await a()}await this.ensurePricing(d,f);let g=r.getDefinitions(b.tools),h=a.map(a=>{let{ui_metadata:b,...c}=a;return c});this.totalMalformedToolCalls>=this.malformedThresholdForReminder&&h.length>0&&(h=h.map((a,b)=>0===b&&"system"===a.role?{...a,content:a.content+H}:a));let i=u.s.getReasoningEnabled(f),j={messages:h,apiKey:e,model:f,provider:d,tools:g,max_tokens:16384,...g&&g.length>0&&{tool_choice:"auto"},...i&&{reasoning:{enabled:!0}}},k=await this.fetchWithRetry("/api/generate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(j)},3,this.handleRetry.bind(this));if(!k.ok){let a=k.status,b="unknown";429===a?b="rate_limit":401===a||403===a?b="auth":a>=500?b="server":400===a&&(b="invalid_request"),(0,E.u4)("api_error",{provider:d,model:f,error_type:b,status_code:a});let c=`API call failed: ${k.statusText}`;try{let a=await k.json();a.error&&(c=a.error)}catch{}throw Error(c)}return this.parseStreamingResponseWithTracking(k,d,f)}createConversation(a,b){let c=`conv_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,d={id:c,agent_type:a,messages:[],metadata:{started_at:Date.now(),cost:0,status:"running"}};return this.conversations.set(c,d),c}async recordAutoCheckpoint(a){let b=await s.Y.createCheckpoint(this.projectId,a,{kind:"auto",baseRevisionId:t.$.getSavedCheckpointId(this.projectId)});return this.lastCheckpointId=b.id,this.onProgress?.("checkpoint_created",{checkpointId:b.id,description:a,timestamp:b.timestamp}),b}getProviderConfig(){let a=u.s.getSelectedProvider(),b=(0,v.sO)(a),c=u.s.getProviderApiKey(a),d=this.model||u.s.getProviderModel(a)||void 0;if(b.apiKeyRequired&&!c&&!b.usesOAuth)throw Error(`API key not configured for provider: ${a}`);return{provider:a,providerConfig:b,apiKey:c||"",model:d||"default-model"}}handleRetry(a,b){let c=`Rate limited. Retry attempt ${a} in ${b/1e3}s...`;i.v.warn(c),this.onProgress?.("retry",{attempt:a,delay:b,reason:"Rate limited",message:c}),x.oR.info(c,{duration:b>2e3?b-500:2e3,description:"Waiting for rate limit to reset"})}async ensurePricing(a,b){let c=`${a}:${b}`;if(this.pricingEnsured.has(c))return;if("openrouter"!==a||u.s.getModelPricing("openrouter",b))return void this.pricingEnsured.add(c);let d=u.s.getCachedModels("openrouter");if(d?.models?.length&&((0,y.V)("openrouter",d.models),u.s.getModelPricing("openrouter",b)))return void this.pricingEnsured.add(c);try{let a=await (0,z.QF)();(0,y.b)(a),u.s.getModelPricing("openrouter",b)&&this.pricingEnsured.add(c)}catch(a){i.v.warn("[MultiAgentOrchestrator] Failed to fetch pricing metadata",a)}}async fetchWithRetry(a,b,c=3,d){for(let e=0;e<=c;e++){let f=await fetch(a,b);if(429!==f.status||e===c)return f;let g=f.headers.get("Retry-After"),h=g?1e3*parseInt(g):1e3*Math.pow(2,e);d?.(e+1,h),await F(h)}throw Error("Unexpected end of retry loop")}async parseStreamingResponseWithTracking(a,b,c){let d=await A(a,{provider:b,model:c,projectId:this.projectId,onProgress:this.onProgress,onCostUpdate:(a,c)=>{this.totalCost+=a,this.totalUsage.promptTokens+=c.promptTokens,this.totalUsage.completionTokens+=c.completionTokens,this.totalUsage.totalTokens+=c.totalTokens,u.s.updateSessionCost(c,a);let d=u.s.getCurrentSession()?.sessionId;this.projectId.startsWith("test-")||g.vfs.updateProjectCost(this.projectId,{cost:a,provider:c.provider||b||"unknown",tokenUsage:{input:c.promptTokens,output:c.completionTokens},sessionId:d,mode:"absolute"}).catch(a=>i.v.error("Failed to update project cost:",a)),this.onProgress?.("usage",{usage:c,totalCost:this.totalCost})}});if(d.usage){let a=d.usage;a.provider||(a.provider=b),a.model||(a.model=c);let e=w.U.calculateCost(a,b,c,!0);a.cost=e,this.totalUsage.promptTokens+=a.promptTokens,this.totalUsage.completionTokens+=a.completionTokens,this.totalUsage.totalTokens+=a.totalTokens,this.totalCost+=e,u.s.updateSessionCost(a,e);let f=u.s.getCurrentSession()?.sessionId;this.projectId.startsWith("test-")||g.vfs.updateProjectCost(this.projectId,{cost:e,provider:a.provider||b||"unknown",tokenUsage:{input:a.promptTokens,output:a.completionTokens},sessionId:f,mode:"absolute"}).catch(a=>i.v.error("Failed to update project cost:",a)),this.onProgress?.("usage",{usage:a,totalCost:this.totalCost})}return d}getToolCallSignature(a){let b=a.function?.name||"unknown";try{let c=JSON.parse(a.function.arguments);if("shell"===b){let a=Array.isArray(c.cmd)?c.cmd.join(" "):String(c.cmd||"");return`shell:${a}`}if("json_patch"===b){let a=c.file_path||"",b=this.hashString(JSON.stringify(c.operations||null));return`json_patch:${a}:${b}`}let d=this.stableStringify(c);return`${b}:${d}`}catch{return`${b}:${a.function.arguments}`}}hashString(a){let b=0;for(let c=0;cb&&"object"==typeof b&&!Array.isArray(b)?Object.keys(b).sort().reduce((a,c)=>(a[c]=b[c],a),{}):b)}generateSummary(){return"Task completed"}}},83133:(a,b,c)=>{"use strict";c.d(b,{default:()=>g});var d=c(21124),e=c(62806),f=c(96610);function g({children:a}){let b=new e.E;return(0,d.jsx)(f.Ht,{client:b,children:a})}},84117:(a,b,c)=>{"use strict";c.d(b,{m:()=>e});var d=c(6636);async function e(a,b,c){return b?g(a,c):await h(a,c)}function f(a){let b=` -🖥️ SERVER CONTEXT - Site "${a.siteName}": -`;return b+=`This project is linked to a site with server-side features. - -Available Server Features: +🖥️ BACKEND FEATURES: +`;return b+=`This project has backend features defined. +`,a.runtimeDeploymentId?b+=`Runtime deployment connected — sqlite3 commands available. +`:b+=`No runtime deployment connected. Define backend features here. Deploy to execute them and use sqlite3. +`,b+=` +Available Backend Features: `,a.hasDatabase&&(b+=`• Database: SQLite database accessible via sqlite3 shell command `),a.edgeFunctionCount>0&&(b+=`• Edge Functions: ${a.edgeFunctionCount} endpoint(s) in /.server/edge-functions/*.json `),a.serverFunctionCount>0&&(b+=`• Server Functions: ${a.serverFunctionCount} helper(s) in /.server/server-functions/*.json @@ -3390,7 +3392,7 @@ Available Server Features: `),b+=`• Secrets: ${a.secretCount} secret(s) in /.server/secrets/*.json `,a.hasDatabase&&(b+=` ## 🗄️ DATABASE COMMANDS (sqlite3) -Use the sqlite3 shell command to query/modify the site database: +Use the sqlite3 shell command to query/modify the deployment database: ⚠️ CRITICAL: Put the COMPLETE SQL query in double quotes after sqlite3. Examples: @@ -3433,7 +3435,7 @@ Use json_patch (preferred) to create /.server/edge-functions/{name}.json: IMPORTANT: In HTML/JS, use simple paths — the platform auto-routes to the correct API endpoint: fetch('/list-products') // CORRECT fetch('/create-order', {method:'POST', headers:{'Content-Type':'application/json'}, body:JSON.stringify(data)}) // CORRECT - fetch('/api/sites/.../functions/list-products') // WRONG - never hardcode site IDs + fetch('/api/deployments/.../functions/list-products') // WRONG - never hardcode deployment IDs ## Creating Server Functions json_patch /.server/server-functions/formatPrice.json rewrite '{"name":"formatPrice","enabled":true,"code":"const [amount, currency] = args; return currency + amount.toFixed(2);"}' @@ -4335,4 +4337,4 @@ Project Structure: `),b.edgeFunctionCount>0&&(c+=`│ ├── edge-functions/ `),b.serverFunctionCount>0&&(c+=`│ ├── server-functions/ `),c+=`│ └── secrets/ -`),a)){let b=a.replace(/^Project Structure:\n/,"");c+=b}return c}},86275:(a,b,c)=>{"use strict";c.d(b,{U:()=>h});var d=c(47247),e=c(15514);let f={"openrouter/deepseek/deepseek-chat":{input:.14,output:.28},"openrouter/deepseek/deepseek-reasoner":{input:.55,output:2.19,reasoning:5.5},"openrouter/anthropic/claude-3-5-sonnet":{input:3,output:15},"openrouter/anthropic/claude-3-5-haiku":{input:1,output:5},"openrouter/openai/gpt-4o":{input:2.5,output:10},"openrouter/openai/gpt-4o-mini":{input:.15,output:.6},"openrouter/meta-llama/llama-3.3-70b-instruct":{input:.88,output:.88},"openrouter/qwen/qwen-2.5-72b-instruct":{input:.35,output:.4},"openai/gpt-4o":{input:2.5,output:10},"openai/gpt-4o-mini":{input:.15,output:.6},"openai/gpt-4-turbo":{input:10,output:30},"openai/gpt-3.5-turbo":{input:.5,output:1.5},"openai/o1-preview":{input:15,output:60,reasoning:60},"openai/o1-mini":{input:3,output:12,reasoning:12},"anthropic/claude-3-5-sonnet-20241022":{input:3,output:15},"anthropic/claude-3-5-haiku-20241022":{input:1,output:5},"anthropic/claude-3-opus-20240229":{input:15,output:75},"anthropic/claude-3-sonnet-20240229":{input:3,output:15},"anthropic/claude-3-haiku-20240307":{input:.25,output:1.25},"gemini/gemini-1.5-pro":{input:1.25,output:5},"gemini/gemini-1.5-flash":{input:.075,output:.3},"gemini/gemini-1.5-flash-8b":{input:.0375,output:.15},"groq/llama-3.3-70b-versatile":{input:.59,output:.79},"groq/llama-3.3-70b-specdec":{input:.59,output:.99},"groq/llama-3.2-90b-text-preview":{input:.9,output:.9},"groq/mixtral-8x7b-32768":{input:.24,output:.24},"fireworks/llama-v3p3-70b-instruct":{input:.9,output:.9},"fireworks/llama-v3p1-405b-instruct":{input:3,output:3},"fireworks/qwen2p5-72b-instruct":{input:.9,output:.9},"together/meta-llama/Llama-3.3-70B-Instruct-Turbo":{input:.88,output:.88},"together/meta-llama/Meta-Llama-3.1-405B-Instruct-Turbo":{input:3.5,output:3.5},"together/Qwen/Qwen2.5-72B-Instruct-Turbo":{input:1.2,output:1.2},"sambanova/Meta-Llama-3.3-70B-Instruct":{input:.6,output:.6},"sambanova/Meta-Llama-3.1-405B-Instruct":{input:3,output:3},"sambanova/Qwen2.5-72B-Instruct":{input:.6,output:.6},"hyperbolic/meta-llama/Llama-3.3-70B-Instruct":{input:.8,output:.8},"hyperbolic/Qwen/Qwen2.5-72B-Instruct":{input:.8,output:.8},"nebius/llama-3.3-70b":{input:.8,output:.8},"nebius/qwen2.5-72b":{input:.8,output:.8},"ollama/local":{input:0,output:0},"lmstudio/local":{input:0,output:0}},g={input:1,output:2};class h{static calculateCost(a,b,c,d=!1){let g,h="number"==typeof a.cost&&Number.isFinite(a.cost)?a.cost:void 0,i=!0===a.isEstimated||void 0===h||h<1e-6,j=this.getPricingKey(b,c),k=this.getDynamicPricing(b,c),l=f[j],m=k||l||this.findBestPricingMatch(b,c);k||l||e.v.warn(`[CostCalculator] Falling back to default pricing for ${j}`);let n=0,o=Math.max(a.promptTokens??0,0);o&&(n+=o/1e6*m.input);let p=Math.max(a.completionTokens??0,0);return a.reasoningTokens&&(p=Math.max(p-Math.max(a.reasoningTokens,0),0)),p&&(n+=p/1e6*m.output),a.reasoningTokens&&m.reasoning&&(n+=a.reasoningTokens/1e6*m.reasoning),i||void 0===h?(g=Math.max(n,h??0),a.isEstimated=!d||i,void 0!==h&&h>g&&(g=h),void 0!==h&&Math.abs(g-h)>1e-4&&e.v.debug("[CostCalculator] Adjusted provisional cost",{provider:b,model:c,reportedCost:h,computedCost:n,finalCost:g})):(g=h,a.isEstimated=!1),a.isEstimated&&("openrouter"===b||b.toString().includes("openrouter"))&&e.v.warn("[CostCalculator] Using estimated cost based on normalized tokens for OpenRouter. This may be inaccurate. Consider using Generation API for native token counts."),g}static getPricingKey(a,b){return"openrouter"===a&&b.includes("/")?`openrouter/${b}`:`${a}/${b}`}static findBestPricingMatch(a,b){let c=`${a}/`;for(let[a,d]of Object.entries(f))if(a.startsWith(c)){let e=a.substring(c.length);if(b.includes(e)||e.includes(b))return d}return"ollama"===a||"lmstudio"===a?{input:0,output:0}:g}static getDynamicPricing(a,b){if(!this.isKnownProvider(a))return null;try{return d.s.getModelPricing(a,b)}catch(c){return e.v.debug("[CostCalculator] Failed to read dynamic pricing",{provider:a,model:b,error:c}),null}}static isKnownProvider(a){return"openrouter"===a||"openai"===a||"anthropic"===a||"groq"===a||"gemini"===a||"huggingface"===a||"ollama"===a||"lmstudio"===a||"sambanova"===a}static formatCost(a){return 0===a?"$0.00":a<1e-4?"<$0.0001":a<.01?`$${a.toFixed(4)}`:a<1?`$${a.toFixed(3)}`:`$${a.toFixed(2)}`}static getPricing(a,b){return f[this.getPricingKey(a,b)]||this.findBestPricingMatch(a,b)}static estimateCost(a,b,c,d=!0){let e=Math.ceil(1.3*a.split(/\s+/).length),f=this.getPricing(b,c);return e/1e6*(d?f.input:f.output)}static updateWithGenerationApiCost(a,b){let c={...a};return void 0!==b.total_cost&&(c.cost=b.total_cost,c.isEstimated=!1,a.cost&&Math.abs(a.cost-b.total_cost)>1e-4&&e.v.debug(`[CostCalculator] Cost corrected: ${a.cost?.toFixed(4)} -> ${b.total_cost.toFixed(4)} (${((b.total_cost-a.cost)/a.cost*100).toFixed(1)}% difference)`)),void 0!==b.native_tokens_total&&(c.nativeTokens={total:b.native_tokens_total,prompt:b.native_tokens_prompt,completion:b.native_tokens_completion}),c}}},91032:(a,b,c)=>{"use strict";c.d(b,{j:()=>l});var d=c(21124),e=c(38301),f=c(19217),g=c(22544),h=c(49308),i=c(82042),j=c(85351),k=c(6130);function l({title:a,subtitle:b,badge:c,onLogoClick:l,actions:m=[],mobileMenuContent:n,desktopOnlyContent:o,className:p="",leftText:q,mobileVisibleActions:r=[],viewTabs:s,activeViewTab:t,onViewTabChange:u,hideLogo:v=!1,showMobileMenu:w=!1,onMobileMenuClick:x,hideActionsOnMobile:y=!1,pageName:z}){let[A,B]=(0,e.useState)(!1),C=new Set(r),D=y?[]:m.filter(a=>C.has(a.id)),E=y?[]:m.filter(a=>!C.has(a.id));return(0,d.jsxs)("div",{className:`border-b bg-card shadow-sm relative z-20 ${p}`,children:[(0,d.jsxs)("div",{className:"px-3 py-2 flex items-center justify-between",children:[w&&(0,d.jsxs)("div",{className:"md:hidden flex items-center gap-3",children:[(0,d.jsx)(h.g,{width:24,height:24}),z&&(0,d.jsx)("span",{className:"text-sm font-semibold",children:z})]}),!v&&!w&&(0,d.jsxs)("button",{onClick:l,className:"flex items-center gap-2 p-1 pr-2 hover:ring-1 hover:ring-border rounded-sm transition-all",children:[(0,d.jsx)(h.g,{width:24,height:24}),q&&(0,d.jsx)("span",{className:"font-semibold text-lg hidden md:inline",children:q})]}),(0,d.jsx)("div",{className:"flex items-center gap-2 flex-1 justify-center md:justify-start md:ml-6",children:s&&s.length>0?(0,d.jsx)("div",{className:"flex border rounded-full",children:s.map((a,b)=>(0,d.jsxs)(f.$,{variant:t===a.id?"secondary":"ghost",size:"sm",onClick:()=>u?.(a.id),className:`gap-2 ${0===b?"rounded-r-none rounded-l-full":b===s.length-1?"rounded-l-none rounded-r-full":"rounded-none"}`,children:[a.icon&&(0,d.jsx)(a.icon,{className:"h-4 w-4"}),a.label]},a.id))}):q&&!w?(0,d.jsx)("h1",{className:"text-lg font-semibold md:hidden",children:q}):a?(0,d.jsxs)(d.Fragment,{children:[a&&(0,d.jsx)("h1",{className:"text-lg md:text-xl font-semibold",children:a}),c&&(0,d.jsx)(g.E,{variant:"secondary",children:c})]}):null}),!q&&!a&&b&&(0,d.jsx)("div",{className:"hidden md:flex items-center flex-1 ml-6",children:(0,d.jsx)("span",{className:"text-sm text-muted-foreground",children:b})}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsxs)("div",{className:"hidden md:flex items-center gap-2",children:[m.map(a=>a.content?(0,d.jsx)("div",{children:a.content},a.id):(0,d.jsxs)(f.$,{variant:a.variant||"outline",size:a.size||"sm",onClick:a.onClick,disabled:a.disabled,className:"justify-start","data-tour-id":a.dataTourId,children:[a.icon&&(0,d.jsx)(a.icon,{className:"h-4 w-4 mr-2"}),a.label]},a.id)),o]}),(0,d.jsx)("div",{className:"md:hidden flex items-center gap-2",children:D.map(a=>a.content?(0,d.jsx)("div",{children:a.content},a.id):(0,d.jsxs)(f.$,{variant:a.variant||"outline",size:a.size||"sm",onClick:a.onClick,disabled:a.disabled,className:"h-8 px-3","data-tour-id":a.dataTourId,children:[a.icon&&(0,d.jsx)(a.icon,{className:"h-4 w-4 mr-2"}),a.label]},a.id))}),(E.length>0||n)&&(0,d.jsx)(f.$,{variant:"ghost",size:"icon",onClick:()=>B(!A),className:"h-8 w-8 md:hidden",children:A?(0,d.jsx)(i.A,{className:"h-4 w-4"}):(0,d.jsx)(j.A,{className:"h-4 w-4"})}),w&&(0,d.jsx)(f.$,{variant:"ghost",size:"icon",onClick:x,className:"md:hidden h-8 w-8",children:(0,d.jsx)(k.A,{className:"h-5 w-5"})})]})]}),A&&(E.length>0||n)&&(0,d.jsxs)("div",{className:"md:hidden border-t bg-muted/30 px-4 py-4 space-y-3",children:[!q&&!a&&b&&(0,d.jsx)("div",{className:"pb-2 border-b border-border/50",children:(0,d.jsx)("p",{className:"text-sm text-muted-foreground",children:b})}),E.length>0&&(0,d.jsx)("div",{className:"space-y-2",children:E.map(a=>a.content?(0,d.jsx)("div",{children:a.content},a.id):(0,d.jsxs)(f.$,{variant:a.variant||"outline",size:a.size||"sm",onClick:()=>{a.onClick(),B(!1)},disabled:a.disabled,className:"w-full justify-start","data-tour-id":a.dataTourId,children:[a.icon&&(0,d.jsx)(a.icon,{className:"h-4 w-4 mr-2"}),a.label]},a.id))}),n&&(0,d.jsx)("div",{className:"pt-2 border-t border-border/50",children:n})]})]})}},91368:(a,b,c)=>{Promise.resolve().then(c.bind(c,69507)),Promise.resolve().then(c.bind(c,26262)),Promise.resolve().then(c.bind(c,20656))},93554:(a,b,c)=>{"use strict";c.d(b,{km:()=>l,_e:()=>n,u4:()=>m});let d="https://localhost:3001",e="gcBLEeGjdx8gbUMoAAlksvoKSREZlJ4l+GwKieTW2Og=",f="false"!==process.env.NEXT_PUBLIC_TELEMETRY_ENABLED,g="true"===process.env.NEXT_PUBLIC_TELEMETRY_DEBUG;var h=c(47247);let i="osw-telemetry-vid";class j{init(){try{return}catch{}}track(a,b){try{if(!this.initialized||!this.optedIn||!f)return;let c={event:a,timestamp:Date.now(),fields:{vid:this.visitorId,deployment_type:this.deploymentType,app_version:this.appVersion,...b??{}}};this.queue.push(c),this.debug("track",c),this.queue.length>=50&&this.flush()}catch{}}setOptIn(a){try{if(!a&&this.optedIn&&(this.track("telemetry_disabled"),this.flushing?this.beaconFlush():this.flush()),this.optedIn=a,h.s.setSetting("telemetryOptIn",a),a)this.visitorId=function(){try{let a=localStorage.getItem(i);return a||(a=crypto.randomUUID(),localStorage.setItem(i,a)),a}catch{return"unknown"}}();else{this.queue=[];try{localStorage.removeItem(i)}catch{}this.visitorId="unknown"}}catch{}}async flush(){try{if(0===this.queue.length||this.flushing)return;this.flushing=!0;let a=this.queue.splice(0),b=0,c=!1;for(;b<3&&!c;)try{let f={"Content-Type":"application/json"};e&&(f.Authorization=`Bearer ${e}`),(await fetch(d,{method:"POST",headers:f,body:JSON.stringify({events:a}),credentials:"omit"})).ok?(c=!0,this.debug(`Flushed ${a.length} events`)):++b<3&&await this.sleep(1e3*Math.pow(2,b-1))}catch{++b<3&&await this.sleep(1e3*Math.pow(2,b-1))}c||this.debug(`Dropped ${a.length} events after 3 retries`)}catch{}finally{this.flushing=!1}}beaconFlush(){if(0!==this.queue.length)try{let a={events:this.queue.splice(0)};e&&(a.token=e);let b=new Blob([JSON.stringify(a)],{type:"application/json"});"undefined"!=typeof navigator&&navigator.sendBeacon&&navigator.sendBeacon(d,b)}catch{}}sleep(a){return new Promise(b=>setTimeout(b,a))}debug(...a){g&&console.debug("[telemetry]",...a)}constructor(){this.queue=[],this.flushTimer=null,this.heartbeatTimer=null,this.optedIn=!0,this.initialized=!1,this.sessionStartTime=0,this.flushing=!1,this.visitorId="unknown",this.deploymentType="browser",this.appVersion="unknown",this.handleUnload=()=>{this.beaconFlush()},this.handleVisibility=()=>{"hidden"===document.visibilityState&&this.beaconFlush()}}}let k=null;function l(){k||(k=new j).init()}function m(a,b){k?.track(a,b)}function n(a){k?.setOptIn(a)}},94348:()=>{},96352:(a,b,c)=>{"use strict";c.d(b,{Gr:()=>f,N$:()=>g,N2:()=>i,Q6:()=>e,fu:()=>h});let d={html:["html","htm"],css:["css"],js:["js","mjs","jsx"],json:["json"],text:["txt","md","xml","svg"],template:["hbs","handlebars"],image:["png","jpg","jpeg","gif","webp","ico","bmp"],video:["mp4","webm","ogg"]},e={text:5242880,html:5242880,css:5242880,js:5242880,json:5242880,template:5242880,image:0xa00000,video:0x3200000,binary:0xa00000};function f(a){let b=a.split(".").pop()?.toLowerCase();for(let[a,c]of Object.entries(d))if(c.includes(b||""))return a;return"text"}function g(a){return({html:"text/html",htm:"text/html",css:"text/css",js:"application/javascript",mjs:"application/javascript",jsx:"application/javascript",json:"application/json",txt:"text/plain",md:"text/markdown",xml:"application/xml",svg:"image/svg+xml",hbs:"text/x-handlebars-template",handlebars:"text/x-handlebars-template",png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",ico:"image/x-icon",bmp:"image/bmp",mp4:"video/mp4",webm:"video/webm",ogg:"video/ogg"})[a.split(".").pop()?.toLowerCase()||""]||"application/octet-stream"}function h(a){let b=a.split(".").pop()?.toLowerCase();for(let a of Object.values(d))if(a.includes(b||""))return!0;return!1}let i=[{value:"personal",label:"Personal Use Only",description:"Cannot be resold or used commercially"},{value:"commercial",label:"Commercial Use",description:"Can be used in commercial projects, cannot resell template"},{value:"mit",label:"MIT License",description:"Use freely, must include copyright notice"},{value:"apache-2.0",label:"Apache 2.0",description:"Similar to MIT, with patent protection"},{value:"gpl-3.0",label:"GPL 3.0",description:"Open source, derivatives must also be GPL"},{value:"bsd-3-clause",label:"BSD 3-Clause",description:"Permissive, cannot use author name for promotion"},{value:"cc-by-4.0",label:"CC BY 4.0",description:"Free use with attribution"},{value:"cc-by-sa-4.0",label:"CC BY-SA 4.0",description:"Free use with attribution, share-alike"},{value:"cc-by-nc-4.0",label:"CC BY-NC 4.0",description:"Free for non-commercial use with attribution"},{value:"unlicense",label:"Unlicense (Public Domain)",description:"No restrictions, completely free to use"},{value:"all-rights-reserved",label:"All Rights Reserved",description:"Most restrictive, requires explicit permission"},{value:"custom",label:"Custom License",description:"Specify your own terms"}]},98763:(a,b,c)=>{"use strict";c.d(b,{Y:()=>h});var d=c(11482),e=c(15514),f=c(57504);class g{arrayBufferToBase64(a){let b=new Uint8Array(a),c="";for(let a=0;a{let c=this.getDB().transaction([this.storeName],"readonly").objectStore(this.storeName).getAll();c.onsuccess=()=>{let b=c.result;for(let a of(this.checkpointMetadata.clear(),b)){let b={id:a.id,timestamp:a.timestamp,description:a.description,projectId:a.projectId,kind:a.kind||"auto",baseRevisionId:a.baseRevisionId??null};this.checkpointMetadata.set(a.id,b)}a()},c.onerror=()=>{e.v.error("Failed to load checkpoint metadata from DB"),b(c.error)}})}async loadSingleCheckpointFromDB(a){return new Promise((b,c)=>{let d=this.getDB().transaction([this.storeName],"readonly").objectStore(this.storeName).get(a);d.onsuccess=()=>{let c,g,h=d.result;if(!h)return void b(null);if("compressed"in h&&h.compressed){let d=(0,f.decompressFromUTF16)(h.compressedData);if(!d){e.v.error(`[Checkpoint] Failed to decompress checkpoint ${a} (corrupt data)`),b(null);return}let i=JSON.parse(d);c=new Map(i.files),g=new Set(i.directories)}else c=new Map(h.files),g=new Set(h.directories);b({id:h.id,timestamp:h.timestamp,description:h.description,projectId:h.projectId,kind:h.kind||"auto",baseRevisionId:h.baseRevisionId??null,files:c,directories:g})},d.onerror=()=>{e.v.error("Failed to load checkpoint from DB"),c(d.error)}})}async saveCheckpointToDB(a){let b;await this.initDB();try{let c=JSON.stringify({files:Array.from(a.files.entries()),directories:Array.from(a.directories)}),d=(0,f.compressToUTF16)(c);b={id:a.id,timestamp:a.timestamp,description:a.description,projectId:a.projectId,kind:a.kind,baseRevisionId:a.baseRevisionId??null,compressed:!0,compressedData:d}}catch{b={...a,files:Array.from(a.files.entries()),directories:Array.from(a.directories),kind:a.kind,baseRevisionId:a.baseRevisionId??null}}return new Promise((a,c)=>{let d;try{d=this.getDB(),console.log(`[CP DEBUG] saveCheckpointToDB: got DB, name=${d.name}, version=${d.version}, objectStoreNames=`,Array.from(d.objectStoreNames))}catch(a){console.error("[CP DEBUG] saveCheckpointToDB: getDB() threw",a),c(a);return}let f=d.transaction([this.storeName],"readwrite");f.onerror=()=>console.error("[CP DEBUG] saveCheckpointToDB: transaction error",f.error),f.onabort=()=>console.error("[CP DEBUG] saveCheckpointToDB: transaction ABORTED",f.error);let g=f.objectStore(this.storeName).put(b);g.onsuccess=()=>{console.log(`[CP DEBUG] saveCheckpointToDB: put succeeded for ${b.id}`),a()},g.onerror=()=>{console.error(`[CP DEBUG] saveCheckpointToDB: put FAILED for ${b.id}`,g.error),e.v.error("Failed to save checkpoint to DB"),c(g.error)}})}async deleteCheckpointFromDB(a){return await this.initDB(),new Promise((b,c)=>{let d=this.getDB().transaction([this.storeName],"readwrite").objectStore(this.storeName).delete(a);d.onsuccess=()=>b(),d.onerror=()=>{e.v.error("Failed to delete checkpoint from DB"),c(d.error)}})}async createCheckpoint(a,b,c={}){if(console.log(`[CP DEBUG] createCheckpoint called: kind=${c.kind}, project=${a}, desc="${b}"`),"system"===c.kind){let d=this.systemCheckpointLocks.get(a);if(d)return console.log("[CP DEBUG] system lock exists, awaiting existing promise"),d;let e=this.createCheckpointInternal(a,b,c);this.systemCheckpointLocks.set(a,e);try{let a=await e;return console.log(`[CP DEBUG] system checkpoint created/reused: ${a.id}`),a}finally{this.systemCheckpointLocks.delete(a)}}let d=await this.createCheckpointInternal(a,b,c);return console.log(`[CP DEBUG] checkpoint created: ${d.id}, kind=${d.kind}`),d}async createCheckpointInternal(a,b,c={}){if(await this.initDB(),await d.vfs.init(),"system"===c.kind){let b=Array.from(this.checkpointMetadata.values()).find(b=>b.projectId===a&&"system"===b.kind);if(b){console.log(`[CP DEBUG] found existing system checkpoint in metadata: ${b.id}`);let a=await this.loadSingleCheckpointFromDB(b.id);if(a)return console.log(`[CP DEBUG] reusing existing system checkpoint from DB: ${a.id}`),a;console.log("[CP DEBUG] existing system checkpoint NOT in DB, creating new one")}}let f=await d.vfs.listDirectory(a,"/"),g=new Map,h=new Set;for(let b of f){let c=b.path.split("/").filter(Boolean);for(let a=1;a<=c.length-1;a++){let b="/"+c.slice(0,a).join("/");h.add(b)}if("string"==typeof b.content)g.set(b.path,b.content);else if(b.content instanceof ArrayBuffer){let a=this.arrayBufferToBase64(b.content);g.set(b.path,{data:a,encoding:"base64"})}else try{let c=await d.vfs.readFile(a,b.path);if("string"==typeof c.content)g.set(b.path,c.content);else if(c.content instanceof ArrayBuffer){let a=this.arrayBufferToBase64(c.content);g.set(b.path,{data:a,encoding:"base64"})}}catch(a){e.v.error(`Failed to read file for checkpoint: ${b.path}`,a)}}let i={id:`cp_${Date.now()}`,timestamp:new Date().toISOString(),description:b,files:g,directories:h,projectId:a,kind:c.kind||"auto",baseRevisionId:c.baseRevisionId??null},j={id:i.id,timestamp:i.timestamp,description:i.description,projectId:i.projectId,kind:i.kind,baseRevisionId:i.baseRevisionId};this.checkpointMetadata.set(i.id,j),this.currentCheckpoint=i.id,console.log(`[CP DEBUG] metadata set in RAM: ${i.id}, kind=${i.kind}, metadataSize=${this.checkpointMetadata.size}`);try{await this.saveCheckpointToDB(i),console.log(`[CP DEBUG] saved to IndexedDB OK: ${i.id}`)}catch(a){throw console.error(`[CP DEBUG] FAILED to save to IndexedDB: ${i.id}`,a),a}let k=Array.from(this.checkpointMetadata.values()).filter(b=>b.projectId===a&&"auto"===b.kind).sort((a,b)=>new Date(a.timestamp).getTime()-new Date(b.timestamp).getTime());if(k.length>10)for(let a of k.slice(0,k.length-10))this.checkpointMetadata.delete(a.id),await this.deleteCheckpointFromDB(a.id);return await this.enforceGlobalLimit(),i}async restoreCheckpoint(a){if("string"!=typeof a)return e.v.error("[Checkpoint] Invalid checkpoint ID type:",typeof a,a),!1;if(!a.startsWith("cp_")||a.length<6)return e.v.error("[Checkpoint] Invalid checkpoint ID format:",a),!1;await this.initDB(),console.log(`[CP DEBUG] restoreCheckpoint: loading ${a} from DB, inMetadata=${this.checkpointMetadata.has(a)}`);let b=await this.loadSingleCheckpointFromDB(a);if(!b)return console.error(`[CP DEBUG] restoreCheckpoint: NOT FOUND in DB: ${a}, metadataKeys=`,Array.from(this.checkpointMetadata.keys())),e.v.error(`[Checkpoint] Checkpoint not found in database: ${a}`),!1;console.log(`[CP DEBUG] restoreCheckpoint: loaded OK, files=${b.files.size}, dirs=${b.directories.size}`),await d.vfs.init();try{let c=await d.vfs.listDirectory(b.projectId,"/"),e=new Set;for(let a of c){let b=a.path.split("/").filter(Boolean);for(let a=1;a<=b.length-1;a++){let c="/"+b.slice(0,a).join("/");e.add(c)}}for(let a of c)b.files.has(a.path)||await d.vfs.deleteFile(b.projectId,a.path);for(let a of Array.from(e).filter(a=>!b.directories||!b.directories.has(a)).sort((a,b)=>b.length-a.length))try{await d.vfs.deleteDirectory(b.projectId,a)}catch{}if(b.directories){for(let a of Array.from(b.directories).sort((a,b)=>a.length-b.length))if(!e.has(a))try{await d.vfs.createDirectory(b.projectId,a)}catch{}}for(let[a,e]of b.files){let f;f="object"==typeof e&&"base64"===e.encoding?this.base64ToArrayBuffer(e.data):e,c.some(b=>b.path===a)?await d.vfs.updateFile(b.projectId,a,f):await d.vfs.createFile(b.projectId,a,f)}return this.currentCheckpoint=a,!0}catch(a){return e.v.error("Failed to restore checkpoint:",a),!1}}async getCheckpoints(a){await this.initDB();let b=Array.from(this.checkpointMetadata.values()).filter(b=>b.projectId===a).sort((a,b)=>b.timestamp.localeCompare(a.timestamp));return console.log(`[CP DEBUG] getCheckpoints(${a}): ${b.length} found, kinds=[${b.map(a=>a.kind).join(",")}], ids=[${b.map(a=>a.id).join(",")}]`),b}getCurrentCheckpoint(){return this.currentCheckpoint&&this.checkpointMetadata.get(this.currentCheckpoint)||null}async checkpointExists(a){return!!a&&"string"==typeof a&&(await this.initDB(),this.checkpointMetadata.has(a))}async clearCheckpoints(a){await this.initDB();let b=[];for(let[c,d]of this.checkpointMetadata)d.projectId===a&&(this.checkpointMetadata.delete(c),b.push(c));for(let a of b)await this.deleteCheckpointFromDB(a);this.currentCheckpoint=null}async clearAutoCheckpoints(a){await this.initDB();let b=await this.getAllStoredCheckpoints(),c=new Set;for(let d of b)d.projectId===a&&"auto"===d.kind&&c.add(d.id);let d=[];for(let[b,e]of this.checkpointMetadata)e.projectId===a&&c.has(b)&&d.push(b);for(let a of d)this.checkpointMetadata.delete(a),await this.deleteCheckpointFromDB(a);this.currentCheckpoint&&d.includes(this.currentCheckpoint)&&(this.currentCheckpoint=null),d.length>0&&e.v.debug(`[CheckpointManager] Cleared ${d.length} auto-checkpoints for project ${a}`)}async getAllStoredCheckpoints(){return new Promise((a,b)=>{let c=this.getDB().transaction([this.storeName],"readonly").objectStore(this.storeName).getAll();c.onsuccess=()=>{a(c.result)},c.onerror=()=>{e.v.error("Failed to get stored checkpoints"),b(c.error)}})}unloadProject(a){console.log(`[CP DEBUG] unloadProject(${a}): metadataSize=${this.checkpointMetadata.size}, isInitialized=${this.isInitialized}`);let b=0;for(let[c,d]of this.checkpointMetadata)d.projectId===a&&(this.checkpointMetadata.delete(c),b++);this.currentCheckpoint&&(this.checkpointMetadata.get(this.currentCheckpoint)||(this.currentCheckpoint=null)),b>0&&e.v.debug(`[CheckpointManager] Unloaded ${b} checkpoint metadata for project ${a} from memory`)}async enforceGlobalLimit(){let a=Array.from(this.checkpointMetadata.values()).filter(a=>"manual"!==a.kind&&"system"!==a.kind).sort((a,b)=>new Date(a.timestamp).getTime()-new Date(b.timestamp).getTime());if(a.length<=this.MAX_TOTAL_CHECKPOINTS)return;let b=a.slice(0,a.length-this.MAX_TOTAL_CHECKPOINTS);for(let a of b)this.checkpointMetadata.delete(a.id),await this.deleteCheckpointFromDB(a.id);b.length>0&&console.log(`[CP DEBUG] enforceGlobalLimit: deleted ${b.length} old auto checkpoints (${a.length} auto total, ${this.checkpointMetadata.size} overall)`)}constructor(){this.checkpointMetadata=new Map,this.currentCheckpoint=null,this.storeName="checkpoints",this.isInitialized=!1,this.systemCheckpointLocks=new Map,this.MAX_TOTAL_CHECKPOINTS=50}}let h=new g}}; \ No newline at end of file +`),a)){let b=a.replace(/^Project Structure:\n/,"");c+=b}return c}},86275:(a,b,c)=>{"use strict";c.d(b,{U:()=>h});var d=c(47247),e=c(15514);let f={"openrouter/deepseek/deepseek-chat":{input:.14,output:.28},"openrouter/deepseek/deepseek-reasoner":{input:.55,output:2.19,reasoning:5.5},"openrouter/anthropic/claude-3-5-sonnet":{input:3,output:15},"openrouter/anthropic/claude-3-5-haiku":{input:1,output:5},"openrouter/openai/gpt-4o":{input:2.5,output:10},"openrouter/openai/gpt-4o-mini":{input:.15,output:.6},"openrouter/meta-llama/llama-3.3-70b-instruct":{input:.88,output:.88},"openrouter/qwen/qwen-2.5-72b-instruct":{input:.35,output:.4},"openai/gpt-4o":{input:2.5,output:10},"openai/gpt-4o-mini":{input:.15,output:.6},"openai/gpt-4-turbo":{input:10,output:30},"openai/gpt-3.5-turbo":{input:.5,output:1.5},"openai/o1-preview":{input:15,output:60,reasoning:60},"openai/o1-mini":{input:3,output:12,reasoning:12},"anthropic/claude-3-5-sonnet-20241022":{input:3,output:15},"anthropic/claude-3-5-haiku-20241022":{input:1,output:5},"anthropic/claude-3-opus-20240229":{input:15,output:75},"anthropic/claude-3-sonnet-20240229":{input:3,output:15},"anthropic/claude-3-haiku-20240307":{input:.25,output:1.25},"gemini/gemini-1.5-pro":{input:1.25,output:5},"gemini/gemini-1.5-flash":{input:.075,output:.3},"gemini/gemini-1.5-flash-8b":{input:.0375,output:.15},"groq/llama-3.3-70b-versatile":{input:.59,output:.79},"groq/llama-3.3-70b-specdec":{input:.59,output:.99},"groq/llama-3.2-90b-text-preview":{input:.9,output:.9},"groq/mixtral-8x7b-32768":{input:.24,output:.24},"fireworks/llama-v3p3-70b-instruct":{input:.9,output:.9},"fireworks/llama-v3p1-405b-instruct":{input:3,output:3},"fireworks/qwen2p5-72b-instruct":{input:.9,output:.9},"together/meta-llama/Llama-3.3-70B-Instruct-Turbo":{input:.88,output:.88},"together/meta-llama/Meta-Llama-3.1-405B-Instruct-Turbo":{input:3.5,output:3.5},"together/Qwen/Qwen2.5-72B-Instruct-Turbo":{input:1.2,output:1.2},"sambanova/Meta-Llama-3.3-70B-Instruct":{input:.6,output:.6},"sambanova/Meta-Llama-3.1-405B-Instruct":{input:3,output:3},"sambanova/Qwen2.5-72B-Instruct":{input:.6,output:.6},"hyperbolic/meta-llama/Llama-3.3-70B-Instruct":{input:.8,output:.8},"hyperbolic/Qwen/Qwen2.5-72B-Instruct":{input:.8,output:.8},"nebius/llama-3.3-70b":{input:.8,output:.8},"nebius/qwen2.5-72b":{input:.8,output:.8},"ollama/local":{input:0,output:0},"lmstudio/local":{input:0,output:0}},g={input:1,output:2};class h{static calculateCost(a,b,c,d=!1){let g,h="number"==typeof a.cost&&Number.isFinite(a.cost)?a.cost:void 0,i=!0===a.isEstimated||void 0===h||h<1e-6,j=this.getPricingKey(b,c),k=this.getDynamicPricing(b,c),l=f[j],m=k||l||this.findBestPricingMatch(b,c);k||l||e.v.warn(`[CostCalculator] Falling back to default pricing for ${j}`);let n=0,o=Math.max(a.promptTokens??0,0);o&&(n+=o/1e6*m.input);let p=Math.max(a.completionTokens??0,0);return a.reasoningTokens&&(p=Math.max(p-Math.max(a.reasoningTokens,0),0)),p&&(n+=p/1e6*m.output),a.reasoningTokens&&m.reasoning&&(n+=a.reasoningTokens/1e6*m.reasoning),i||void 0===h?(g=Math.max(n,h??0),a.isEstimated=!d||i,void 0!==h&&h>g&&(g=h),void 0!==h&&Math.abs(g-h)>1e-4&&e.v.debug("[CostCalculator] Adjusted provisional cost",{provider:b,model:c,reportedCost:h,computedCost:n,finalCost:g})):(g=h,a.isEstimated=!1),a.isEstimated&&("openrouter"===b||b.toString().includes("openrouter"))&&e.v.warn("[CostCalculator] Using estimated cost based on normalized tokens for OpenRouter. This may be inaccurate. Consider using Generation API for native token counts."),g}static getPricingKey(a,b){return"openrouter"===a&&b.includes("/")?`openrouter/${b}`:`${a}/${b}`}static findBestPricingMatch(a,b){let c=`${a}/`;for(let[a,d]of Object.entries(f))if(a.startsWith(c)){let e=a.substring(c.length);if(b.includes(e)||e.includes(b))return d}return"ollama"===a||"lmstudio"===a?{input:0,output:0}:g}static getDynamicPricing(a,b){if(!this.isKnownProvider(a))return null;try{return d.s.getModelPricing(a,b)}catch(c){return e.v.debug("[CostCalculator] Failed to read dynamic pricing",{provider:a,model:b,error:c}),null}}static isKnownProvider(a){return"openrouter"===a||"openai"===a||"anthropic"===a||"groq"===a||"gemini"===a||"huggingface"===a||"ollama"===a||"lmstudio"===a||"sambanova"===a}static formatCost(a){return 0===a?"$0.00":a<1e-4?"<$0.0001":a<.01?`$${a.toFixed(4)}`:a<1?`$${a.toFixed(3)}`:`$${a.toFixed(2)}`}static getPricing(a,b){return f[this.getPricingKey(a,b)]||this.findBestPricingMatch(a,b)}static estimateCost(a,b,c,d=!0){let e=Math.ceil(1.3*a.split(/\s+/).length),f=this.getPricing(b,c);return e/1e6*(d?f.input:f.output)}static updateWithGenerationApiCost(a,b){let c={...a};return void 0!==b.total_cost&&(c.cost=b.total_cost,c.isEstimated=!1,a.cost&&Math.abs(a.cost-b.total_cost)>1e-4&&e.v.debug(`[CostCalculator] Cost corrected: ${a.cost?.toFixed(4)} -> ${b.total_cost.toFixed(4)} (${((b.total_cost-a.cost)/a.cost*100).toFixed(1)}% difference)`)),void 0!==b.native_tokens_total&&(c.nativeTokens={total:b.native_tokens_total,prompt:b.native_tokens_prompt,completion:b.native_tokens_completion}),c}}},91032:(a,b,c)=>{"use strict";c.d(b,{j:()=>l});var d=c(21124),e=c(38301),f=c(19217),g=c(22544),h=c(49308),i=c(82042),j=c(85351),k=c(6130);function l({title:a,subtitle:b,badge:c,onLogoClick:l,actions:m=[],mobileMenuContent:n,desktopOnlyContent:o,className:p="",leftText:q,mobileVisibleActions:r=[],viewTabs:s,activeViewTab:t,onViewTabChange:u,hideLogo:v=!1,showMobileMenu:w=!1,onMobileMenuClick:x,hideActionsOnMobile:y=!1,pageName:z}){let[A,B]=(0,e.useState)(!1),C=new Set(r),D=y?[]:m.filter(a=>C.has(a.id)),E=y?[]:m.filter(a=>!C.has(a.id));return(0,d.jsxs)("div",{className:`border-b bg-card shadow-sm relative z-20 ${p}`,children:[(0,d.jsxs)("div",{className:"px-3 py-2 flex items-center justify-between",children:[w&&(0,d.jsxs)("div",{className:"md:hidden flex items-center gap-3",children:[(0,d.jsx)(h.g,{width:24,height:24}),z&&(0,d.jsx)("span",{className:"text-sm font-semibold",children:z})]}),!v&&!w&&(0,d.jsxs)("button",{onClick:l,className:"flex items-center gap-2 p-1 pr-2 hover:ring-1 hover:ring-border rounded-sm transition-all",children:[(0,d.jsx)(h.g,{width:24,height:24}),q&&(0,d.jsx)("span",{className:"font-semibold text-lg hidden md:inline",children:q})]}),(0,d.jsx)("div",{className:"flex items-center gap-2 flex-1 justify-center md:justify-start md:ml-6",children:s&&s.length>0?(0,d.jsx)("div",{className:"flex border rounded-full",children:s.map((a,b)=>(0,d.jsxs)(f.$,{variant:t===a.id?"secondary":"ghost",size:"sm",onClick:()=>u?.(a.id),className:`gap-2 ${0===b?"rounded-r-none rounded-l-full":b===s.length-1?"rounded-l-none rounded-r-full":"rounded-none"}`,children:[a.icon&&(0,d.jsx)(a.icon,{className:"h-4 w-4"}),a.label]},a.id))}):q&&!w?(0,d.jsx)("h1",{className:"text-lg font-semibold md:hidden",children:q}):a?(0,d.jsxs)(d.Fragment,{children:[a&&(0,d.jsx)("h1",{className:"text-lg md:text-xl font-semibold",children:a}),c&&(0,d.jsx)(g.E,{variant:"secondary",children:c})]}):null}),!q&&!a&&b&&(0,d.jsx)("div",{className:"hidden md:flex items-center flex-1 ml-6",children:(0,d.jsx)("span",{className:"text-sm text-muted-foreground",children:b})}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsxs)("div",{className:"hidden md:flex items-center gap-2",children:[m.map(a=>a.content?(0,d.jsx)("div",{children:a.content},a.id):(0,d.jsxs)(f.$,{variant:a.variant||"outline",size:a.size||"sm",onClick:a.onClick,disabled:a.disabled,className:"justify-start","data-tour-id":a.dataTourId,children:[a.icon&&(0,d.jsx)(a.icon,{className:"h-4 w-4 mr-2"}),a.label]},a.id)),o]}),(0,d.jsx)("div",{className:"md:hidden flex items-center gap-2",children:D.map(a=>a.content?(0,d.jsx)("div",{children:a.content},a.id):(0,d.jsxs)(f.$,{variant:a.variant||"outline",size:a.size||"sm",onClick:a.onClick,disabled:a.disabled,className:"h-8 px-3","data-tour-id":a.dataTourId,children:[a.icon&&(0,d.jsx)(a.icon,{className:"h-4 w-4 mr-2"}),a.label]},a.id))}),(E.length>0||n)&&(0,d.jsx)(f.$,{variant:"ghost",size:"icon",onClick:()=>B(!A),className:"h-8 w-8 md:hidden",children:A?(0,d.jsx)(i.A,{className:"h-4 w-4"}):(0,d.jsx)(j.A,{className:"h-4 w-4"})}),w&&(0,d.jsx)(f.$,{variant:"ghost",size:"icon",onClick:x,className:"md:hidden h-8 w-8",children:(0,d.jsx)(k.A,{className:"h-5 w-5"})})]})]}),A&&(E.length>0||n)&&(0,d.jsxs)("div",{className:"md:hidden border-t bg-muted/30 px-4 py-4 space-y-3",children:[!q&&!a&&b&&(0,d.jsx)("div",{className:"pb-2 border-b border-border/50",children:(0,d.jsx)("p",{className:"text-sm text-muted-foreground",children:b})}),E.length>0&&(0,d.jsx)("div",{className:"space-y-2",children:E.map(a=>a.content?(0,d.jsx)("div",{children:a.content},a.id):(0,d.jsxs)(f.$,{variant:a.variant||"outline",size:a.size||"sm",onClick:()=>{a.onClick(),B(!1)},disabled:a.disabled,className:"w-full justify-start","data-tour-id":a.dataTourId,children:[a.icon&&(0,d.jsx)(a.icon,{className:"h-4 w-4 mr-2"}),a.label]},a.id))}),n&&(0,d.jsx)("div",{className:"pt-2 border-t border-border/50",children:n})]})]})}},91368:(a,b,c)=>{Promise.resolve().then(c.bind(c,69507)),Promise.resolve().then(c.bind(c,26262)),Promise.resolve().then(c.bind(c,20656))},93554:(a,b,c)=>{"use strict";c.d(b,{km:()=>l,_e:()=>n,u4:()=>m});let d="https://stats.oswstudio.com/collect",e="gcBLEeGjdx8gbUMoAAlksvoKSREZlJ4l+GwKieTW2Og=",f="false"!==process.env.NEXT_PUBLIC_TELEMETRY_ENABLED,g="true"===process.env.NEXT_PUBLIC_TELEMETRY_DEBUG;var h=c(47247);let i="osw-telemetry-vid";class j{init(){try{return}catch{}}track(a,b){try{if(!this.initialized||!this.optedIn||!f)return;let c={event:a,timestamp:Date.now(),fields:{vid:this.visitorId,deployment_type:this.deploymentType,app_version:this.appVersion,...b??{}}};this.queue.push(c),this.debug("track",c),this.queue.length>=50&&this.flush()}catch{}}setOptIn(a){try{if(!a&&this.optedIn&&(this.track("telemetry_disabled"),this.flushing?this.beaconFlush():this.flush()),this.optedIn=a,h.s.setSetting("telemetryOptIn",a),a)this.visitorId=function(){try{let a=localStorage.getItem(i);return a||(a=crypto.randomUUID(),localStorage.setItem(i,a)),a}catch{return"unknown"}}();else{this.queue=[];try{localStorage.removeItem(i)}catch{}this.visitorId="unknown"}}catch{}}async flush(){try{if(0===this.queue.length||this.flushing)return;this.flushing=!0;let a=this.queue.splice(0),b=0,c=!1;for(;b<3&&!c;)try{let f={"Content-Type":"application/json"};e&&(f.Authorization=`Bearer ${e}`),(await fetch(d,{method:"POST",headers:f,body:JSON.stringify({events:a}),credentials:"omit"})).ok?(c=!0,this.debug(`Flushed ${a.length} events`)):++b<3&&await this.sleep(1e3*Math.pow(2,b-1))}catch{++b<3&&await this.sleep(1e3*Math.pow(2,b-1))}c||this.debug(`Dropped ${a.length} events after 3 retries`)}catch{}finally{this.flushing=!1}}beaconFlush(){if(0!==this.queue.length)try{let a={events:this.queue.splice(0)};e&&(a.token=e);let b=new Blob([JSON.stringify(a)],{type:"application/json"});"undefined"!=typeof navigator&&navigator.sendBeacon&&navigator.sendBeacon(d,b)}catch{}}sleep(a){return new Promise(b=>setTimeout(b,a))}debug(...a){g&&console.debug("[telemetry]",...a)}constructor(){this.queue=[],this.flushTimer=null,this.heartbeatTimer=null,this.optedIn=!0,this.initialized=!1,this.sessionStartTime=0,this.flushing=!1,this.visitorId="unknown",this.deploymentType="browser",this.appVersion="unknown",this.handleUnload=()=>{this.beaconFlush()},this.handleVisibility=()=>{"hidden"===document.visibilityState&&this.beaconFlush()}}}let k=null;function l(){k||(k=new j).init()}function m(a,b){k?.track(a,b)}function n(a){k?.setOptIn(a)}},94348:()=>{},96352:(a,b,c)=>{"use strict";c.d(b,{Gr:()=>f,N$:()=>g,N2:()=>i,Q6:()=>e,fu:()=>h});let d={html:["html","htm"],css:["css"],js:["js","mjs","jsx"],json:["json"],text:["txt","md","xml","svg"],template:["hbs","handlebars"],image:["png","jpg","jpeg","gif","webp","ico","bmp"],video:["mp4","webm","ogg"]},e={text:5242880,html:5242880,css:5242880,js:5242880,json:5242880,template:5242880,image:0xa00000,video:0x3200000,binary:0xa00000};function f(a){let b=a.split(".").pop()?.toLowerCase();for(let[a,c]of Object.entries(d))if(c.includes(b||""))return a;return"text"}function g(a){return({html:"text/html",htm:"text/html",css:"text/css",js:"application/javascript",mjs:"application/javascript",jsx:"application/javascript",json:"application/json",txt:"text/plain",md:"text/markdown",xml:"application/xml",svg:"image/svg+xml",hbs:"text/x-handlebars-template",handlebars:"text/x-handlebars-template",png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",ico:"image/x-icon",bmp:"image/bmp",mp4:"video/mp4",webm:"video/webm",ogg:"video/ogg"})[a.split(".").pop()?.toLowerCase()||""]||"application/octet-stream"}function h(a){let b=a.split(".").pop()?.toLowerCase();for(let a of Object.values(d))if(a.includes(b||""))return!0;return!1}let i=[{value:"personal",label:"Personal Use Only",description:"Cannot be resold or used commercially"},{value:"commercial",label:"Commercial Use",description:"Can be used in commercial projects, cannot resell template"},{value:"mit",label:"MIT License",description:"Use freely, must include copyright notice"},{value:"apache-2.0",label:"Apache 2.0",description:"Similar to MIT, with patent protection"},{value:"gpl-3.0",label:"GPL 3.0",description:"Open source, derivatives must also be GPL"},{value:"bsd-3-clause",label:"BSD 3-Clause",description:"Permissive, cannot use author name for promotion"},{value:"cc-by-4.0",label:"CC BY 4.0",description:"Free use with attribution"},{value:"cc-by-sa-4.0",label:"CC BY-SA 4.0",description:"Free use with attribution, share-alike"},{value:"cc-by-nc-4.0",label:"CC BY-NC 4.0",description:"Free for non-commercial use with attribution"},{value:"unlicense",label:"Unlicense (Public Domain)",description:"No restrictions, completely free to use"},{value:"all-rights-reserved",label:"All Rights Reserved",description:"Most restrictive, requires explicit permission"},{value:"custom",label:"Custom License",description:"Specify your own terms"}]},98763:(a,b,c)=>{"use strict";c.d(b,{Y:()=>h});var d=c(11482),e=c(15514),f=c(57504);class g{arrayBufferToBase64(a){let b=new Uint8Array(a),c="";for(let a=0;a{let c=this.getDB().transaction([this.storeName],"readonly").objectStore(this.storeName).getAll();c.onsuccess=()=>{let b=c.result;for(let a of(this.checkpointMetadata.clear(),b)){let b={id:a.id,timestamp:a.timestamp,description:a.description,projectId:a.projectId,kind:a.kind||"auto",baseRevisionId:a.baseRevisionId??null};this.checkpointMetadata.set(a.id,b)}a()},c.onerror=()=>{e.v.error("Failed to load checkpoint metadata from DB"),b(c.error)}})}async loadSingleCheckpointFromDB(a){return new Promise((b,c)=>{let d=this.getDB().transaction([this.storeName],"readonly").objectStore(this.storeName).get(a);d.onsuccess=()=>{let c,g,h=d.result;if(!h)return void b(null);if("compressed"in h&&h.compressed){let d=(0,f.decompressFromUTF16)(h.compressedData);if(!d){e.v.error(`[Checkpoint] Failed to decompress checkpoint ${a} (corrupt data)`),b(null);return}let i=JSON.parse(d);c=new Map(i.files),g=new Set(i.directories)}else c=new Map(h.files),g=new Set(h.directories);b({id:h.id,timestamp:h.timestamp,description:h.description,projectId:h.projectId,kind:h.kind||"auto",baseRevisionId:h.baseRevisionId??null,files:c,directories:g})},d.onerror=()=>{e.v.error("Failed to load checkpoint from DB"),c(d.error)}})}async saveCheckpointToDB(a){let b;await this.initDB();try{let c=JSON.stringify({files:Array.from(a.files.entries()),directories:Array.from(a.directories)}),d=(0,f.compressToUTF16)(c);b={id:a.id,timestamp:a.timestamp,description:a.description,projectId:a.projectId,kind:a.kind,baseRevisionId:a.baseRevisionId??null,compressed:!0,compressedData:d}}catch{b={...a,files:Array.from(a.files.entries()),directories:Array.from(a.directories),kind:a.kind,baseRevisionId:a.baseRevisionId??null}}return new Promise((a,c)=>{let d;try{d=this.getDB()}catch(a){c(a);return}let f=d.transaction([this.storeName],"readwrite").objectStore(this.storeName).put(b);f.onsuccess=()=>a(),f.onerror=()=>{e.v.error("Failed to save checkpoint to DB"),c(f.error)}})}async deleteCheckpointFromDB(a){return await this.initDB(),new Promise((b,c)=>{let d=this.getDB().transaction([this.storeName],"readwrite").objectStore(this.storeName).delete(a);d.onsuccess=()=>b(),d.onerror=()=>{e.v.error("Failed to delete checkpoint from DB"),c(d.error)}})}async createCheckpoint(a,b,c={}){if("system"===c.kind){let d=this.systemCheckpointLocks.get(a);if(d)return d;let e=this.createCheckpointInternal(a,b,c);this.systemCheckpointLocks.set(a,e);try{return await e}finally{this.systemCheckpointLocks.delete(a)}}return await this.createCheckpointInternal(a,b,c)}async createCheckpointInternal(a,b,c={}){if(await this.initDB(),await d.vfs.init(),"system"===c.kind){let b=Array.from(this.checkpointMetadata.values()).find(b=>b.projectId===a&&"system"===b.kind);if(b){let a=await this.loadSingleCheckpointFromDB(b.id);if(a)return a}}let f=await d.vfs.listDirectory(a,"/"),g=new Map,h=new Set;for(let b of f){let c=b.path.split("/").filter(Boolean);for(let a=1;a<=c.length-1;a++){let b="/"+c.slice(0,a).join("/");h.add(b)}if("string"==typeof b.content)g.set(b.path,b.content);else if(b.content instanceof ArrayBuffer){let a=this.arrayBufferToBase64(b.content);g.set(b.path,{data:a,encoding:"base64"})}else try{let c=await d.vfs.readFile(a,b.path);if("string"==typeof c.content)g.set(b.path,c.content);else if(c.content instanceof ArrayBuffer){let a=this.arrayBufferToBase64(c.content);g.set(b.path,{data:a,encoding:"base64"})}}catch(a){e.v.error(`Failed to read file for checkpoint: ${b.path}`,a)}}let i={id:`cp_${Date.now()}`,timestamp:new Date().toISOString(),description:b,files:g,directories:h,projectId:a,kind:c.kind||"auto",baseRevisionId:c.baseRevisionId??null},j={id:i.id,timestamp:i.timestamp,description:i.description,projectId:i.projectId,kind:i.kind,baseRevisionId:i.baseRevisionId};this.checkpointMetadata.set(i.id,j),this.currentCheckpoint=i.id,await this.saveCheckpointToDB(i);let k=Array.from(this.checkpointMetadata.values()).filter(b=>b.projectId===a&&"auto"===b.kind).sort((a,b)=>new Date(a.timestamp).getTime()-new Date(b.timestamp).getTime());if(k.length>10)for(let a of k.slice(0,k.length-10))this.checkpointMetadata.delete(a.id),await this.deleteCheckpointFromDB(a.id);return await this.enforceGlobalLimit(),i}async restoreCheckpoint(a){if("string"!=typeof a)return e.v.error("[Checkpoint] Invalid checkpoint ID type:",typeof a,a),!1;if(!a.startsWith("cp_")||a.length<6)return e.v.error("[Checkpoint] Invalid checkpoint ID format:",a),!1;await this.initDB();let b=await this.loadSingleCheckpointFromDB(a);if(!b)return e.v.error(`[Checkpoint] Checkpoint not found in database: ${a}`),!1;await d.vfs.init();try{let c=await d.vfs.listDirectory(b.projectId,"/"),e=new Set;for(let a of c){let b=a.path.split("/").filter(Boolean);for(let a=1;a<=b.length-1;a++){let c="/"+b.slice(0,a).join("/");e.add(c)}}for(let a of c)b.files.has(a.path)||await d.vfs.deleteFile(b.projectId,a.path);for(let a of Array.from(e).filter(a=>!b.directories||!b.directories.has(a)).sort((a,b)=>b.length-a.length))try{await d.vfs.deleteDirectory(b.projectId,a)}catch{}if(b.directories){for(let a of Array.from(b.directories).sort((a,b)=>a.length-b.length))if(!e.has(a))try{await d.vfs.createDirectory(b.projectId,a)}catch{}}for(let[a,e]of b.files){let f;f="object"==typeof e&&"base64"===e.encoding?this.base64ToArrayBuffer(e.data):e,c.some(b=>b.path===a)?await d.vfs.updateFile(b.projectId,a,f):await d.vfs.createFile(b.projectId,a,f)}return this.currentCheckpoint=a,!0}catch(a){return e.v.error("Failed to restore checkpoint:",a),!1}}async getCheckpoints(a){return await this.initDB(),Array.from(this.checkpointMetadata.values()).filter(b=>b.projectId===a).sort((a,b)=>b.timestamp.localeCompare(a.timestamp))}getCurrentCheckpoint(){return this.currentCheckpoint&&this.checkpointMetadata.get(this.currentCheckpoint)||null}async checkpointExists(a){return!!a&&"string"==typeof a&&(await this.initDB(),this.checkpointMetadata.has(a))}async clearCheckpoints(a){await this.initDB();let b=[];for(let[c,d]of this.checkpointMetadata)d.projectId===a&&(this.checkpointMetadata.delete(c),b.push(c));for(let a of b)await this.deleteCheckpointFromDB(a);this.currentCheckpoint=null}async clearAutoCheckpoints(a){await this.initDB();let b=await this.getAllStoredCheckpoints(),c=new Set;for(let d of b)d.projectId===a&&"auto"===d.kind&&c.add(d.id);let d=[];for(let[b,e]of this.checkpointMetadata)e.projectId===a&&c.has(b)&&d.push(b);for(let a of d)this.checkpointMetadata.delete(a),await this.deleteCheckpointFromDB(a);this.currentCheckpoint&&d.includes(this.currentCheckpoint)&&(this.currentCheckpoint=null),d.length>0&&e.v.debug(`[CheckpointManager] Cleared ${d.length} auto-checkpoints for project ${a}`)}async getAllStoredCheckpoints(){return new Promise((a,b)=>{let c=this.getDB().transaction([this.storeName],"readonly").objectStore(this.storeName).getAll();c.onsuccess=()=>{a(c.result)},c.onerror=()=>{e.v.error("Failed to get stored checkpoints"),b(c.error)}})}unloadProject(a){let b=0;for(let[c,d]of this.checkpointMetadata)d.projectId===a&&(this.checkpointMetadata.delete(c),b++);this.currentCheckpoint&&(this.checkpointMetadata.get(this.currentCheckpoint)||(this.currentCheckpoint=null)),b>0&&e.v.debug(`[CheckpointManager] Unloaded ${b} checkpoint metadata for project ${a} from memory`)}async enforceGlobalLimit(){let a=Array.from(this.checkpointMetadata.values()).filter(a=>"manual"!==a.kind&&"system"!==a.kind).sort((a,b)=>new Date(a.timestamp).getTime()-new Date(b.timestamp).getTime());if(a.length<=this.MAX_TOTAL_CHECKPOINTS)return;let b=a.slice(0,a.length-this.MAX_TOTAL_CHECKPOINTS);for(let a of b)this.checkpointMetadata.delete(a.id),await this.deleteCheckpointFromDB(a.id);b.length>0&&e.v.debug(`[CheckpointManager] Cleaned up ${b.length} old auto checkpoints`)}constructor(){this.checkpointMetadata=new Map,this.currentCheckpoint=null,this.storeName="checkpoints",this.isInitialized=!1,this.systemCheckpointLocks=new Map,this.MAX_TOTAL_CHECKPOINTS=50}}let h=new g}}; \ No newline at end of file diff --git a/.next/server/chunks/8476.js b/.next/server/chunks/8476.js deleted file mode 100644 index 16ab74c7c84ca0972f587b9d037faeb0722bb967..0000000000000000000000000000000000000000 --- a/.next/server/chunks/8476.js +++ /dev/null @@ -1,4839 +0,0 @@ -"use strict";exports.id=8476,exports.ids=[740,8476],exports.modules={6027:(a,b,c)=>{c.d(b,{A:()=>e});var d=c(21124);c(38301);let e=[{id:"welcome",title:"Welcome to Open Source Web Studio",body:(0,d.jsxs)("div",{className:"space-y-2 text-sm text-muted-foreground",children:[(0,d.jsx)("p",{children:"Let's take a guided tour of the workspace so you can see how projects, agents, and saves all fit together."}),(0,d.jsx)("p",{children:"The tour takes under two minutes and you can skip at any time."})]}),location:"project-manager",primaryLabel:"Start tour",secondaryLabel:"Skip"},{id:"projects-overview",title:"Projects at a Glance",body:(0,d.jsxs)("div",{className:"space-y-2 text-sm text-muted-foreground",children:[(0,d.jsx)("p",{children:"This is your project gallery. Recent work appears here with quick actions for opening, duplicating, or exporting."}),(0,d.jsx)("p",{children:"I've loaded a demo project so you can explore without setting anything up."})]}),location:"project-manager",target:'[data-tour-id="projects-list"]',showBack:!0,primaryLabel:"Next",secondaryLabel:"Skip"},{id:"create-project",title:"Creating a Project",body:(0,d.jsx)("div",{className:"space-y-2 text-sm text-muted-foreground",children:(0,d.jsx)("p",{children:"Use the New Project button to start fresh. The dialog lets you name the project and add an optional description."})}),location:"project-manager",target:'[data-tour-id="new-project-button"]',showBack:!0,primaryLabel:"Next",secondaryLabel:"Skip"},{id:"project-controls",title:"Exporting a Project",body:(0,d.jsxs)("div",{className:"space-y-2 text-sm text-muted-foreground",children:[(0,d.jsx)("p",{children:"Click the dropdown menu on any project card to access export options. You can export as a ZIP for deployment or JSON for backup."}),(0,d.jsx)("p",{children:"Projects can also be duplicated or deleted from this menu."})]}),location:"project-manager",target:'[data-tour-id="project-export-json"]',showBack:!0,primaryLabel:"Next",secondaryLabel:"Skip"},{id:"edit-project",title:"Editing a Project",body:(0,d.jsxs)("div",{className:"space-y-2 text-sm text-muted-foreground",children:[(0,d.jsx)("p",{children:"To get to the workspace and start editing, simply click on the project card. This will open the full development environment."}),(0,d.jsx)("p",{children:"Click Next to enter the workspace and continue the tour."})]}),location:"project-manager",target:'[data-tour-id="project-card"]',showBack:!0,primaryLabel:"Next",secondaryLabel:"Skip"},{id:"workspace-overview",title:"Workspace Layout",body:(0,d.jsxs)("div",{className:"space-y-2 text-sm text-muted-foreground",children:[(0,d.jsx)("p",{children:"The workspace has four main areas: the assistant conversation, the virtual file explorer, your editor tabs, and the live preview."}),(0,d.jsx)("p",{children:"The VFS works like a project file tree—add HTML, CSS, JS, or assets and the agent can edit them just like local files."})]}),location:"workspace",target:'[data-tour-id="workspace-panels"]',showBack:!0,primaryLabel:"Next",secondaryLabel:"Skip"},{id:"workspace-edit",title:"See the Agent in Action",body:(0,d.jsxs)("div",{className:"space-y-2 text-sm text-muted-foreground",children:[(0,d.jsx)("p",{children:'I\'ll request the agent to change the color of "Our Services" button to a green accent and the agent performs the task.'}),(0,d.jsx)("p",{children:"This mimics what you will see when asking the agent to perform tasks."})]}),location:"workspace",target:'[data-tour-id="assistant-panel"]',showBack:!0,primaryLabel:"Next",secondaryLabel:"Skip"},{id:"workspace-focus",title:"Element Focus Tool",body:(0,d.jsxs)("div",{className:"space-y-2 text-sm text-muted-foreground",children:[(0,d.jsx)("p",{children:"The crosshair tool in the preview panel lets you select and focus on specific elements in your design."}),(0,d.jsx)("p",{children:"Click it to activate element selection mode, then click any element in the preview to highlight it."})]}),location:"workspace",target:'[data-tour-id="focus-crosshair-button"]',showBack:!0,primaryLabel:"Next",secondaryLabel:"Skip"},{id:"workspace-checkpoint",title:"Checkpoints & Manual Saves",body:(0,d.jsxs)("div",{className:"space-y-2 text-sm text-muted-foreground",children:[(0,d.jsx)("p",{children:'The "Discard Changes" button restores to the original saved point, letting you revert any changes back to your last manual save.'}),(0,d.jsx)("p",{children:"If you like the result, use the Save button to lock it in as your manual checkpoint."})]}),location:"workspace",target:'[data-tour-id="discard-changes-button"]',showBack:!0,primaryLabel:"Next",secondaryLabel:"Skip"},{id:"clear-conversation",title:"Clear Conversation",body:(0,d.jsxs)("div",{className:"space-y-2 text-sm text-muted-foreground",children:[(0,d.jsx)("p",{children:"The agent will have the last tasks and responses in memory. You can clear it with the trashcan button to start fresh."}),(0,d.jsx)("p",{children:"This removes the conversation history but keeps your project files intact."})]}),location:"workspace",target:'[data-tour-id="clear-chat-button"]',showBack:!0,primaryLabel:"Next",secondaryLabel:"Skip"},{id:"provider-settings",title:"Connect Your Provider",body:(0,d.jsxs)("div",{className:"space-y-2 text-sm text-muted-foreground",children:[(0,d.jsxs)("p",{children:["Set your API key under Settings → Provider. I recommend trying OpenRouter with the ",(0,d.jsx)("code",{children:"gpt-oss-120b"})," model, but you can use any supported provider."]}),(0,d.jsx)("p",{children:"You can return here anytime from the header menu."}),(0,d.jsx)("p",{className:"text-xs text-orange-500/90",children:"Privacy note: Remote LLM providers (OpenAI, Anthropic, etc.) will receive your code when generating. For complete privacy, use local models with Ollama or LM Studio."})]}),location:"workspace",target:'[data-tour-id="provider-settings-trigger"]',showBack:!0,primaryLabel:"Next",secondaryLabel:"Skip"},{id:"wrap-up",title:"You're Ready!",body:(0,d.jsxs)("div",{className:"space-y-2 text-sm text-muted-foreground",children:[(0,d.jsx)("p",{children:"That's the basics—prompt the agent, preview updates, and save when you're happy. You can replay this tour from the Help menu anytime."}),(0,d.jsx)("p",{children:"Have fun building! Let me know what you ship."})]}),location:"workspace",showBack:!0,primaryLabel:"Finish",secondaryLabel:"Skip"}]},9284:(a,b,c)=>{c.d(b,{X:()=>A});var d=c(21124),e=c(38301),f=c.n(e),g=c(13531),h=c(11482),i=c(19217),j=c(3368),k=c(47089),l=c(25345),m=c(8294),n=c(59405),o=c(78733),p=c(80101),q=c(14263),r=c(36734),s=c(92714),t=c(50337),u=c(34487),v=c(28241),w=c(15514),x=c(50485);let y={mobile:{width:"375px",height:"100%",maxHeight:"667px"},tablet:{width:"768px",height:"100%",maxHeight:"1024px"},desktop:{width:"100%",height:"100%",maxHeight:"900px",maxWidth:"1440px"},responsive:{width:"100%",height:"100%"}},z=(0,e.forwardRef)(({projectId:a,refreshTrigger:b,onFocusSelection:c,hasFocusTarget:f=!1,onClose:z,siteId:A,onCaptureScreenshot:B},C)=>{let[D,E]=(0,e.useState)(null),[F,G]=(0,e.useState)("/"),[H,I]=(0,e.useState)(!0),[J,K]=(0,e.useState)(null),[L,M]=(0,e.useState)("tablet"),[N,O]=(0,e.useState)(["/"]),[P,Q]=(0,e.useState)(0),[R,S]=(0,e.useState)(!1),[T,U]=(0,e.useState)(!1),[V,W]=(0,e.useState)(!1),X=(0,e.useCallback)(async()=>{if(Z.current&&R&&B){W(!0);try{let a=await (0,x.captureIframeScreenshot)(Z.current,void 0,void 0,void 0,void 0,void 0,void 0,!1,1500);a&&B(a)}finally{W(!1)}}},[R,B]),Y=(0,e.useMemo)(()=>T?{backgroundColor:"var(--button-preview-active)",color:"white"}:f?{backgroundColor:"rgba(99, 102, 241, 0.12)",color:"var(--button-preview-active)"}:{},[T,f]),Z=(0,e.useRef)(null),$=(0,e.useRef)(null),_=(0,e.useRef)(null),aa=(0,e.useRef)("/"),ab=(0,e.useRef)(null),ac=(0,e.useRef)(!1);(0,e.useImperativeHandle)(C,()=>({captureScreenshot:async a=>Z.current&&R?await (0,x.captureIframeScreenshot)(Z.current,void 0,void 0,void 0,void 0,void 0,void 0,a??!1,1500):(w.v.warn("Cannot capture screenshot: iframe not ready"),null)}),[R]);let ad=(0,e.useCallback)(a=>{if(Z.current&&Z.current.contentWindow)try{Z.current.contentWindow.postMessage(a,"*")}catch(a){w.v.warn("Failed to communicate with preview iframe",a)}},[]),ae=(0,e.useRef)(!1),af=(0,e.useRef)(null),ag=(0,e.useRef)(null),ah=(0,e.useRef)(null),ai=()=>(0,d.jsxs)("div",{className:"p-3 border-b bg-muted/70 flex items-center gap-2",children:[(0,d.jsx)(j.A,{className:"h-4 w-4 md:hidden",style:{color:"var(--button-preview-active)"}}),z?(0,d.jsxs)("button",{type:"button",onClick:z,"aria-label":"Hide preview",className:"relative hidden h-6 w-6 items-center justify-center rounded-sm text-muted-foreground transition-colors hover:text-destructive md:flex group",children:[(0,d.jsx)(j.A,{className:"h-4 w-4 transition-opacity group-hover:opacity-0",style:{color:"var(--button-preview-active)"}}),(0,d.jsx)(k.A,{className:"absolute h-3 w-3 opacity-0 transition-opacity group-hover:opacity-100"})]}):(0,d.jsx)(j.A,{className:"hidden h-4 w-4 md:inline-flex",style:{color:"var(--button-preview-active)"}}),(0,d.jsx)("h3",{className:"text-sm font-medium",children:"Live Preview"})]});(0,e.useEffect)(()=>{_.current=D},[D]),(0,e.useEffect)(()=>{ac.current=T,R&&ad({type:"selector-toggle",active:T})},[T,R,ad]),(0,e.useEffect)(()=>{let a=Z.current;if(!a)return;let b=()=>{ad({type:"selector-toggle",active:ac.current})};return a.addEventListener("load",b),()=>{a.removeEventListener("load",b)}},[R,ad]),(0,e.useEffect)(()=>{aa.current=F},[F]),(0,e.useEffect)(()=>{if(R&&ab.current&&_.current){let a=ab.current;ab.current=null,am(a,_.current)}},[R]),(0,e.useEffect)(()=>()=>{ag.current&&window.clearTimeout(ag.current)},[]);let aj=(0,e.useCallback)(async(b=!1,c=!0)=>{c&&I(!0),K(null);try{await h.vfs.init();let c=b?aa.current:null;$.current&&$.current.cleanupBlobUrls();let d=new g.B(h.vfs,a,void 0,A||void 0);$.current=d;let e=await d.compileProject();E(e),_.current=e;let f=c;f||(f=e.blobUrls.has("/index.html")?"/":e.entryPoint||(e.routes.length>0?e.routes[0].path:"/")),am(f,e)}catch(a){K(a instanceof Error?a.message:"Failed to compile project"),w.v.error("Compilation error:",a)}finally{c&&I(!1)}},[a,A]),ak=(0,e.useCallback)((a=!1,b=!0)=>{if(ae.current){let c=af.current;af.current={preserve:(c?.preserve??!1)||a,showLoading:(c?.showLoading??!1)||b};return}(async(a,b)=>{ae.current=!0;try{await aj(a,b)}finally{ae.current=!1;let a=af.current;af.current=null,a&&ak(a.preserve,a.showLoading)}})(a,b)},[aj]),al=(0,e.useCallback)((a=!1,b=!1)=>{let c=ah.current;ah.current={preserve:(c?.preserve??!1)||a,showLoading:(c?.showLoading??!1)||b},ag.current&&window.clearTimeout(ag.current),ag.current=window.setTimeout(()=>{let a=ah.current;ah.current=null,ag.current=null,a&&ak(a.preserve,a.showLoading)},150)},[ak]);(0,e.useEffect)(()=>{ak()},[a,b,ak]),(0,e.useEffect)(()=>{let b=()=>{al(!0)},c=b=>{b.detail&&b.detail.projectId!==a||al(!0)};return window.addEventListener("filesChanged",b),window.addEventListener("fileContentChanged",c),()=>{window.removeEventListener("filesChanged",b),window.removeEventListener("fileContentChanged",c)}},[a,al]);let am=(a,b)=>{let c,d=b||_.current||D;if(!d)return void w.v.warn("No compiled project available");if(ac.current?U(!1):ad({type:"selector-toggle",active:!1}),!Z.current||!R){ab.current=a;return}let e=a;e.startsWith("/")||(e="/"+e);let f=d.routes.find(a=>a.path===e);c=f?f.file:"/"===e?"/index.html":e.endsWith("/")?e+"index.html":e+".html";let g=d.files.find(a=>a.path===c);if(!g&&!e.endsWith("/")){let a=e+"/index.html";(g=d.files.find(b=>b.path===a))&&(c=a)}if(!g){K(`Page not found: ${a}`),d.files.find(a=>"/index.html"===a.path||"index.html"===a.path)&&"/"!==a&&am("/",b);return}let h="string"==typeof g.content?g.content:new TextDecoder().decode(g.content);h=(h=(h=h.replace(/href="([^"]+)"/g,(a,b)=>{if(!b.endsWith(".css")||b.startsWith("http")||b.startsWith("//"))return a;let c=b.startsWith("/")?b:"/"+b,e=d.blobUrls.get(c);return e?`href="${e}"`:a})).replace(/src="([^"]+)"/g,(a,b)=>{if(!b.endsWith(".js")||b.startsWith("http")||b.startsWith("//"))return a;let c=b.startsWith("/")?b:"/"+b,e=d.blobUrls.get(c);return e?`src="${e}"`:a})).replace(/src="([^"]+\.(png|jpg|jpeg|gif|svg|webp))"/gi,(a,b)=>{let c=b.startsWith("/")?b:"/"+b,e=d.blobUrls.get(c);return e?`src="${e}"`:a});let i=` - - `;h.includes("")?h=h.replace("",i+""):h+=i,Z.current.srcdoc=h,G(e),aa.current=e,Q(a=>(O(b=>[...b.slice(0,a+1),e]),a+1))},an=(0,e.useCallback)(a=>{am(a)},[D]),ao=()=>{if(P>0){let a=P-1;Q(a),am(N[a])}},ap=()=>{if(P{am("/")},ar=()=>{ak(!0,!1)};return((0,e.useEffect)(()=>{let a=a=>{let b=a.data;if(b&&"object"==typeof b){if("navigate"===b.type&&b.path)return void an(b.path);if("selector-selection"===b.type&&b.payload){U(!1),c?.(b.payload);return}"selector-cancelled"===b.type&&U(!1)}};return window.addEventListener("message",a),()=>{window.removeEventListener("message",a)}},[an,c]),(0,e.useEffect)(()=>()=>{$.current&&$.current.cleanupBlobUrls()},[]),H)?(0,d.jsxs)("div",{className:"h-full flex flex-col",children:[(0,d.jsx)(ai,{}),(0,d.jsx)("div",{className:"flex-1 flex items-center justify-center",children:(0,d.jsxs)("div",{className:"text-center space-y-2",children:[(0,d.jsx)(l.A,{className:"w-8 h-8 animate-spin mx-auto text-primary"}),(0,d.jsx)("p",{className:"text-muted-foreground",children:"Compiling project..."})]})})]}):J?(0,d.jsxs)("div",{className:"h-full flex flex-col",children:[(0,d.jsx)(ai,{}),(0,d.jsx)("div",{className:"flex-1 flex items-center justify-center",children:(0,d.jsxs)("div",{className:"text-center text-destructive space-y-2",children:[(0,d.jsx)("p",{className:"font-medium",children:"Error"}),(0,d.jsx)("p",{className:"text-sm mt-2",children:J}),(0,d.jsx)(i.$,{onClick:ar,className:"mt-4",children:"Try Again"})]})})]}):(0,d.jsxs)("div",{className:"h-full flex flex-col",children:[(0,d.jsx)(ai,{}),(0,d.jsxs)("div",{className:"border-b p-2 flex items-center gap-2 md:hidden",children:[(0,d.jsxs)("div",{className:"flex items-center gap-1",children:[(0,d.jsx)(i.$,{size:"icon",variant:"ghost",className:"h-5 w-5",onClick:ao,disabled:0===P,children:(0,d.jsx)(m.A,{className:"h-3 w-3"})}),(0,d.jsx)(i.$,{size:"icon",variant:"ghost",className:"h-5 w-5",onClick:ap,disabled:P>=N.length-1,children:(0,d.jsx)(n.A,{className:"h-3 w-3"})}),(0,d.jsx)(i.$,{size:"icon",variant:"ghost",className:"h-5 w-5",onClick:aq,children:(0,d.jsx)(o.A,{className:"h-3 w-3"})}),(0,d.jsx)(i.$,{size:"icon",variant:"ghost",className:"h-5 w-5",onClick:ar,children:(0,d.jsx)(l.A,{className:"h-3 w-3"})}),(0,d.jsx)(i.$,{size:"icon",variant:"ghost",className:"h-5 w-5",onClick:()=>U(a=>!a),disabled:!R,style:Y,title:T?"Cancel element selection":f?"Replace focused element":"Select element","data-tour-id":"focus-crosshair-button",children:(0,d.jsx)(p.A,{className:"h-3 w-3"})}),B&&(0,d.jsx)(i.$,{size:"icon",variant:"ghost",className:"h-5 w-5",onClick:X,disabled:!R||V,title:"Capture screenshot as thumbnail",children:V?(0,d.jsx)(q.A,{className:"h-3 w-3 animate-spin"}):(0,d.jsx)(r.A,{className:"h-3 w-3"})})]}),D&&D.routes.length>1&&(0,d.jsxs)(v.l6,{value:F,onValueChange:an,children:[(0,d.jsx)(v.bq,{className:"flex-1 h-8 min-w-0 max-w-full",children:(0,d.jsx)(v.yv,{className:"truncate"})}),(0,d.jsx)(v.gC,{children:D.routes.map(a=>(0,d.jsx)(v.eb,{value:a.path,children:a.title||a.path},a.path))})]})]}),(0,d.jsxs)("div",{className:"border-b p-2 hidden md:flex items-center gap-2",children:[(0,d.jsxs)("div",{className:"flex items-center gap-1",children:[(0,d.jsx)(i.$,{size:"icon",variant:"ghost",className:"h-5 w-5",onClick:ao,disabled:0===P,children:(0,d.jsx)(m.A,{className:"h-3 w-3"})}),(0,d.jsx)(i.$,{size:"icon",variant:"ghost",className:"h-5 w-5",onClick:ap,disabled:P>=N.length-1,children:(0,d.jsx)(n.A,{className:"h-3 w-3"})}),(0,d.jsx)(i.$,{size:"icon",variant:"ghost",className:"h-5 w-5",onClick:aq,children:(0,d.jsx)(o.A,{className:"h-3 w-3"})}),(0,d.jsx)(i.$,{size:"icon",variant:"ghost",className:"h-5 w-5",onClick:ar,children:(0,d.jsx)(l.A,{className:"h-3 w-3"})}),(0,d.jsx)(i.$,{size:"icon",variant:"ghost",className:"h-5 w-5",onClick:()=>U(a=>!a),disabled:!R,style:{backgroundColor:T?"var(--button-preview-active)":void 0,color:T?"white":void 0},title:T?"Cancel element focus":"Select element","data-tour-id":"focus-crosshair-button",children:(0,d.jsx)(p.A,{className:"h-3 w-3"})}),B&&(0,d.jsx)(i.$,{size:"icon",variant:"ghost",className:"h-5 w-5",onClick:X,disabled:!R||V,title:"Capture screenshot as thumbnail",children:V?(0,d.jsx)(q.A,{className:"h-3 w-3 animate-spin"}):(0,d.jsx)(r.A,{className:"h-3 w-3"})})]}),(0,d.jsx)("div",{className:"flex-1 px-3 py-1 bg-muted rounded text-sm",children:F}),D&&D.routes.length>1&&(0,d.jsxs)(v.l6,{value:F,onValueChange:an,children:[(0,d.jsx)(v.bq,{className:"w-[200px] h-8",children:(0,d.jsx)(v.yv,{})}),(0,d.jsx)(v.gC,{children:D.routes.map(a=>(0,d.jsx)(v.eb,{value:a.path,children:a.title||a.path},a.path))})]}),(0,d.jsxs)("div",{className:"flex items-center gap-1 border-l pl-2",children:[(0,d.jsx)(i.$,{size:"icon",variant:"ghost",className:"h-5 w-5 rounded-sm",style:{backgroundColor:"mobile"===L?"var(--button-preview-active)":void 0,color:"mobile"===L?"white":void 0},onClick:()=>M("mobile"),children:(0,d.jsx)(s.A,{className:"h-3 w-3"})}),(0,d.jsx)(i.$,{size:"icon",variant:"ghost",className:"h-5 w-5 rounded-sm",style:{backgroundColor:"tablet"===L?"var(--button-preview-active)":void 0,color:"tablet"===L?"white":void 0},onClick:()=>M("tablet"),children:(0,d.jsx)(t.A,{className:"h-3 w-3"})}),(0,d.jsx)(i.$,{size:"icon",variant:"ghost",className:"h-5 w-5 rounded-sm",style:{backgroundColor:"desktop"===L?"var(--button-preview-active)":void 0,color:"desktop"===L?"white":void 0},onClick:()=>M("desktop"),children:(0,d.jsx)(u.A,{className:"h-3 w-3"})})]})]}),(0,d.jsx)("div",{className:"flex-1 bg-muted/20 dark:bg-muted/10 p-4 overflow-auto min-h-0",children:(0,d.jsx)("div",{className:(0,w.cn)("bg-white mx-auto shadow-2xl transition-all duration-300","responsive"!==L&&"rounded-lg"),style:{width:y[L].width||"100%",height:y[L].height||"100%",maxHeight:y[L].maxHeight||"100%",maxWidth:y[L].maxWidth||"100%"},children:(0,d.jsx)("iframe",{ref:a=>{Z.current=a,a&&!R?setTimeout(()=>{S(!0)},0):!a&&R&&S(!1)},className:"w-full h-full rounded-lg",sandbox:"allow-scripts allow-same-origin allow-forms",title:"Preview"})})})]})});z.displayName="MultipagePreview";let A=f().memo(z)},11610:(a,b,c)=>{c.d(b,{M:()=>am});var d=c(21124),e=c(38301),f=c(11482);c(70740);var g=c(19217),h=c(49308),i=c(77850),j=c(15350),k=c(80196),l=c(2510),m=c(75234),n=c(74097),o=c(94684),p=c(71117),q=c(91044),r=c(97950),s=c(84220),t=c(19710),u=c(8294),v=c(59405),w=c(85351),x=c(87251),y=c(97518),z=c(15514),A=c(42378),B=c(30758);let C=[{id:"dashboard",label:"Dashboard",icon:i.A,path:"dashboard"},{id:"projects",label:"Projects",icon:j.A,path:"projects",hasRecentProjects:!0},{id:"sites",label:"Sites",icon:k.A,path:"sites",serverModeOnly:!0},{id:"templates",label:"Templates",icon:l.A,path:"templates"},{id:"skills",label:"Skills",icon:m.A,path:"skills"},{id:"docs",label:"Docs",icon:n.A,path:"docs",subItems:y.P.map(a=>({id:a.id,label:a.title,icon:a.icon,file:a.file}))},{id:"settings",label:"Settings",icon:o.A,path:"settings",subItems:[{id:"application",label:"Application",icon:o.A},{id:"model",label:"Provider & Model",icon:m.A}]},{id:"tour",label:"Guided Tour",icon:p.A,action:"start-tour"},{id:"tester",label:"Model Tester",icon:q.A,path:"/test-generation"},{id:"about",label:"About",icon:p.A,action:"open-about"},{id:"discord",label:"Discord",icon:x.E,href:"https://discord.gg/mAJ8Ss4u"},{id:"github",label:"GitHub",icon:r.A,href:"https://github.com/o-stahl/osw-studio"}];function D({currentView:a,onNavigate:b,onProjectSelect:c,onStartTour:f,onOpenAbout:i,onOpenSettings:k,onServerSync:l,onLogoClick:m,onPinnedChange:n,onHoverChange:o,onCollapsedChange:p,mobileOpen:q=!1,onMobileOpenChange:r}){let s=(0,A.useRouter)(),t=(0,A.useSearchParams)(),x=t.get("doc"),y=t.get("settings"),[D,E]=(0,e.useState)(!0),[F,G]=(0,e.useState)(!1),[H,I]=(0,e.useState)([]),[J,K]=(0,e.useState)(!0),[L,M]=(0,e.useState)(null),[N,O]=(0,e.useState)(()=>{let b=new Set;return"docs"===a&&b.add("docs"),"projects"===a&&b.add("projects"),"settings"===a&&b.add("settings"),b}),[P,Q]=(0,e.useState)(!1),[R,S]=(0,e.useState)(!1),T=!R&&!D&&!F,U=()=>{let a=!D;E(a),localStorage.setItem("osw-admin-sidebar-pinned",String(a)),n?.(a)},V=C.filter(a=>!a.serverModeOnly),W=async a=>{if(r?.(!1),a.href)window.open(a.href,"_blank","noopener,noreferrer");else if(a.path)a.path.startsWith("/")?s.push(a.path):(s.push("/"),b(a.id));else if("start-tour"===a.action&&f)f();else if("open-about"===a.action&&i)i();else if("open-settings"===a.action&&k)k();else if("server-sync"===a.action&&l)l();else if("logout"===a.action)try{(await fetch("/api/auth/logout",{method:"POST"})).ok&&s.push("/admin/login")}catch(a){console.error("Logout failed:",a)}};return(0,d.jsxs)(d.Fragment,{children:[q&&(0,d.jsx)("div",{className:"md:hidden fixed inset-0 bg-black/50 z-40",onClick:()=>r?.(!1)}),(0,d.jsxs)("div",{className:(0,z.cn)("flex flex-col h-screen bg-card transition-all duration-300","border-l md:border-l-0 md:border-r","md:relative md:left-0",D?"md:relative":"md:absolute md:left-0 md:top-0 md:z-40 md:shadow-lg","fixed right-0 top-0 z-50 w-60",T?"":"md:w-60",q?"translate-x-0":"translate-x-full md:translate-x-0"),style:{width:T?"56px":void 0},onMouseEnter:()=>{R||D||(G(!0),o?.(!0))},onMouseLeave:()=>{R||D||(G(!1),o?.(!1))},children:[(0,d.jsxs)("button",{onClick:()=>{R?q&&r?.(!1):U()},onMouseEnter:()=>!R&&Q(!0),onMouseLeave:()=>!R&&Q(!1),className:(0,z.cn)("p-3 border-b flex items-center gap-3 h-[54px] overflow-hidden w-full","hover:bg-accent/50 transition-colors cursor-pointer",T&&"justify-center"),children:[(0,d.jsxs)("div",{className:"relative w-6 h-6 flex items-center justify-center flex-shrink-0",children:[(0,d.jsx)(h.g,{width:24,height:24,className:(0,z.cn)("transition-opacity absolute",P&&"opacity-0")}),D?(0,d.jsx)(u.A,{className:(0,z.cn)("hidden md:block h-6 w-6 transition-opacity absolute",P?"opacity-100":"opacity-0 pointer-events-none")}):(0,d.jsx)(v.A,{className:(0,z.cn)("hidden md:block h-6 w-6 transition-opacity absolute",P?"opacity-100":"opacity-0 pointer-events-none")})]}),!T&&(0,d.jsxs)("div",{className:"flex flex-col",children:[(0,d.jsx)("span",{className:"text-sm font-semibold whitespace-nowrap leading-none",children:P&&!D?"Pin":"Open\xa0Source Web\xa0Studio"}),!(P&&!D)&&(0,d.jsx)("span",{className:"text-[10px] leading-[10px] text-muted-foreground text-left mt-0.5",children:`v${B.rE}`})]})]}),(0,d.jsx)("nav",{className:"flex-1 p-2 space-y-1 overflow-y-auto",children:V.map(e=>{let f=e.icon,h=a===e.id,i=e.subItems&&e.subItems.length>0||e.hasRecentProjects,k=N.has(e.id);return(0,d.jsx)("div",{children:(0,d.jsxs)("div",{className:(0,z.cn)("p-1",k&&i&&"bg-muted rounded-2xl"),children:[(0,d.jsxs)("div",{className:"relative",children:[(0,d.jsxs)(g.$,{variant:h&&!i?"default":"ghost",className:(0,z.cn)("w-full",T?"justify-center px-2":"justify-start",!T&&i&&"pr-8"),onClick:()=>{i&&a===e.id||W(e)},title:T?e.label:void 0,children:[(0,d.jsx)(f,{className:(0,z.cn)("h-4 w-4",!T&&"mr-2")}),!T&&e.label]}),!T&&i&&(0,d.jsx)("button",{className:(0,z.cn)("absolute right-2 top-1/2 -translate-y-1/2","p-1 rounded hover:bg-accent transition-colors"),onClick:a=>{var b;a.preventDefault(),a.stopPropagation(),b=e.id,O(a=>{let c=new Set(a);return c.has(b)?c.delete(b):c.add(b),c})},children:(0,d.jsx)(w.A,{className:(0,z.cn)("h-4 w-4 transition-transform",k&&"rotate-180")})})]}),e.hasRecentProjects&&k&&(0,d.jsx)("div",{className:(0,z.cn)("mt-1 space-y-1",T?"flex flex-col items-center":"ml-4"),children:J?(0,d.jsx)(d.Fragment,{children:[1,2,3].map(a=>(0,d.jsxs)("div",{className:(0,z.cn)("flex items-center gap-2",T?"justify-center p-1":"h-8 px-2"),children:[(0,d.jsx)("div",{className:"h-3 w-3 bg-muted-foreground/20 rounded animate-pulse"}),!T&&(0,d.jsx)("div",{className:"h-3 flex-1 bg-muted-foreground/20 rounded animate-pulse"})]},a))}):H.length>0?H.map(a=>(0,d.jsxs)(g.$,{variant:"ghost",size:"sm",className:(0,z.cn)(T?"w-8 h-8 p-0 justify-center":"w-full justify-start text-xs"),onClick:()=>{r?.(!1),c(a)},title:a.name,children:[(0,d.jsx)(j.A,{className:(0,z.cn)("h-3 w-3 flex-shrink-0",!T&&"mr-2")}),!T&&(0,d.jsx)("span",{className:"truncate",children:a.name})]},a.id)):!T&&(0,d.jsx)("div",{className:"px-2 py-1 text-xs text-muted-foreground",children:"No recent projects"})}),e.subItems&&k&&(0,d.jsx)("div",{className:(0,z.cn)("mt-1 space-y-1",T?"flex flex-col items-center":"ml-4"),children:e.subItems.map(a=>{let c=a.icon,f=a.file?x===a.id:"settings"===e.id&&y===a.id;return(0,d.jsxs)(g.$,{variant:f?"default":"ghost",size:"sm",className:(0,z.cn)(T?"w-8 h-8 p-0 justify-center":"w-full justify-start text-xs"),onClick:()=>{r?.(!1),a.file?s.push(`/?doc=${a.id}`):"settings"===e.id?s.push(`/?settings=${a.id}`):s.push("/"),b(e.id)},title:T?a.label:void 0,children:[(0,d.jsx)(c,{className:(0,z.cn)("h-3 w-3",!T&&"mr-2")}),!T&&a.label]},a.id)})})]})},e.id)})}),!1,(0,d.jsx)("div",{className:"hidden md:block border-t p-2",children:(0,d.jsx)(g.$,{variant:"ghost",size:"sm",className:(0,z.cn)("w-full",T?"justify-center px-2":"justify-start"),onClick:U,title:T?D?"Unpin sidebar":"Pin sidebar":void 0,children:D?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(u.A,{className:(0,z.cn)("h-4 w-4",!T&&"mr-2")}),!T&&"Unpin"]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(v.A,{className:(0,z.cn)("h-4 w-4",!T&&"mr-2")}),!T&&"Pin"]})})})]})]})}function E(a){return(0,d.jsx)(e.Suspense,{fallback:(0,d.jsx)("div",{className:"w-full h-full bg-card"}),children:(0,d.jsx)(D,{...a})})}s.A,t.A;var F=c(91032),G=c(16945),H=c(65828),I=c(33305),J=c(1776),K=c(25345),L=c(53256),M=c(70584),N=c(24417),O=c(68877);function P({items:a}){let b=a.filter(a=>"synced"===a.status).length,c=a.filter(a=>"local-newer"===a.status).length,e=a.filter(a=>"server-newer"===a.status).length,f=a.filter(a=>"conflict"===a.status).length,g=a.filter(a=>"local-only"===a.status).length,h=a.filter(a=>"server-only"===a.status).length,i=[];return b>0&&i.push(`${b} synced`),c>0&&i.push(`${c} local newer`),e>0&&i.push(`${e} server newer`),f>0&&i.push(`${f} conflicts`),g>0&&i.push(`${g} local only`),h>0&&i.push(`${h} server only`),(0,d.jsx)("div",{className:"text-sm text-muted-foreground",children:i.join(", ")})}var Q=c(36736),R=c(75219),S=c(66041),T=c(91292);let U={synced:{label:"Synced",description:"Local and server are in sync. No action needed.",icon:R.A,colorClass:"text-green-600 dark:text-green-400",bgClass:"bg-green-500/10"},"local-newer":{label:"Local newer",description:"You have local changes not yet on the server. Push to sync.",icon:M.A,colorClass:"text-blue-600 dark:text-blue-400",bgClass:"bg-blue-500/10"},"server-newer":{label:"Server newer",description:"Server has updates you don't have locally. Pull to get latest.",icon:N.A,colorClass:"text-orange-600 dark:text-orange-400",bgClass:"bg-orange-500/10"},conflict:{label:"Conflict",description:"Both local and server have changes. Push to overwrite server, or pull to discard local changes.",icon:G.A,colorClass:"text-red-600 dark:text-red-400",bgClass:"bg-red-500/10"},"local-only":{label:"Local only",description:"Only exists in your browser. Push to save to server.",icon:S.A,colorClass:"text-gray-600 dark:text-gray-400",bgClass:"bg-gray-500/10"},"server-only":{label:"Server only",description:"Only exists on server. Pull to download locally.",icon:s.A,colorClass:"text-purple-600 dark:text-purple-400",bgClass:"bg-purple-500/10"},syncing:{label:"Syncing...",description:"Currently syncing with server.",icon:K.A,colorClass:"text-blue-600 dark:text-blue-400",bgClass:"bg-blue-500/10"},error:{label:"Error",description:"Sync failed. Try again.",icon:T.A,colorClass:"text-red-600 dark:text-red-400",bgClass:"bg-red-500/10"}};function V({status:a,showLabel:b=!0,size:c="sm",className:e}){let f=U[a],g=f.icon,h=(0,d.jsxs)("span",{className:(0,z.cn)("inline-flex items-center gap-1 rounded-full font-medium cursor-help","sm"===c?"px-1.5 py-0.5":"px-2 py-1",f.bgClass,f.colorClass,"sm"===c?"text-xs":"text-sm",e),children:[(0,d.jsx)(g,{className:(0,z.cn)("sm"===c?"w-3.5 h-3.5":"w-4 h-4","syncing"===a&&"animate-spin")}),b&&(0,d.jsx)("span",{children:f.label})]});return(0,d.jsx)(Q.Bc,{delayDuration:300,children:(0,d.jsxs)(Q.m_,{children:[(0,d.jsx)(Q.k$,{asChild:!0,children:h}),(0,d.jsx)(Q.ZI,{side:"top",className:"max-w-xs",children:(0,d.jsx)("p",{className:"text-sm",children:f.description})})]})})}var W=c(89339),X=c(71613);let Y=e.forwardRef(({className:a,...b},c)=>(0,d.jsx)(W.bL,{ref:c,className:(0,z.cn)("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",a),...b,children:(0,d.jsx)(W.C1,{className:(0,z.cn)("flex items-center justify-center text-current"),children:(0,d.jsx)(X.A,{className:"h-4 w-4"})})}));function Z({item:a,selected:b,onSelectChange:c,onPush:e,onPull:f,onResolve:h,disabled:i=!1,syncing:j=!1}){let k=["local-newer","local-only","conflict"].includes(a.status),l=["server-newer","server-only","conflict"].includes(a.status),m="conflict"===a.status;return(0,d.jsxs)("div",{className:(0,z.cn)("flex items-center gap-3 p-2 rounded-md hover:bg-muted/50 transition-colors",b&&"bg-muted/30"),children:[(0,d.jsx)(Y,{checked:b,onCheckedChange:a=>c(!0===a),disabled:i||j||"synced"===a.status||"server-only"===a.status,"aria-label":`Select ${a.name}`}),(0,d.jsx)("div",{className:"flex-1 min-w-0",children:(0,d.jsx)("span",{className:"text-sm font-medium truncate block",children:a.name})}),(0,d.jsx)(V,{status:j?"syncing":a.status,showLabel:!0,size:"sm"}),(0,d.jsx)("div",{className:"flex items-center gap-1",children:m&&h?(0,d.jsx)(g.$,{variant:"outline",size:"sm",onClick:h,disabled:i||j,className:"h-7 text-xs",children:"Resolve"}):(0,d.jsxs)(d.Fragment,{children:[k&&e&&(0,d.jsx)(g.$,{variant:"ghost",size:"icon",onClick:e,disabled:i||j,className:"h-7 w-7",title:"Push to server",children:j?(0,d.jsx)(K.A,{className:"h-3.5 w-3.5 animate-spin"}):(0,d.jsx)(M.A,{className:"h-3.5 w-3.5"})}),l&&f&&(0,d.jsx)(g.$,{variant:"ghost",size:"icon",onClick:f,disabled:i||j,className:"h-7 w-7",title:"Pull from server",children:j?(0,d.jsx)(K.A,{className:"h-3.5 w-3.5 animate-spin"}):(0,d.jsx)(N.A,{className:"h-3.5 w-3.5"})})]})})]})}Y.displayName=W.bL.displayName;var $=c(30824),_=c(42830);function aa({items:a,selectedIds:b,syncingIds:c,onSelectedIdsChange:g,onSyncingIdsChange:h,onRefresh:i,onSyncComplete:j,onRegisterPushSelected:k,onRegisterPullSelected:l}){let m=(0,$.j)();(0,e.useRef)(b);let n=(0,e.useRef)(c);(0,e.useRef)(a);let o=async a=>{h(new Set(n.current).add(a.id));try{let b=await f.vfs.getProject(a.id);if(!b)return void _.oR.error(`Project "${a.name}" not found`);let c=await f.vfs.listFiles(a.id),d=await m.pushSingleProject(a.id,b,c);if(d.success){if(d.project){let a=d.project.updatedAt?new Date(d.project.updatedAt):new Date;b.lastSyncedAt=new Date,b.serverUpdatedAt=a,await f.vfs.updateProject(b,{preserveUpdatedAt:!0})}_.oR.success(`Pushed "${a.name}" to server`),i(),j()}else _.oR.error(d.error||"Failed to push project")}catch(a){z.v.error("Push error:",a),_.oR.error("Failed to push project")}finally{let b=new Set(n.current);b.delete(a.id),h(b)}},p=async a=>{h(new Set(n.current).add(a.id));try{let b=await m.pullSingleProject(a.id);if(!b.success||!b.project)return void _.oR.error(b.error||"Failed to pull project");let c=null;try{c=await f.vfs.getProject(a.id)}catch{}if(c)for(let b of(await f.vfs.listFiles(a.id)))await f.vfs.deleteFile(a.id,b.path);else await f.vfs.createProject(b.project.name,b.project.description||"",a.id);for(let c of b.files||[])await f.vfs.createFile(a.id,c.path,c.content||"");let d=null;try{d=await f.vfs.getProject(a.id)}catch{}if(d){let a=b.project.updatedAt?new Date(b.project.updatedAt):new Date;d.name=b.project.name,d.description=b.project.description,d.updatedAt=a,d.lastSyncedAt=new Date,d.serverUpdatedAt=a,await f.vfs.updateProject(d,{preserveUpdatedAt:!0})}_.oR.success(`Pulled "${a.name}" from server`),i(),j()}catch(a){z.v.error("Pull error:",a),_.oR.error("Failed to pull project")}finally{let b=new Set(n.current);b.delete(a.id),h(b)}};return 0===a.length?(0,d.jsx)("div",{className:"text-center py-8 text-muted-foreground",children:"No projects to sync"}):(0,d.jsxs)("div",{children:[(0,d.jsx)(P,{items:a}),(0,d.jsx)("div",{className:"mt-3 border rounded-lg divide-y overflow-y-auto max-h-64",children:a.map(a=>(0,d.jsx)(Z,{item:a,selected:b.has(a.id),onSelectChange:c=>((a,c)=>{let d=new Set(b);c?d.add(a):d.delete(a),g(d)})(a.id,c),onPush:()=>o(a),onPull:()=>p(a),syncing:c.has(a.id),disabled:c.size>0},a.id))})]})}var ab=c(7143);function ac({items:a,selectedIds:b,syncingIds:c,onSelectedIdsChange:f,onSyncingIdsChange:g,onRefresh:h,onSyncComplete:i,onRegisterPushSelected:j,onRegisterPullSelected:k}){let l=(0,$.j)();(0,e.useRef)(b);let m=(0,e.useRef)(c);(0,e.useRef)(a);let n=async a=>{g(new Set(m.current).add(a.id));try{let b=await ab._.getSkill(a.id);if(!b)return void _.oR.error(`Skill "${a.name}" not found`);let c=await l.pushSkill(b);c.success?(c.skill&&await ab._.updateSyncMetadata(a.id,new Date,new Date(c.skill.updatedAt)),_.oR.success(`Pushed "${a.name}" to server`),h(),i()):_.oR.error(c.error||"Failed to push skill")}catch(a){z.v.error("Push skill error:",a),_.oR.error("Failed to push skill")}finally{let b=new Set(m.current);b.delete(a.id),g(b)}},o=async a=>{g(new Set(m.current).add(a.id));try{let b=await l.pullSkill(a.id);if(!b.success||!b.skill)return void _.oR.error(b.error||"Failed to pull skill");await ab._.importFromServer(b.skill),_.oR.success(`Pulled "${a.name}" from server`),h(),i()}catch(a){z.v.error("Pull skill error:",a),_.oR.error("Failed to pull skill")}finally{let b=new Set(m.current);b.delete(a.id),g(b)}};return 0===a.length?(0,d.jsx)("div",{className:"text-center py-8 text-muted-foreground",children:"No custom skills to sync"}):(0,d.jsxs)("div",{children:[(0,d.jsx)(P,{items:a}),(0,d.jsx)("div",{className:"mt-3 border rounded-lg divide-y overflow-y-auto max-h-64",children:a.map(a=>(0,d.jsx)(Z,{item:a,selected:b.has(a.id),onSelectChange:c=>((a,c)=>{let d=new Set(b);c?d.add(a):d.delete(a),f(d)})(a.id,c),onPush:()=>n(a),onPull:()=>o(a),syncing:c.has(a.id),disabled:c.size>0},a.id))})]})}function ad({items:a,selectedIds:b,syncingIds:c,onSelectedIdsChange:g,onSyncingIdsChange:h,onRefresh:i,onSyncComplete:j,onRegisterPushSelected:k,onRegisterPullSelected:l}){let m=(0,$.j)();(0,e.useRef)(b);let n=(0,e.useRef)(c);(0,e.useRef)(a);let o=async a=>{h(new Set(n.current).add(a.id));try{await f.vfs.init();let b=await f.vfs.getStorageAdapter().getCustomTemplate(a.id);if(!b)return void _.oR.error(`Template "${a.name}" not found`);let c=await m.pushTemplate(b);c.success?(_.oR.success(`Pushed "${a.name}" to server`),i(),j()):_.oR.error(c.error||"Failed to push template")}catch(a){z.v.error("Push template error:",a),_.oR.error("Failed to push template")}finally{let b=new Set(n.current);b.delete(a.id),h(b)}},p=async a=>{h(new Set(n.current).add(a.id));try{let b=await m.pullTemplate(a.id);if(!b.success||!b.template)return void _.oR.error(b.error||"Failed to pull template");await f.vfs.init();let c={...b.template,importedAt:new Date(b.template.importedAt),updatedAt:b.template.updatedAt?new Date(b.template.updatedAt):new Date};await f.vfs.getStorageAdapter().saveCustomTemplate(c),_.oR.success(`Pulled "${a.name}" from server`),i(),j()}catch(a){z.v.error("Pull template error:",a),_.oR.error("Failed to pull template")}finally{let b=new Set(n.current);b.delete(a.id),h(b)}};return 0===a.length?(0,d.jsx)("div",{className:"text-center py-8 text-muted-foreground",children:"No custom templates to sync"}):(0,d.jsxs)("div",{children:[(0,d.jsx)(P,{items:a}),(0,d.jsx)("div",{className:"mt-3 border rounded-lg divide-y overflow-y-auto max-h-64",children:a.map(a=>(0,d.jsx)(Z,{item:a,selected:b.has(a.id),onSelectChange:c=>((a,c)=>{let d=new Set(b);c?d.add(a):d.delete(a),g(d)})(a.id,c),onPush:()=>o(a),onPull:()=>p(a),syncing:c.has(a.id),disabled:c.size>0},a.id))})]})}var ae=c(50987),af=c(21296);function ag({syncStatus:a,onRefresh:b,onSyncComplete:c,onBulkActionStateChange:f}){let[g,h]=(0,e.useState)("projects"),[i,j]=(0,e.useState)(new Set),[k,l]=(0,e.useState)(new Set),[m,o]=(0,e.useState)(new Set),[p,q]=(0,e.useState)(new Set),[r,s]=(0,e.useState)(new Set),[t,u]=(0,e.useState)(new Set),v=(0,e.useRef)(null),w=(0,e.useRef)(null),x=a.projects.items.length,y=a.skills.items.length,z=a.templates.items.length,A=(0,e.useCallback)(a=>a.filter(a=>"synced"!==a.status&&"server-only"!==a.status),[]);(0,e.useCallback)((a,b)=>a.filter(a=>b.has(a.id)&&["local-newer","local-only","conflict"].includes(a.status)),[]),(0,e.useCallback)((a,b)=>a.filter(a=>b.has(a.id)&&["server-newer","server-only","conflict"].includes(a.status)),[]);let B=(0,e.useCallback)(()=>{switch(g){case"projects":return{items:a.projects.items,selectedIds:i,setSelectedIds:j,syncingIds:p};case"skills":return{items:a.skills.items,selectedIds:k,setSelectedIds:l,syncingIds:r};case"templates":return{items:a.templates.items,selectedIds:m,setSelectedIds:o,syncingIds:t}}},[g,a,i,k,m,p,r,t]);(0,e.useCallback)(()=>{let{items:a,selectedIds:b,setSelectedIds:c}=B(),d=A(a);c(b.size===d.length&&d.length>0?new Set:new Set(d.map(a=>a.id)))},[B,A]),(0,e.useCallback)(async()=>{v.current&&await v.current()},[]),(0,e.useCallback)(async()=>{w.current&&await w.current()},[]);let C=(0,e.useCallback)(a=>{v.current=a},[]),D=(0,e.useCallback)(a=>{w.current=a},[]);return(0,d.jsxs)(O.tU,{value:g,onValueChange:a=>h(a),children:[(0,d.jsxs)(O.j7,{className:"grid w-full grid-cols-3",children:[(0,d.jsxs)(O.Xi,{value:"projects",className:"flex items-center gap-1.5",children:[(0,d.jsx)(ae.A,{className:"h-3.5 w-3.5"}),(0,d.jsx)("span",{children:"Projects"}),(0,d.jsxs)("span",{className:"text-xs text-muted-foreground",children:["(",x,")"]})]}),(0,d.jsxs)(O.Xi,{value:"skills",className:"flex items-center gap-1.5",children:[(0,d.jsx)(n.A,{className:"h-3.5 w-3.5"}),(0,d.jsx)("span",{children:"Skills"}),(0,d.jsxs)("span",{className:"text-xs text-muted-foreground",children:["(",y,")"]})]}),(0,d.jsxs)(O.Xi,{value:"templates",className:"flex items-center gap-1.5",children:[(0,d.jsx)(af.A,{className:"h-3.5 w-3.5"}),(0,d.jsx)("span",{children:"Templates"}),(0,d.jsxs)("span",{className:"text-xs text-muted-foreground",children:["(",z,")"]})]})]}),(0,d.jsx)(O.av,{value:"projects",className:"mt-4",children:(0,d.jsx)(aa,{items:a.projects.items,selectedIds:i,syncingIds:p,onSelectedIdsChange:j,onSyncingIdsChange:q,onRefresh:b,onSyncComplete:c,onRegisterPushSelected:C,onRegisterPullSelected:D})}),(0,d.jsx)(O.av,{value:"skills",className:"mt-4",children:(0,d.jsx)(ac,{items:a.skills.items,selectedIds:k,syncingIds:r,onSelectedIdsChange:l,onSyncingIdsChange:s,onRefresh:b,onSyncComplete:c,onRegisterPushSelected:C,onRegisterPullSelected:D})}),(0,d.jsx)(O.av,{value:"templates",className:"mt-4",children:(0,d.jsx)(ad,{items:a.templates.items,selectedIds:m,syncingIds:t,onSelectedIdsChange:o,onSyncingIdsChange:u,onRefresh:b,onSyncComplete:c,onRegisterPushSelected:C,onRegisterPullSelected:D})})]})}function ah(a){return{syncedCount:a.filter(a=>"synced"===a.status).length,localNewerCount:a.filter(a=>"local-newer"===a.status).length,serverNewerCount:a.filter(a=>"server-newer"===a.status).length,conflictCount:a.filter(a=>"conflict"===a.status).length,localOnlyCount:a.filter(a=>"local-only"===a.status).length,serverOnlyCount:a.filter(a=>"server-only"===a.status).length}}function ai(a,b,c){if(!a)return b?"server-only":"synced";if(!b)return"local-only";if(!c)return a>b?"local-newer":b>a?"server-newer":"synced";let d=a>c,e=b>c;return d&&e?"conflict":d?"local-newer":e?"server-newer":"synced"}let aj={items:[],syncedCount:0,localNewerCount:0,serverNewerCount:0,conflictCount:0,localOnlyCount:0,serverOnlyCount:0},ak={projects:aj,skills:aj,templates:aj,loading:!0,error:null};function al({open:a,onOpenChange:b,onSyncComplete:c}){let[h,i]=(0,e.useState)(!1),[j,k]=(0,e.useState)(!0),{status:l,refresh:m,loading:n,error:o}=function(){let[a,b]=(0,e.useState)(ak),c=(0,$.j)();return{status:a,refresh:(0,e.useCallback)(async()=>{b(a=>({...a,loading:!0,error:null}));try{let a=await c.getEnhancedSyncStatus();if(!a.success||!a.data)return void b(b=>({...b,loading:!1,error:a.error||"Failed to fetch server status"}));let d=a.data,e=new Map(d.projects.map(a=>[a.id,{name:a.name,updatedAt:new Date(a.updatedAt)}])),g=new Map(d.skills.map(a=>[a.id,{name:a.name,updatedAt:new Date(a.updatedAt)}])),h=new Map(d.templates.map(a=>[a.id,{name:a.name,updatedAt:new Date(a.updatedAt)}]));await f.vfs.init();let i=await f.vfs.listProjects(),j=await ab._.getCustomSkills(),k=await f.vfs.getStorageAdapter().getAllCustomTemplates(),l=[],m=new Set;for(let a of i){m.add(a.id);let b=e.get(a.id),c=ai(a.updatedAt,b?.updatedAt||null,a.lastSyncedAt||null);l.push({id:a.id,name:a.name,type:"project",localUpdatedAt:a.updatedAt,serverUpdatedAt:b?.updatedAt||null,lastSyncedAt:a.lastSyncedAt||null,status:c})}for(let[a,b]of e)m.has(a)||l.push({id:a,name:b.name,type:"project",localUpdatedAt:null,serverUpdatedAt:b.updatedAt,lastSyncedAt:null,status:"server-only"});let n=[],o=new Set;for(let a of j){o.add(a.id);let b=g.get(a.id),c=ai(a.updatedAt,b?.updatedAt||null,a.lastSyncedAt||null);n.push({id:a.id,name:a.name,type:"skill",localUpdatedAt:a.updatedAt,serverUpdatedAt:b?.updatedAt||null,lastSyncedAt:a.lastSyncedAt||null,status:c})}for(let[a,b]of g)o.has(a)||n.push({id:a,name:b.name,type:"skill",localUpdatedAt:null,serverUpdatedAt:b.updatedAt,lastSyncedAt:null,status:"server-only"});let p=[],q=new Set;for(let a of k){q.add(a.id);let b=h.get(a.id),c=a.updatedAt||a.importedAt,d=ai(c,b?.updatedAt||null,null);p.push({id:a.id,name:a.name,type:"template",localUpdatedAt:c,serverUpdatedAt:b?.updatedAt||null,lastSyncedAt:null,status:d})}for(let[a,b]of h)q.has(a)||p.push({id:a,name:b.name,type:"template",localUpdatedAt:null,serverUpdatedAt:b.updatedAt,lastSyncedAt:null,status:"server-only"});let r=ah(l),s=ah(n),t=ah(p);b({projects:{items:l,...r},skills:{items:n,...s},templates:{items:p,...t},loading:!1,error:null})}catch(a){z.v.error("[useSyncStatus] Error fetching sync status:",a),b(b=>({...b,loading:!1,error:a instanceof Error?a.message:"Failed to fetch sync status"}))}},[c]),loading:a.loading,error:a.error}}(),[p,q]=(0,e.useState)(null),r="sm:max-w-2xl";return j?(0,d.jsx)(I.lG,{open:a,onOpenChange:b,children:(0,d.jsx)(I.Cf,{className:r,children:(0,d.jsxs)(I.c7,{children:[(0,d.jsx)(I.L3,{children:"Server Sync"}),(0,d.jsx)(I.rr,{children:"Checking authentication status..."})]})})}):h?(0,d.jsx)(I.lG,{open:a,onOpenChange:b,children:(0,d.jsxs)(I.Cf,{className:r,children:[(0,d.jsxs)(I.c7,{children:[(0,d.jsxs)(I.L3,{className:"flex items-center gap-2",children:[(0,d.jsx)(s.A,{className:"w-5 h-5"}),"Server Sync"]}),(0,d.jsx)(I.rr,{children:"Synchronize projects, skills, and templates between your browser and the server."})]}),(0,d.jsxs)("div",{children:[o&&(0,d.jsxs)("div",{className:"flex items-start gap-3 p-3 bg-red-500/10 border border-red-500/30 rounded-lg",children:[(0,d.jsx)(G.A,{className:"w-5 h-5 text-red-500 flex-shrink-0 mt-0.5"}),(0,d.jsxs)("div",{className:"text-sm",children:[(0,d.jsx)("p",{className:"font-medium text-red-600 dark:text-red-400",children:"Error loading sync status"}),(0,d.jsx)("p",{className:"text-muted-foreground mt-1",children:o})]})]}),n&&(0,d.jsxs)("div",{className:"flex items-center justify-center py-8",children:[(0,d.jsx)(K.A,{className:"w-6 h-6 animate-spin text-muted-foreground"}),(0,d.jsx)("span",{className:"ml-2 text-muted-foreground",children:"Loading sync status..."})]}),!n&&!o&&(0,d.jsx)(ag,{syncStatus:l,onRefresh:m,onSyncComplete:()=>{m(),c?.()},onBulkActionStateChange:q})]}),(0,d.jsxs)(I.Es,{className:"flex flex-col sm:flex-row items-stretch sm:items-center gap-2",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 flex-wrap flex-1",children:[p&&p.selectableCount>0&&(0,d.jsxs)(g.$,{variant:"outline",size:"sm",onClick:p.onSelectAll,disabled:p.isSyncing,children:[(0,d.jsx)(L.A,{className:"h-3.5 w-3.5 mr-1.5"}),p.selectedCount===p.selectableCount?"Deselect":"Select All"]}),p&&p.pushableCount>0&&(0,d.jsxs)(g.$,{variant:"outline",size:"sm",onClick:p.onPushSelected,disabled:p.isSyncing,children:[(0,d.jsx)(M.A,{className:"h-3.5 w-3.5 mr-1.5"}),"Push (",p.pushableCount,")"]}),p&&p.pullableCount>0&&(0,d.jsxs)(g.$,{variant:"outline",size:"sm",onClick:p.onPullSelected,disabled:p.isSyncing,children:[(0,d.jsx)(N.A,{className:"h-3.5 w-3.5 mr-1.5"}),"Pull (",p.pullableCount,")"]})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsxs)(g.$,{variant:"outline",size:"sm",onClick:m,disabled:n,children:[(0,d.jsx)(K.A,{className:`w-4 h-4 mr-2 ${n?"animate-spin":""}`}),"Refresh"]}),(0,d.jsx)(g.$,{variant:"outline",onClick:()=>b(!1),children:"Close"})]})]})]})}):(0,d.jsx)(I.lG,{open:a,onOpenChange:b,children:(0,d.jsxs)(I.Cf,{className:r,children:[(0,d.jsxs)(I.c7,{children:[(0,d.jsxs)(I.L3,{className:"flex items-center gap-2",children:[(0,d.jsx)(J.A,{className:"w-5 h-5"}),"Not Authenticated"]}),(0,d.jsx)(I.rr,{children:"You need to login to sync projects, skills, and templates with the server."})]}),(0,d.jsxs)(I.Es,{children:[(0,d.jsx)(g.$,{variant:"outline",onClick:()=>b(!1),children:"Cancel"}),(0,d.jsx)(g.$,{onClick:()=>window.location.href="/admin/login",children:"Go to Login"})]})]})})}function am({children:a,currentView:b,onNavigate:c,onProjectSelect:f,onStartTour:h,onOpenAbout:i,onOpenSettings:j,showSidebar:k=!0}){let l=(0,A.useRouter)(),[m,n]=(0,e.useState)(!0),[o,p]=(0,e.useState)(!1),[,q]=(0,e.useState)(!1),[r,t]=(0,e.useState)(!1),[u,v]=(0,e.useState)(!1),[w,x]=(0,e.useState)(!1),[y,B]=(0,e.useState)(0);return k?(0,d.jsxs)("div",{className:"relative flex h-screen overflow-hidden",children:[(0,d.jsx)(E,{currentView:b,onNavigate:c,onProjectSelect:f,onStartTour:h,onOpenAbout:i,onOpenSettings:j,onServerSync:()=>t(!0),onLogoClick:()=>l.push("/admin"),onPinnedChange:n,onHoverChange:p,onCollapsedChange:q,mobileOpen:u,onMobileOpenChange:v}),!m&&o&&(0,d.jsx)("div",{className:"absolute inset-0 bg-black/20 z-30"}),(0,d.jsxs)("div",{className:(0,z.cn)("flex-1 flex flex-col overflow-hidden transition-all duration-300",!m&&"md:ml-[56px]"),children:[(0,d.jsx)(F.j,{hideLogo:!0,showMobileMenu:!0,onMobileMenuClick:()=>v(!0),hideActionsOnMobile:!0,pageName:b.charAt(0).toUpperCase()+b.slice(1),className:"md:hidden"}),(0,d.jsx)("div",{className:"flex-1 overflow-hidden",children:a})]}),(0,d.jsx)(al,{open:r,onOpenChange:t}),(0,d.jsx)(I.lG,{open:w,onOpenChange:x,children:(0,d.jsxs)(I.Cf,{className:"sm:max-w-md",children:[(0,d.jsxs)(I.c7,{children:[(0,d.jsxs)(I.L3,{className:"flex items-center gap-2",children:[(0,d.jsx)(G.A,{className:"w-5 h-5 text-orange-500"}),"Server Database Not Initialized"]}),(0,d.jsxs)(I.rr,{children:["Your server database is empty, but you have ",y," project",1!==y?"s":""," stored locally."]})]}),(0,d.jsxs)("div",{className:"space-y-4 py-4",children:[(0,d.jsxs)("div",{className:"flex items-start gap-3 p-3 bg-muted rounded-lg",children:[(0,d.jsx)(H.A,{className:"w-5 h-5 text-muted-foreground flex-shrink-0 mt-0.5"}),(0,d.jsxs)("div",{className:"text-sm",children:[(0,d.jsx)("p",{className:"font-medium",children:"Why does this matter?"}),(0,d.jsxs)("p",{className:"text-muted-foreground mt-1",children:["The ",(0,d.jsx)("strong",{children:"Sites"})," feature requires projects to be synced to the server database. Until you push your local projects, the Sites view won't show any projects to publish."]})]})]}),(0,d.jsxs)("div",{className:"text-sm text-muted-foreground",children:["Click ",(0,d.jsx)("strong",{children:"Open Sync"})," to push your local projects to the server, or dismiss this message to configure it later."]})]}),(0,d.jsxs)(I.Es,{className:"flex-col sm:flex-row gap-2",children:[(0,d.jsx)(g.$,{variant:"outline",onClick:()=>{localStorage.setItem("osw-server-init-dismissed","true"),x(!1)},children:"Dismiss"}),(0,d.jsxs)(g.$,{onClick:()=>{x(!1),t(!0)},children:[(0,d.jsx)(s.A,{className:"w-4 h-4 mr-2"}),"Open Sync"]})]})]})})]}):(0,d.jsx)(d.Fragment,{children:a})}},14258:(a,b,c)=>{c.d(b,{V:()=>j});var d=c(21124),e=c(38301),f=c(95919),g=c(19217),h=c(14263),i=c(6027);function j({location:a}){let{state:b,next:c,previous:j,skip:k}=(0,f.C)(),{status:l,currentStep:m,stepKey:n,isBusy:o,stepIndex:p}=b,[q,r]=(0,e.useState)(null),s=i.A.length,t=(0,e.useMemo)(()=>!!m&&!!o&&("workspace-edit"===m.id||"workspace-focus"===m.id||"workspace-checkpoint"===m.id),[m,o]);if("running"!==l||!m||m.location!==a)return null;let u=m.primaryLabel??"Next",v=m.secondaryLabel??"Skip";return(0,d.jsxs)("div",{className:"fixed inset-0 z-[2000] pointer-events-auto",children:[(0,d.jsx)("div",{className:"absolute inset-0 bg-background/30"}),q&&(0,d.jsx)("div",{className:"pointer-events-none fixed rounded-xl border-2 border-primary ring-4 ring-primary/30 transition-all animate-ring-opacity",style:{top:q.top,left:q.left,width:q.width,height:q.height}}),(0,d.jsx)("div",{className:"absolute bottom-10 left-1/2 flex w-full max-w-xl -translate-x-1/2 flex-col gap-4 px-4",children:(0,d.jsxs)("div",{className:"pointer-events-auto rounded-2xl border bg-background/95 p-6 shadow-2xl",children:[(0,d.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,d.jsxs)("div",{className:"flex-1",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,d.jsx)("h3",{className:"text-lg font-semibold text-foreground",children:m.title}),(0,d.jsxs)("span",{className:"text-sm text-muted-foreground font-medium",children:[p+1,"/",s]})]}),(0,d.jsx)("div",{className:"mt-2 text-sm leading-relaxed text-muted-foreground",children:m.body})]}),o&&(0,d.jsx)(h.A,{className:"h-5 w-5 animate-spin text-primary"})]}),(0,d.jsxs)("div",{className:"mt-6 flex items-center justify-between",children:[m.showBack?(0,d.jsx)(g.$,{variant:"ghost",onClick:j,disabled:o,children:"Back"}):(0,d.jsx)("div",{}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(g.$,{variant:"ghost",onClick:k,children:v}),(0,d.jsx)(g.$,{onClick:c,disabled:t,children:u})]})]})]})})]})}},15649:(a,b,c)=>{c.d(b,{T:()=>m});var d=c(21124),e=c(38301),f=c.n(e),g=c(45798),h=c(23415),i=c(15514),j=c(78583),k=c(42378);function l(a){return a.toString().toLowerCase().trim().replace(/\s+/g,"-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}function m({content:a,className:b,skipNormalization:c=!1}){let e=(0,k.useRouter)(),m=c?a:function(a){if(!a||"string"!=typeof a)return"";let b=a.split("\n"),c=[],d=!1,e=0,f=a=>{let b=a.trim();return/^```/.test(b)},g=a=>{let b=a.trim();return/^[-*+]\s/.test(b)||/^\d+\.\s/.test(b)},h=a=>/^\s*>/.test(a),i=a=>{let b=a.trim();return!!b&&!(b.length<3)&&[/^(const|let|var|function|class|import|export|return|if|for|while)\s/,/^[a-zA-Z_$][a-zA-Z0-9_$]*\s*[=:({]/,/[{};()[\]]/,/^\/\//,/^#/].some(a=>a.test(b))};for(let a=0;a=4&&!i(j)||k>=2&&k<4){c.push(j.trim());continue}c.push(j)}return c.join("\n").trim()}(a),n=f().useMemo(()=>{let a=m.split("\n"),b=[],c=0;for(let d of a){let a=d.match(/^(#{2,4})\s+(.+)$/);a&&b.push({level:a[1].length,text:a[2].trim(),index:c++})}return b},[m]),o=f().useMemo(()=>{let a=new Map;return n.forEach(b=>{let c=`${b.level}-${b.text}`;a.has(c)||a.set(c,b.index)}),a},[n]);return(0,d.jsx)("div",{className:(0,i.cn)("prose prose-sm dark:prose-invert max-w-none",b),children:(0,d.jsx)(g.oz,{remarkPlugins:[h.A],components:{h1:({children:a})=>{let b=l(a?.toString()||"");return(0,d.jsx)("h1",{id:b,className:"text-3xl font-bold mb-4 mt-8 first:mt-0",children:a})},h2:({children:a})=>{let b=a?.toString()||"",c=l(b),e=`2-${b}`,f=o.get(e);return(0,d.jsx)("h2",{id:c,"data-heading-index":f,className:"text-2xl font-bold mb-3 mt-8 pb-2 border-b border-border/50 first:mt-0",children:a})},h3:({children:a})=>{let b=a?.toString()||"",c=l(b),e=`3-${b}`,f=o.get(e);return(0,d.jsx)("h3",{id:c,"data-heading-index":f,className:"text-xl font-semibold mb-2 mt-6",children:a})},h4:({children:a})=>{let b=a?.toString()||"",c=l(b),e=`4-${b}`,f=o.get(e);return(0,d.jsx)("h4",{id:c,"data-heading-index":f,className:"text-lg font-semibold mb-2 mt-4",children:a})},p:({children:a})=>(0,d.jsx)("p",{className:"mb-4 leading-relaxed last:mb-0",children:a}),ul:({children:a})=>(0,d.jsx)("ul",{className:"list-disc pl-6 mb-4 space-y-2",children:a}),ol:({children:a})=>(0,d.jsx)("ol",{className:"list-decimal pl-6 mb-4 space-y-2",children:a}),li:({children:a})=>(0,d.jsx)("li",{className:"text-sm leading-relaxed",children:a}),pre:({children:a,...b})=>{let c=f().Children.toArray(a).find(a=>f().isValidElement(a)&&"code"===a.type),e=c?.props?.className||"",g=/language-(\w+)/.exec(e),h=g?g[1]:null;return(0,d.jsxs)("div",{className:"relative mb-4 group",children:[h&&(0,d.jsx)("div",{className:"absolute top-2 right-2 px-2 py-1 text-xs font-medium text-muted-foreground bg-background/80 rounded border border-border/50 backdrop-blur-sm",children:h}),(0,d.jsx)("pre",{className:"p-4 rounded-lg bg-muted/50 border border-border/50 overflow-x-auto",...b,children:a})]})},code:({className:a,children:b,...c})=>/language-(\w+)/.exec(a||"")?(0,d.jsx)("code",{className:"font-mono text-xs block",...c,children:b}):(0,d.jsx)("code",{className:"px-1.5 py-0.5 rounded bg-muted/70 border border-border/30 font-mono text-xs",...c,children:b}),blockquote:({children:a})=>(0,d.jsx)("blockquote",{className:"border-l-4 border-primary/30 bg-muted/30 pl-4 pr-4 py-3 mb-4 italic text-muted-foreground rounded-r",children:a}),a:({href:a,children:b})=>{if(!a)return(0,d.jsx)("a",{children:b});let c=a.startsWith("?doc="),f=a.startsWith("?nav=");a.startsWith("#");let g=a.startsWith("http://")||a.startsWith("https://");return(0,d.jsxs)("a",{href:a,onClick:b=>{if(c)b.preventDefault(),e.push(`/${a}`);else if(f){b.preventDefault();let c=a.replace("?nav=","");window.dispatchEvent(new CustomEvent("nav-to-view",{detail:{view:c}})),e.push("/")}},className:(0,i.cn)("text-primary hover:underline cursor-pointer",g&&"inline-flex items-center gap-1"),target:g?"_blank":void 0,rel:g?"noopener noreferrer":void 0,children:[b,g&&(0,d.jsx)(j.A,{className:"h-3 w-3 inline"})]})},strong:({children:a})=>(0,d.jsx)("strong",{className:"font-semibold",children:a}),em:({children:a})=>(0,d.jsx)("em",{className:"italic",children:a}),hr:()=>(0,d.jsx)("hr",{className:"my-8 border-border"}),table:({children:a})=>(0,d.jsx)("div",{className:"overflow-x-auto mb-6 rounded-lg border border-border",children:(0,d.jsx)("table",{className:"min-w-full divide-y divide-border",children:a})}),thead:({children:a})=>(0,d.jsx)("thead",{className:"bg-muted/50",children:a}),tbody:({children:a})=>(0,d.jsx)("tbody",{className:"divide-y divide-border bg-background",children:a}),tr:({children:a})=>(0,d.jsx)("tr",{className:"hover:bg-muted/30 transition-colors",children:a}),th:({children:a})=>(0,d.jsx)("th",{className:"px-4 py-3 text-left text-xs font-semibold tracking-wide",children:a}),td:({children:a})=>(0,d.jsx)("td",{className:"px-4 py-3 text-sm",children:a})},children:m})})}},30758:a=>{a.exports={rE:"1.32.0"}},30824:(a,b,c)=>{function d(a){if(a.content instanceof ArrayBuffer){let b=new Uint8Array(a.content),c="";for(let a=0;ah});class f{constructor(a=""){this.baseUrl=a}async pushProject(a){try{let b=await fetch(`${this.baseUrl}/api/sync/projects`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({project:a})});if(!b.ok){let a=await b.json();return{success:!1,error:a.error||`HTTP ${b.status}`}}let c=await b.json();return{success:!0,project:c.project}}catch(a){return{success:!1,error:a instanceof Error?a.message:"Network error"}}}async pullProjects(){try{let a=await fetch(`${this.baseUrl}/api/sync/projects`,{method:"GET"});if(!a.ok){let b=await a.json();return{success:!1,error:b.error||`HTTP ${a.status}`}}let b=await a.json();return{success:!0,projects:b.projects}}catch(a){return{success:!1,error:a instanceof Error?a.message:"Network error"}}}async pushFiles(a,b){try{let c=b.map(d),e=await fetch(`${this.baseUrl}/api/sync/files`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({projectId:a,files:c})});if(!e.ok){let a=await e.json();return{success:!1,error:a.error||`HTTP ${e.status}`}}let f=await e.json();return{success:!0,count:f.count}}catch(a){return{success:!1,error:a instanceof Error?a.message:"Network error"}}}async pullFiles(a){try{let b=await fetch(`${this.baseUrl}/api/sync/files?projectId=${encodeURIComponent(a)}`,{method:"GET"});if(!b.ok){let a=await b.json();return{success:!1,error:a.error||`HTTP ${b.status}`}}let c=await b.json();return{success:!0,files:(c.files||[]).map(e)}}catch(a){return{success:!1,error:a instanceof Error?a.message:"Network error"}}}async pushProjectWithFiles(a,b){let c=await this.pushProject(a);if(!c.success)return c;let d=await this.pushFiles(a.id,b);return d.success?{success:!0}:d}async pullProjectWithFiles(a){let b=await this.pullProjects();if(!b.success||!b.projects)return{success:!1,error:b.error||"Failed to pull projects"};let c=b.projects.find(b=>b.id===a);if(!c)return{success:!1,error:`Project ${a} not found on server`};let d=await this.pullFiles(a);return d.success?{success:!0,project:c,files:d.files||[]}:{success:!1,error:d.error||"Failed to pull files"}}async pushSingleProject(a,b,c){try{let e=c.map(d),f=await fetch(`${this.baseUrl}/api/sync/projects/${a}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({project:b,files:e})});if(!f.ok){let a=await f.json();return{success:!1,error:a.error||`HTTP ${f.status}`}}let g=await f.json();return{success:!0,project:g.project}}catch(a){return{success:!1,error:a instanceof Error?a.message:"Network error"}}}async pullSingleProject(a){try{let b=await fetch(`${this.baseUrl}/api/sync/projects/${a}`,{method:"GET"});if(!b.ok){let a=await b.json();return{success:!1,error:a.error||`HTTP ${b.status}`}}let c=await b.json();return{success:!0,project:c.project,files:(c.files||[]).map(e)}}catch(a){return{success:!1,error:a instanceof Error?a.message:"Network error"}}}async getSyncStatus(){try{let a=await fetch(`${this.baseUrl}/api/sync/status`,{method:"GET"});if(!a.ok){let b=await a.json();return{success:!1,error:b.error||`HTTP ${a.status}`}}let b=await a.json();return{success:!0,projects:b.projects||[]}}catch(a){return{success:!1,error:a instanceof Error?a.message:"Network error"}}}async pullSkills(){try{let a=await fetch(`${this.baseUrl}/api/sync/skills`,{method:"GET"});if(!a.ok){let b=await a.json();return{success:!1,error:b.error||`HTTP ${a.status}`}}let b=await a.json();return{success:!0,skills:b.skills||[]}}catch(a){return{success:!1,error:a instanceof Error?a.message:"Network error"}}}async pushSkills(a){try{let b=await fetch(`${this.baseUrl}/api/sync/skills`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({skills:a})});if(!b.ok){let a=await b.json();return{success:!1,error:a.error||`HTTP ${b.status}`}}let c=await b.json();return{success:c.success,created:c.created,updated:c.updated,error:c.errors?.join(", ")}}catch(a){return{success:!1,error:a instanceof Error?a.message:"Network error"}}}async pullSkill(a){try{let b=await fetch(`${this.baseUrl}/api/sync/skills/${encodeURIComponent(a)}`,{method:"GET"});if(!b.ok){let a=await b.json();return{success:!1,error:a.error||`HTTP ${b.status}`}}let c=await b.json();return{success:!0,skill:c.skill}}catch(a){return{success:!1,error:a instanceof Error?a.message:"Network error"}}}async pushSkill(a){try{let b=await fetch(`${this.baseUrl}/api/sync/skills/${encodeURIComponent(a.id)}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({skill:a})});if(!b.ok){let a=await b.json();return{success:!1,error:a.error||`HTTP ${b.status}`}}let c=await b.json();return{success:!0,skill:c.skill,action:c.action}}catch(a){return{success:!1,error:a instanceof Error?a.message:"Network error"}}}async deleteSkillFromServer(a){try{let b=await fetch(`${this.baseUrl}/api/sync/skills/${encodeURIComponent(a)}`,{method:"DELETE"});if(!b.ok){let a=await b.json();return{success:!1,error:a.error||`HTTP ${b.status}`}}return{success:!0}}catch(a){return{success:!1,error:a instanceof Error?a.message:"Network error"}}}async pullTemplates(){try{let a=await fetch(`${this.baseUrl}/api/sync/templates`,{method:"GET"});if(!a.ok){let b=await a.json();return{success:!1,error:b.error||`HTTP ${a.status}`}}let b=await a.json();return{success:!0,templates:b.templates||[]}}catch(a){return{success:!1,error:a instanceof Error?a.message:"Network error"}}}async pushTemplates(a){try{let b=await fetch(`${this.baseUrl}/api/sync/templates`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({templates:a})});if(!b.ok){let a=await b.json();return{success:!1,error:a.error||`HTTP ${b.status}`}}let c=await b.json();return{success:c.success,created:c.created,updated:c.updated,error:c.errors?.join(", ")}}catch(a){return{success:!1,error:a instanceof Error?a.message:"Network error"}}}async pullTemplate(a){try{let b=await fetch(`${this.baseUrl}/api/sync/templates/${encodeURIComponent(a)}`,{method:"GET"});if(!b.ok){let a=await b.json();return{success:!1,error:a.error||`HTTP ${b.status}`}}let c=await b.json();return{success:!0,template:c.template}}catch(a){return{success:!1,error:a instanceof Error?a.message:"Network error"}}}async pushTemplate(a){try{let b=await fetch(`${this.baseUrl}/api/sync/templates/${encodeURIComponent(a.id)}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({template:a})});if(!b.ok){let a=await b.json();return{success:!1,error:a.error||`HTTP ${b.status}`}}let c=await b.json();return{success:!0,template:c.template,action:c.action}}catch(a){return{success:!1,error:a instanceof Error?a.message:"Network error"}}}async deleteTemplateFromServer(a){try{let b=await fetch(`${this.baseUrl}/api/sync/templates/${encodeURIComponent(a)}`,{method:"DELETE"});if(!b.ok){let a=await b.json();return{success:!1,error:a.error||`HTTP ${b.status}`}}return{success:!0}}catch(a){return{success:!1,error:a instanceof Error?a.message:"Network error"}}}async getEnhancedSyncStatus(){try{let a=await fetch(`${this.baseUrl}/api/sync/status`,{method:"GET"});if(!a.ok){let b=await a.json();return{success:!1,error:b.error||`HTTP ${a.status}`}}let b=await a.json();return{success:!0,data:b}}catch(a){return{success:!1,error:a instanceof Error?a.message:"Network error"}}}}let g=null;function h(){return g||(g=new f),g}},33305:(a,b,c)=>{c.d(b,{Cf:()=>k,Es:()=>m,L3:()=>n,c7:()=>l,lG:()=>h,rr:()=>o});var d=c(21124);c(38301);var e=c(39641),f=c(47089),g=c(15514);function h({...a}){return(0,d.jsx)(e.bL,{"data-slot":"dialog",...a})}function i({...a}){return(0,d.jsx)(e.ZL,{"data-slot":"dialog-portal",...a})}function j({className:a,...b}){return(0,d.jsx)(e.hJ,{"data-slot":"dialog-overlay",className:(0,g.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 backdrop-blur-sm",a),...b})}function k({className:a,children:b,showCloseButton:c=!0,...h}){return(0,d.jsxs)(i,{"data-slot":"dialog-portal",children:[(0,d.jsx)(j,{}),(0,d.jsxs)(e.UC,{"data-slot":"dialog-content",className:(0,g.cn)("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-2xl duration-200",a),...h,children:[b,c&&(0,d.jsxs)(e.bm,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[(0,d.jsx)(f.A,{}),(0,d.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function l({className:a,...b}){return(0,d.jsx)("div",{"data-slot":"dialog-header",className:(0,g.cn)("flex flex-col gap-2 text-center sm:text-left",a),...b})}function m({className:a,...b}){return(0,d.jsx)("div",{"data-slot":"dialog-footer",className:(0,g.cn)("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",a),...b})}function n({className:a,...b}){return(0,d.jsx)(e.hE,{"data-slot":"dialog-title",className:(0,g.cn)("text-lg leading-none font-semibold",a),...b})}function o({className:a,...b}){return(0,d.jsx)(e.VY,{"data-slot":"dialog-description",className:(0,g.cn)("text-muted-foreground text-sm",a),...b})}},33847:(a,b,c)=>{c.d(b,{T:()=>g});var d=c(21124),e=c(38301),f=c(15514);let g=e.forwardRef(({className:a,...b},c)=>(0,d.jsx)("textarea",{className:(0,f.cn)("flex min-h-[84px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",a),ref:c,...b}));g.displayName="Textarea"},36736:(a,b,c)=>{c.d(b,{Bc:()=>g,ZI:()=>j,k$:()=>i,m_:()=>h});var d=c(21124);c(38301);var e=c(16992),f=c(15514);function g({delayDuration:a=0,...b}){return(0,d.jsx)(e.Kq,{"data-slot":"tooltip-provider",delayDuration:a,...b})}function h({...a}){return(0,d.jsx)(g,{children:(0,d.jsx)(e.bL,{"data-slot":"tooltip",...a})})}function i({...a}){return(0,d.jsx)(e.l9,{"data-slot":"tooltip-trigger",...a})}function j({className:a,sideOffset:b=0,children:c,arrowStyle:g,...h}){return(0,d.jsx)(e.ZL,{children:(0,d.jsxs)(e.UC,{"data-slot":"tooltip-content",sideOffset:b,className:(0,f.cn)("bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",a),...h,children:[c,(0,d.jsx)(e.i3,{className:"bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]",style:g})]})})}},45914:(a,b,c)=>{c.d(b,{V:()=>m});var d=c(21124);c(38301);var e=c(30758),f=c(33305),g=c(19217),h=c(49308),i=c(22544),j=c(78583),k=c(97950),l=c(87251);function m({open:a,onOpenChange:b}){return(0,d.jsx)(f.lG,{open:a,onOpenChange:b,children:(0,d.jsxs)(f.Cf,{className:"max-w-3xl max-h-[90vh]",children:[(0,d.jsx)(f.c7,{children:(0,d.jsxs)("div",{className:"flex items-center gap-4 mb-2",children:[(0,d.jsx)(h.g,{width:64,height:64}),(0,d.jsxs)("div",{children:[(0,d.jsx)(f.L3,{className:"text-2xl",children:"Open Source Web Studio"}),(0,d.jsx)(f.rr,{className:"text-base",children:"Browser-based Website Builder"})]})]})}),(0,d.jsxs)("div",{className:"space-y-6 overflow-y-auto max-h-[60vh] pr-4",children:[(0,d.jsx)("section",{children:(0,d.jsxs)("div",{className:"text-sm text-gray-600 dark:text-gray-300 leading-relaxed space-y-3",children:[(0,d.jsx)("p",{children:"OSW Studio is a BYOK (Bring Your Own Key) agentic browser-based website builder where you describe what you want and an agent writes the code. Originally forked from @enzostvs and @victor's DeepSite v2, it has evolved into a full-featured development environment."}),(0,d.jsx)("p",{children:"This is a solo project and there isn't a huge corpo behind it. I'll do my best to fix issues and possibly keep the project improving, but it's just me doing this for fun so please be patient. All feedback and contributions are more than welcome."}),(0,d.jsx)("p",{children:"If you make something with the app I would be thrilled if you could share what you've made."})]})}),(0,d.jsxs)("section",{children:[(0,d.jsx)("h3",{className:"font-semibold text-lg mb-3",children:"Links & Community"}),(0,d.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,d.jsxs)("a",{href:"https://discord.gg/mAJ8Ss4u",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-sm text-blue-600 dark:text-blue-400 hover:underline",children:[(0,d.jsx)(l.E,{className:"h-4 w-4"}),"Discord Community",(0,d.jsx)(j.A,{className:"h-3 w-3"})]}),(0,d.jsxs)("a",{href:"https://github.com/o-stahl/osw-studio",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-sm text-blue-600 dark:text-blue-400 hover:underline",children:[(0,d.jsx)(k.A,{className:"h-4 w-4"}),"GitHub repo",(0,d.jsx)(j.A,{className:"h-3 w-3"})]}),(0,d.jsxs)("a",{href:"https://huggingface.co/spaces/otst/oswstudio",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-sm text-blue-600 dark:text-blue-400 hover:underline",children:[(0,d.jsxs)("svg",{fill:"currentColor",fillRule:"evenodd",height:"1em",style:{flex:"none",lineHeight:1},viewBox:"0 0 24 24",width:"1em",xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4",children:[(0,d.jsx)("title",{children:"HuggingFace"}),(0,d.jsx)("path",{d:"M16.781 3.277c2.997 1.704 4.844 4.851 4.844 8.258 0 .995-.155 1.955-.443 2.857a1.332 1.332 0 011.125.4 1.41 1.41 0 01.2 1.723c.204.165.352.385.428.632l.017.062c.06.222.12.69-.2 1.166.244.37.279.836.093 1.236-.255.57-.893 1.018-2.128 1.5l-.202.078-.131.048c-.478.173-.89.295-1.061.345l-.086.024c-.89.243-1.808.375-2.732.394-1.32 0-2.3-.36-2.923-1.067a9.852 9.852 0 01-3.18.018C9.778 21.647 8.802 22 7.494 22a11.249 11.249 0 01-2.541-.343l-.221-.06-.273-.08a16.574 16.574 0 01-1.175-.405c-1.237-.483-1.875-.93-2.13-1.501-.186-.4-.151-.867.093-1.236a1.42 1.42 0 01-.2-1.166c.069-.273.226-.516.447-.694a1.41 1.41 0 01.2-1.722c.233-.248.557-.391.917-.407l.078-.001a9.385 9.385 0 01-.44-2.85c0-3.407 1.847-6.554 4.844-8.258a9.822 9.822 0 019.687 0zM4.188 14.758c.125.687 2.357 2.35 2.14 2.707-.19.315-.796-.239-.948-.386l-.041-.04-.168-.147c-.561-.479-2.304-1.9-2.74-1.432-.43.46.119.859 1.055 1.42l.784.467.136.083c1.045.643 1.12.84.95 1.113-.188.295-3.07-2.1-3.34-1.083-.27 1.011 2.942 1.304 2.744 2.006-.2.7-2.265-1.324-2.685-.537-.425.79 2.913 1.718 2.94 1.725l.16.04.175.042c1.227.284 3.565.65 4.435-.604.673-.973.64-1.709-.248-2.61l-.057-.057c-.945-.928-1.495-2.288-1.495-2.288l-.017-.058-.025-.072c-.082-.22-.284-.639-.63-.584-.46.073-.798 1.21.12 1.933l.05.038c.977.721-.195 1.21-.573.534l-.058-.104-.143-.25c-.463-.799-1.282-2.111-1.739-2.397-.532-.332-.907-.148-.782.541zm14.842-.541c-.533.335-1.563 2.074-1.94 2.751a.613.613 0 01-.687.302.436.436 0 01-.176-.098.303.303 0 01-.049-.06l-.014-.028-.008-.02-.007-.019-.003-.013-.003-.017a.289.289 0 01-.004-.048c0-.12.071-.266.25-.427.026-.024.054-.047.084-.07l.047-.036c.022-.016.043-.032.063-.049.883-.71.573-1.81.131-1.917l-.031-.006-.056-.004a.368.368 0 00-.062.006l-.028.005-.042.014-.039.017-.028.015-.028.019-.036.027-.023.02c-.173.158-.273.428-.31.542l-.016.054s-.53 1.309-1.439 2.234l-.054.054c-.365.358-.596.69-.702 1.018-.143.437-.066.868.21 1.353.055.097.117.195.187.296.882 1.275 3.282.876 4.494.59l.286-.07.25-.074c.276-.084.736-.233 1.2-.42l.188-.077.065-.028.064-.028.124-.056.081-.038c.529-.252.964-.543.994-.827l.001-.036a.299.299 0 00-.037-.139c-.094-.176-.271-.212-.491-.168l-.045.01c-.044.01-.09.024-.136.04l-.097.035-.054.022c-.559.23-1.238.705-1.607.745h.006a.452.452 0 01-.05.003h-.024l-.024-.003-.023-.005c-.068-.016-.116-.06-.14-.142a.22.22 0 01-.005-.1c.062-.345.958-.595 1.713-.91l.066-.028c.528-.224.97-.483.985-.832v-.04a.47.47 0 00-.016-.098c-.048-.18-.175-.251-.36-.251-.785 0-2.55 1.36-2.92 1.36-.025 0-.048-.007-.058-.024a.6.6 0 01-.046-.088c-.1-.238.068-.462 1.06-1.066l.209-.126c.538-.32 1.01-.588 1.341-.831.29-.212.475-.406.503-.6l.003-.028c.008-.113-.038-.227-.147-.344a.266.266 0 00-.07-.054l-.034-.015-.013-.005a.403.403 0 00-.13-.02c-.162 0-.369.07-.595.18-.637.313-1.431.952-1.826 1.285l-.249.215-.033.033c-.08.078-.288.27-.493.386l-.071.037-.041.019a.535.535 0 01-.122.036h.005a.346.346 0 01-.031.003l.01-.001-.013.001c-.079.005-.145-.021-.19-.095a.113.113 0 01-.014-.065c.027-.465 2.034-1.991 2.152-2.642l.009-.048c.1-.65-.271-.817-.791-.493zM11.938 2.984c-4.798 0-8.688 3.829-8.688 8.55 0 .692.083 1.364.24 2.008l.008-.009c.252-.298.612-.46 1.017-.46.355.008.699.117.993.312.22.14.465.384.715.694.261-.372.69-.598 1.15-.605.852 0 1.367.728 1.562 1.383l.047.105.06.127c.192.396.595 1.139 1.143 1.68 1.06 1.04 1.324 2.115.8 3.266a8.865 8.865 0 002.024-.014c-.505-1.12-.26-2.17.74-3.186l.066-.066c.695-.684 1.157-1.69 1.252-1.912.195-.655.708-1.383 1.56-1.383.46.007.889.233 1.15.605.25-.31.495-.553.718-.694a1.87 1.87 0 01.99-.312c.357 0 .682.126.925.36.14-.61.215-1.245.215-1.898 0-4.722-3.89-8.55-8.687-8.55zm1.857 8.926l.439-.212c.553-.264.89-.383.89.152 0 1.093-.771 3.208-3.155 3.262h-.184c-2.325-.052-3.116-2.06-3.156-3.175l-.001-.087c0-1.107 1.452.586 3.25.586.716 0 1.379-.272 1.917-.526zm4.017-3.143c.45 0 .813.358.813.8 0 .441-.364.8-.813.8a.806.806 0 01-.812-.8c0-.442.364-.8.812-.8zm-11.624 0c.448 0 .812.358.812.8 0 .441-.364.8-.812.8a.806.806 0 01-.813-.8c0-.442.364-.8.813-.8zm7.79-.841c.32-.384.846-.54 1.33-.394.483.146.83.564.878 1.06.048.495-.212.97-.659 1.203-.322.168-.447-.477-.767-.585l.002-.003c-.287-.098-.772.362-.925.079a1.215 1.215 0 01.14-1.36zm-4.323 0c.322.384.377.92.14 1.36-.152.283-.64-.177-.925-.079l.003.003c-.108.036-.194.134-.273.24l-.118.165c-.11.15-.22.262-.377.18a1.226 1.226 0 01-.658-1.204c.048-.495.395-.913.878-1.059a1.262 1.262 0 011.33.394z"})]}),"Live Demo (HuggingFace)",(0,d.jsx)(j.A,{className:"h-3 w-3"})]}),(0,d.jsx)("a",{href:"https://www.buymeacoffee.com/otst",target:"_blank",rel:"noopener noreferrer",children:(0,d.jsx)("img",{src:"https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png",alt:"Buy Me A Coffee",style:{height:"30px",width:"109px"}})})]})]})]}),(0,d.jsxs)("div",{className:"flex justify-between items-center pt-4 border-t",children:[(0,d.jsxs)(i.E,{variant:"secondary",className:"text-xs",children:["v",process.env.NEXT_PUBLIC_APP_VERSION||e.rE]}),(0,d.jsx)(g.$,{onClick:()=>b(!1),children:"Close"})]})]})})}},46435:(a,b,c)=>{c.d(b,{OY:()=>j,dz:()=>k});var d=c(21124),e=c(38301),f=c(78092),g=c(26691),h=c(15514);let i=(0,g.F)("inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-3",sm:"h-8 px-2",lg:"h-10 px-3"}},defaultVariants:{variant:"default",size:"default"}}),j=e.forwardRef(({className:a,...b},c)=>(0,d.jsx)(f.bL,{ref:c,className:(0,h.cn)("inline-flex items-center justify-center gap-1 rounded-md bg-muted p-1",a),...b}));j.displayName=f.bL.displayName;let k=e.forwardRef(({className:a,variant:b,size:c,...e},g)=>(0,d.jsx)(f.q7,{ref:g,className:(0,h.cn)(i({variant:b,size:c}),a),...e}));k.displayName=f.q7.displayName},50485:(a,b,c)=>{c.d(b,{captureIframeScreenshot:()=>h,i:()=>f});var d=c(15215),e=c(15514);async function f(a,b=2e3,c=8e3){let d=a.defaultView,e=[new Promise(a=>setTimeout(a,b))];a.fonts?.ready&&e.push(a.fonts.ready.catch(()=>{})),a.querySelectorAll("img").forEach(a=>{a.complete||e.push(new Promise(b=>{a.addEventListener("load",()=>b(),{once:!0}),a.addEventListener("error",()=>b(),{once:!0})}))}),d&&e.push(new Promise(a=>{"requestIdleCallback"in d?d.requestIdleCallback(()=>a(),{timeout:500}):setTimeout(a,500)})),await Promise.race([Promise.all(e),new Promise(a=>setTimeout(a,c))])}async function g(a,b,c,f){let g;return f?(g=Math.max(a.body.scrollHeight,a.body.offsetHeight,a.documentElement.clientHeight,a.documentElement.scrollHeight,a.documentElement.offsetHeight),e.v.debug("[Screenshot] Full-page mode: document height =",g)):(g=c,e.v.debug("[Screenshot] Viewport-only mode: using height =",g)),e.v.debug("[Screenshot] Capture dimensions:",b,"x",g),Promise.race([(0,d.A)(a.body,{width:b,height:g,scale:1,useCORS:!0,allowTaint:!0,logging:!1,windowWidth:b,windowHeight:g,scrollX:0,scrollY:0,imageTimeout:3e3,backgroundColor:"#ffffff",removeContainer:!0,onclone:a=>{a.querySelectorAll('link[rel="stylesheet"]').forEach(a=>{let b=a.getAttribute("href");b&&(b.startsWith("http://")||b.startsWith("https://"))&&a.remove()});let b=a.querySelectorAll("*"),c=a.defaultView;c&&b.forEach(a=>{let b=c.getComputedStyle(a),d=b.backgroundImage;if(d&&(d.includes("gradient")||d.includes("linear-gradient")||d.includes("radial-gradient"))){let c=b.backgroundColor;a.style.backgroundImage="none",c&&"rgba(0, 0, 0, 0)"!==c&&"transparent"!==c?a.style.backgroundColor=c:a.style.backgroundColor="#64748b"}})}}),new Promise((a,b)=>setTimeout(()=>b(Error("html2canvas timeout after 4 seconds")),4e3))])}async function h(a,b=1280,c=720,d=640,i=360,j=.8,k=!0,l=!1,m=1500){try{let h,i=a.contentDocument||a.contentWindow?.document;if(!i||!i.body)return e.v.warn("Cannot access iframe document"),null;if(l)try{await f(i,m)}catch{await new Promise(a=>setTimeout(a,m))}try{h=await g(i,b,c,k)}catch(d){let a=String(d);if(a.includes("non-finite")||a.includes("addColorStop")||a.includes("CanvasGradient"))await new Promise(a=>setTimeout(a,500)),h=await g(i,b,c,k);else throw d}let n=h.height/h.width,o=Math.round(d*n),p=document.createElement("canvas");p.width=d,p.height=o;let q=p.getContext("2d");if(!q)return e.v.error("Failed to get canvas context"),null;q.drawImage(h,0,0,d,o);let r=p.toDataURL("image/jpeg",j),s=Math.ceil(3*r.length/4)/1024;if(s>250){e.v.warn(`Screenshot too large: ${s.toFixed(0)}KB, trying with lower quality`);let a=p.toDataURL("image/jpeg",.6),b=Math.ceil(3*a.length/4)/1024;return b>250&&e.v.warn(`Screenshot still too large: ${b.toFixed(0)}KB`),a}return r}catch(a){return e.v.error("Failed to capture screenshot:",a),null}}},62949:(a,b,c)=>{c.d(b,{Ke:()=>h,Nt:()=>f,R6:()=>g});var d=c(21124),e=c(59147);function f({...a}){return(0,d.jsx)(e.bL,{"data-slot":"collapsible",...a})}function g({...a}){return(0,d.jsx)(e.R6,{"data-slot":"collapsible-trigger",...a})}function h({...a}){return(0,d.jsx)(e.Ke,{"data-slot":"collapsible-content",...a})}},68877:(a,b,c)=>{c.d(b,{Xi:()=>j,av:()=>k,j7:()=>i,tU:()=>h});var d=c(21124),e=c(38301),f=c(89989),g=c(15514);let h=f.bL,i=e.forwardRef(({className:a,...b},c)=>(0,d.jsx)(f.B8,{ref:c,className:(0,g.cn)("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",a),...b}));i.displayName=f.B8.displayName;let j=e.forwardRef(({className:a,...b},c)=>(0,d.jsx)(f.l9,{ref:c,className:(0,g.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",a),...b}));j.displayName=f.l9.displayName;let k=e.forwardRef(({className:a,...b},c)=>(0,d.jsx)(f.UC,{ref:c,className:(0,g.cn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",a),...b}));k.displayName=f.UC.displayName},69188:(a,b,c)=>{c.d(b,{f:()=>bp});var d=c(21124),e=c(38301),f=c(42378),g=c(11482),h=c(2117),i=c(39193),j=c.n(i),k=c(15514);class l{async doInit(){if(this.adapter)return;let{vfs:a}=await Promise.resolve().then(c.bind(c,11482));await a.init(),this.adapter=a.getStorageAdapter()}async init(){return this.initPromise||(this.initPromise=this.doInit()),this.initPromise}getAdapter(){if(!this.adapter)throw Error("TemplateService not initialized. Call init() first.");return this.adapter}async exportProjectAsTemplate(a,b,c,d){try{let e;k.v.info("[TemplateService] Exporting project as template",{projectId:b,name:c.name}),this.validateMetadata(c);let f=await a.getAllFilesAndDirectories(b),g=f.filter(a=>"directory"!==a.type),h=f.filter(a=>"directory"===a.type).map(a=>a.path);if(d)try{let{SiteDatabase:a}=await import("./adapters/site-database"),b=new a(d),c=b.listFunctions().map(a=>({name:a.name,method:a.method,code:a.code,description:a.description,enabled:a.enabled,timeoutMs:a.timeoutMs})),f=b.listServerFunctions().map(a=>({name:a.name,code:a.code,description:a.description,enabled:a.enabled})),g=b.listSecrets().map(a=>({name:a.name,description:a.description})),h=b.getSchemaForExport();(c.length>0||f.length>0||g.length>0||h)&&(e={edgeFunctions:c.length>0?c:void 0,serverFunctions:f.length>0?f:void 0,secrets:g.length>0?g:void 0,databaseSchema:h||void 0})}catch{k.v.warn("[TemplateService] Could not extract site features - server modules not available")}let i={version:e?"2.0.0":"1.0.0",name:c.name,description:c.description,templateVersion:c.version,author:c.author,authorUrl:c.authorUrl,license:c.license,licenseLabel:c.licenseLabel,licenseDescription:c.licenseDescription,tags:c.tags||[],thumbnail:c.thumbnail,previewImages:c.previewImages||[],downloadUrl:c.downloadUrl,directories:h,files:g.map(a=>({path:a.path,content:a.content})),assets:[],templateType:e?"site":"project",siteFeatures:e},l=new(j());l.file("template.json",JSON.stringify(i,null,2));let m=await l.generateAsync({type:"blob",compression:"DEFLATE",compressionOptions:{level:6}});return k.v.info("[TemplateService] Template exported successfully",{name:c.name,size:m.size}),m}catch(a){throw k.v.error("[TemplateService] Failed to export template:",a),Error(`Failed to export template: ${a instanceof Error?a.message:"Unknown error"}`)}}async importTemplateFile(a){try{if(k.v.info("[TemplateService] Importing template file",{name:a.name,size:a.size}),!a.name.endsWith(".oswt"))throw Error("Invalid file type. Expected .oswt file.");if(a.size>0x1900000)throw Error(`File too large. Maximum size is ${Math.round(25)}MB.`);let b=new(j()),c=(await b.loadAsync(a)).file("template.json");if(!c)throw Error("Invalid template file format. Missing template.json.");let d=await c.async("string"),e=JSON.parse(d);this.validateTemplateStructure(e);let f={id:(0,h.A)(),name:e.name,description:e.description,version:e.templateVersion||"1.0.0",files:e.files||[],directories:e.directories||[],assets:e.assets,metadata:{author:e.author,authorUrl:e.authorUrl,license:e.license||"personal",licenseLabel:e.licenseLabel,licenseDescription:e.licenseDescription,tags:e.tags||[],thumbnail:e.thumbnail,previewImages:e.previewImages||[],downloadUrl:e.downloadUrl},importedAt:new Date,templateType:e.templateType||"project",siteFeatures:e.siteFeatures};return await this.init(),await this.getAdapter().saveCustomTemplate(f),k.v.info("[TemplateService] Template imported successfully",{id:f.id,name:f.name}),f}catch(a){throw k.v.error("[TemplateService] Failed to import template:",a),Error(`Failed to import template: ${a instanceof Error?a.message:"Unknown error"}`)}}async listCustomTemplates(){try{return await this.init(),(await this.getAdapter().getAllCustomTemplates()).sort((a,b)=>b.importedAt.getTime()-a.importedAt.getTime())}catch(a){throw k.v.error("[TemplateService] Failed to list templates:",a),Error("Failed to list templates")}}async deleteCustomTemplate(a){try{await this.init(),await this.getAdapter().deleteCustomTemplate(a),k.v.info("[TemplateService] Template deleted",{id:a})}catch(a){throw k.v.error("[TemplateService] Failed to delete template:",a),Error("Failed to delete template")}}async exportTemplateAsFile(a){try{k.v.info("[TemplateService] Re-exporting custom template",{id:a.id,name:a.name});let b=new(j());for(let c of(b.file("template.json",JSON.stringify(a,null,2)),a.files))c.content,b.file(c.path,c.content);return await b.generateAsync({type:"blob"})}catch(a){throw k.v.error("[TemplateService] Failed to re-export template:",a),Error(`Failed to export template: ${a instanceof Error?a.message:"Unknown error"}`)}}validateMetadata(a){if(!a.name||a.name.length<1||a.name.length>50)throw Error("Template name must be between 1 and 50 characters");if(!a.description||a.description.length<10||a.description.length>500)throw Error("Template description must be between 10 and 500 characters");if(!a.version||!/^\d+\.\d+\.\d+$/.test(a.version))throw Error("Template version must be in semantic version format (e.g., 1.0.0)");if(a.author&&a.author.length>50)throw Error("Author name must be 50 characters or less");if(a.authorUrl&&!this.isValidUrl(a.authorUrl))throw Error("Author URL must be a valid URL");if(!a.license)throw Error("License is required");if(a.tags&&a.tags.length>10)throw Error("Maximum 10 tags allowed");if(a.thumbnail&&a.thumbnail.length>512e3)throw Error(`Thumbnail too large. Maximum size is ${Math.round(500)}KB`);if(a.previewImages&&a.previewImages.length>5)throw Error("Maximum 5 preview images allowed");if(a.previewImages){for(let b of a.previewImages)if(b.length>1048576)throw Error(`Preview image too large. Maximum size is ${Math.round(1024)}KB per image`)}}validateTemplateStructure(a){if(!a.name||"string"!=typeof a.name)throw Error("Invalid template: missing or invalid name");if(!a.description||"string"!=typeof a.description)throw Error("Invalid template: missing or invalid description");if(!a.files||!Array.isArray(a.files))throw Error("Invalid template: missing or invalid files array");if(!a.directories||!Array.isArray(a.directories))throw Error("Invalid template: missing or invalid directories array");for(let b of a.files){if(!b.path||"string"!=typeof b.path)throw Error("Invalid template: file missing path");if(void 0===b.content)throw Error("Invalid template: file missing content")}if(a.siteFeatures){if("object"!=typeof a.siteFeatures)throw Error("Invalid template: siteFeatures must be an object");if(a.siteFeatures.edgeFunctions&&!Array.isArray(a.siteFeatures.edgeFunctions))throw Error("Invalid template: siteFeatures.edgeFunctions must be an array");if(a.siteFeatures.serverFunctions&&!Array.isArray(a.siteFeatures.serverFunctions))throw Error("Invalid template: siteFeatures.serverFunctions must be an array");if(a.siteFeatures.secrets&&!Array.isArray(a.siteFeatures.secrets))throw Error("Invalid template: siteFeatures.secrets must be an array")}}isValidUrl(a){try{return new URL(a),!0}catch{return!1}}constructor(){this.adapter=null,this.initPromise=null}}let m=new l;var n=c(19217),o=c(7629),p=c(33847),q=c(88205),r=c(3663),s=c(46148),t=c(71613),u=c(47089),v=c(84122),w=c(15350),x=c(66041),y=c(32717),z=c(34941),A=c(3368),B=c(10708),C=c(70045),D=c(49269),E=c(91351),F=c(40284),G=c(14263),H=c(36734),I=c(27928);async function J(a){let b=await createImageBitmap(a),c=b.width,d=b.height;if(c>640||d>360){let a=Math.min(640/c,360/d);c=Math.round(c*a),d=Math.round(d*a)}let e=document.createElement("canvas");e.width=c,e.height=d;let f=e.getContext("2d");if(!f)throw Error("Failed to get canvas context");f.drawImage(b,0,0,c,d),b.close();let g=e.toDataURL("image/jpeg",.7);return g.length>137e3&&(g=e.toDataURL("image/jpeg",.5)),g}function K({image:a,onCapture:b,onImageChange:c,size:f="md",className:g}){let h=(0,e.useRef)(null),[i,j]=(0,e.useState)(!1),l=async a=>{let b=a.target.files?.[0];if(b){try{let a=await J(b);c(a)}catch{}a.target.value=""}},m=async a=>{if(a.stopPropagation(),b){j(!0);try{let a=await b();a&&c(a)}finally{j(!1)}}},n=a=>{a.stopPropagation(),h.current?.click()},o="sm"===f,p=a=>a.stopPropagation();return a?(0,d.jsxs)("div",{className:(0,k.cn)("relative group",g),onClick:p,children:[o?(0,d.jsx)("div",{className:"w-16 h-12 rounded-md overflow-hidden bg-muted shrink-0",children:(0,d.jsx)("img",{src:a,alt:"Thumbnail",className:"w-full h-full object-cover"})}):(0,d.jsx)("div",{className:"w-full aspect-video bg-muted",children:(0,d.jsx)("img",{src:a,alt:"Thumbnail",className:"w-full h-full object-cover"})}),(0,d.jsx)("button",{type:"button",onClick:a=>{a.stopPropagation(),c(void 0)},className:(0,k.cn)("absolute flex items-center justify-center bg-background/80 text-foreground opacity-0 group-hover:opacity-100 transition-opacity border border-border shadow-sm",o?"h-5 w-5 rounded":"h-7 w-7 rounded-md",o?"top-0 right-0 -translate-y-1/3 translate-x-1/3":"top-1.5 right-1.5"),title:"Remove thumbnail",children:(0,d.jsx)(u.A,{className:o?"h-3 w-3":"h-3.5 w-3.5"})})]}):(0,d.jsxs)("div",{className:(0,k.cn)("relative",g),onClick:p,children:[o?(0,d.jsxs)("div",{className:"w-16 h-12 rounded-md bg-muted flex items-center justify-center gap-1 shrink-0",children:[b&&(0,d.jsx)("button",{type:"button",onClick:m,disabled:i,className:"h-6 w-6 rounded flex items-center justify-center text-muted-foreground hover:text-foreground hover:bg-muted-foreground/15 transition-colors",title:"Capture",children:i?(0,d.jsx)(G.A,{className:"h-3 w-3 animate-spin"}):(0,d.jsx)(H.A,{className:"h-3 w-3"})}),(0,d.jsx)("button",{type:"button",onClick:n,className:"h-6 w-6 rounded flex items-center justify-center text-muted-foreground hover:text-foreground hover:bg-muted-foreground/15 transition-colors",title:"Upload image",children:(0,d.jsx)(I.A,{className:"h-3 w-3"})})]}):(0,d.jsxs)("div",{className:"w-full aspect-video bg-muted flex items-center justify-center gap-3",children:[b&&(0,d.jsx)("button",{type:"button",onClick:m,disabled:i,className:"h-9 w-9 rounded-lg flex items-center justify-center border border-border/60 bg-background/50 text-muted-foreground hover:text-foreground hover:bg-background/80 transition-colors shadow-sm",title:"Capture screenshot",children:i?(0,d.jsx)(G.A,{className:"h-4 w-4 animate-spin"}):(0,d.jsx)(H.A,{className:"h-4 w-4"})}),(0,d.jsx)("button",{type:"button",onClick:n,className:"h-9 w-9 rounded-lg flex items-center justify-center border border-border/60 bg-background/50 text-muted-foreground hover:text-foreground hover:bg-background/80 transition-colors shadow-sm",title:"Upload image",children:(0,d.jsx)(I.A,{className:"h-4 w-4"})})]}),(0,d.jsx)("input",{ref:h,type:"file",accept:"image/*",className:"hidden",onChange:l})]})}var L=c(13531),M=c(50485);async function N(a){let b;await g.vfs.init();let c=new L.B(g.vfs,a);try{b=await c.compileProject()}catch{return c.cleanupBlobUrls(),null}let d=b.files.find(a=>"/index.html"===a.path);if(!d)return c.cleanupBlobUrls(),null;let e="string"==typeof d.content?d.content:new TextDecoder().decode(d.content);e=(e=(e=e.replace(/href="([^"]+\.css)"/g,(a,c)=>{if(c.startsWith("http")||c.startsWith("//"))return a;let d=c.startsWith("/")?c:"/"+c,e=b.blobUrls.get(d);return e?`href="${e}"`:a})).replace(/src="([^"]+\.js)"/g,(a,c)=>{if(c.startsWith("http")||c.startsWith("//"))return a;let d=c.startsWith("/")?c:"/"+c,e=b.blobUrls.get(d);return e?`src="${e}"`:a})).replace(/src="([^"]+\.(png|jpg|jpeg|gif|svg|webp))"/gi,(a,c)=>{let d=c.startsWith("/")?c:"/"+c,e=b.blobUrls.get(d);return e?`src="${e}"`:a});let f=document.createElement("iframe");f.style.position="fixed",f.style.top="-10000px",f.style.left="-10000px",f.style.width="1280px",f.style.height="720px",f.style.border="none",document.body.appendChild(f);try{return await new Promise(a=>{f.onload=()=>a(),f.srcdoc=e}),await new Promise(a=>setTimeout(a,1500)),await (0,M.captureIframeScreenshot)(f,1280,720,640,360,.8,!1)}finally{f.parentElement&&document.body.removeChild(f),c.cleanupBlobUrls()}}var O=c(51855),P=c(66848);function Q({...a}){return(0,d.jsx)(P.bL,{"data-slot":"dropdown-menu",...a})}function R({...a}){return(0,d.jsx)(P.l9,{"data-slot":"dropdown-menu-trigger",...a})}function S({className:a,sideOffset:b=4,...c}){return(0,d.jsx)(P.ZL,{children:(0,d.jsx)(P.UC,{"data-slot":"dropdown-menu-content",sideOffset:b,className:(0,k.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-[100] max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-lg",a),...c})})}function T({className:a,inset:b,variant:c="default",...e}){return(0,d.jsx)(P.q7,{"data-slot":"dropdown-menu-item","data-inset":b,"data-variant":c,className:(0,k.cn)("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",a),...e})}function U({className:a,...b}){return(0,d.jsx)(P.wv,{"data-slot":"dropdown-menu-separator",className:(0,k.cn)("bg-border -mx-1 my-1 h-px",a),...b})}var V=c(42830);function W({project:a,onSelect:b,onDelete:c,onExport:f,onExportZip:h,onDuplicate:i,onPreview:j,onUpdate:l,onExportAsTemplate:m,viewMode:G="grid",forceMenuOpen:H=!1,highlightExport:I=!1}){let[J,L]=(0,e.useState)(!1),[M,P]=(0,e.useState)(a.name),[W,X]=(0,e.useState)(a.description||""),[Y,Z]=(0,e.useState)(null),[$,_]=(0,e.useState)(!0),[aa,ab]=(0,e.useState)(!1),ac=async()=>{if(!M.trim()){V.oR.error("Project name cannot be empty"),P(a.name),L(!1);return}if(M.length>50)return void V.oR.error("Project name must be 50 characters or less");if(W.length>200)return void V.oR.error("Description must be 200 characters or less");try{a.name=M.trim(),a.description=W.trim()||void 0,await g.vfs.updateProject(a),l(a),L(!1),V.oR.success("Project updated")}catch(b){k.v.error("Failed to update project:",b),V.oR.error("Failed to update project"),P(a.name),X(a.description||"")}},ad=()=>{P(a.name),X(a.description||""),L(!1)},ae=a=>{if(H)return void ab(!0);ab(a)},af=()=>Y?Object.entries(Y.fileTypes).sort(([,a],[,b])=>b-a).slice(0,3):[],ag=a=>{let b=a.toLowerCase();return["html","htm"].includes(b)?(0,d.jsx)(q.A,{className:"h-3 w-3"}):["css","scss","sass"].includes(b)?(0,d.jsx)(r.A,{className:"h-3 w-3"}):["js","jsx","ts","tsx"].includes(b)?(0,d.jsx)(q.A,{className:"h-3 w-3"}):["png","jpg","jpeg","gif","svg"].includes(b)?(0,d.jsx)(s.A,{className:"h-3 w-3"}):(0,d.jsx)(r.A,{className:"h-3 w-3"})},ah=a=>a&&0!==a?`$${a.toFixed(2)}`:null;return"list"===G?(0,d.jsx)("div",{className:`group border border-border rounded-lg p-4 hover:shadow-md transition-all cursor-pointer hover:border-primary/50 ${I?"ring-2 ring-primary/70 animate-ring-opacity":""}`,style:{background:"linear-gradient(var(--project-card-tint), var(--project-card-tint)), var(--card)"},onClick:()=>b(a),children:(0,d.jsxs)("div",{className:"flex items-start gap-4",children:[(0,d.jsx)(K,{image:a.previewImage,onCapture:()=>N(a.id),onImageChange:b=>l({...a,previewImage:b,previewUpdatedAt:b?new Date:void 0}),size:"sm"}),(0,d.jsxs)("div",{className:"flex-1 min-w-0 flex flex-col md:flex-row md:gap-6",children:[(0,d.jsx)("div",{className:"flex-1 min-w-0 space-y-1",children:J?(0,d.jsxs)("div",{className:"space-y-2",onClick:a=>a.stopPropagation(),children:[(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(o.p,{value:M,onChange:a=>P(a.target.value),onKeyDown:a=>{"Enter"!==a.key||a.shiftKey||(a.preventDefault(),ac()),"Escape"===a.key&&ad()},className:"h-7 text-sm font-semibold",autoFocus:!0,maxLength:50,placeholder:"Project name"}),(0,d.jsx)(n.$,{size:"icon",variant:"ghost",className:"h-6 w-6 shrink-0",onClick:ac,children:(0,d.jsx)(t.A,{className:"h-3 w-3"})}),(0,d.jsx)(n.$,{size:"icon",variant:"ghost",className:"h-6 w-6 shrink-0",onClick:ad,children:(0,d.jsx)(u.A,{className:"h-3 w-3"})})]}),(0,d.jsxs)("span",{className:"text-xs text-muted-foreground",children:[M.length,"/50"]})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)(p.T,{value:W,onChange:a=>X(a.target.value),onKeyDown:a=>{"Escape"===a.key&&ad()},placeholder:"Add a description...",className:"min-h-[60px] text-sm resize-none",maxLength:200}),(0,d.jsxs)("span",{className:"text-xs text-muted-foreground",children:[W.length,"/200"]})]})]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("h3",{className:"font-semibold truncate",children:a.name}),(0,d.jsx)(n.$,{size:"icon",variant:"ghost",className:"h-5 w-5 opacity-0 group-hover:opacity-100 transition-opacity",onClick:a=>{a.stopPropagation(),L(!0)},children:(0,d.jsx)(v.A,{className:"h-3 w-3"})})]}),a.description&&(0,d.jsx)("p",{className:"text-sm text-muted-foreground line-clamp-1",children:a.description}),(0,d.jsxs)("p",{className:"text-xs text-muted-foreground",children:["Updated ",(0,O.m)(a.updatedAt,{addSuffix:!0})]})]})}),(0,d.jsxs)("div",{className:"space-y-2 mt-2 md:mt-0",children:[Y&&(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1 text-sm text-muted-foreground",children:[(0,d.jsxs)("span",{className:"flex items-center gap-1",children:[(0,d.jsx)(w.A,{className:"h-4 w-4"}),Y.fileCount," ",1===Y.fileCount?"file":"files"]}),(0,d.jsxs)("span",{className:"flex items-center gap-1",children:[(0,d.jsx)(x.A,{className:"h-4 w-4"}),Y.formattedSize]}),a.costTracking?.totalCost&&a.costTracking.totalCost>0&&(0,d.jsxs)("span",{className:"flex items-center gap-1",children:[(0,d.jsx)(y.A,{className:"h-4 w-4"}),ah(a.costTracking.totalCost)]})]}),Y&&af().length>0&&(0,d.jsx)("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1 text-xs",children:af().map(([a,b])=>(0,d.jsxs)("div",{className:"flex items-center gap-1 text-muted-foreground",children:[ag(a),(0,d.jsxs)("span",{children:[a.toUpperCase()," (",b,")"]})]},a))})]})]}),(0,d.jsx)("div",{className:"flex items-center gap-2 ml-4",children:(0,d.jsxs)(Q,{open:!!H||aa,onOpenChange:ae,children:[(0,d.jsx)(R,{asChild:!0,onClick:a=>a.stopPropagation(),"data-tour-id":I?"project-actions-trigger":void 0,children:(0,d.jsx)(n.$,{size:"icon",variant:"ghost",className:"h-8 w-8",children:(0,d.jsx)(z.A,{className:"h-4 w-4"})})}),(0,d.jsxs)(S,{align:"end",children:[(0,d.jsxs)(T,{onClick:b=>{b.stopPropagation(),j(a)},children:[(0,d.jsx)(A.A,{className:"mr-2 h-4 w-4"}),"Preview"]}),(0,d.jsxs)(T,{onClick:b=>{b.stopPropagation(),i(a)},children:[(0,d.jsx)(B.A,{className:"mr-2 h-4 w-4"}),"Duplicate"]}),(0,d.jsx)(U,{}),(0,d.jsxs)(T,{onClick:b=>{b.stopPropagation(),h(a)},children:[(0,d.jsx)(C.A,{className:"mr-2 h-4 w-4"}),"Export as ZIP"]}),(0,d.jsxs)(T,{onClick:b=>{b.stopPropagation(),f(a)},"data-tour-id":I?"project-export-json":void 0,children:[(0,d.jsx)(D.A,{className:"mr-2 h-4 w-4"}),"Export as JSON"]}),m&&(0,d.jsxs)(T,{onClick:b=>{b.stopPropagation(),m(a)},children:[(0,d.jsx)(E.A,{className:"mr-2 h-4 w-4"}),"Export as Template"]}),(0,d.jsx)(U,{}),(0,d.jsxs)(T,{className:"text-destructive",onClick:b=>{b.stopPropagation(),c(a)},children:[(0,d.jsx)(F.A,{className:"mr-2 h-4 w-4"}),"Delete"]})]})]})})]})}):(0,d.jsxs)("div",{className:`border border-border rounded-lg overflow-hidden hover:shadow-lg transition-all cursor-pointer hover:border-primary/50 group ${I?"ring-2 ring-primary/70 animate-ring-opacity":""}`,style:{background:"linear-gradient(var(--project-card-tint), var(--project-card-tint)), var(--card)"},onClick:()=>b(a),"data-tour-id":"project-card",children:[(0,d.jsx)(K,{image:a.previewImage,onCapture:()=>N(a.id),onImageChange:b=>l({...a,previewImage:b,previewUpdatedAt:b?new Date:void 0}),size:"md"}),(0,d.jsxs)("div",{className:"p-4 space-y-3",children:[(0,d.jsxs)("div",{className:"flex justify-between items-start",children:[J?(0,d.jsxs)("div",{className:"flex-1",onClick:a=>a.stopPropagation(),children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(o.p,{value:M,onChange:a=>P(a.target.value),onKeyDown:a=>{"Enter"===a.key&&!1===a.shiftKey&&(a.preventDefault(),ac()),"Escape"===a.key&&ad()},className:"h-8 text-sm font-semibold",autoFocus:!0,maxLength:50}),(0,d.jsx)(n.$,{size:"icon",variant:"ghost",className:"h-5 w-5",onClick:ac,children:(0,d.jsx)(t.A,{className:"h-3 w-3"})}),(0,d.jsx)(n.$,{size:"icon",variant:"ghost",className:"h-5 w-5",onClick:ad,children:(0,d.jsx)(u.A,{className:"h-3 w-3"})})]}),(0,d.jsxs)("span",{className:"text-xs text-muted-foreground mt-1",children:[M.length,"/50"]})]}):(0,d.jsxs)("div",{className:"flex items-center gap-2 flex-1",children:[(0,d.jsx)("h3",{className:"font-semibold text-lg truncate flex-1",children:a.name}),(0,d.jsx)(n.$,{size:"icon",variant:"ghost",className:"h-5 w-5 opacity-0 group-hover:opacity-100 transition-opacity",onClick:a=>{a.stopPropagation(),L(!0)},children:(0,d.jsx)(v.A,{className:"h-3 w-3"})})]}),(0,d.jsxs)(Q,{open:!!H||aa,onOpenChange:ae,children:[(0,d.jsx)(R,{asChild:!0,onClick:a=>a.stopPropagation(),"data-tour-id":I?"project-actions-trigger":void 0,children:(0,d.jsx)(n.$,{size:"icon",variant:"ghost",className:"h-8 w-8",children:(0,d.jsx)(z.A,{className:"h-4 w-4"})})}),(0,d.jsxs)(S,{align:"end",children:[(0,d.jsxs)(T,{onClick:b=>{b.stopPropagation(),j(a)},children:[(0,d.jsx)(A.A,{className:"mr-2 h-4 w-4"}),"Preview"]}),(0,d.jsxs)(T,{onClick:b=>{b.stopPropagation(),i(a)},children:[(0,d.jsx)(B.A,{className:"mr-2 h-4 w-4"}),"Duplicate"]}),(0,d.jsx)(U,{}),(0,d.jsxs)(T,{onClick:b=>{b.stopPropagation(),h(a)},children:[(0,d.jsx)(C.A,{className:"mr-2 h-4 w-4"}),"Export as ZIP"]}),(0,d.jsxs)(T,{onClick:b=>{b.stopPropagation(),f(a)},"data-tour-id":I?"project-export-json":void 0,children:[(0,d.jsx)(D.A,{className:"mr-2 h-4 w-4"}),"Export as JSON"]}),m&&(0,d.jsxs)(T,{onClick:b=>{b.stopPropagation(),m(a)},children:[(0,d.jsx)(E.A,{className:"mr-2 h-4 w-4"}),"Export as Template"]}),(0,d.jsx)(U,{}),(0,d.jsxs)(T,{className:"text-destructive",onClick:b=>{b.stopPropagation(),c(a)},children:[(0,d.jsx)(F.A,{className:"mr-2 h-4 w-4"}),"Delete"]})]})]})]}),J?(0,d.jsxs)("div",{onClick:a=>a.stopPropagation(),children:[(0,d.jsx)(p.T,{value:W,onChange:a=>X(a.target.value),onKeyDown:a=>{"Escape"===a.key&&ad()},placeholder:"Add a description...",className:"min-h-[60px] text-sm resize-none",maxLength:200}),(0,d.jsx)("div",{className:"flex items-center justify-between mt-1",children:(0,d.jsxs)("span",{className:"text-xs text-muted-foreground",children:[W.length,"/200"]})})]}):(0,d.jsx)("div",{className:"min-h-[40px]",children:a.description?(0,d.jsx)("p",{className:"text-sm text-muted-foreground line-clamp-2",children:a.description}):(0,d.jsx)("p",{className:"text-sm text-muted-foreground/50 italic",children:"No description"})}),$?(0,d.jsx)("div",{className:"h-6 bg-muted animate-pulse rounded"}):Y&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"flex items-center gap-3 text-sm text-muted-foreground pt-2 border-t",children:[(0,d.jsxs)("span",{className:"flex items-center gap-1",children:[(0,d.jsx)(w.A,{className:"h-4 w-4"}),Y.fileCount," ",1===Y.fileCount?"file":"files"]}),(0,d.jsxs)("span",{className:"flex items-center gap-1",children:[(0,d.jsx)(x.A,{className:"h-4 w-4"}),Y.formattedSize]}),a.costTracking?.totalCost&&a.costTracking.totalCost>0&&(0,d.jsxs)("span",{className:"flex items-center gap-1",children:[(0,d.jsx)(y.A,{className:"h-4 w-4"}),ah(a.costTracking.totalCost)]})]}),af().length>0&&(0,d.jsx)("div",{className:"flex items-center gap-3 text-xs",children:af().map(([a,b])=>(0,d.jsxs)("div",{className:"flex items-center gap-1 text-muted-foreground",children:[ag(a),(0,d.jsxs)("span",{children:[a," (",b,")"]})]},a))})]}),(0,d.jsx)("div",{className:"text-xs text-muted-foreground pt-2 border-t",children:(0,d.jsxs)("p",{children:["Updated ",(0,O.m)(a.updatedAt,{addSuffix:!0})]})})]})]})}var X=c(9284),Y=c(45914),Z=c(88285),$=c(86773),_=c(82548),aa=c(55705),ab=c(8849),ac=c(43700),ad=c(71117),ae=c(91044),af=c(97950),ag=c(33305),ah=c(53199),ai=c(69374),aj=c(28241),ak=c(61010),al=c(95919),am=c(14258);c(47247);var an=c(96352);function ao({project:a,open:b,onOpenChange:c,siteId:f}){let[h,i]=(0,e.useState)(!1),[j,l]=(0,e.useState)({name:a?.name||"",description:a?.description||"",version:"1.0.0",author:"",authorUrl:"",license:"personal",tags:[],thumbnail:void 0,previewImages:[],downloadUrl:""}),[q,r]=(0,e.useState)(""),s=async()=>{if(a){if(!j.name||j.name.length<1||j.name.length>50)return void V.oR.error("Template name must be between 1 and 50 characters");if(!j.description||j.description.length<10||j.description.length>500)return void V.oR.error("Description must be between 10 and 500 characters");if(!j.version||!/^\d+\.\d+\.\d+$/.test(j.version))return void V.oR.error("Version must be in format x.y.z (e.g., 1.0.0)");try{i(!0);let b=q.split(",").map(a=>a.trim()).filter(a=>a.length>0),d={...j,tags:b},e=await m.exportProjectAsTemplate(g.vfs,a.id,d,f),h=URL.createObjectURL(e),k=document.createElement("a");k.href=h,k.download=`${j.name.replace(/\s+/g,"-").toLowerCase()}.oswt`,document.body.appendChild(k),k.click(),document.body.removeChild(k),URL.revokeObjectURL(h),V.oR.success("Template exported successfully!"),c(!1),l({name:"",description:"",version:"1.0.0",author:"",authorUrl:"",license:"personal",tags:[],thumbnail:void 0,previewImages:[],downloadUrl:""}),r("")}catch(a){k.v.error("Failed to export template:",a),V.oR.error(a instanceof Error?a.message:"Failed to export template")}finally{i(!1)}}},t=an.N2.find(a=>a.value===j.license);return(0,d.jsx)(ag.lG,{open:b,onOpenChange:c,children:(0,d.jsxs)(ag.Cf,{className:"max-w-2xl max-h-[90vh] overflow-y-auto",children:[(0,d.jsxs)(ag.c7,{children:[(0,d.jsx)(ag.L3,{children:"Export as Template"}),(0,d.jsx)(ag.rr,{children:"Create a reusable template from this project"})]}),(0,d.jsxs)("div",{className:"space-y-4 py-4",children:[j.thumbnail&&(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)(ah.J,{children:"Preview Thumbnail"}),(0,d.jsx)("div",{className:"w-full rounded-lg overflow-hidden bg-muted border",children:(0,d.jsx)("img",{src:j.thumbnail,alt:"Template preview",className:"w-full h-auto"})}),(0,d.jsx)("p",{className:"text-xs text-muted-foreground",children:"This preview was captured when you saved the project"})]}),!j.thumbnail&&(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)(ah.J,{children:"Preview Thumbnail"}),(0,d.jsx)("div",{className:"w-full h-48 rounded-lg bg-muted flex items-center justify-center border",children:(0,d.jsxs)("div",{className:"text-center text-muted-foreground",children:[(0,d.jsx)(E.A,{className:"h-12 w-12 mx-auto mb-2"}),(0,d.jsx)("p",{className:"text-sm",children:"No preview available"}),(0,d.jsx)("p",{className:"text-xs",children:"Save your project to capture a preview"})]})})]}),(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsxs)("div",{className:"flex justify-between items-center",children:[(0,d.jsxs)(ah.J,{htmlFor:"template-name",children:["Template Name ",(0,d.jsx)("span",{className:"text-destructive",children:"*"})]}),(0,d.jsxs)("span",{className:"text-xs text-muted-foreground",children:[j.name.length,"/50"]})]}),(0,d.jsx)(o.p,{id:"template-name",value:j.name,onChange:a=>l({...j,name:a.target.value.slice(0,50)}),placeholder:"My Awesome Template",maxLength:50,required:!0})]}),(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsxs)("div",{className:"flex justify-between items-center",children:[(0,d.jsxs)(ah.J,{htmlFor:"template-description",children:["Description ",(0,d.jsx)("span",{className:"text-destructive",children:"*"})]}),(0,d.jsxs)("span",{className:"text-xs text-muted-foreground",children:[j.description.length,"/500"]})]}),(0,d.jsx)(p.T,{id:"template-description",value:j.description,onChange:a=>l({...j,description:a.target.value.slice(0,500)}),placeholder:"A complete multi-page template with...",className:"resize-none",rows:3,maxLength:500,required:!0})]}),(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsxs)(ah.J,{htmlFor:"template-version",children:["Version ",(0,d.jsx)("span",{className:"text-destructive",children:"*"})]}),(0,d.jsx)(o.p,{id:"template-version",value:j.version,onChange:a=>l({...j,version:a.target.value}),placeholder:"1.0.0",pattern:"^\\d+\\.\\d+\\.\\d+$",required:!0}),(0,d.jsx)("p",{className:"text-xs text-muted-foreground",children:"Semantic version format (e.g., 1.0.0)"})]}),(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)(ah.J,{htmlFor:"template-author",children:"Author"}),(0,d.jsx)(o.p,{id:"template-author",value:j.author,onChange:a=>l({...j,author:a.target.value.slice(0,50)}),placeholder:"Your Name",maxLength:50})]}),(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)(ah.J,{htmlFor:"template-author-url",children:"Author URL"}),(0,d.jsx)(o.p,{id:"template-author-url",type:"url",value:j.authorUrl,onChange:a=>l({...j,authorUrl:a.target.value}),placeholder:"https://yourwebsite.com"})]}),(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsxs)(ah.J,{htmlFor:"template-license",children:["License ",(0,d.jsx)("span",{className:"text-destructive",children:"*"})]}),(0,d.jsxs)(aj.l6,{value:j.license,onValueChange:a=>l({...j,license:a}),children:[(0,d.jsx)(aj.bq,{id:"template-license",children:(0,d.jsx)(aj.yv,{})}),(0,d.jsx)(aj.gC,{children:an.N2.map(a=>(0,d.jsx)(aj.eb,{value:a.value,children:a.label},a.value))})]}),t&&(0,d.jsxs)("div",{className:"flex items-start gap-2 p-2 rounded-md bg-muted text-xs",children:[(0,d.jsx)(ad.A,{className:"h-3 w-3 mt-0.5 shrink-0 text-muted-foreground"}),(0,d.jsx)("p",{className:"text-muted-foreground",children:t.description})]})]}),(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)(ah.J,{htmlFor:"template-tags",children:"Tags"}),(0,d.jsx)(o.p,{id:"template-tags",value:q,onChange:a=>r(a.target.value),placeholder:"saas, marketing, landing (comma-separated)"}),(0,d.jsx)("p",{className:"text-xs text-muted-foreground",children:"Add up to 10 tags, separated by commas"})]}),(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)(ah.J,{htmlFor:"template-download-url",children:"Marketplace URL"}),(0,d.jsx)(o.p,{id:"template-download-url",type:"url",value:j.downloadUrl,onChange:a=>l({...j,downloadUrl:a.target.value}),placeholder:"https://example.com/templates/..."}),(0,d.jsx)("p",{className:"text-xs text-muted-foreground",children:"Where users can find this template"})]})]}),(0,d.jsxs)(ag.Es,{children:[(0,d.jsx)(n.$,{variant:"outline",onClick:()=>c(!1),disabled:h,children:"Cancel"}),(0,d.jsx)(n.$,{onClick:s,disabled:h,children:h?"Exporting...":"Export Template"})]})]})})}function ap({onProjectSelect:a,hideHeader:b=!1,hideFooter:c=!1}){let h=(0,f.useRouter)(),[i,j]=(0,e.useState)([]),[l,q]=(0,e.useState)(!0),[r,s]=(0,e.useState)(""),[t,u]=(0,e.useState)(!1),[v,x]=(0,e.useState)(""),[y,z]=(0,e.useState)(""),[A,B]=(0,e.useState)("blank"),[C,D]=(0,e.useState)([]),[E,F]=(0,e.useState)("updated"),[G,H]=(0,e.useState)("list"),[I,J]=(0,e.useState)(null),[K,L]=(0,e.useState)(!1),[M,N]=(0,e.useState)(null),{state:O,setProjectList:P,start:Q,setTourDemoProjectId:R}=(0,al.C)(),S=O.currentStep?.id,T="running"===O.status,[U,an]=(0,e.useState)(!1),[ap,aq]=(0,e.useState)(null),ar=(0,e.useRef)(!1),as=(0,e.useRef)(!1),at=(0,e.useCallback)(async()=>{try{let a=await m.listCustomTemplates();D(a)}catch(a){k.v.error("Failed to load custom templates:",a)}},[]);(0,e.useCallback)(async()=>{if(!ar.current){ar.current=!0,q(!0);try{await g.vfs.init();let a=(await g.vfs.listProjects()).sort((a,b)=>b.updatedAt.getTime()-a.updatedAt.getTime());j(a),P(a),await at()}catch(a){k.v.error("Failed to load projects:",a),V.oR.error("Failed to load projects")}finally{q(!1),an(!0),ar.current=!1}}},[P,at]);let au=(0,e.useCallback)(async()=>{try{await g.vfs.init();let a=(await g.vfs.listProjects()).sort((a,b)=>b.updatedAt.getTime()-a.updatedAt.getTime());j(a),P(a)}catch(a){k.v.error("Failed to reload projects:",a),V.oR.error("Failed to reload projects")}},[P]),av=async()=>{if(!as.current){as.current=!0;try{let b=await g.vfs.createProject("Multi-File Demo","Interactive examples showing how HTML, CSS, and JavaScript files work together");return await (0,ai.createProjectFromTemplate)(g.vfs,b.id,ai.DEMO_PROJECT_TEMPLATE,ai.DEMO_PROJECT_TEMPLATE.assets),V.oR.success("Demo project created successfully"),await au(),a(b),b}catch(a){throw k.v.error("Failed to create demo project:",a),V.oR.error("Failed to create demo project"),as.current=!1,a}}},aw=async()=>{try{let a=await g.vfs.createProject("Example Studios (Tour)","Demo project for guided tour");await (0,ai.createProjectFromTemplate)(g.vfs,a.id,ai.DEMO_PROJECT_TEMPLATE,ai.DEMO_PROJECT_TEMPLATE.assets),R(a.id),await au(),Q(),k.v.info("[Tour] Created tour demo project:",a.id)}catch(a){k.v.error("Failed to prepare for tour:",a),V.oR.error("Failed to start tour - could not create demo project")}},ax=async()=>{if(!v.trim())return void V.oR.error("Please enter a project name");if(v.length>50)return void V.oR.error("Project name must be 50 characters or less");if(y.length>200)return void V.oR.error("Description must be 200 characters or less");try{let b=await g.vfs.createProject(v.trim().slice(0,50),y.trim().slice(0,200)||void 0);if(A.startsWith("custom:")){let a=A.replace("custom:",""),c=C.find(b=>b.id===a);c&&await (0,ai.createProjectFromTemplate)(g.vfs,b.id,{name:c.name,description:c.description,files:c.files.map(a=>({path:a.path,content:"string"==typeof a.content?a.content:new TextDecoder().decode(a.content)})),directories:c.directories,assets:c.assets})}else"demo"===A?await (0,ai.createProjectFromTemplate)(g.vfs,b.id,ai.DEMO_PROJECT_TEMPLATE,ai.DEMO_PROJECT_TEMPLATE.assets):await (0,ai.createProjectFromTemplate)(g.vfs,b.id,ai.ZQ);V.oR.success("Project created successfully"),u(!1),x(""),z(""),B("blank"),await au(),a(b)}catch(a){k.v.error("Failed to create project:",a),V.oR.error("Failed to create project")}},ay=async a=>{if(confirm(`Are you sure you want to delete "${a.name}"? This cannot be undone.`))try{await g.vfs.deleteProject(a.id),V.oR.success("Project deleted"),await au()}catch(a){k.v.error("Failed to delete project:",a),V.oR.error("Failed to delete project")}},az=async b=>{try{let c=await g.vfs.duplicateProject(b.id);V.oR.success("Project duplicated successfully"),await au(),a(c)}catch(a){k.v.error("Failed to duplicate project:",a),V.oR.error("Failed to duplicate project")}},aA=async a=>{try{let b=await g.vfs.exportProject(a.id),c=JSON.stringify(b,null,2),d=new Blob([c],{type:"application/json"}),e=URL.createObjectURL(d),f=document.createElement("a");f.href=e,f.download=`${a.name.replace(/\s+/g,"-")}-export.json`,document.body.appendChild(f),f.click(),document.body.removeChild(f),URL.revokeObjectURL(e),V.oR.success("Project exported")}catch(a){k.v.error("Failed to export project:",a),V.oR.error("Failed to export project")}},aB=async a=>{try{let b=await g.vfs.exportProjectAsZip(a.id),c=URL.createObjectURL(b),d=document.createElement("a");d.href=c,d.download=`${a.name.replace(/\s+/g,"-")}.zip`,document.body.appendChild(d),d.click(),document.body.removeChild(d),URL.revokeObjectURL(c),V.oR.success("Project exported as ZIP")}catch(a){k.v.error("Failed to export project as ZIP:",a),V.oR.error("Failed to export project as ZIP")}},aC=async()=>{let b=document.createElement("input");b.type="file",b.accept=".json",b.onchange=async b=>{let c=b.target.files?.[0];if(c)try{let b=await c.text(),d=JSON.parse(b);if(!d.project||!d.files)throw Error("Invalid project file");let e=await g.vfs.importProject(d);V.oR.success("Project imported successfully"),await au(),a(e)}catch(a){k.v.error("Failed to import project:",a),V.oR.error("Failed to import project")}},b.click()},aD=((a,b)=>{let c=[...a];switch(b){case"updated":return c.sort((a,b)=>b.updatedAt.getTime()-a.updatedAt.getTime());case"created":return c.sort((a,b)=>b.createdAt.getTime()-a.createdAt.getTime());case"name":return c.sort((a,b)=>a.name.localeCompare(b.name));case"size":return c.sort((a,b)=>b.updatedAt.getTime()-a.updatedAt.getTime());default:return c}})(i.filter(a=>a.name.toLowerCase().includes(r.toLowerCase())||a.description?.toLowerCase().includes(r.toLowerCase())),E);return l&&!U?(0,d.jsx)("div",{className:"flex items-center justify-center h-screen",children:(0,d.jsxs)("div",{className:"text-center",children:[(0,d.jsx)("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-primary mx-auto"}),(0,d.jsx)("p",{className:"mt-4",children:"Loading projects..."})]})}):(0,d.jsxs)("div",{className:"flex flex-col h-[100dvh]",style:{background:"linear-gradient(var(--project-background-tint), var(--project-background-tint)), var(--background)"},children:[(0,d.jsx)("main",{className:"flex-1 min-h-0 overflow-auto",children:(0,d.jsxs)("div",{className:"h-full flex flex-col",children:[(0,d.jsx)("div",{className:"pt-4 px-4 pb-3 sm:pt-6 sm:px-6 sm:pb-3 shrink-0",children:(0,d.jsxs)("div",{className:"mx-auto max-w-7xl flex flex-col sm:flex-row gap-3","data-tour-id":"projects-actions",children:[(0,d.jsxs)("div",{className:"relative flex-1",children:[(0,d.jsx)(Z.A,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-muted-foreground"}),(0,d.jsx)(o.p,{placeholder:"Search projects...",value:r,onChange:a=>s(a.target.value),className:"pl-9"})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsxs)(ak.AM,{children:[(0,d.jsx)(ak.Wv,{asChild:!0,children:(0,d.jsxs)(n.$,{variant:"outline",size:"sm",className:"gap-2",children:[(0,d.jsx)($.A,{className:"h-4 w-4"}),(0,d.jsx)("span",{className:"hidden sm:inline",children:"Sort"})]})}),(0,d.jsx)(ak.hl,{className:"w-48",align:"end",children:(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)("h4",{className:"font-semibold text-sm",children:"Sort by"}),(0,d.jsxs)(aj.l6,{value:E,onValueChange:a=>F(a),children:[(0,d.jsx)(aj.bq,{children:(0,d.jsx)(aj.yv,{})}),(0,d.jsxs)(aj.gC,{children:[(0,d.jsx)(aj.eb,{value:"updated",children:"Last Updated"}),(0,d.jsx)(aj.eb,{value:"created",children:"Date Created"}),(0,d.jsx)(aj.eb,{value:"name",children:"Name"})]})]})]})})]}),(0,d.jsxs)("div",{className:"flex border rounded-full",children:[(0,d.jsx)(n.$,{variant:"grid"===G?"secondary":"ghost",size:"sm",onClick:()=>H("grid"),className:"rounded-r-none rounded-l-full",children:(0,d.jsx)(_.A,{className:"h-4 w-4"})}),(0,d.jsx)(n.$,{variant:"list"===G?"secondary":"ghost",size:"sm",onClick:()=>H("list"),className:"rounded-l-none rounded-r-full",children:(0,d.jsx)(aa.A,{className:"h-4 w-4"})})]}),(0,d.jsxs)(n.$,{onClick:()=>u(!0),size:"sm",className:"gap-2","data-tour-id":"new-project-button",children:[(0,d.jsx)(ab.A,{className:"h-4 w-4"}),(0,d.jsx)("span",{children:"New"})]}),(0,d.jsxs)(n.$,{onClick:aC,variant:"outline",size:"sm",className:"gap-2",children:[(0,d.jsx)(ac.A,{className:"h-4 w-4"}),(0,d.jsx)("span",{children:"Import"})]})]})]})}),(0,d.jsx)("div",{className:"flex-1 px-4 pt-3 pb-4 sm:px-6 sm:pt-3 sm:pb-6",children:(0,d.jsx)("div",{className:"mx-auto max-w-7xl",children:0===aD.length?(0,d.jsxs)("div",{className:"text-center py-12",children:[(0,d.jsx)(w.A,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),(0,d.jsx)("h2",{className:"text-xl font-semibold mb-2",children:r?"No projects found":"No projects yet"}),(0,d.jsx)("p",{className:"text-muted-foreground mb-6",children:r?"Try a different search term":"Create your first project to get started"}),!r&&(0,d.jsxs)("div",{className:"flex gap-3 justify-center",children:[(0,d.jsxs)(n.$,{onClick:()=>u(!0),children:[(0,d.jsx)(ab.A,{className:"mr-2 h-4 w-4"}),"Create Project"]}),(0,d.jsxs)(n.$,{variant:"outline",onClick:av,children:[(0,d.jsx)(w.A,{className:"mr-2 h-4 w-4"}),"Create Demo Project"]})]})]}):(0,d.jsx)("div",{className:"grid"===G?"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4":"space-y-3","data-tour-id":"projects-list",children:aD.map(b=>"object"==typeof b&&b.id&&b.name?(0,d.jsx)(W,{project:b,onSelect:a,onDelete:ay,onExport:aA,onExportZip:aB,onDuplicate:az,onPreview:J,onExportAsTemplate:N,onUpdate:async a=>{await g.vfs.updateProject(a),j(i.map(b=>b.id===a.id?a:b))},viewMode:G,forceMenuOpen:ap===b.id,highlightExport:T&&"project-controls"===S&&ap===b.id},b.id):(k.v.error("Invalid project object:",b),null))})})})]})}),!c&&(0,d.jsx)("footer",{className:"hidden md:block border-t bg-card/50 py-3 px-6",children:(0,d.jsxs)("div",{className:"flex justify-center gap-2",children:[(0,d.jsxs)(n.$,{variant:"outline",size:"sm",onClick:aw,disabled:T,"data-tour-id":"footer-guided-tour",children:[(0,d.jsx)(ad.A,{className:"mr-2 h-4 w-4"}),"Guided Tour"]}),(0,d.jsxs)(n.$,{variant:"outline",size:"sm",onClick:()=>h.push("/test-generation"),children:[(0,d.jsx)(ae.A,{className:"mr-2 h-4 w-4"}),"Model Tester"]}),(0,d.jsxs)(n.$,{variant:"outline",size:"sm",onClick:()=>L(!0),children:[(0,d.jsx)(ad.A,{className:"mr-2 h-4 w-4"}),"About OSW Studio"]}),(0,d.jsx)(n.$,{variant:"outline",size:"sm",asChild:!0,children:(0,d.jsxs)("a",{href:"https://github.com/o-stahl/osw-studio",target:"_blank",rel:"noopener noreferrer",children:[(0,d.jsx)(af.A,{className:"mr-2 h-4 w-4"}),"GitHub"]})})]})}),(0,d.jsx)(ag.lG,{open:t,onOpenChange:u,children:(0,d.jsxs)(ag.Cf,{className:"sm:max-w-md",children:[(0,d.jsxs)(ag.c7,{children:[(0,d.jsx)(ag.L3,{children:"Create New Project"}),(0,d.jsx)(ag.rr,{children:"Start a new multipage website project"})]}),(0,d.jsxs)("div",{className:"space-y-4",children:[(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:"flex justify-between items-center",children:[(0,d.jsx)(ah.J,{htmlFor:"name",children:"Project Name"}),(0,d.jsxs)("span",{className:"text-xs text-muted-foreground",children:[v.length,"/50"]})]}),(0,d.jsx)(o.p,{id:"name",value:v,onChange:a=>x(a.target.value.slice(0,50)),placeholder:"My Awesome Website",className:"mt-2",maxLength:50})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)(ah.J,{htmlFor:"template",children:"Template"}),(0,d.jsxs)(aj.l6,{value:A,onValueChange:B,children:[(0,d.jsx)(aj.bq,{id:"template",className:"mt-2 w-full",children:(0,d.jsx)("div",{className:"truncate flex-1 text-left",children:(a=>{if(a.startsWith("custom:")){let b=a.replace("custom:",""),c=C.find(a=>a.id===b);return c?.name||"Custom Template"}let b=ai.Nr.find(b=>b.id===a);return b?.name||"Select a template"})(A)})}),(0,d.jsxs)(aj.gC,{children:[(0,d.jsxs)(aj.s3,{children:[(0,d.jsx)(aj.TR,{children:"Built-in Templates"}),ai.Nr.map(a=>(0,d.jsx)(aj.eb,{value:a.id,children:(0,d.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,d.jsx)("div",{className:"font-medium",children:a.name}),(0,d.jsx)("div",{className:"text-xs text-muted-foreground",children:a.description})]})},a.id))]}),C.length>0&&(0,d.jsxs)(aj.s3,{children:[(0,d.jsx)(aj.TR,{children:"Custom Templates"}),C.map(a=>(0,d.jsx)(aj.eb,{value:`custom:${a.id}`,children:(0,d.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,d.jsx)("div",{className:"font-medium",children:a.name}),(0,d.jsx)("div",{className:"text-xs text-muted-foreground",children:a.description})]})},a.id))]})]})]})]}),(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:"flex justify-between items-center",children:[(0,d.jsx)(ah.J,{htmlFor:"description",children:"Description (optional)"}),(0,d.jsxs)("span",{className:"text-xs text-muted-foreground",children:[y.length,"/200"]})]}),(0,d.jsx)(p.T,{id:"description",value:y,onChange:a=>z(a.target.value.slice(0,200)),placeholder:"A brief description of your project",className:"mt-2 resize-none",rows:3,maxLength:200})]})]}),(0,d.jsxs)(ag.Es,{children:[(0,d.jsx)(n.$,{variant:"outline",onClick:()=>u(!1),children:"Cancel"}),(0,d.jsx)(n.$,{onClick:ax,children:"Create Project"})]})]})}),I&&(0,d.jsx)(ag.lG,{open:!!I,onOpenChange:()=>J(null),children:(0,d.jsxs)(ag.Cf,{className:"max-w-[90vw] sm:max-w-[85vw] lg:max-w-[80vw] 2xl:max-w-[1400px] max-h-[90vh] w-full h-full p-0 flex flex-col",children:[(0,d.jsx)(ag.c7,{className:"p-4 border-b",children:(0,d.jsxs)(ag.L3,{children:["Preview: ",I.name]})}),(0,d.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,d.jsx)(X.X,{projectId:I.id})})]})}),(0,d.jsx)(ao,{project:M,open:!!M,onOpenChange:a=>{a||N(null)}}),(0,d.jsx)(Y.V,{open:K,onOpenChange:L}),(0,d.jsx)(am.V,{location:"project-manager"})]})}function aq({onProjectSelect:a}){return(0,d.jsx)(ap,{onProjectSelect:a,hideHeader:!0,hideFooter:!0})}var ar=c(90528),as=c(30824),at=c(22544),au=c(38442),av=c(11082),aw=c(78583),ax=c(36736);function ay({template:a,onSelect:b,onDelete:c,onExport:e,viewMode:f="grid"}){let g="isBuiltIn"in a&&a.isBuiltIn,h=g?null:a,i="templateType"in a&&"site"===a.templateType,j=a=>{let b=an.N2.find(b=>b.value===a);return b?.label||a},k=b=>{b.stopPropagation(),!g&&c&&c(a.id)},l=b=>{b.stopPropagation(),e&&e(a)},m=a=>{if(!a)return"Never";try{return(0,O.m)(a,{addSuffix:!0})}catch{return"Recently"}};return"list"===f?(0,d.jsx)("div",{className:"border border-border rounded-lg p-4 bg-card",children:(0,d.jsxs)("div",{className:"flex items-center gap-4",children:[(0,d.jsxs)("div",{className:"relative shrink-0",children:[h?.metadata.thumbnail?(0,d.jsx)("div",{className:"w-24 h-16 rounded-md overflow-hidden bg-muted",children:(0,d.jsx)("img",{src:h.metadata.thumbnail,alt:a.name,className:"w-full h-full object-cover"})}):(0,d.jsx)("div",{className:"w-24 h-16 rounded-md bg-muted flex items-center justify-center",children:(0,d.jsx)(E.A,{className:"h-8 w-8 text-muted-foreground"})}),g&&(0,d.jsx)(ax.Bc,{children:(0,d.jsxs)(ax.m_,{children:[(0,d.jsx)(ax.k$,{asChild:!0,children:(0,d.jsx)("div",{className:"absolute top-1 right-1 bg-background/90 rounded-full p-1",children:(0,d.jsx)(au.A,{className:"h-3 w-3 text-muted-foreground"})})}),(0,d.jsx)(ax.ZI,{children:"Built-in template"})]})})]}),(0,d.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,d.jsx)("h3",{className:"font-semibold text-base truncate",title:a.name,children:a.name}),i&&(0,d.jsxs)(at.E,{className:"text-xs px-1.5 py-0 h-auto bg-orange-100 text-orange-700 border-orange-200 dark:bg-orange-950 dark:text-orange-400 dark:border-orange-800 shrink-0",children:[(0,d.jsx)(av.A,{className:"h-3 w-3 mr-0.5"}),"Site"]}),h&&(0,d.jsxs)("span",{className:"text-xs text-muted-foreground shrink-0",children:["v",h.version]})]}),(0,d.jsx)("p",{className:"text-sm text-muted-foreground line-clamp-1 mb-2",title:a.description,children:a.description}),(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 text-xs text-muted-foreground",children:[(h?.metadata.author||a.metadata?.author)&&(0,d.jsxs)("span",{className:"truncate max-w-[150px]",title:h?.metadata.author||a.metadata?.author,children:["by ",h?.metadata.author||a.metadata?.author]}),h?.metadata.license&&(0,d.jsxs)(d.Fragment,{children:[h.metadata.author&&(0,d.jsx)("span",{children:"•"}),(0,d.jsx)(at.E,{variant:"secondary",className:"text-xs px-1.5 py-0 h-auto",children:j(h.metadata.license)})]}),h?.files&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("span",{children:"•"}),(0,d.jsxs)("span",{children:[h.files.length," files"]})]}),(h?.metadata.tags||a.metadata?.tags)&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("span",{children:"•"}),(h?.metadata.tags||a.metadata?.tags||[]).slice(0,2).map(a=>(0,d.jsx)(at.E,{variant:"outline",className:"text-xs px-1.5 py-0 h-auto",children:a},a)),(h?.metadata.tags||a.metadata?.tags||[]).length>2&&(0,d.jsxs)(at.E,{variant:"outline",className:"text-xs px-1.5 py-0 h-auto",children:["+",(h?.metadata.tags||a.metadata?.tags||[]).length-2]})]})]})]}),(0,d.jsxs)("div",{className:"hidden md:flex items-center gap-3 shrink-0",children:[(0,d.jsx)("span",{className:"text-xs text-muted-foreground whitespace-nowrap",children:m(h?.updatedAt||a.updatedAt)}),(0,d.jsxs)(Q,{children:[(0,d.jsx)(R,{asChild:!0,children:(0,d.jsx)(n.$,{size:"icon",variant:"ghost",className:"h-8 w-8",children:(0,d.jsx)(z.A,{className:"h-4 w-4"})})}),(0,d.jsxs)(S,{align:"end",children:[(0,d.jsxs)(T,{onClick:()=>b(a),children:[(0,d.jsx)(ab.A,{className:"mr-2 h-4 w-4"}),i?"Create Site":"Create Project"]}),e&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(U,{}),(0,d.jsxs)(T,{onClick:l,children:[(0,d.jsx)(D.A,{className:"mr-2 h-4 w-4"}),"Export Template"]})]}),c&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(U,{}),(0,d.jsx)(ax.Bc,{children:(0,d.jsxs)(ax.m_,{children:[(0,d.jsx)(ax.k$,{asChild:!0,children:(0,d.jsx)("div",{children:(0,d.jsxs)(T,{className:"text-destructive",onClick:k,disabled:g,children:[(0,d.jsx)(F.A,{className:"mr-2 h-4 w-4"}),"Delete"]})})}),g&&(0,d.jsx)(ax.ZI,{children:"Built-in templates cannot be deleted"})]})})]})]})]})]}),(0,d.jsx)("div",{className:"md:hidden",children:(0,d.jsxs)(Q,{children:[(0,d.jsx)(R,{asChild:!0,children:(0,d.jsx)(n.$,{size:"icon",variant:"ghost",className:"h-8 w-8",children:(0,d.jsx)(z.A,{className:"h-4 w-4"})})}),(0,d.jsxs)(S,{align:"end",children:[(0,d.jsxs)(T,{onClick:()=>b(a),children:[(0,d.jsx)(ab.A,{className:"mr-2 h-4 w-4"}),i?"Create Site":"Create Project"]}),e&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(U,{}),(0,d.jsxs)(T,{onClick:l,children:[(0,d.jsx)(D.A,{className:"mr-2 h-4 w-4"}),"Export Template"]})]}),c&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(U,{}),(0,d.jsxs)(T,{className:"text-destructive",onClick:k,disabled:g,children:[(0,d.jsx)(F.A,{className:"mr-2 h-4 w-4"}),"Delete"]})]})]})]})})]})}):(0,d.jsxs)("div",{className:"border border-border rounded-lg overflow-hidden bg-card group",children:[(0,d.jsxs)("div",{className:"relative",children:[h?.metadata.thumbnail?(0,d.jsx)("div",{className:"w-full aspect-video bg-muted",children:(0,d.jsx)("img",{src:h.metadata.thumbnail,alt:a.name,className:"w-full h-full object-cover"})}):(0,d.jsx)("div",{className:"w-full aspect-video bg-muted flex items-center justify-center",children:(0,d.jsx)(E.A,{className:"h-16 w-16 text-muted-foreground"})}),g&&(0,d.jsx)(ax.Bc,{children:(0,d.jsxs)(ax.m_,{children:[(0,d.jsx)(ax.k$,{asChild:!0,children:(0,d.jsx)("div",{className:"absolute top-2 right-2 bg-background/90 rounded-full p-1.5 shadow-sm",children:(0,d.jsx)(au.A,{className:"h-4 w-4 text-muted-foreground"})})}),(0,d.jsx)(ax.ZI,{children:"Built-in template"})]})}),h?.metadata.downloadUrl&&(0,d.jsx)(ax.Bc,{children:(0,d.jsxs)(ax.m_,{children:[(0,d.jsx)(ax.k$,{asChild:!0,children:(0,d.jsx)("a",{href:h.metadata.downloadUrl,target:"_blank",rel:"noopener noreferrer",className:"absolute top-2 left-2 bg-background/90 hover:bg-background rounded-full p-1.5 shadow-sm transition-colors",onClick:a=>a.stopPropagation(),children:(0,d.jsx)(aw.A,{className:"h-4 w-4 text-muted-foreground"})})}),(0,d.jsx)(ax.ZI,{children:"View on marketplace"})]})})]}),(0,d.jsxs)("div",{className:"p-4 space-y-3",children:[(0,d.jsxs)("div",{className:"space-y-1",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("h3",{className:"font-semibold text-base line-clamp-1 flex-1",title:a.name,children:a.name}),i&&(0,d.jsxs)(at.E,{className:"text-xs px-1.5 py-0 h-auto bg-orange-100 text-orange-700 border-orange-200 dark:bg-orange-950 dark:text-orange-400 dark:border-orange-800 shrink-0",children:[(0,d.jsx)(av.A,{className:"h-3 w-3 mr-0.5"}),"Site"]}),h&&(0,d.jsxs)("span",{className:"text-xs text-muted-foreground shrink-0",children:["v",h.version]})]}),(0,d.jsx)("p",{className:"text-sm text-muted-foreground line-clamp-2",title:a.description,children:a.description})]}),(0,d.jsxs)("div",{className:"space-y-2",children:[(h?.metadata.author||a.metadata?.author)&&(0,d.jsx)("div",{className:"text-xs text-muted-foreground",children:h?.metadata.authorUrl?(0,d.jsxs)("a",{href:h.metadata.authorUrl,target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline inline-flex items-center gap-1",onClick:a=>a.stopPropagation(),children:["by ",h.metadata.author,(0,d.jsx)(aw.A,{className:"h-3 w-3"})]}):(0,d.jsxs)("span",{children:["by ",h?.metadata.author||a.metadata?.author]})}),(h?.metadata.tags||a.metadata?.tags)&&(h?.metadata.tags||a.metadata?.tags||[]).length>0&&(0,d.jsxs)("div",{className:"flex flex-wrap gap-1",children:[(h?.metadata.tags||a.metadata?.tags||[]).slice(0,3).map(a=>(0,d.jsx)(at.E,{variant:"secondary",className:"text-xs px-1.5 py-0.5",children:a},a)),(h?.metadata.tags||a.metadata?.tags||[]).length>3&&(0,d.jsxs)(at.E,{variant:"secondary",className:"text-xs px-1.5 py-0.5",children:["+",(h?.metadata.tags||a.metadata?.tags||[]).length-3]})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2 text-xs text-muted-foreground flex-wrap",children:[h?.metadata.license&&(0,d.jsx)(at.E,{variant:"outline",className:"text-xs px-1.5 py-0 h-auto",children:j(h.metadata.license)}),h?.files&&(0,d.jsxs)(d.Fragment,{children:[h.metadata.license&&(0,d.jsx)("span",{children:"•"}),(0,d.jsxs)("span",{children:[h.files.length," files"]})]})]})]}),(0,d.jsxs)("div",{className:"pt-3 border-t flex items-center justify-between",children:[(0,d.jsx)("span",{className:"text-xs text-muted-foreground",children:m(h?.updatedAt||a.updatedAt)}),(0,d.jsxs)(Q,{children:[(0,d.jsx)(R,{asChild:!0,children:(0,d.jsx)(n.$,{size:"icon",variant:"ghost",className:"h-8 w-8",children:(0,d.jsx)(z.A,{className:"h-4 w-4"})})}),(0,d.jsxs)(S,{align:"end",children:[(0,d.jsxs)(T,{onClick:()=>b(a),children:[(0,d.jsx)(ab.A,{className:"mr-2 h-4 w-4"}),i?"Create Site":"Create Project"]}),e&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(U,{}),(0,d.jsxs)(T,{onClick:l,children:[(0,d.jsx)(D.A,{className:"mr-2 h-4 w-4"}),"Export Template"]})]}),c&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(U,{}),(0,d.jsx)(ax.Bc,{children:(0,d.jsxs)(ax.m_,{children:[(0,d.jsx)(ax.k$,{asChild:!0,children:(0,d.jsx)("div",{children:(0,d.jsxs)(T,{className:"text-destructive",onClick:k,disabled:g,children:[(0,d.jsx)(F.A,{className:"mr-2 h-4 w-4"}),"Delete"]})})}),g&&(0,d.jsx)(ax.ZI,{children:"Built-in templates cannot be deleted"})]})})]})]})]})]})]})]})}var az=c(81925);function aA({onProjectCreated:a}){let[b,c]=(0,e.useState)([]),[f,h]=(0,e.useState)(!0),[i,j]=(0,e.useState)(""),[l,p]=(0,e.useState)("updated"),[q,r]=(0,e.useState)("grid"),[s,t]=(0,e.useState)("all"),u=(0,e.useCallback)(async()=>{try{h(!0),await g.vfs.init();let a=await m.listCustomTemplates();c(a)}catch(a){k.v.error("Failed to load custom templates:",a),V.oR.error("Failed to load custom templates")}finally{h(!1)}},[]),v=async()=>{let a=document.createElement("input");a.type="file",a.accept=".oswt",a.onchange=async a=>{let b=a.target.files?.[0];if(b)try{await m.importTemplateFile(b),V.oR.success("Template imported successfully!"),await u()}catch(a){k.v.error("Failed to import template:",a),V.oR.error(a instanceof Error?a.message:"Failed to import template")}},a.click()},w=async a=>{if(confirm("Are you sure you want to delete this template?"))try{await m.deleteCustomTemplate(a),V.oR.success("Template deleted"),await u()}catch(a){k.v.error("Failed to delete template:",a),V.oR.error("Failed to delete template")}},x=async a=>{try{if("isBuiltIn"in a&&a.isBuiltIn){V.oR.info("Exporting built-in template as custom template...");let b=await g.vfs.createProject(a.name,a.description);"blank"===a.id?await (0,ar.c3)(g.vfs,b.id,ai.ZQ):"demo"===a.id?await (0,ar.c3)(g.vfs,b.id,ai.DEMO_PROJECT_TEMPLATE,ai.DEMO_PROJECT_TEMPLATE.assets):"contact-landing"===a.id?await (0,ar.c3)(g.vfs,b.id,ai.I1):"blog"===a.id&&await (0,ar.c3)(g.vfs,b.id,ai.uD);let c=await m.exportProjectAsTemplate(g.vfs,b.id,{name:a.name,description:a.description,version:"1.0.0",author:"OSW Studio",license:"mit",tags:a.metadata?.tags||[]});await g.vfs.deleteProject(b.id);let d=URL.createObjectURL(c),e=document.createElement("a");e.href=d,e.download=`${a.name.replace(/\s+/g,"-").toLowerCase()}.oswt`,document.body.appendChild(e),e.click(),document.body.removeChild(e),URL.revokeObjectURL(d),V.oR.success("Template exported successfully!")}else{let b=await m.exportTemplateAsFile(a),c=URL.createObjectURL(b),d=document.createElement("a");d.href=c,d.download=`${a.name.replace(/\s+/g,"-").toLowerCase()}.oswt`,document.body.appendChild(d),d.click(),document.body.removeChild(d),URL.revokeObjectURL(c),V.oR.success("Template exported successfully!")}}catch(a){k.v.error("Failed to export template:",a),V.oR.error("Failed to export template")}},y=async b=>{try{let c,d="Blank"===b.name||"Example Studios"===b.name?`New ${b.name} Project`:b.name,e=await g.vfs.createProject(d,b.description),f=!1;if("isBuiltIn"in b&&b.isBuiltIn?("blank"===b.id?await (0,ar.c3)(g.vfs,e.id,ai.ZQ):"demo"===b.id?await (0,ar.c3)(g.vfs,e.id,ai.DEMO_PROJECT_TEMPLATE,ai.DEMO_PROJECT_TEMPLATE.assets):"contact-landing"===b.id?await (0,ar.c3)(g.vfs,e.id,ai.I1):"blog"===b.id&&await (0,ar.c3)(g.vfs,e.id,ai.uD),"templateType"in b&&"site"===b.templateType&&(f=!0,c=b.siteFeatures)):(await (0,ar.c3)(g.vfs,e.id,{name:b.name,description:b.description,files:b.files.map(a=>({path:a.path,content:"string"==typeof a.content?a.content:new TextDecoder().decode(a.content)})),directories:b.directories,assets:b.assets}),"site"===b.templateType&&(f=!0,c=b.siteFeatures)),f&&c)if(1)V.oR.info("Site template: Backend features (edge functions, database, etc.) require Server Mode.",{duration:5e3});else try{let a=await g.vfs.listFiles(e.id),b=(0,as.j)(),d=await b.pushProjectWithFiles(e,a);if(!d.success)throw Error(d.error||"Failed to sync project to server");let f=await fetch("/api/sites",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({projectId:e.id,name:e.name})});if(!f.ok){let a=await f.json();throw Error(a.error||"Failed to create site")}let h=await f.json(),i=await fetch(`/api/admin/sites/${h.id}/provision`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({siteFeatures:c})});if(!i.ok){let a=await i.json();throw Error(a.error||"Failed to provision backend features")}let{provisioned:j}=await i.json(),k=[];j.edgeFunctions>0&&k.push(`${j.edgeFunctions} edge function(s)`),j.serverFunctions>0&&k.push(`${j.serverFunctions} server function(s)`),j.secrets>0&&k.push(`${j.secrets} secret placeholder(s)`),j.databaseSchemaApplied&&k.push("database schema"),k.length>0&&V.oR.success(`Site provisioned: ${k.join(", ")}`,{duration:5e3}),j.secrets>0&&V.oR.info("Remember to fill in secret values in the Admin panel.",{duration:6e3})}catch(a){k.v.error("Failed to provision site backend:",a),V.oR.warning("Project created but backend provisioning failed. You can configure features manually in the Admin panel.",{duration:6e3})}V.oR.success(`Project "${e.name}" created successfully!`),a&&a(e.id,f)}catch(a){k.v.error("Failed to create project from template:",a),V.oR.error("Failed to create project")}},z=[...[...ar.Nr,...b].filter(a=>{let b=i.toLowerCase(),c=a.name.toLowerCase().includes(b)||a.description.toLowerCase().includes(b)||"metadata"in a&&a.metadata?.author?.toLowerCase().includes(b)||"metadata"in a&&a.metadata?.tags?.some(a=>a.toLowerCase().includes(b));return("all"===s||("templateType"in a&&a.templateType||"project")===s)&&c})].sort((a,b)=>{switch(l){case"updated":let c="updatedAt"in a&&a.updatedAt?a.updatedAt:new Date("2024-01-01");return("updatedAt"in b&&b.updatedAt?b.updatedAt:new Date("2024-01-01")).getTime()-c.getTime();case"name":return a.name.localeCompare(b.name);case"author":let d="metadata"in a&&a.metadata?.author||"",e="metadata"in b&&b.metadata?.author||"";return d.localeCompare(e);case"files":let f="files"in a&&a.files?.length||0;return("files"in b&&b.files?.length||0)-f;default:return 0}});return f?(0,d.jsx)("div",{className:"flex items-center justify-center h-screen",children:(0,d.jsxs)("div",{className:"text-center",children:[(0,d.jsx)("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-primary mx-auto"}),(0,d.jsx)("p",{className:"mt-4",children:"Loading templates..."})]})}):(0,d.jsxs)("div",{className:"h-full flex flex-col",children:[(0,d.jsx)("div",{className:"pt-4 px-4 pb-3 sm:pt-6 sm:px-6 sm:pb-3 shrink-0",children:(0,d.jsxs)("div",{className:"mx-auto max-w-7xl flex flex-col sm:flex-row gap-3",children:[(0,d.jsxs)("div",{className:"relative flex-1",children:[(0,d.jsx)(Z.A,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-muted-foreground"}),(0,d.jsx)(o.p,{placeholder:"Search templates...",value:i,onChange:a=>j(a.target.value),className:"pl-9"})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsxs)(aj.l6,{value:s,onValueChange:a=>t(a),children:[(0,d.jsxs)(aj.bq,{className:"w-[110px] h-9 text-sm",children:[(0,d.jsx)(az.A,{className:"h-4 w-4 mr-1 shrink-0"}),(0,d.jsx)(aj.yv,{})]}),(0,d.jsxs)(aj.gC,{children:[(0,d.jsx)(aj.eb,{value:"all",children:"All Types"}),(0,d.jsx)(aj.eb,{value:"project",children:"Project"}),(0,d.jsx)(aj.eb,{value:"site",children:"Site"})]})]}),(0,d.jsxs)(ak.AM,{children:[(0,d.jsx)(ak.Wv,{asChild:!0,children:(0,d.jsxs)(n.$,{variant:"outline",size:"sm",className:"gap-2",children:[(0,d.jsx)($.A,{className:"h-4 w-4"}),(0,d.jsx)("span",{className:"hidden sm:inline",children:"Sort"})]})}),(0,d.jsx)(ak.hl,{className:"w-48",align:"end",children:(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)("h4",{className:"font-semibold text-sm",children:"Sort by"}),(0,d.jsxs)(aj.l6,{value:l,onValueChange:a=>p(a),children:[(0,d.jsx)(aj.bq,{children:(0,d.jsx)(aj.yv,{})}),(0,d.jsxs)(aj.gC,{children:[(0,d.jsx)(aj.eb,{value:"updated",children:"Last Updated"}),(0,d.jsx)(aj.eb,{value:"name",children:"Name"}),(0,d.jsx)(aj.eb,{value:"author",children:"Author"}),(0,d.jsx)(aj.eb,{value:"files",children:"File Count"})]})]})]})})]}),(0,d.jsxs)("div",{className:"flex border rounded-full",children:[(0,d.jsx)(n.$,{variant:"grid"===q?"secondary":"ghost",size:"sm",onClick:()=>r("grid"),className:"rounded-r-none rounded-l-full",children:(0,d.jsx)(_.A,{className:"h-4 w-4"})}),(0,d.jsx)(n.$,{variant:"list"===q?"secondary":"ghost",size:"sm",onClick:()=>r("list"),className:"rounded-l-none rounded-r-full",children:(0,d.jsx)(aa.A,{className:"h-4 w-4"})})]}),(0,d.jsxs)(n.$,{onClick:v,size:"sm",className:"gap-2",children:[(0,d.jsx)(ac.A,{className:"h-4 w-4"}),(0,d.jsx)("span",{children:"Import"})]})]})]})}),(0,d.jsx)("div",{className:"flex-1 min-h-0 overflow-y-auto px-4 pt-3 pb-4 sm:px-6 sm:pt-3 sm:pb-6",children:(0,d.jsx)("div",{className:"mx-auto max-w-7xl",children:0===z.length?(0,d.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,d.jsx)("div",{className:"text-center max-w-md",children:i?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Z.A,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),(0,d.jsx)("h3",{className:"font-semibold mb-2",children:"No templates found"}),(0,d.jsxs)("p",{className:"text-sm text-muted-foreground mb-4",children:['No templates match your search query "',i,'"']}),(0,d.jsx)(n.$,{variant:"outline",onClick:()=>j(""),children:"Clear search"})]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(C.A,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),(0,d.jsx)("h3",{className:"font-semibold mb-2",children:"No custom templates yet"}),(0,d.jsx)("p",{className:"text-sm text-muted-foreground mb-4",children:"Import custom templates to get started with professional designs."}),(0,d.jsxs)(n.$,{onClick:v,children:[(0,d.jsx)(ac.A,{className:"h-4 w-4 mr-2"}),"Import Template"]})]})})}):(0,d.jsx)("div",{className:"grid"===q?"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4":"space-y-3",children:z.map(a=>(0,d.jsx)(ay,{template:a,onSelect:y,onDelete:w,onExport:x,viewMode:q},a.id))})})})]})}function aB({onProjectSelect:a,onNavigate:b}){let c=(0,f.useRouter)();return(0,d.jsx)(aA,{onProjectCreated:(d,e)=>{e&&b?b("sites"):a?a({id:d}):c.push(`/workspace/${d}`)}})}var aC=c(6636),aD=c(17585),aE=c(62949),aF=c(5360),aG=c(75234),aH=c(85351),aI=c(59405),aJ=c(76180),aK=c(12897),aL=c(79944),aM=c(81100);function aN({skill:a,mode:b,onSave:c,onCancel:f}){let[g,h]=(0,e.useState)(""),[i,j]=(0,e.useState)(""),[k,l]=(0,e.useState)(""),[m,q]=(0,e.useState)(""),[s,t]=(0,e.useState)("form"),[u,v]=(0,e.useState)(!1),w=async()=>{v(!0);try{let{frontmatter:d}=(0,aK.N1)(m);"create"===b?(await aC.skillsService.createSkill(m),V.oR.success(`Created skill: ${d.name}`)):a&&(await aC.skillsService.updateSkill(a.id,m),V.oR.success(`Updated skill: ${d.name}`)),c()}catch(b){let a=b instanceof Error?b.message:"Failed to save skill";V.oR.error(a)}finally{v(!1)}};return(0,d.jsxs)("div",{className:"flex flex-col bg-background h-[inherit]",children:[(0,d.jsx)("div",{className:"border-b px-6 py-4 shrink-0",children:(0,d.jsxs)("div",{className:"flex items-center justify-between",children:[(0,d.jsxs)("div",{className:"flex items-center gap-3",children:[(0,d.jsx)(n.$,{variant:"ghost",size:"sm",onClick:f,children:(0,d.jsx)(aL.A,{className:"w-4 h-4"})}),(0,d.jsxs)("div",{children:[(0,d.jsx)("h1",{className:"text-2xl font-bold",children:"create"===b?"Create New Skill":"Edit Skill"}),(0,d.jsx)("p",{className:"text-sm text-muted-foreground",children:"Define specialized knowledge for the AI assistant"})]})]}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(n.$,{variant:"outline",onClick:f,children:"Cancel"}),(0,d.jsxs)(n.$,{onClick:w,disabled:u,children:[(0,d.jsx)(aM.A,{className:"w-4 h-4 mr-2"}),u?"Saving...":"Save Skill"]})]})]})}),(0,d.jsxs)("div",{className:"flex-1 flex flex-col overflow-auto",children:[(0,d.jsx)("div",{className:"border-b px-6 shrink-0",children:(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)("button",{onClick:()=>t("form"),className:`px-4 py-2 text-sm font-medium border-b-2 transition-colors ${"form"===s?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground"}`,children:"Form Editor"}),(0,d.jsx)("button",{onClick:()=>t("raw"),className:`px-4 py-2 text-sm font-medium border-b-2 transition-colors ${"raw"===s?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground"}`,children:"Raw Markdown"})]})}),"form"===s&&(0,d.jsx)("div",{className:"flex-1 overflow-y-auto px-6 py-4",children:(0,d.jsxs)("div",{className:"space-y-6",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)(ah.J,{htmlFor:"name",children:"Skill Name *"}),(0,d.jsx)(o.p,{id:"name",placeholder:"e.g., react-hooks, python-testing, ui-design",value:g,onChange:a=>h(a.target.value),className:"mt-1.5"}),(0,d.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:"Lowercase with hyphens (will be used as file name)"})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)(ah.J,{htmlFor:"description",children:"Description *"}),(0,d.jsx)(o.p,{id:"description",placeholder:"Brief description of what this skill covers",value:i,onChange:a=>j(a.target.value),className:"mt-1.5"}),(0,d.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:"Max 200 characters - shown in skills list"})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)(ah.J,{htmlFor:"markdown",children:"Skill Content *"}),(0,d.jsx)(p.T,{id:"markdown",placeholder:"Write the skill content in markdown format... ## Guidelines - Guideline 1 - Guideline 2 ## Examples ```javascript // Example code ```",value:k,onChange:a=>l(a.target.value),className:"mt-1.5 font-mono text-sm min-h-[400px]"}),(0,d.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:"Markdown content that the AI will read when using this skill"})]}),(0,d.jsxs)("div",{className:"bg-muted/50 rounded-lg p-4",children:[(0,d.jsxs)("h3",{className:"font-semibold mb-2 flex items-center gap-2",children:[(0,d.jsx)(r.A,{className:"w-4 h-4"}),"Tips for Writing Skills"]}),(0,d.jsxs)("ul",{className:"text-sm text-muted-foreground space-y-1 ml-5 list-disc",children:[(0,d.jsx)("li",{children:"Be specific and actionable - provide clear guidelines and examples"}),(0,d.jsx)("li",{children:"Use markdown formatting for better readability"}),(0,d.jsx)("li",{children:"Include code examples where relevant"}),(0,d.jsx)("li",{children:"Focus on practical knowledge the AI can apply"}),(0,d.jsx)("li",{children:"Keep it concise but comprehensive"})]})]})]})}),"raw"===s&&(0,d.jsx)("div",{className:"flex-1 overflow-auto px-6 py-4",children:(0,d.jsx)("div",{className:"max-w-4xl",children:(0,d.jsxs)("div",{children:[(0,d.jsx)(ah.J,{htmlFor:"raw-content",children:"Raw SKILL.md Content"}),(0,d.jsx)(p.T,{id:"raw-content",value:m,onChange:a=>(a=>{q(a);try{let{frontmatter:b,markdown:c}=(0,aK.N1)(a);h(b.name),j(b.description),l(c)}catch(a){}})(a.target.value),className:"mt-1.5 font-mono text-sm min-h-[600px]",spellCheck:!1}),(0,d.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:"Direct editing of the SKILL.md file (YAML frontmatter + markdown)"})]})})})]})]})}function aO(){let[a,b]=(0,e.useState)([]),[c,f]=(0,e.useState)(!0),[g,h]=(0,e.useState)(""),[i,j]=(0,e.useState)(null),[l,m]=(0,e.useState)(null),[p,q]=(0,e.useState)(!1),[s,t]=(0,e.useState)(null),[u,v]=(0,e.useState)(!0),[w,x]=(0,e.useState)(!1),[y,z]=(0,e.useState)(new Set),A=async()=>{try{f(!0);let a=await aC.skillsService.getAllSkills();b(a)}catch(a){k.v.error("[SkillsManager] Failed to load skills",a),V.oR.error("Failed to load skills")}finally{f(!1)}},B=async()=>{try{let a=await aC.skillsService.isGloballyEnabled();v(a);let b=await aC.skillsService.isEvaluationEnabled();x(b);let c=await aC.skillsService.getAllSkills(),d=new Set;for(let a of c)await aC.skillsService.isSkillEnabled(a.id)&&d.add(a.id);z(d)}catch(a){k.v.error("[SkillsManager] Failed to load enabled state",a)}},C=async a=>{try{await aC.skillsService.setGlobalEnabled(a),v(a),V.oR.success(a?"Skills enabled":"Skills disabled")}catch(a){V.oR.error("Failed to update skills state")}},E=async a=>{try{await aC.skillsService.setEvaluationEnabled(a),x(a),V.oR.success(a?"Skill evaluation enabled":"Skill evaluation disabled")}catch{V.oR.error("Failed to update evaluation state")}},F=async(a,b)=>{try{b?(await aC.skillsService.enableSkill(a),z(b=>new Set([...b,a]))):(await aC.skillsService.disableSkill(a),z(b=>{let c=new Set(b);return c.delete(a),c}))}catch(a){V.oR.error("Failed to toggle skill")}},G=()=>{j(null),m("create")},H=a=>{j(a),m("edit")},I=a=>{t(a),q(!0)},J=async()=>{if(s)try{await aC.skillsService.deleteSkill(s.id),V.oR.success(`Deleted skill: ${s.name}`),await A(),await B()}catch(b){let a=b instanceof Error?b.message:"Failed to delete skill";V.oR.error(a)}finally{q(!1),t(null)}},K=async()=>{let a=document.createElement("input");a.type="file",a.accept=".md,.zip",a.multiple=!1,a.onchange=async a=>{let b=a.target.files?.[0];if(b)try{if(b.name.endsWith(".zip")){let a=await aC.skillsService.importSkills(b);V.oR.success(`Imported ${a.length} skill(s)`)}else{let a=await aC.skillsService.importSkillFile(b);V.oR.success(`Imported skill: ${a.name}`)}await A(),await B()}catch(b){let a=b instanceof Error?b.message:"Failed to import skill";V.oR.error(a)}},a.click()},L=async()=>{try{let b=a.filter(a=>!a.isBuiltIn);if(0===b.length)return void V.oR.error("No custom skills to export");let c=await aC.skillsService.exportSkills(b.map(a=>a.id)),d=URL.createObjectURL(c),e=document.createElement("a");e.href=d,e.download=`osw-skills-${new Date().toISOString().split("T")[0]}.zip`,e.click(),URL.revokeObjectURL(d),V.oR.success(`Exported ${b.length} skill(s)`)}catch(a){V.oR.error("Failed to export skills")}},M=async()=>{m(null),j(null),await A(),await B()},N=()=>{m(null),j(null)},O=a.filter(a=>a.name.toLowerCase().includes(g.toLowerCase())||a.description.toLowerCase().includes(g.toLowerCase())),P=O.filter(a=>a.isBuiltIn),Q=O.filter(a=>!a.isBuiltIn);return c?(0,d.jsx)("div",{className:"flex items-center justify-center h-screen",children:(0,d.jsxs)("div",{className:"text-center",children:[(0,d.jsx)("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-primary mx-auto"}),(0,d.jsx)("p",{className:"mt-4",children:"Loading skills..."})]})}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"h-full flex flex-col",children:[(0,d.jsx)("div",{className:"pt-4 px-4 pb-3 sm:pt-6 sm:px-6 sm:pb-3 shrink-0",children:(0,d.jsxs)("div",{className:"mx-auto max-w-7xl flex flex-col gap-3",children:[(0,d.jsxs)("div",{className:"flex flex-col sm:flex-row gap-3",children:[(0,d.jsxs)("div",{className:"relative flex-1",children:[(0,d.jsx)(Z.A,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-muted-foreground"}),(0,d.jsx)(o.p,{placeholder:"Search skills...",value:g,onChange:a=>h(a.target.value),className:"pl-9"})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsxs)(n.$,{variant:"outline",size:"sm",onClick:K,children:[(0,d.jsx)(ac.A,{className:"w-4 h-4 mr-2"}),"Import"]}),(0,d.jsxs)(n.$,{variant:"outline",size:"sm",onClick:L,children:[(0,d.jsx)(D.A,{className:"w-4 h-4 mr-2"}),"Export"]}),(0,d.jsxs)(n.$,{onClick:G,size:"sm",children:[(0,d.jsx)(ab.A,{className:"w-4 h-4 mr-2"}),"New"]})]})]}),(0,d.jsxs)("div",{className:"flex items-center justify-between p-3 bg-muted/50 rounded-lg",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(aF.A,{className:"w-4 h-4"}),(0,d.jsx)(ah.J,{htmlFor:"global-toggle",className:"text-sm font-medium cursor-pointer",children:"Enable Skills System"})]}),(0,d.jsx)(aD.d,{id:"global-toggle",checked:u,onCheckedChange:C})]}),(0,d.jsxs)("div",{className:"flex items-center justify-between p-3 bg-muted/50 rounded-lg",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(aG.A,{className:"w-4 h-4"}),(0,d.jsxs)("div",{children:[(0,d.jsx)(ah.J,{htmlFor:"eval-toggle",className:"text-sm font-medium cursor-pointer",children:"Skill Evaluation"}),(0,d.jsx)("p",{className:"text-xs text-muted-foreground",children:"Pre-check which skills are relevant before each message. Increases initial token usage per message."})]})]}),(0,d.jsx)(aD.d,{id:"eval-toggle",checked:w,disabled:!u,onCheckedChange:E})]})]})}),(0,d.jsx)("div",{className:"flex-1 px-4 pt-3 pb-4 sm:px-6 sm:pt-3 sm:pb-6 overflow-auto",children:(0,d.jsx)("div",{className:"mx-auto max-w-7xl",children:0===O.length?(0,d.jsxs)("div",{className:"text-center py-12",children:[(0,d.jsx)(aG.A,{className:"w-12 h-12 mx-auto mb-4 text-muted-foreground"}),(0,d.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"No skills found"}),(0,d.jsx)("p",{className:"text-muted-foreground mb-4",children:g?"Try a different search query":"Create your first custom skill"}),!g&&(0,d.jsxs)(n.$,{onClick:G,children:[(0,d.jsx)(ab.A,{className:"w-4 h-4 mr-2"}),"Create Skill"]})]}):(0,d.jsxs)("div",{className:"space-y-6",children:[P.length>0&&(0,d.jsxs)("div",{children:[(0,d.jsxs)("h2",{className:"text-lg font-semibold mb-3 flex items-center gap-2",children:[(0,d.jsx)(r.A,{className:"w-5 h-5"}),"Built-in Skills (",P.length,")"]}),(0,d.jsx)("div",{className:"grid gap-3",children:P.map(a=>(0,d.jsx)(aP,{skill:a,isEnabled:y.has(a.id),globalEnabled:u,onToggle:F,onEdit:H,onDelete:I},a.id))})]}),Q.length>0&&(0,d.jsxs)("div",{children:[(0,d.jsxs)("h2",{className:"text-lg font-semibold mb-3 flex items-center gap-2",children:[(0,d.jsx)(aG.A,{className:"w-5 h-5"}),"Custom Skills (",Q.length,")"]}),(0,d.jsx)("div",{className:"grid gap-3",children:Q.map(a=>(0,d.jsx)(aP,{skill:a,isEnabled:y.has(a.id),globalEnabled:u,onToggle:F,onEdit:H,onDelete:I},a.id))})]})]})})})]}),(0,d.jsx)(ag.lG,{open:!!l,onOpenChange:a=>!a&&N(),children:(0,d.jsx)(ag.Cf,{className:"max-w-[90vw] sm:max-w-[85vw] lg:max-w-[75vw] xl:max-w-[1200px] h-[90vh] p-0 overflow-hidden",children:l&&(0,d.jsx)(aN,{skill:i,mode:l,onSave:M,onCancel:N})})}),(0,d.jsx)(ag.lG,{open:p,onOpenChange:q,children:(0,d.jsxs)(ag.Cf,{children:[(0,d.jsxs)(ag.c7,{children:[(0,d.jsx)(ag.L3,{children:"Delete Skill"}),(0,d.jsxs)(ag.rr,{children:['Are you sure you want to delete "',s?.name,'"? This action cannot be undone.']})]}),(0,d.jsxs)(ag.Es,{children:[(0,d.jsx)(n.$,{variant:"outline",onClick:()=>q(!1),children:"Cancel"}),(0,d.jsx)(n.$,{variant:"destructive",onClick:J,children:"Delete"})]})]})})]})}function aP({skill:a,isEnabled:b,globalEnabled:c,onToggle:f,onEdit:g,onDelete:h}){let[i,j]=(0,e.useState)(!1),k=c&&b;return(0,d.jsx)(aE.Nt,{open:i,onOpenChange:j,children:(0,d.jsxs)("div",{className:`border rounded-lg transition-colors ${k?"border-primary/30 bg-primary/5":"border-border"}`,children:[(0,d.jsx)("div",{className:"p-4",children:(0,d.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,d.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,d.jsxs)(aE.R6,{className:"flex items-center gap-2 hover:text-primary transition-colors",children:[i?(0,d.jsx)(aH.A,{className:"w-4 h-4 shrink-0"}):(0,d.jsx)(aI.A,{className:"w-4 h-4 shrink-0"}),(0,d.jsx)("h3",{className:"font-semibold truncate",children:a.name})]}),a.isBuiltIn&&(0,d.jsx)(at.E,{variant:"secondary",className:"text-xs",children:"Built-in"}),!k&&(0,d.jsx)(at.E,{variant:"outline",className:"text-xs text-muted-foreground",children:"Disabled"})]}),(0,d.jsx)("p",{className:"text-sm text-muted-foreground line-clamp-2",children:a.description})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(aD.d,{checked:b,onCheckedChange:b=>f(a.id,b),disabled:!c}),!a.isBuiltIn&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(n.$,{variant:"ghost",size:"sm",onClick:()=>g(a),children:(0,d.jsx)(aJ.A,{className:"w-4 h-4"})}),(0,d.jsx)(n.$,{variant:"ghost",size:"sm",onClick:()=>h(a),children:(0,d.jsx)(F.A,{className:"w-4 h-4"})})]})]})]})}),(0,d.jsx)(aE.Ke,{children:(0,d.jsx)("div",{className:"border-t px-4 py-3 bg-muted/30",children:(0,d.jsxs)("div",{className:"text-sm space-y-2",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 text-muted-foreground",children:[(0,d.jsx)("span",{className:"font-medium",children:"Updated:"}),(0,d.jsx)("span",{children:a.updatedAt.toLocaleDateString()})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("span",{className:"font-medium text-muted-foreground",children:"Description:"}),(0,d.jsx)("p",{className:"mt-1",children:a.description})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("span",{className:"font-medium text-muted-foreground",children:"Content:"}),(0,d.jsx)("pre",{className:"mt-1 text-xs bg-background p-3 rounded border overflow-auto max-h-96 whitespace-pre-wrap",children:a.markdown})]})]})})})]})})}function aQ(){return(0,d.jsx)(aO,{})}var aR=c(72380),aS=c(43476),aT=c(18310),aU=c(15917),aV=c(80196),aW=c(25345),aX=c(78460),aY=c(94684),aZ=c(15952),a$=c(68877),a_=c(16945);c(33204);c(68324);c(27067);c(80414),c(96503);c(21564),c(30887),c(11861),c(59268),c(45523);c(33464),c(90771),c(52426);c(98688);c(43718);var a0=c(15303);c(91292),c(75535);c(65828),c(77917),c(22774);c(71899),c(65893),c(18004);function a1({onProjectSelect:a}){let[b,c]=(0,e.useState)([]),[f,g]=(0,e.useState)([]),[h,i]=(0,e.useState)(!0),[j,k]=(0,e.useState)({}),[l,m]=(0,e.useState)(null),[n,o]=(0,e.useState)(!1),[p,q]=(0,e.useState)(!1),[r,s]=(0,e.useState)(!1),[t,u]=(0,e.useState)(!1),[v,w]=(0,e.useState)(!1),[x,y]=(0,e.useState)(null),[z,A]=(0,e.useState)(""),[B,C]=(0,e.useState)("updated"),[D,E]=(0,e.useState)(null);return(0,e.useMemo)(()=>{let a=b;if(z){let c=z.toLowerCase();a=b.filter(a=>{let b=f.find(b=>b.id===a.projectId);return a.name.toLowerCase().includes(c)||a.slug?.toLowerCase().includes(c)||b?.name.toLowerCase().includes(c)})}return[...a].sort((a,b)=>{switch(B){case"name":return a.name.localeCompare(b.name);case"created":return new Date(b.createdAt).getTime()-new Date(a.createdAt).getTime();case"published":if(!a.publishedAt&&!b.publishedAt)return 0;if(!a.publishedAt)return 1;if(!b.publishedAt)return -1;return new Date(b.publishedAt).getTime()-new Date(a.publishedAt).getTime();default:return new Date(b.updatedAt).getTime()-new Date(a.updatedAt).getTime()}})},[b,f,z,B]),(0,d.jsx)("div",{className:"h-full flex items-center justify-center",children:(0,d.jsx)("div",{className:"text-center text-muted-foreground",children:(0,d.jsx)("p",{children:"Sites feature is only available in Server Mode"})})})}var a2=c(26946),a3=c(85986);function a4({tab:a}){let b=(0,f.useSearchParams)().get("settings");return(0,d.jsx)("div",{className:"h-full flex flex-col",children:(0,d.jsx)("div",{className:"flex-1 overflow-auto p-6",children:"application"===(b||a||"model")?(0,d.jsx)(a3.O,{}):(0,d.jsx)(a2.t,{})})})}function a5({tab:a}){return(0,d.jsx)(e.Suspense,{fallback:(0,d.jsx)("div",{className:"h-full flex items-center justify-center",children:(0,d.jsx)("p",{className:"text-muted-foreground",children:"Loading..."})}),children:(0,d.jsx)(a4,{tab:a})})}var a6=c(15649);function a7({items:a,activeId:b,visibleIds:c=[],onItemClick:e}){if(0===a.length)return null;let f=(a,b)=>{a.preventDefault(),e?.(b.index.toString());let c=document.querySelector(`[data-heading-index="${b.index}"]`);c&&(c.scrollIntoView({behavior:"smooth"}),window.history.pushState(null,"",`#${b.id}`))};return(0,d.jsxs)("nav",{className:"space-y-1",children:[(0,d.jsx)("p",{className:"text-sm font-semibold mb-3 text-foreground",children:"On This Page"}),(0,d.jsx)("ul",{className:"text-sm",children:a.map(a=>(0,d.jsxs)("li",{children:[(0,d.jsx)("a",{href:`#${a.id}`,"data-toc-id":a.index,onClick:b=>f(b,a),className:(0,k.cn)("block py-1 text-muted-foreground hover:text-foreground transition-colors","border-l-2 pl-3",b===a.index.toString()?"border-primary text-foreground font-medium":c.includes(a.index.toString())?"border-blue-400/50 text-foreground/80":"border-transparent"),children:a.text}),a.children&&a.children.length>0&&(0,d.jsx)("ul",{children:a.children.map(a=>(0,d.jsx)("li",{children:(0,d.jsx)("a",{href:`#${a.id}`,"data-toc-id":a.index,onClick:b=>f(b,a),className:(0,k.cn)("block py-1 text-xs text-muted-foreground hover:text-foreground transition-colors","border-l-2",b===a.index.toString()?"border-primary text-foreground font-medium":c.includes(a.index.toString())?"border-blue-400/50 text-foreground/80":"border-transparent"),style:{paddingLeft:"calc(0.75rem * 1.67)"},children:a.text})},`${a.id}-${a.index}`))})]},`${a.id}-${a.index}`))})]})}var a8=c(97518);function a9(){let a=(0,f.useSearchParams)().get("doc")||"overview",b=a8.P.find(b=>b.id===a)||a8.P[0],[c,g]=(0,e.useState)(""),[h,i]=(0,e.useState)(!1),[j,k]=(0,e.useState)(null),[l,m]=(0,e.useState)(""),[n,o]=(0,e.useState)([]),p=(0,e.useRef)(!1);(0,e.useRef)(null);let q=(0,e.useMemo)(()=>{if(!c)return[];let a=c.split("\n"),b=[],d=0;for(let c of a){let a=c.match(/^(#{2,4})\s+(.+)$/);if(a){let c=a[1].length,e=a[2].trim(),f=e.toString().toLowerCase().trim().replace(/\s+/g,"-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"");b.push({level:c,text:e,id:f,index:d}),d++}}let e=[],f=null;for(let a of b)2===a.level?(f={id:a.id,text:a.text,level:2,index:a.index,children:[]},e.push(f)):3===a.level&&f&&f.children.push({id:a.id,text:a.text,level:3,index:a.index});return e},[c]),r=(0,e.useCallback)(a=>{m(a),o([a]),p.current=!0,setTimeout(()=>{p.current=!1;let a=document.querySelector(".docs-content-area");if(!a)return;let b=document.querySelectorAll(".docs-content-area [data-heading-index]");if(0===b.length)return;let c=a.getBoundingClientRect().top,d=[];b.forEach(b=>{let e=b.getBoundingClientRect(),f=c+a.clientHeight;if(e.top>=c&&e.bottom<=f){let a=b.getAttribute("data-heading-index");a&&d.push(a)}}),o(d)},1e3)},[]),s=q.length>=3;return(0,d.jsx)("div",{className:"h-full flex flex-col",children:(0,d.jsxs)("div",{className:`flex-1 overflow-hidden ${s?"lg:grid lg:grid-cols-[1fr_280px]":""}`,children:[(0,d.jsx)("div",{className:"h-full overflow-y-auto docs-content-area bg-background",children:(0,d.jsxs)("div",{className:"p-6 sm:p-8 max-w-4xl mx-auto",onClick:a=>{let b=a.target;if("A"===b.tagName){let c=b.getAttribute("href");if(c?.startsWith("#")){a.preventDefault();let b=document.getElementById(c.slice(1));b&&(b.scrollIntoView({behavior:"smooth"}),window.history.pushState(null,"",c))}}},children:[h&&(0,d.jsx)("div",{className:"flex items-center justify-center h-screen",children:(0,d.jsxs)("div",{className:"text-center",children:[(0,d.jsx)("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-primary mx-auto"}),(0,d.jsx)("p",{className:"mt-4 text-muted-foreground",children:"Loading documentation..."})]})}),j&&(0,d.jsxs)("div",{className:"flex items-center gap-3 p-4 bg-destructive/10 border border-destructive/20 rounded-lg text-destructive",children:[(0,d.jsx)(aT.A,{className:"h-5 w-5 flex-shrink-0"}),(0,d.jsxs)("div",{children:[(0,d.jsx)("p",{className:"font-semibold",children:"Error loading document"}),(0,d.jsx)("p",{className:"text-sm",children:j})]})]}),!h&&!j&&c&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{className:"mb-6 pb-4 border-b",children:(0,d.jsxs)("div",{className:"flex items-center gap-3 mb-2",children:[(0,d.jsx)(b.icon,{className:"h-8 w-8 text-primary"}),(0,d.jsx)("h1",{className:"text-3xl font-bold",children:b.title})]})}),(0,d.jsx)(a6.T,{content:c})]})]})}),s&&(0,d.jsx)("div",{className:"hidden lg:block h-full overflow-y-auto border-l border-border bg-muted/30",children:(0,d.jsx)("div",{className:"p-6 sticky top-0",children:(0,d.jsx)(a7,{items:q,activeId:l,visibleIds:n,onItemClick:r})})})]})})}function ba(){return(0,d.jsx)(e.Suspense,{fallback:(0,d.jsx)("div",{className:"flex items-center justify-center h-full",children:"Loading documentation..."}),children:(0,d.jsx)(a9,{})})}var bb=c(74097),bc=c(52998),bd=c(87251),be=c(3991),bf=c.n(be),bg=c(30758);async function bh(){await g.vfs.init();let a=await g.vfs.listProjects(),b=await m.listCustomTemplates(),c=await aC.skillsService.getAllSkills(),d=null;try{let a=await fetch("/api/docs/WHATS_NEW.md");if(a.ok){let b=await a.text(),c=b.match(/^## v(\d+\.\d+\.\d+)\s*-\s*(.+)$/m);if(c){let a,e=c[1],f=c[2].trim(),g=b.indexOf(c[0]),h=b.substring(g+c[0].length),i=h.match(/^(?:## |---)/m),j=i?h.substring(0,i.index):h,k=/^[-*]\s+\*\*(.+?)\*\*\s*[-–]?\s*(.*)$/gm,l=[];for(;null!==(a=k.exec(j))&&l.length<4;){let b=a[1].trim(),c=a[2]?.trim();l.push(c?`${b} - ${c}`:b)}if(0===l.length){let b=/^[-*]\s+(.+)$/gm;for(;null!==(a=b.exec(j))&&l.length<4;){let b=a[1].trim();b.match(/^\[.*\]\(.*\)$/)||l.push(b.replace(/\*\*/g,""))}}d={version:e,title:f,highlights:l}}}}catch{}return{content:{projects:a.length,templates:b.length,skills:c.length},whatsNew:d,recentProjects:a.sort((a,b)=>new Date(b.updatedAt).getTime()-new Date(a.updatedAt).getTime()).slice(0,3).map(a=>({id:a.id,name:a.name,description:a.description||null,updatedAt:a.updatedAt instanceof Date?a.updatedAt.toISOString():a.updatedAt}))}}function bi(a){return a>=1e6?(a/1e6).toFixed(1)+"M":a>=1e3?(a/1e3).toFixed(1)+"K":a.toString()}function bj(a){let b=new Date(a),c=new Date().getTime()-b.getTime(),d=Math.floor(c/6e4),e=Math.floor(c/36e5),f=Math.floor(c/864e5);return d<1?"just now":d<60?`${d}m ago`:e<24?`${e}h ago`:f<7?`${f}d ago`:b.toLocaleDateString()}function bk({onStartTour:a,onNavigate:b}){let c=a=>{b&&(a.preventDefault(),b("projects"))};return(0,d.jsx)("div",{className:"bg-card rounded-xl border border-zinc-800 p-4 mb-6",children:(0,d.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,d.jsx)(n.$,{variant:"default",size:"sm",asChild:!0,className:"gap-1.5",children:(0,d.jsxs)(bf(),{href:"#",onClick:c,children:[(0,d.jsx)(ab.A,{className:"w-4 h-4"}),"New Project"]})}),(0,d.jsx)(n.$,{variant:"outline",size:"sm",asChild:!0,className:"gap-1.5",children:(0,d.jsxs)(bf(),{href:"#",onClick:c,children:[(0,d.jsx)(w.A,{className:"w-4 h-4"}),"Projects"]})}),!1,(0,d.jsxs)(n.$,{variant:"outline",size:"sm",onClick:a,className:"gap-1.5",children:[(0,d.jsx)(aG.A,{className:"w-4 h-4"}),"Guided Tour"]}),(0,d.jsx)(n.$,{variant:"outline",size:"sm",asChild:!0,className:"gap-1.5",children:(0,d.jsxs)("a",{href:"https://discord.gg/mAJ8Ss4u",target:"_blank",rel:"noopener noreferrer",children:[(0,d.jsx)(bd.E,{className:"w-4 h-4"}),"Discord"]})}),(0,d.jsx)(n.$,{variant:"outline",size:"sm",asChild:!0,className:"gap-1.5",children:(0,d.jsxs)(bf(),{href:"#",onClick:a=>{b&&(a.preventDefault(),b("docs"))},children:[(0,d.jsx)(bb.A,{className:"w-4 h-4"}),"Docs"]})})]})})}function bl({whatsNew:a,onNavigate:b}){return a?(0,d.jsxs)("div",{className:"bg-zinc-900/30 rounded-xl border border-zinc-800 p-4 flex flex-col",children:[(0,d.jsxs)("div",{className:"flex items-start justify-between gap-4 mb-3",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(bc.A,{className:"w-4 h-4 text-orange-500"}),(0,d.jsxs)("h3",{className:"text-sm font-medium text-zinc-200",children:["What's New in v",a.version]})]}),(0,d.jsxs)(bf(),{href:"#",onClick:a=>{b&&(a.preventDefault(),window.history.pushState({},"","/?doc=whats-new"),b("docs"))},className:"text-xs text-orange-500 hover:text-orange-400 flex items-center gap-1",children:["Read all",(0,d.jsx)(aw.A,{className:"w-3 h-3"})]})]}),(0,d.jsx)("p",{className:"text-sm font-medium text-zinc-200 mb-2",children:a.title}),a.highlights&&a.highlights.length>0&&(0,d.jsx)("ul",{className:"space-y-1 flex-1",children:a.highlights.map((a,b)=>(0,d.jsxs)("li",{className:"text-xs text-zinc-300 flex items-start gap-2",children:[(0,d.jsx)("span",{className:"text-orange-500/70 mt-0.5",children:"•"}),(0,d.jsx)("span",{children:a})]},b))})]}):null}function bm({data:a,loading:b,onRefresh:c}){let e=[{label:"Version",value:`v${bg.rE}`},{label:"Projects",value:bi(a.content.projects)},{label:"Templates",value:bi(a.content.templates)},{label:"Skills",value:bi(a.content.skills)}],f=Math.ceil(e.length/2),g=e.slice(0,f),h=e.slice(f);return(0,d.jsxs)("div",{className:"bg-zinc-900/30 rounded-xl border border-zinc-800 p-4 flex flex-col",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,d.jsx)("h3",{className:"text-sm font-medium text-zinc-300",children:"Content Overview"}),(0,d.jsx)(n.$,{variant:"ghost",size:"sm",onClick:c,disabled:b,className:"h-7 px-2",children:(0,d.jsx)(aW.A,{className:`w-3.5 h-3.5 ${b?"animate-spin":""}`})})]}),(0,d.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-x-6 gap-y-1.5 flex-1 content-start",children:[(0,d.jsx)("div",{className:"space-y-1.5",children:g.map(a=>(0,d.jsxs)("div",{className:"flex items-center justify-between",children:[(0,d.jsx)("span",{className:"text-xs text-zinc-500",children:a.label}),(0,d.jsx)("span",{className:"text-sm font-medium text-zinc-200",children:a.value})]},a.label))}),(0,d.jsx)("div",{className:"space-y-1.5",children:h.map(a=>(0,d.jsxs)("div",{className:"flex items-center justify-between",children:[(0,d.jsx)("span",{className:"text-xs text-zinc-500",children:a.label}),(0,d.jsx)("span",{className:"text-sm font-medium text-zinc-200",children:a.value})]},a.label))})]})]})}function bn({projects:a,onNavigate:b,onProjectSelect:c}){return(0,d.jsxs)("div",{className:"bg-zinc-900/30 rounded-xl border border-zinc-800 p-4 flex flex-col",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(w.A,{className:"w-4 h-4 text-orange-500"}),(0,d.jsx)("h3",{className:"text-sm font-medium text-zinc-300",children:"Recent Projects"})]}),(0,d.jsxs)(bf(),{href:"#",onClick:a=>{b&&(a.preventDefault(),b("projects"))},className:"text-xs text-zinc-500 hover:text-zinc-300 flex items-center gap-0.5",children:["View all",(0,d.jsx)(aI.A,{className:"w-3 h-3"})]})]}),0===a.length?(0,d.jsx)("p",{className:"text-xs text-zinc-500 text-center py-2 flex-1 flex items-center justify-center",children:"No projects yet"}):(0,d.jsx)("div",{className:"space-y-1.5 flex-1",children:a.slice(0,3).map(a=>(0,d.jsxs)(bf(),{href:"#",onClick:b=>{var d;return d=a.id,void(c&&(b.preventDefault(),c(d)))},className:"flex items-center justify-between text-xs py-1.5 px-2 bg-zinc-900/50 rounded hover:bg-zinc-800/50 transition-colors",children:[(0,d.jsx)("span",{className:"text-zinc-300 truncate flex-1 mr-2",children:a.name}),(0,d.jsxs)("span",{className:"text-zinc-500 shrink-0 flex items-center gap-1",children:[(0,d.jsx)(a0.A,{className:"w-3 h-3"}),bj(a.updatedAt)]})]},a.id))})]})}function bo({onNavigate:a,onProjectSelect:b,onStartTour:c}){let g=(0,f.useRouter)(),[h,i]=(0,e.useState)(null),[j,k]=(0,e.useState)(null),[l,m]=(0,e.useState)(!0),[o,p]=(0,e.useState)(null),[q,r]=(0,e.useState)(null),s=(0,e.useCallback)(async()=>{m(!0),p(null);try{{let a=await bh();k(a)}r(new Date)}catch(a){p(a instanceof Error?a.message:"Unknown error")}finally{m(!1)}},[]),t=(0,e.useCallback)(()=>{c?c():g.push("/admin/projects?tour=start")},[g,c]),u=(0,e.useCallback)(a=>{b&&b(a)},[b]),v=!!j;if(l&&!v)return(0,d.jsx)("div",{className:"h-full flex items-center justify-center",children:(0,d.jsxs)("div",{className:"text-center",children:[(0,d.jsx)("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-orange-500 mx-auto"}),(0,d.jsx)("p",{className:"mt-3 text-sm text-zinc-400",children:"Loading dashboard..."})]})});if(o&&!v)return(0,d.jsx)("div",{className:"h-full flex items-center justify-center",children:(0,d.jsxs)("div",{className:"text-center",children:[(0,d.jsx)(a_.A,{className:"w-8 h-8 text-red-500 mx-auto mb-2"}),(0,d.jsx)("p",{className:"text-zinc-400 text-sm",children:o}),(0,d.jsx)(n.$,{variant:"outline",size:"sm",onClick:s,className:"mt-4",children:"Retry"})]})});if(!v)return null;if(j){let b=null!==j.whatsNew;return(0,d.jsxs)("div",{className:"h-full overflow-y-auto p-6",children:[(0,d.jsx)("div",{className:"flex items-center justify-between mb-4",children:(0,d.jsxs)("div",{children:[(0,d.jsx)("h1",{className:"text-xl font-semibold text-zinc-100",children:"Dashboard"}),q&&(0,d.jsxs)("p",{className:"text-xs text-zinc-500 mt-0.5",children:["Updated ",q.toLocaleTimeString()]})]})}),(0,d.jsx)(bk,{onStartTour:t,onNavigate:a}),(0,d.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4 mb-4 [&>*]:min-h-[160px]",children:[(0,d.jsx)(bm,{data:j,loading:l,onRefresh:s}),b&&(0,d.jsx)(bl,{whatsNew:j.whatsNew,onNavigate:a})]}),(0,d.jsx)("div",{className:"mb-4",children:(0,d.jsx)(bn,{projects:j.recentProjects,onNavigate:a,onProjectSelect:u})})]})}return null}function bp({view:a,onProjectSelect:b,settingsTab:e,onNavigate:f,onStartTour:g}){let h=async a=>{let{vfs:d}=await Promise.resolve().then(c.bind(c,11482));await d.init();let e=await d.getProject(a);e&&b(e)};switch(a){case"dashboard":return(0,d.jsx)(bo,{onNavigate:f,onProjectSelect:h,onStartTour:g});case"projects":default:return(0,d.jsx)(aq,{onProjectSelect:b});case"sites":return(0,d.jsx)(a1,{onProjectSelect:b});case"templates":return(0,d.jsx)(aB,{onNavigate:f});case"skills":return(0,d.jsx)(aQ,{});case"docs":return(0,d.jsx)(ba,{});case"settings":return(0,d.jsx)(a5,{tab:e})}}},69374:(a,b,c)=>{c.d(b,{DEMO_PROJECT_TEMPLATE:()=>d.vY,I1:()=>d.I1,Nr:()=>d.Nr,ZQ:()=>d.ZQ,createProjectFromTemplate:()=>d.c3,uD:()=>d.uD});var d=c(90528)},70740:(a,b,c)=>{async function d(a){}async function e(){return{serverProjectCount:0,serverSiteCount:0,serverLastUpdated:null,localProjectCount:0,isUninitialized:!1,needsSync:!1,loading:!1,error:"Server mode not enabled"}}c.d(b,{autoSyncProject:()=>d,jP:()=>e}),c(11482),c(15514),c(42830)},83374:(a,b,c)=>{c.d(b,{a:()=>a_});var d=c(21124),e=c(38301),f=c.n(e),g=c(11482),h=c(15514),i=c(96352),j=c(11082),k=c(74097),l=c(15350),m=c(15917),n=c(85351),o=c(59405),p=c(46148),q=c(87278),r=c(57759),s=c(43700),t=c(3368),u=c(42674),v=c(47089),w=c(72380),x=c(19217),y=c(15044),z=c(71613),A=c(90133);let B=y.bL,C=y.l9;y.YJ,y.ZL,y.Pb,y.z6,e.forwardRef(({className:a,inset:b,children:c,...e},f)=>(0,d.jsxs)(y.ZP,{ref:f,className:(0,h.cn)("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",b&&"pl-8",a),...e,children:[c,(0,d.jsx)(o.A,{className:"ml-auto h-4 w-4"})]})).displayName=y.ZP.displayName,e.forwardRef(({className:a,...b},c)=>(0,d.jsx)(y.G5,{ref:c,className:(0,h.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...b})).displayName=y.G5.displayName;let D=e.forwardRef(({className:a,...b},c)=>(0,d.jsx)(y.ZL,{children:(0,d.jsx)(y.UC,{ref:c,className:(0,h.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...b})}));D.displayName=y.UC.displayName;let E=e.forwardRef(({className:a,inset:b,...c},e)=>(0,d.jsx)(y.q7,{ref:e,className:(0,h.cn)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",b&&"pl-8",a),...c}));E.displayName=y.q7.displayName,e.forwardRef(({className:a,children:b,checked:c,...e},f)=>(0,d.jsxs)(y.H_,{ref:f,className:(0,h.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),checked:c,...e,children:[(0,d.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,d.jsx)(y.VF,{children:(0,d.jsx)(z.A,{className:"h-4 w-4"})})}),b]})).displayName=y.H_.displayName,e.forwardRef(({className:a,children:b,...c},e)=>(0,d.jsxs)(y.hN,{ref:e,className:(0,h.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...c,children:[(0,d.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,d.jsx)(y.VF,{children:(0,d.jsx)(A.A,{className:"h-2 w-2 fill-current"})})}),b]})).displayName=y.hN.displayName,e.forwardRef(({className:a,inset:b,...c},e)=>(0,d.jsx)(y.JU,{ref:e,className:(0,h.cn)("px-2 py-1.5 text-sm font-semibold text-foreground",b&&"pl-8",a),...c})).displayName=y.JU.displayName,e.forwardRef(({className:a,...b},c)=>(0,d.jsx)(y.wv,{ref:c,className:(0,h.cn)("-mx-1 my-1 h-px bg-border",a),...b})).displayName=y.wv.displayName;var F=c(7629),G=c(42830);function H({projectId:a,onFileSelect:b,selectedPath:f,onClose:y}){let[z,A]=(0,e.useState)([]),[H,I]=(0,e.useState)([]),[J,K]=(0,e.useState)(new Set(["/"])),[L,M]=(0,e.useState)(null),[N,O]=(0,e.useState)(""),[P,Q]=(0,e.useState)(!1),[R,S]=(0,e.useState)(null),[T,U]=(0,e.useState)(null),[V,W]=(0,e.useState)(!1),X=(0,e.useRef)(null),Y=(0,e.useRef)(0),Z=(0,e.useCallback)(async()=>{let b=++Y.current;try{await g.vfs.init();let d=await g.vfs.getAllFilesAndDirectories(a);if(V){let b=(await g.vfs.listDirectory(a,"/",{includeTransient:!0})).filter(a=>a.path.startsWith("/.")),{skillsService:e}=await Promise.resolve().then(c.bind(c,6636)),f=await e.getEnabledSkills(),h=new Set(f.map(a=>`/.skills/${a.id}.md`)),i=b.filter(a=>!a.path.startsWith("/.skills/")||h.has(a.path));d.push(...i)}if(b!==Y.current)return;let e=d.filter(a=>"directory"!==a.type);A(e),I($(d,V))}catch(a){h.v.error("Failed to load files:",a)}},[a,V]),$=(a,b)=>{let c=b?a:a.filter(a=>!a.path.startsWith("/.")),d=[],e=new Map;c.forEach(a=>{if("directory"===a.type){let b=a.path.split("/").filter(Boolean),c={path:a.path,name:a.name||b[b.length-1]||"unnamed",type:"directory",children:[]};e.set(a.path,c)}}),c.forEach(a=>{if("directory"!==a.type){let b=a.path.split("/").filter(Boolean),c="";for(let a=0;a{let c=b.split("/").filter(Boolean);if(1===c.length)d.push(a);else{let b="/"+c.slice(0,-1).join("/"),d=e.get(b);d&&d.children&&d.children.push(a)}}),a.forEach(a=>{if("directory"!==a.type){let b=a.path.split("/").filter(Boolean),c={path:a.path,name:a.name,type:"file"};if(1===b.length)d.push(c);else{let a="/"+b.slice(0,-1).join("/"),d=e.get(a);d&&d.children?.push(c)}}});let f=a=>{a.sort((a,b)=>a.type===b.type?a.name.localeCompare(b.name):"directory"===a.type?-1:1),a.forEach(a=>{a.children&&f(a.children)})};return f(d),d},_=async a=>{if("directory"===a.type){var c;c=a.path,K(a=>{let b=new Set(a);return b.has(c)?b.delete(c):b.add(c),b})}else{let c=z.find(b=>b.path===a.path);c&&b&&b(c)}},aa=async(b="/")=>{let c=prompt("Enter file name:");if(!c)return;let d="/"===b?`/${c}`:`${b}/${c}`;try{await g.vfs.createFile(a,d,""),await Z()}catch(a){h.v.error("Failed to create file:",a)}},ab=async(b="/")=>{let c=prompt("Enter directory name:");if(!c)return;let d="/"===b?`/${c}`:`${b}/${c}`;try{await g.vfs.createDirectory(a,d),await Z()}catch(a){h.v.error("Failed to create directory:",a)}},ac=async(b,c)=>{if(confirm(`Delete ${c} "${b}"?`))try{"file"===c?await g.vfs.deleteFile(a,b):await g.vfs.deleteDirectory(a,b),await Z()}catch(a){h.v.error(`Failed to delete ${c}:`,a)}},ad=async(b,c)=>{if(!N)return;let d=b.split("/");d[d.length-1]=N;let e=d.join("/");try{"directory"===c?await g.vfs.renameDirectory(a,b,e):await g.vfs.renameFile(a,b,e),await Z(),M(null),O("")}catch(a){h.v.error(`Failed to rename ${c}:`,a)}},ae=async a=>{for(let b of(a.preventDefault(),a.stopPropagation(),Q(!1),Array.from(a.dataTransfer.items)))if("file"===b.kind){let a=b.getAsFile();a&&await af(a,"/")}},af=async(b,c)=>{if(!(0,i.fu)(b.name))return void G.oR.error(`File type not supported: ${b.name}`);let d=(0,i.Gr)(b.name),e=i.Q6[d];if(b.size>e)return void G.oR.error(`File too large: ${b.name}. Maximum size is ${Math.round(e/1024/1024)}MB`);let f="/"===c?`/${b.name}`:`${c}/${b.name}`;try{let c;c="image"===d||"video"===d||"binary"===d?await b.arrayBuffer():await b.text(),await g.vfs.createFile(a,f,c),await Z(),G.oR.success(`Uploaded ${b.name}`)}catch(d){if(d.message?.includes("already exists")){if(confirm(`File "${b.name}" already exists. Overwrite?`))try{await g.vfs.deleteFile(a,f),await af(b,c)}catch(a){h.v.error("Failed to overwrite file:",a),G.oR.error("Failed to overwrite file")}}else h.v.error("Failed to upload file:",d),G.oR.error(`Failed to upload ${b.name}: ${d.message}`)}},ag=()=>{S(null),U(null)},ah=async(b,c)=>{if(b.preventDefault(),b.stopPropagation(),!R||c&&R.path===c.path)return void U(null);let d=c&&"directory"===c.type?c.path:"/";if("directory"===R.type){let a=R.path.endsWith("/")?R.path:R.path+"/";if((d.endsWith("/")?d:d+"/").startsWith(a)){G.oR.error("Cannot move a folder into itself"),U(null);return}}let e=R.name,f="/"===d?`/${e}`:`${d}/${e}`;try{"directory"===R.type?await g.vfs.moveDirectory(a,R.path,f):await g.vfs.moveFile(a,R.path,f),await Z(),G.oR.success(`Moved ${R.name} to ${"/"===d?"root":d}`)}catch(a){h.v.error("Failed to move item:",a),G.oR.error(`Failed to move: ${a.message}`)}U(null)},ai=(a,b=0)=>{let c,e,g,u=J.has(a.path),v=f===a.path,w=L===a.path,x=T===a.path,y=(c=a.path).startsWith("/.skills/")||c.startsWith("/.server/")||"/.skills"===c||"/.server"===c,z=(e=a.path).startsWith("/.server/")||"/.server"===e,A=(g=a.path).startsWith("/.skills/")||"/.skills"===g;return(0,d.jsxs)("div",{draggable:!w&&!y,onDragStart:b=>!y&&void(b.stopPropagation(),S(a),b.dataTransfer.effectAllowed="move"),onDragEnd:ag,onDragOver:b=>{var c;return"directory"===a.type&&!y&&(c=a.path,void(b.preventDefault(),b.stopPropagation(),R&&c!==R.path&&(b.dataTransfer.dropEffect="move",U(c))))},onDrop:b=>"directory"===a.type&&!y&&ah(b,a),children:[(0,d.jsxs)(B,{children:[(0,d.jsx)(C,{children:(0,d.jsxs)("div",{className:(0,h.cn)("flex items-center gap-2 px-2 py-1.5 hover:bg-accent hover:text-accent-foreground cursor-pointer rounded-md transition-colors",v&&"bg-accent text-accent-foreground",x&&"directory"===a.type&&"bg-blue-500/20 border border-blue-500",R?.path===a.path&&"opacity-50",y&&"opacity-75","group"),style:{paddingLeft:`${16*b+8}px`},onClick:()=>_(a),children:["directory"===a.type?(0,d.jsxs)(d.Fragment,{children:[u?(0,d.jsx)(n.A,{className:"w-4 h-4 text-muted-foreground"}):(0,d.jsx)(o.A,{className:"w-4 h-4 text-muted-foreground"}),z?(0,d.jsx)(j.A,{className:"w-4 h-4 text-orange-500"}):A?(0,d.jsx)(k.A,{className:"w-4 h-4 text-purple-500"}):u?(0,d.jsx)(l.A,{className:"w-4 h-4 text-blue-500"}):(0,d.jsx)(m.A,{className:"w-4 h-4 text-blue-500"})]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("span",{className:"w-4"}),(()=>{let b=(0,i.Gr)(a.path);return"image"===b?(0,d.jsx)(p.A,{className:"w-4 h-4 text-green-500"}):"video"===b?(0,d.jsx)(q.A,{className:"w-4 h-4 text-purple-500"}):(0,d.jsx)(r.A,{className:"w-4 h-4 text-muted-foreground"})})()]}),w?(0,d.jsx)(F.p,{value:N,onChange:a=>O(a.target.value),onBlur:()=>ad(a.path,a.type),onKeyDown:b=>{"Enter"===b.key?ad(a.path,a.type):"Escape"===b.key&&(M(null),O(""))},className:"h-5 text-sm",autoFocus:!0,onClick:a=>a.stopPropagation()}):(0,d.jsxs)("span",{className:(0,h.cn)("text-sm flex-1",y&&"italic"),children:[a.name,y&&(0,d.jsx)("span",{className:"text-xs text-muted-foreground ml-1",children:"(read-only)"})]})]})}),(0,d.jsxs)(D,{children:[!y&&(0,d.jsxs)(d.Fragment,{children:["directory"===a.type&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(E,{onClick:()=>aa(a.path),children:[(0,d.jsx)(r.A,{className:"mr-2 h-4 w-4"}),"New File"]}),(0,d.jsxs)(E,{onClick:()=>ab(a.path),children:[(0,d.jsx)(m.A,{className:"mr-2 h-4 w-4"}),"New Folder"]}),(0,d.jsxs)(E,{onClick:()=>X.current?.click(),children:[(0,d.jsx)(s.A,{className:"mr-2 h-4 w-4"}),"Upload Files"]})]}),(0,d.jsx)(E,{onClick:()=>{M(a.path),O(a.name)},children:"Rename"}),(0,d.jsx)(E,{onClick:()=>ac(a.path,a.type),className:"text-destructive",children:"Delete"})]}),y&&(0,d.jsxs)(E,{disabled:!0,children:[(0,d.jsx)(t.A,{className:"mr-2 h-4 w-4"}),"Read-only ",z?"server context":"skill"]})]})]}),"directory"===a.type&&u&&a.children&&(0,d.jsx)("div",{children:a.children.map(a=>ai(a,b+1))})]},a.path)};return(0,d.jsxs)("div",{className:"h-full flex flex-col",onDrop:ae,onDragOver:a=>{a.preventDefault(),a.stopPropagation(),Q(!0)},onDragLeave:a=>{a.preventDefault(),a.stopPropagation();let b=a.currentTarget.getBoundingClientRect(),c=a.clientX,d=a.clientY;(c=b.right||d=b.bottom)&&Q(!1)},children:[(0,d.jsx)("input",{ref:X,type:"file",multiple:!0,className:"hidden",onChange:async a=>{for(let b of Array.from(a.target.files||[]))await af(b,"/");X.current&&(X.current.value="")}}),(0,d.jsxs)("div",{className:"p-3 border-b bg-muted/70 flex items-center justify-between",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(u.A,{className:"h-4 w-4 md:hidden",style:{color:"var(--button-files-active)"}}),y?(0,d.jsxs)("button",{type:"button",onClick:y,"aria-label":"Hide file explorer",className:"relative hidden h-6 w-6 items-center justify-center rounded-sm text-muted-foreground transition-colors hover:text-destructive md:flex group",children:[(0,d.jsx)(u.A,{className:"h-4 w-4 transition-opacity group-hover:opacity-0",style:{color:"var(--button-files-active)"}}),(0,d.jsx)(v.A,{className:"absolute h-3 w-3 opacity-0 transition-opacity group-hover:opacity-100"})]}):(0,d.jsx)(u.A,{className:"hidden h-4 w-4 md:inline-flex",style:{color:"var(--button-files-active)"}}),(0,d.jsx)("h3",{className:"text-sm font-medium",children:"File Explorer"})]}),(0,d.jsxs)("div",{className:"flex gap-1",children:[(0,d.jsx)(x.$,{size:"icon",variant:"ghost",className:"h-5 w-5",onClick:()=>X.current?.click(),title:"Upload files",children:(0,d.jsx)(s.A,{className:"h-3 w-3"})}),(0,d.jsx)(x.$,{size:"icon",variant:"ghost",className:"h-5 w-5",onClick:()=>aa("/"),title:"New file",children:(0,d.jsx)(r.A,{className:"h-3 w-3"})}),(0,d.jsx)(x.$,{size:"icon",variant:"ghost",className:"h-5 w-5",onClick:()=>ab("/"),title:"New folder",children:(0,d.jsx)(m.A,{className:"h-3 w-3"})})]})]}),(0,d.jsxs)(B,{children:[(0,d.jsx)(C,{asChild:!0,children:(0,d.jsxs)("div",{className:(0,h.cn)("flex-1 overflow-y-auto p-3 space-y-0.5 relative",P&&"bg-blue-500/10"),onDragOver:a=>{R&&(a.preventDefault(),a.stopPropagation(),U("/"))},onDrop:a=>{R&&ah(a,null)},children:[P&&(0,d.jsx)("div",{className:"absolute inset-0 flex items-center justify-center pointer-events-none",children:(0,d.jsxs)("div",{className:"bg-blue-500/20 border-2 border-dashed border-blue-500 rounded-lg p-8",children:[(0,d.jsx)(s.A,{className:"h-12 w-12 text-blue-500 mx-auto mb-2"}),(0,d.jsx)("p",{className:"text-sm text-blue-600",children:"Drop files here to upload"})]})}),0===H.length?(0,d.jsx)("div",{className:"flex-1 flex items-center justify-center py-8",children:(0,d.jsxs)("div",{className:"text-center space-y-3",children:[(0,d.jsx)(m.A,{className:"h-12 w-12 mx-auto opacity-50 text-muted-foreground"}),(0,d.jsxs)("div",{className:"space-y-1",children:[(0,d.jsx)("p",{className:"text-base font-medium text-foreground",children:"No files yet"}),(0,d.jsx)("p",{className:"text-sm text-muted-foreground",children:"Create your first file to get started"})]})]})}):(0,d.jsx)("div",{className:"contents",children:H.map(a=>ai(a))})]})}),(0,d.jsxs)(D,{children:[(0,d.jsxs)(E,{onClick:()=>aa("/"),children:[(0,d.jsx)(r.A,{className:"mr-2 h-4 w-4"}),"New File"]}),(0,d.jsxs)(E,{onClick:()=>ab("/"),children:[(0,d.jsx)(m.A,{className:"mr-2 h-4 w-4"}),"New Folder"]}),(0,d.jsxs)(E,{onClick:()=>X.current?.click(),children:[(0,d.jsx)(s.A,{className:"mr-2 h-4 w-4"}),"Upload Files"]}),(0,d.jsxs)(E,{onClick:()=>W(!V),children:[V?(0,d.jsx)(w.A,{className:"mr-2 h-4 w-4"}):(0,d.jsx)(t.A,{className:"mr-2 h-4 w-4"}),V?"Hide Hidden Files":"Show Hidden Files"]})]})]})]})}var I=c(21564),J=c(33464),K=c(81100),L=c(88205),M=c(18310),N=c(45523);function O({projectId:a,onFilesChange:b,onClose:c}){let[i,j]=(0,e.useState)(new Map),[k,l]=(0,e.useState)(null),{resolvedTheme:m}=(0,N.D)(),[n,o]=(0,e.useState)(!1),q=f().useRef(new Set),r=(0,e.useCallback)((a,b)=>{void 0!==a&&"text"===t(b).type&&j(c=>{let d=new Map(c),e=d.get(b);if(e){let c=e.content!==a;d.set(b,{...e,content:a,modified:c})}return d})},[]),s=(0,e.useCallback)(async b=>{let c=i.get(b);if(c&&c.modified){q.current.add(b);try{await g.vfs.init();let d=await g.vfs.updateFile(a,b,c.content);j(a=>{let e=new Map(a);return e.set(b,{file:d,content:c.content,modified:!1}),e})}catch(a){h.v.error("Failed to save file:",a)}finally{setTimeout(()=>{q.current.delete(b)},100)}}},[i,a]);(0,e.useCallback)(a=>{(a.metaKey||a.ctrlKey)&&"s"===a.key&&(a.preventDefault(),k&&s(k))},[k,s]);let t=a=>{let b=a.split(".").pop()?.toLowerCase();if(["png","jpg","jpeg","gif","bmp","svg","webp"].includes(b||""))return{type:"image",language:"plaintext"};let c={js:"javascript",mjs:"javascript",ts:"typescript",tsx:"typescript",html:"html",htm:"html",css:"css",json:"json",md:"markdown",txt:"plaintext",xml:"xml",yaml:"yaml",yml:"yaml"};return c[b||""]?{type:"text",language:c[b||""]}:["zip","tar","gz","exe","bin","pdf","doc","docx","xls","xlsx","ppt","pptx"].includes(b||"")?{type:"unsupported",language:"plaintext"}:{type:"text",language:"plaintext"}},u=k?i.get(k):null;return(0,d.jsxs)("div",{className:"h-full flex flex-col",children:[(0,d.jsxs)("div",{className:"p-3 border-b bg-muted/70 flex items-center justify-between",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(J.A,{className:"h-4 w-4 md:hidden",style:{color:"var(--button-editor-active)"}}),c?(0,d.jsxs)("button",{type:"button",onClick:c,"aria-label":"Hide code editor",className:"relative hidden h-6 w-6 items-center justify-center rounded-sm text-muted-foreground transition-colors hover:text-destructive md:flex group",children:[(0,d.jsx)(J.A,{className:"h-4 w-4 transition-opacity group-hover:opacity-0",style:{color:"var(--button-editor-active)"}}),(0,d.jsx)(v.A,{className:"absolute h-3 w-3 opacity-0 transition-opacity group-hover:opacity-100"})]}):(0,d.jsx)(J.A,{className:"hidden h-4 w-4 md:inline-flex",style:{color:"var(--button-editor-active)"}}),(0,d.jsx)("h3",{className:"text-sm font-medium",children:"Code Editor"})]}),u?.modified&&"text"===t(u.file.path).type&&(0,d.jsxs)(x.$,{size:"sm",variant:"ghost",className:"h-5 px-2 gap-1.5",onClick:()=>s(k),children:[(0,d.jsx)(K.A,{className:"h-3 w-3"}),(0,d.jsx)("span",{className:"text-xs",children:"Save"})]})]}),0===i.size?(0,d.jsx)("div",{className:"flex-1 flex items-center justify-center text-muted-foreground",children:(0,d.jsxs)("div",{className:"text-center space-y-3",children:[(0,d.jsx)(L.A,{className:"h-12 w-12 mx-auto opacity-50"}),(0,d.jsxs)("div",{className:"space-y-1",children:[(0,d.jsx)("p",{className:"text-base font-medium",children:"No files open"}),(0,d.jsx)("p",{className:"text-sm",children:"Select a file from the explorer to edit"})]})]})}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{className:"border-b bg-muted/70",children:(0,d.jsx)("div",{className:"flex items-center overflow-x-auto scrollbar-thin",children:Array.from(i.entries()).map(([a,b])=>(0,d.jsxs)("div",{className:(0,h.cn)("flex items-center gap-2 px-4 py-2.5 border-r cursor-pointer transition-all relative group",k===a?"bg-background border-b-2 border-b-primary shadow-sm":"hover:bg-muted/50 border-b-2 border-b-transparent"),onClick:()=>l(a),children:[(0,d.jsxs)("span",{className:"text-sm",children:[b.file.name,b.modified&&(0,d.jsx)("span",{className:"text-orange-500 ml-1",children:"●"})]}),(0,d.jsx)(x.$,{size:"icon",variant:"ghost",className:"h-4 w-4 p-0 opacity-0 group-hover:opacity-100 transition-opacity",onClick:b=>((a,b)=>{b&&b.stopPropagation();let c=i.get(a);if((!c?.modified||confirm(`Close ${c.file.name} without saving?`))&&(j(b=>{let c=new Map(b);return c.delete(a),c}),k===a)){let b=Array.from(i.keys()).filter(b=>b!==a);l(b.length>0?b[b.length-1]:null)}})(a,b),children:(0,d.jsx)(v.A,{className:"h-3 w-3 hover:text-destructive"})})]},a))})}),u&&(0,d.jsx)("div",{className:"flex-1 border-t",children:(()=>{let a=t(u.file.path);return"image"===a.type?(0,d.jsx)("div",{className:"h-full flex items-center justify-center bg-background p-8",children:(0,d.jsxs)("div",{className:"text-center space-y-4 max-w-2xl",children:[(0,d.jsx)(p.A,{className:"h-12 w-12 mx-auto text-muted-foreground"}),(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)("h3",{className:"text-lg font-medium",children:"Image Preview"}),(0,d.jsx)("p",{className:"text-sm text-muted-foreground",children:u.file.name})]}),(0,d.jsx)("div",{className:"border rounded-lg p-4 bg-muted/30 max-h-96 overflow-auto",children:(0,d.jsx)("img",{src:`data:image/${u.file.path.split(".").pop()};base64,${u.content}`,alt:u.file.name,className:"max-w-full h-auto rounded shadow-sm",onError:a=>{let b=a.target;if(b.style.display="none",!b.parentElement?.querySelector(".error-msg")){let a=document.createElement("div");a.className="error-msg text-sm text-muted-foreground flex items-center gap-2",a.innerHTML='Unable to display image',b.parentElement?.appendChild(a)}}})}),(0,d.jsx)("p",{className:"text-xs text-muted-foreground",children:"Image files cannot be edited in the text editor"})]})}):"unsupported"===a.type?(0,d.jsx)("div",{className:"h-full flex items-center justify-center bg-background p-8",children:(0,d.jsxs)("div",{className:"text-center space-y-4",children:[(0,d.jsx)(M.A,{className:"h-12 w-12 mx-auto text-muted-foreground"}),(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)("h3",{className:"text-lg font-medium",children:"Unsupported File Type"}),(0,d.jsx)("p",{className:"text-sm text-muted-foreground",children:u.file.name}),(0,d.jsx)("p",{className:"text-sm text-muted-foreground max-w-md",children:"This file type is not supported for editing in the text editor. Binary files and certain document formats cannot be displayed here."})]})]})}):(0,d.jsx)(I.Ay,{height:"100%",language:t(u.file.path).language,value:u.content,onChange:a=>r(a,u.file.path),theme:n?"dark"===m?"vs-dark":"light":"vs-dark",options:{minimap:{enabled:!1},fontSize:14,lineNumbers:"on",roundedSelection:!1,scrollBeyondLastLine:!1,automaticLayout:!0,tabSize:2,wordWrap:"on",wrappingIndent:"indent"}})})()})]})]})}function P(a){window.dispatchEvent(new CustomEvent("openFile",{detail:a}))}var Q=c(9284),R=c(79944),S=c(9212),T=c(94684),U=c(44688),V=c(11861),W=c(38547),X=c(91032),Y=c(77030),Z=c(47247),$=c(57771);let _=new Set(["assistant_delta","tool_param_delta","reasoning_delta"]);class aa{async initDB(){if(this.isInitialized)return;let{vfs:a}=await Promise.resolve().then(c.bind(c,11482));await a.init(),this.isInitialized=!0}async getDB(){let{vfs:a}=await Promise.resolve().then(c.bind(c,11482));return a.getDatabase()}getDebugEventsId(a){return`debug_events_${a}`}async loadEvents(a){await this.initDB();let b=await this.getDB(),c=this.getDebugEventsId(a);return new Promise((d,e)=>{let f=b.transaction([this.storeName],"readonly").objectStore(this.storeName).get(c);f.onsuccess=()=>{let b=f.result;b&&b.events?(this.eventsCache.set(a,b.events),d(b.events)):d([])},f.onerror=()=>{h.v.error("Failed to load debug events from DB"),e(f.error)}})}async saveEvents(a,b){await this.initDB();let c=await this.getDB(),d={id:this.getDebugEventsId(a),projectId:a,events:b,lastUpdated:new Date().toISOString()};return new Promise((e,f)=>{let g=c.transaction([this.storeName],"readwrite").objectStore(this.storeName).put(d);g.onsuccess=()=>{this.eventsCache.set(a,b),e()},g.onerror=()=>{h.v.error("Failed to save debug events to DB"),f(g.error)}})}async appendEvent(a,b){let c=this.eventsCache.get(a);c||(c=await this.loadEvents(a)),c.push(b),this.eventsCache.set(a,c),_.has(b.event)||await this.saveEvents(a,c)}async clearEvents(a){this.eventsCache.delete(a),await this.saveEvents(a,[]),h.v.debug(`[DebugEventsState] Cleared debug events for project ${a}`)}async truncateEvents(a,b){this.eventsCache.set(a,b),await this.saveEvents(a,b),h.v.debug(`[DebugEventsState] Truncated debug events for project ${a} to ${b.length} events`)}async getEvents(a){let b=this.eventsCache.get(a);return b||(b=await this.loadEvents(a)),b}async deleteProject(a){await this.initDB();let b=await this.getDB(),c=this.getDebugEventsId(a);return new Promise((d,e)=>{let f=b.transaction([this.storeName],"readwrite").objectStore(this.storeName).delete(c);f.onsuccess=()=>{this.eventsCache.delete(a),d()},f.onerror=()=>{h.v.error("Failed to delete debug events from DB"),e(f.error)}})}unloadProject(a){let b=this.eventsCache.has(a);this.eventsCache.delete(a),b&&h.v.debug(`[DebugEventsState] Unloaded debug events cache for project ${a}`)}constructor(){this.eventsCache=new Map,this.storeName="debugEvents",this.isInitialized=!1}}let ab=new aa;var ac=c(10596),ad=c(94122);let ae=({className:a,...b})=>(0,d.jsx)(ad.YZ,{className:(0,h.cn)("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",a),...b}),af=ad.Zk,ag=({withHandle:a,className:b,...c})=>(0,d.jsx)(ad.TW,{className:(0,h.cn)("group relative flex w-2 mx-1 items-center justify-center bg-transparent hover:bg-border/50 transition-colors after:absolute after:inset-y-0 after:left-1/2 after:w-4 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-2 data-[panel-group-direction=vertical]:my-1 data-[panel-group-direction=vertical]:mx-0 data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-4 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90 cursor-col-resize data-[panel-group-direction=vertical]:cursor-row-resize",b),...c,children:a&&(0,d.jsx)("div",{className:"z-10 flex h-12 w-1 items-center justify-center rounded-full bg-border/30 hover:bg-border/50 transition-colors opacity-0 group-hover:opacity-100",children:(0,d.jsx)(ac.A,{className:"h-3 w-3 text-muted-foreground/50"})})});var ah=c(36736),ai=c(98763),aj=c(49186),ak=c(61010),al=c(85986),am=c(14258),an=c(95919),ao=c(93554),ap=c(62949),aq=c(40284),ar=c(77917),as=c(82042),at=c(37240);function au(){let[a,b]=(0,e.useState)(null),[c,f]=(0,e.useState)(!1);return c&&a?(0,d.jsxs)("div",{className:`text-xs font-mono ${a.percent>80?"text-red-500":a.percent>60?"text-yellow-500":"text-muted-foreground"} flex items-center gap-1`,title:`JS Heap: ${a.usedMB}MB used / ${a.totalMB}MB limit (${a.percent}%)`,children:[(0,d.jsx)("span",{className:"opacity-60",children:"MEM:"}),(0,d.jsxs)("span",{children:[a.usedMB,"MB"]}),a.percent>60&&(0,d.jsxs)("span",{className:"opacity-60",children:["(",a.percent,"%)"]})]}):null}function av({events:a,onClear:b,onClose:c,projectId:f}){let[g,h]=(0,e.useState)(""),[i,j]=(0,e.useState)(!0),k=(0,e.useRef)(null),[l,m]=(0,e.useState)(!0),[n,o]=(0,e.useState)(""),[p,q]=(0,e.useState)([]),[r,s]=(0,e.useState)(!1),t=(0,e.useRef)(null),u=(0,e.useMemo)(()=>{let b=[],c=null,d=new Set(["assistant_delta","tool_param_delta","reasoning_delta"]);for(let e of a)d.has(e.event)?c&&c.event===e.event?c.count=(c.count||1)+1:(c&&b.push(c),c={...e,count:1}):(c&&(b.push(c),c=null),b.push(e));return c&&b.push(c),b},[a]),w=async()=>{if(!n.trim()||!f||r)return;let a=n.trim();o(""),s(!0);try{let b=a.split(/\s+/),c=await at._.execute(f,b),d=c.success?c.stdout||"(no output)":c.stderr||"Command failed";q(b=>[...b,{cmd:a,output:d,isError:!c.success}])}catch(b){q(c=>[...c,{cmd:a,output:`Error: ${b instanceof Error?b.message:"Unknown error"}`,isError:!0}])}finally{s(!1),setTimeout(()=>{t.current?.scrollTo({top:t.current.scrollHeight,behavior:"smooth"})},50)}},y=g?u.filter(a=>a.event.toLowerCase().includes(g.toLowerCase())):u,z=a.reduce((a,b)=>(a[b.event]=(a[b.event]||0)+1,a),{});return(0,d.jsxs)("div",{className:"h-full flex flex-col bg-card border border-border rounded-lg overflow-hidden",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between p-3 border-b border-border bg-muted/30 shrink-0",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(W.A,{className:"h-4 w-4 md:hidden"}),c?(0,d.jsxs)("button",{type:"button",onClick:c,"aria-label":"Hide debug panel",className:"relative hidden h-6 w-6 items-center justify-center rounded-sm text-muted-foreground transition-colors hover:text-destructive md:flex group",children:[(0,d.jsx)(W.A,{className:"h-4 w-4 transition-opacity group-hover:opacity-0"}),(0,d.jsx)(v.A,{className:"absolute h-3 w-3 opacity-0 transition-opacity group-hover:opacity-100"})]}):(0,d.jsx)(W.A,{className:"hidden h-4 w-4 md:inline-flex"}),(0,d.jsx)("span",{className:"font-semibold text-sm",children:"Debug Events"}),(0,d.jsxs)("span",{className:"text-xs text-muted-foreground",children:["(",y.length,"/",a.length,")"]}),(0,d.jsx)(au,{})]}),(0,d.jsxs)("div",{className:"flex items-center gap-1",children:[(0,d.jsx)(x.$,{variant:"ghost",size:"sm",onClick:()=>{b?.()},className:"h-7 px-2 hover:bg-muted",title:"Clear all events",children:(0,d.jsx)(aq.A,{className:"h-3 w-3"})}),(0,d.jsx)(x.$,{variant:"ghost",size:"sm",onClick:()=>{let b=new Blob([JSON.stringify(a,null,2)],{type:"application/json"}),c=URL.createObjectURL(b),d=document.createElement("a");d.href=c,d.download=`debug-events-${Date.now()}.json`,d.click(),URL.revokeObjectURL(c)},className:"h-7 px-2 text-xs hover:bg-muted",title:"Export to JSON",children:"Export"})]})]}),(0,d.jsx)("div",{className:"p-2 border-b border-border bg-muted/20 text-xs",children:(0,d.jsx)("div",{className:"flex flex-wrap gap-2",children:Object.entries(z).map(([a,b])=>(0,d.jsxs)("button",{onClick:()=>h(g===a?"":a),className:`px-2 py-1 rounded ${g===a?"bg-primary text-primary-foreground":"bg-muted hover:bg-muted/80"}`,children:[a," (",b,")"]},a))})}),(0,d.jsx)("div",{className:"p-2 border-b border-border",children:(0,d.jsx)("input",{type:"text",placeholder:"Filter events...",value:g,onChange:a=>h(a.target.value),className:"w-full px-2 py-1 text-xs rounded bg-background border border-border"})}),(0,d.jsx)("div",{className:"p-2 border-b border-border flex items-center gap-2",children:(0,d.jsxs)("label",{className:"text-xs flex items-center gap-1 cursor-pointer",children:[(0,d.jsx)("input",{type:"checkbox",checked:l,onChange:a=>m(a.target.checked),className:"rounded"}),"Auto-scroll"]})}),(0,d.jsxs)("div",{className:"flex-1 overflow-y-auto p-2 space-y-1",children:[0===y.length?(0,d.jsx)("div",{className:"text-xs text-muted-foreground text-center p-4",children:"No events yet. Events will appear here as they occur."}):y.map(a=>(0,d.jsx)(aw,{event:a},a.id)),(0,d.jsx)("div",{ref:k})]}),f&&(0,d.jsxs)("div",{className:"border-t border-border shrink-0",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 px-3 py-1.5 bg-muted/30 border-b border-border",children:[(0,d.jsx)(ar.A,{className:"h-3 w-3 text-muted-foreground"}),(0,d.jsx)("span",{className:"text-xs font-medium",children:"VFS Shell"}),p.length>0&&(0,d.jsx)("button",{onClick:()=>q([]),className:"ml-auto text-xs text-muted-foreground hover:text-foreground",children:"Clear"})]}),p.length>0&&(0,d.jsx)("div",{ref:t,className:"max-h-32 overflow-y-auto p-2 bg-zinc-950 font-mono text-xs",children:p.map((a,b)=>(0,d.jsxs)("div",{className:"mb-2",children:[(0,d.jsxs)("div",{className:"text-emerald-400",children:["$ ",a.cmd]}),(0,d.jsx)("pre",{className:`whitespace-pre-wrap ${a.isError?"text-red-400":"text-zinc-300"}`,children:a.output})]},b))}),(0,d.jsxs)("div",{className:"flex items-center gap-2 p-2 bg-zinc-950",children:[(0,d.jsx)("span",{className:"text-emerald-400 font-mono text-xs",children:"$"}),(0,d.jsx)("input",{type:"text",value:n,onChange:a=>o(a.target.value),onKeyDown:a=>"Enter"===a.key&&w(),placeholder:"ls -la /.skills/",disabled:r,className:"flex-1 bg-transparent border-none outline-none text-xs font-mono text-zinc-100 placeholder:text-zinc-600"}),(0,d.jsx)(x.$,{variant:"ghost",size:"sm",onClick:w,disabled:r||!n.trim(),className:"h-6 px-2 text-xs text-zinc-400 hover:text-zinc-100 hover:bg-zinc-800",children:r?"...":"Run"})]})]})]})}function aw({event:a}){var b;let[c,f]=(0,e.useState)(!1),g=new Date(a.timestamp).toLocaleTimeString();return(0,d.jsxs)(ap.Nt,{open:c,onOpenChange:f,children:[(0,d.jsx)(ap.R6,{className:"w-full text-left",children:(0,d.jsxs)("div",{className:"flex items-center gap-2 p-1.5 rounded hover:bg-muted/50 text-xs",children:[c?(0,d.jsx)(as.A,{className:"h-3 w-3"}):(0,d.jsx)(n.A,{className:"h-3 w-3"}),(0,d.jsx)("span",{className:"text-muted-foreground font-mono",children:g}),(0,d.jsx)("span",{className:`font-semibold ${(b=a.event).includes("error")||b.includes("failed")?"text-red-500":b.includes("retry")?"text-yellow-500":b.includes("completed")||b.includes("success")?"text-green-500":b.includes("tool")?"text-blue-500":b.includes("agent")?"text-purple-500":b.includes("plan")?"text-orange-500":"text-foreground"}`,children:a.event}),a.count&&a.count>1&&(0,d.jsxs)("span",{className:"text-muted-foreground font-mono",children:["(",a.count,")"]})]})}),(0,d.jsx)(ap.Ke,{children:(0,d.jsx)("div",{className:"ml-6 p-2 bg-muted/30 rounded text-xs font-mono overflow-x-auto",children:(0,d.jsx)("pre",{children:JSON.stringify(a.data,null,2)})})})]})}var ax=c(14263),ay=c(75219),az=c(91292),aA=c(71563),aB=c(33204),aC=c(25345),aD=c(60073),aE=c(94104),aF=c(55056),aG=c(15649),aH=c(33847),aI=c(46435),aJ=c(26946);function aK({content:a}){if("string"==typeof a)return(0,d.jsx)("div",{className:"whitespace-pre-wrap",children:a});let b=a.filter(a=>"text"===a.type),c=a.filter(a=>"image_url"===a.type);return(0,d.jsxs)("div",{className:"space-y-2",children:[b.map((a,b)=>(0,d.jsx)("div",{className:"whitespace-pre-wrap",children:"text"===a.type&&a.text},`text-${b}`)),c.length>0&&(0,d.jsx)("div",{className:"flex flex-wrap gap-2 p-1 rounded-md bg-muted/50",children:c.map((a,b)=>"image_url"===a.type&&(0,d.jsx)("img",{src:a.image_url.url,alt:"Attached image",className:"h-[60px] w-auto rounded border border-border object-cover"},`img-${b}`))})]})}let aL={shell:(0,d.jsx)(o.A,{className:"h-3 w-3 text-blue-500"}),json_patch:(0,d.jsx)(L.A,{className:"h-3 w-3 text-orange-500"})},aM={pending:(0,d.jsx)(ax.A,{className:"h-3 w-3 animate-spin text-gray-400"}),executing:(0,d.jsx)(ax.A,{className:"h-3 w-3 animate-spin text-blue-500"}),completed:(0,d.jsx)(ay.A,{className:"h-3 w-3 text-green-500"}),failed:(0,d.jsx)(az.A,{className:"h-3 w-3 text-red-500"})};function aN({events:a,onRestore:b,onRetry:c,prompt:f,setPrompt:g,generating:h,onGenerate:i,onStop:j,focusContext:k,setFocusContext:l,focusPreviewSnippet:m,chatMode:o,setChatMode:q,currentModel:r,setCurrentModel:s,getModelDisplayName:t,isTourLockingInput:u=!1,onClearChat:w,onClose:y,supportsVision:z=!1,providerReady:A=!0}){let B=(0,e.useRef)(null),[C,D]=(0,e.useState)(!0),[E,F]=(0,e.useState)(!1),[G,H]=(0,e.useState)(new Set);(0,e.useRef)(!1);let[I,J]=(0,e.useState)([]),[K,L]=(0,e.useState)(!1),M=(0,e.useCallback)(a=>{if(a.preventDefault(),L(!1),z)for(let b of Array.from(a.dataTransfer.files).filter(a=>a.type.startsWith("image/"))){let a=new FileReader;a.onload=()=>{let b=a.result,[c,d]=b.split(","),e=c.match(/data:([^;]+)/)?.[1]||"image/png";J(a=>[...a,{id:`img-${Date.now()}-${Math.random().toString(36).slice(2,11)}`,data:d,mediaType:e,preview:b}])},a.readAsDataURL(b)}},[z]),N=(0,e.useCallback)(a=>{a.preventDefault(),z&&L(!0)},[z]),O=(0,e.useCallback)(a=>{a.preventDefault(),L(!1)},[]),P=(0,e.useCallback)(a=>{if(!z)return;let b=a.clipboardData?.items;if(b){for(let a of Array.from(b))if(a.type.startsWith("image/")){let b=a.getAsFile();if(b){let a=new FileReader;a.onload=()=>{let b=a.result,[c,d]=b.split(","),e=c.match(/data:([^;]+)/)?.[1]||"image/png";J(a=>[...a,{id:`img-${Date.now()}-${Math.random().toString(36).slice(2,11)}`,data:d,mediaType:e,preview:b}])},a.readAsDataURL(b)}}}},[z]),Q=(0,e.useCallback)(a=>{J(b=>b.filter(b=>b.id!==a))},[]),R=(0,e.useCallback)(()=>{I.length>0?(i(I),J([])):i()},[i,I]),S=(0,e.useRef)(0),T=(0,e.useRef)(new Map),V=(0,e.useRef)({result:[],currentTurn:{id:`turn-${Date.now()}`,items:[]},currentIterationTools:[],itemIdCounter:0}),W=(0,e.useMemo)(()=>{let b,c=V.current,d=a.length-S.current;if(0===a.length||S.current>a.length)return S.current=0,T.current=new Map,V.current={result:[],currentTurn:{id:`turn-${Date.now()}`,items:[]},currentIterationTools:[],itemIdCounter:0},[];let e=a[a.length-1],f=e&&("assistant_delta"===e.event||"tool_param_delta"===e.event||"reasoning_delta"===e.event),g=T.current.get(e?.id||""),h=f&&e.version&&g!==e.version;if(0===d&&!h)return[...c.result,...c.currentTurn.items.length>0?[c.currentTurn]:[]];for(let d of(h?(b=[e],T.current.set(e.id,e.version)):b=a.slice(S.current),b))switch(d.event){case"waiting":c.currentTurn.items.push({id:`item-${c.itemIdCounter++}`,type:"waiting",timestamp:d.timestamp,data:null});break;case"reasoning_start":case"stopped":c.currentTurn.items=c.currentTurn.items.filter(a=>"waiting"!==a.type);break;case"reasoning_delta":let a=(d.data?.all||[d.data]).map(a=>a?.text||"").join("");if(!a.trim()){c.currentTurn.items=c.currentTurn.items.filter(a=>"waiting"!==a.type);break}let b=c.currentTurn.items.find(a=>"reasoning"===a.type&&a.eventId===d.id);if(b)b.data=a;else{let b={id:`item-${c.itemIdCounter++}`,type:"reasoning",timestamp:d.timestamp,data:a,eventId:d.id};c.currentTurn.items.push(b)}c.currentTurn.items=c.currentTurn.items.filter(a=>"waiting"!==a.type);break;case"reasoning_complete":c.currentTurn.items=c.currentTurn.items.filter(a=>"waiting"!==a.type);break;case"toolCalls":let e=d.data?.toolCalls||[];for(let a=0;a"waiting"!==a.type);break;case"tool_status":let{toolIndex:f,status:g,result:h,error:i}=d.data||{},j=c.currentIterationTools[f];if(j&&(j.status=g,h&&(j.result=h),i&&(j.error=i),"executing"===g&&j.parameters?._raw&&"string"==typeof j.parameters._raw))try{j.parameters=JSON.parse(j.parameters._raw)}catch{}break;case"tool_result":let k=c.currentIterationTools[d.data?.toolIndex];k&&d.data?.result&&(k.result=d.data.result);break;case"tool_param_delta":for(let a of d.data?.all||[d.data]){let{toolId:b,partialArguments:d}=a||{};if(!b)continue;let e=c.currentTurn.items.find(a=>"tool"===a.type&&a.data?.id===b);if(e){let a=e.data;try{a.parameters=JSON.parse(d)}catch{a.parameters={_raw:d}}}}break;case"assistant_delta":let l=d.data?.all||[d.data],m=c.currentTurn.items.find(a=>"text"===a.type&&a.eventId===d.id),n=l.map(a=>a?.text||"").join("");if(n)if(m)m.data=n;else{let a={id:`item-${c.itemIdCounter++}`,type:"text",timestamp:d.timestamp,data:n,eventId:d.id};c.currentTurn.items.push(a)}c.currentTurn.items=c.currentTurn.items.filter(a=>"waiting"!==a.type);break;case"plan_message":c.currentTurn.items.push({id:`item-${c.itemIdCounter++}`,type:"plan",timestamp:d.timestamp,data:d.data?.content||""});break;case"agent_message":c.currentTurn.items.push({id:`item-${c.itemIdCounter++}`,type:"agent",timestamp:d.timestamp,data:d.data?.content||""});break;case"task_progress":c.currentTurn.items.push({id:`item-${c.itemIdCounter++}`,type:"progress",timestamp:d.timestamp,data:d.data?.content||""});break;case"conversation_message":let o=d.data?.message;if(o?.role==="user"){if(o.content?.includes("Before finishing, you must call the evaluation tool"))break;let a=o.ui_metadata?.isSyntheticError===!0;c.currentTurn.items.push({id:`item-${c.itemIdCounter++}`,type:a?"synthetic_error":"user",timestamp:d.timestamp,data:o.content||""})}break;case"user_message":c.currentTurn.items.push({id:`item-${c.itemIdCounter++}`,type:"user",timestamp:d.timestamp,data:d.data?.content||""});break;case"error":c.currentTurn.items.push({id:`item-${c.itemIdCounter++}`,type:"error",timestamp:d.timestamp,data:d.data}),c.currentTurn.items=c.currentTurn.items.filter(a=>"waiting"!==a.type);break;case"usage":c.currentTurn.usage=d.data,c.currentTurn.items=c.currentTurn.items.filter(a=>"waiting"!==a.type);break;case"checkpoint_created":c.currentTurn.checkpointId=d.data?.checkpointId;break;case"iteration":c.currentTurn.iteration=d.data?.iteration,c.currentTurn.items.length>0&&(c.result.push(c.currentTurn),c.currentTurn={id:`turn-${Date.now()}-${c.result.length}`,items:[]}),c.currentIterationTools=[]}return h||(S.current=a.length),[...c.result,...c.currentTurn.items.length>0?[c.currentTurn]:[]]},[a]),X=a=>{H(b=>{let c=new Set(b);return c.has(a)?c.delete(a):c.add(a),c})},Y=m?.trim()??"",Z=k?(0,d.jsxs)("div",{id:"focus-context-hint",className:"rounded-md border border-dashed border-primary/40 bg-primary/5 px-3 py-2 text-xs text-muted-foreground shadow-sm",children:[(0,d.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2 text-foreground",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"font-medium text-xs uppercase tracking-wide text-primary",children:"context"}),(0,d.jsx)("span",{className:"text-[10px] uppercase tracking-wide text-muted-foreground",children:"included in next message"})]}),(0,d.jsx)(x.$,{size:"sm",variant:"ghost",className:"h-6 px-2 text-xs",onClick:()=>l(null),title:"Clear focus context",children:"Clear"})]}),(0,d.jsxs)("div",{className:"mt-2 space-y-2",children:[k.domPath&&(0,d.jsx)("div",{className:"text-[11px] font-mono text-muted-foreground/80 break-all leading-snug",children:k.domPath}),Y&&(0,d.jsx)("pre",{className:"max-h-24 overflow-auto rounded border border-border/50 bg-background/90 px-2 py-1 text-[11px] text-foreground leading-relaxed",children:(0,d.jsx)("code",{children:Y})})]})]}):null;return(0,d.jsxs)("div",{className:"h-full flex flex-col bg-card border border-border rounded-lg overflow-hidden","data-tour-id":"assistant-panel",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between p-3 border-b border-border bg-muted/30 shrink-0",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(U.A,{className:"h-4 w-4 md:hidden",style:{color:"var(--button-assistant-active)"}}),y?(0,d.jsxs)("button",{type:"button",onClick:y,"aria-label":"Hide chat panel",className:"relative hidden h-6 w-6 items-center justify-center rounded-sm text-muted-foreground transition-colors hover:text-destructive md:flex group",children:[(0,d.jsx)(U.A,{className:"h-4 w-4 transition-opacity group-hover:opacity-0",style:{color:"var(--button-assistant-active)"}}),(0,d.jsx)(v.A,{className:"absolute h-3 w-3 opacity-0 transition-opacity group-hover:opacity-100"})]}):(0,d.jsx)(U.A,{className:"hidden h-4 w-4 md:inline-flex",style:{color:"var(--button-assistant-active)"}}),(0,d.jsx)("span",{className:"font-semibold text-sm",children:"Chat"})]}),(0,d.jsx)("div",{className:"flex items-center gap-1",children:w&&(0,d.jsx)(x.$,{variant:"ghost",size:"sm",onClick:w,className:"h-7 px-2 hover:bg-muted",title:"Clear chat","data-tour-id":"clear-chat-button",children:(0,d.jsx)(aq.A,{className:"h-3 w-3"})})})]}),(0,d.jsx)("div",{ref:B,className:"flex-1 overflow-y-auto p-4 space-y-4",children:0===W.length?(0,d.jsx)("div",{className:"text-xs text-muted-foreground text-center p-4",children:"No messages yet. Start a conversation to see it here."}):W.map(a=>(0,d.jsx)(aO,{turn:a,onRestore:b,onRetry:c,expandedItems:G,onToggleExpanded:X},a.id))}),(0,d.jsxs)("div",{className:"p-3 space-y-2",children:[Z,(0,d.jsxs)("div",{className:`bg-card border rounded-lg shadow-sm overflow-hidden transition-all ${K?"border-primary border-2 bg-primary/5":"border-border"}`,onDrop:M,onDragOver:N,onDragLeave:O,children:[I.length>0&&(0,d.jsxs)("div",{className:"px-3 pt-2 flex flex-wrap gap-2",children:[I.map(a=>(0,d.jsxs)("div",{className:"relative group",children:[(0,d.jsx)("img",{src:a.preview,alt:"Pending upload",className:"h-12 w-12 object-cover rounded border border-border"}),(0,d.jsx)("button",{onClick:()=>Q(a.id),className:"absolute -top-1 -right-1 h-4 w-4 bg-destructive text-destructive-foreground rounded-full flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity",title:"Remove image",children:(0,d.jsx)(v.A,{className:"h-3 w-3"})})]},a.id)),(0,d.jsxs)("span",{className:"text-xs text-muted-foreground self-end pb-1",children:[I.length," image",1!==I.length?"s":""," attached"]})]}),K&&z&&(0,d.jsx)("div",{className:"absolute inset-0 flex items-center justify-center bg-primary/10 z-10 pointer-events-none",children:(0,d.jsxs)("div",{className:"text-primary font-medium flex items-center gap-2",children:[(0,d.jsx)(p.A,{className:"h-5 w-5"}),"Drop image here"]})}),(0,d.jsxs)("div",{className:"relative flex bg-card rounded-lg transition-all",children:[(0,d.jsx)(aH.T,{value:f,onChange:a=>g(a.target.value),onKeyDown:a=>{!u&&"Enter"===a.key&&(a.ctrlKey||a.metaKey)&&(a.preventDefault(),R())},onPaste:P,placeholder:A?z?"Describe what you want to build... (paste or drop images)":"Describe what you want to build...":"Select a provider to start...",className:"flex-1 px-3 py-2 bg-transparent border-0 resize-none focus:outline-none text-sm placeholder:text-muted-foreground text-foreground",rows:3,disabled:h||u||!A}),(0,d.jsx)("div",{className:"flex flex-col p-2 gap-2",children:(0,d.jsx)(x.$,{onClick:h?j:R,disabled:u?!h:!h&&(!f.trim()&&0===I.length||!A),size:"sm",className:"flex items-center gap-2",children:h?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(ax.A,{className:"h-4 w-4 animate-spin"}),"Stop"]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(aA.A,{className:"h-4 w-4"}),"Send"]})})})]}),(0,d.jsx)("div",{className:"border-t border-border bg-muted/50 px-2 py-2",children:(0,d.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,d.jsxs)(ak.AM,{open:E,onOpenChange:F,children:[(0,d.jsx)(ak.Wv,{asChild:!0,children:(0,d.jsxs)(x.$,{variant:"outline",size:"sm",className:`h-7 text-xs ${!A?"ring-2 ring-primary/70 animate-ring-opacity border-primary":""}`,"data-tour-id":"provider-settings-trigger",children:[(0,d.jsx)("span",{children:A?t(r):"Select provider"}),E?(0,d.jsx)(n.A,{className:"h-3 w-3 ml-1"}):(0,d.jsx)(as.A,{className:"h-3 w-3 ml-1"})]})}),(0,d.jsx)(ak.hl,{className:"w-[460px] max-w-[calc(100vw-2rem)] max-h-[min(680px,calc(100vh-5rem))] overflow-hidden flex flex-col",align:"start","data-tour-id":"provider-settings-popup",children:(0,d.jsx)(aJ.t,{onClose:()=>F(!1),onModelChange:a=>s(a)})})]}),(0,d.jsxs)(aI.OY,{type:"single",value:o?"chat":"code",onValueChange:a=>{a&&q("chat"===a)},className:"gap-1",children:[(0,d.jsxs)(aI.dz,{value:"chat",className:"h-7 text-xs px-2",children:[(0,d.jsx)(U.A,{className:"h-3 w-3 mr-1"}),"Chat"]}),(0,d.jsxs)(aI.dz,{value:"code",className:"h-7 text-xs px-2",children:[(0,d.jsx)(aB.A,{className:"h-3 w-3 mr-1"}),"Code"]})]})]})})]})]})]})}function aO({turn:a,onRestore:b,onRetry:c,expandedItems:e,onToggleExpanded:f}){return(0,d.jsxs)("div",{className:"space-y-2",...a.checkpointId?{"data-checkpoint-id":a.checkpointId}:{},children:[a.items.map(a=>{switch(a.type){case"waiting":return(0,d.jsx)("div",{className:"bg-muted/30 rounded-md p-2 opacity-70",children:(0,d.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,d.jsx)(ax.A,{className:"h-3 w-3 animate-spin text-blue-400"}),(0,d.jsx)("span",{className:"text-xs text-muted-foreground",children:"Waiting for response..."})]})},a.id);case"reasoning":return(0,d.jsx)(aR,{itemId:a.id,content:a.data,isExpanded:e.has(a.id),onToggle:()=>f(a.id)},a.id);case"plan":return(0,d.jsx)(aS,{itemId:a.id,content:a.data,isExpanded:e.has(a.id),onToggle:()=>f(a.id)},a.id);case"agent":return(0,d.jsx)(aT,{itemId:a.id,content:a.data,isExpanded:e.has(a.id),onToggle:()=>f(a.id)},a.id);case"progress":return(0,d.jsx)(aU,{itemId:a.id,content:a.data,isExpanded:e.has(a.id),onToggle:()=>f(a.id)},a.id);case"tool":return(0,d.jsx)(aP,{itemId:a.id,tool:a.data,isExpanded:e.has(a.id),onToggle:()=>f(a.id)},a.id);case"text":return(0,d.jsx)("div",{className:"text-sm text-foreground/90 bg-muted/20 px-3 py-2 rounded",children:(0,d.jsx)(aG.T,{content:a.data})},a.id);case"user":return(0,d.jsxs)("div",{className:"text-sm text-foreground bg-primary/10 px-3 py-2 rounded border border-primary/20",children:[(0,d.jsx)("div",{className:"font-semibold text-primary mb-1 text-xs",children:"User"}),(0,d.jsx)(aK,{content:a.data})]},a.id);case"synthetic_error":return(0,d.jsx)(aQ,{itemId:a.id,content:a.data,isExpanded:e.has(a.id),onToggle:()=>f(a.id)},a.id);case"error":return(0,d.jsx)("div",{className:"text-sm bg-destructive/10 border border-destructive/20 px-3 py-2 rounded",children:(0,d.jsxs)("div",{className:"flex items-start gap-2",children:[(0,d.jsx)(az.A,{className:"h-4 w-4 text-destructive mt-0.5 shrink-0"}),(0,d.jsxs)("div",{className:"flex-1",children:[(0,d.jsx)("div",{className:"font-semibold text-destructive mb-1",children:"Error"}),(0,d.jsx)("div",{className:"text-destructive/90 whitespace-pre-wrap font-mono text-xs",children:a.data?.message||JSON.stringify(a.data,null,2)}),a.data?.stack&&(0,d.jsxs)("details",{className:"mt-2",children:[(0,d.jsx)("summary",{className:"text-xs text-destructive/70 cursor-pointer hover:text-destructive",children:"Stack trace"}),(0,d.jsx)("pre",{className:"text-[10px] text-destructive/60 mt-1 overflow-x-auto",children:a.data.stack})]})]})]})},a.id);default:return null}}),(a.usage||a.checkpointId)&&(0,d.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[a.usage&&(0,d.jsxs)("div",{className:"text-xs text-muted-foreground",children:["Tokens: ",(a.usage.usage?.totalTokens||a.usage.totalTokens)?.toLocaleString()||"N/A",(void 0!==a.usage.totalCost||void 0!==a.usage.cost)&&` • Cost: $${((a.usage.totalCost??a.usage.cost)||0).toFixed(4)}`]}),a.checkpointId&&(0,d.jsxs)("div",{className:"flex items-center gap-1",children:[b&&(0,d.jsxs)(x.$,{size:"sm",variant:"ghost",onClick:()=>b(a.checkpointId),className:"h-6 px-2 text-xs",title:"Restore to this checkpoint",children:[(0,d.jsx)(S.A,{className:"h-3 w-3 mr-1"}),"Restore"]}),c&&(0,d.jsxs)(x.$,{size:"sm",variant:"ghost",onClick:()=>c(a.checkpointId),className:"h-6 px-2 text-xs",title:"Restore files and retry from this checkpoint",children:[(0,d.jsx)(aC.A,{className:"h-3 w-3 mr-1"}),"Retry"]})]})]})]})}function aP({itemId:a,tool:b,isExpanded:c,onToggle:e}){return(0,d.jsxs)("div",{className:`bg-muted/30 rounded-md transition-all ${"executing"===b.status?"ring-2 ring-blue-500/20 animate-pulse":""} ${c?"p-2":"p-1.5"}`,children:[(0,d.jsxs)("button",{onClick:e,className:"flex items-center gap-2 w-full text-left hover:bg-muted/50 rounded px-1",children:[(0,d.jsxs)("div",{className:"flex items-center gap-1.5",children:[aL[b.name]||(0,d.jsx)(o.A,{className:"h-3 w-3"}),(0,d.jsx)("span",{className:"text-xs font-mono",children:b.name})]}),"shell"===b.name&&b.parameters?.cmd&&(0,d.jsx)("code",{className:"text-xs text-muted-foreground",children:Array.isArray(b.parameters.cmd)?b.parameters.cmd.slice(1).join(" ").substring(0,50):String(b.parameters.cmd).substring(0,50)}),(b.parameters?.path||b.parameters?.file_path)&&(0,d.jsx)("code",{className:"text-xs text-muted-foreground",children:b.parameters.path||b.parameters.file_path}),(0,d.jsx)("div",{className:"ml-auto",children:aM[b.status||"completed"]})]}),c&&(0,d.jsxs)("div",{className:"mt-2 space-y-2",children:[b.parameters&&Object.keys(b.parameters).length>0&&(0,d.jsxs)("div",{className:"px-2",children:[(0,d.jsx)("div",{className:"text-[10px] uppercase tracking-wider text-muted-foreground mb-1",children:"Parameters"}),(0,d.jsx)("pre",{className:"text-xs bg-muted/50 p-2 rounded overflow-x-auto",children:JSON.stringify(b.parameters,null,2)})]}),b.result&&(0,d.jsxs)("div",{className:"px-2",children:[(0,d.jsx)("div",{className:"text-[10px] uppercase tracking-wider text-muted-foreground mb-1",children:"Result"}),(0,d.jsx)("pre",{className:"text-xs bg-muted/50 p-2 rounded overflow-x-auto max-h-40 overflow-y-auto",children:"string"==typeof b.result?b.result:JSON.stringify(b.result,null,2)})]}),b.error&&(0,d.jsxs)("div",{className:"px-2",children:[(0,d.jsx)("div",{className:"text-[10px] uppercase tracking-wider text-destructive mb-1",children:"Error"}),(0,d.jsx)("pre",{className:"text-xs bg-destructive/10 text-destructive p-2 rounded overflow-x-auto",children:b.error})]})]})]})}function aQ({itemId:a,content:b,isExpanded:c,onToggle:e}){return(0,d.jsxs)("div",{className:`bg-amber-500/10 rounded-md transition-all ${c?"p-2":"p-1.5"}`,children:[(0,d.jsxs)("button",{onClick:e,className:"flex items-center gap-2 w-full text-left hover:bg-amber-500/20 rounded px-1",children:[(0,d.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,d.jsx)(aC.A,{className:"h-3 w-3 text-amber-600"}),(0,d.jsx)("span",{className:"text-xs font-mono",children:"Auto-correction"})]}),(0,d.jsx)("div",{className:"ml-auto",children:(0,d.jsx)(ay.A,{className:"h-3 w-3 text-amber-600"})})]}),c&&(0,d.jsx)("div",{className:"mt-2 px-2",children:(0,d.jsx)("pre",{className:"text-xs bg-muted/50 p-2 rounded overflow-x-auto whitespace-pre-wrap",children:b})})]})}function aR({itemId:a,content:b,isExpanded:c,onToggle:e}){let f=(b||"").split("\n").filter(a=>a.trim()),g=f[0]?.substring(0,60)||"Reasoning...",h=!b||b.length<20;return(0,d.jsxs)("div",{className:"bg-violet-500/10 rounded-md transition-all p-1.5 border border-violet-500/20",children:[(0,d.jsxs)("button",{onClick:e,className:"flex items-center gap-2 w-full text-left hover:bg-violet-500/20 rounded px-1",children:[(0,d.jsxs)("div",{className:"flex items-center gap-1.5",children:[h?(0,d.jsx)(ax.A,{className:"h-3 w-3 animate-spin text-violet-500"}):(0,d.jsx)(aD.A,{className:"h-3 w-3 text-violet-500"}),(0,d.jsx)("span",{className:"text-xs font-mono",children:"reasoning"})]}),(0,d.jsx)("code",{className:"text-xs text-muted-foreground truncate flex-1",children:h?"Thinking...":g}),(0,d.jsx)("div",{className:"ml-auto",children:(0,d.jsx)(o.A,{className:`h-3 w-3 transition-transform ${c?"rotate-90":""}`})})]}),c&&(0,d.jsx)("div",{className:"mt-2 px-2",children:(0,d.jsx)("div",{className:"text-xs bg-muted/50 p-2 rounded overflow-x-auto max-h-64 overflow-y-auto",children:(0,d.jsx)(aG.T,{content:b||"Thinking..."})})})]})}function aS({itemId:a,content:b,isExpanded:c,onToggle:e}){let f=b.split("\n"),g=f[0]?.replace(/^\*\*|\*\*$/g,"").substring(0,50)||"Plan";return(0,d.jsxs)("div",{className:"bg-muted/30 rounded-md transition-all p-1.5",children:[(0,d.jsxs)("button",{onClick:e,className:"flex items-center gap-2 w-full text-left hover:bg-muted/50 rounded px-1",children:[(0,d.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,d.jsx)(aE.A,{className:"h-3 w-3 text-orange-500"}),(0,d.jsx)("span",{className:"text-xs font-mono",children:"plan"})]}),(0,d.jsx)("code",{className:"text-xs text-muted-foreground truncate flex-1",children:g}),(0,d.jsx)("div",{className:"ml-auto",children:(0,d.jsx)(o.A,{className:`h-3 w-3 transition-transform ${c?"rotate-90":""}`})})]}),c&&(0,d.jsx)("div",{className:"mt-2 px-2",children:(0,d.jsx)("pre",{className:"text-xs bg-muted/50 p-2 rounded overflow-x-auto whitespace-pre-wrap",children:b})})]})}function aT({itemId:a,content:b,isExpanded:c,onToggle:e}){let f=b.split("\n"),g=f[0]?.replace(/^\*\*|\*\*$/g,"").replace(/^🤖\s*/,"").substring(0,50)||"Agent";return(0,d.jsxs)("div",{className:"bg-muted/30 rounded-md transition-all p-1.5",children:[(0,d.jsxs)("button",{onClick:e,className:"flex items-center gap-2 w-full text-left hover:bg-muted/50 rounded px-1",children:[(0,d.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,d.jsx)(aF.A,{className:"h-3 w-3 text-purple-500"}),(0,d.jsx)("span",{className:"text-xs font-mono",children:"agent"})]}),(0,d.jsx)("code",{className:"text-xs text-muted-foreground truncate flex-1",children:g}),(0,d.jsx)("div",{className:"ml-auto",children:(0,d.jsx)(o.A,{className:`h-3 w-3 transition-transform ${c?"rotate-90":""}`})})]}),c&&(0,d.jsx)("div",{className:"mt-2 px-2",children:(0,d.jsx)("pre",{className:"text-xs bg-muted/50 p-2 rounded overflow-x-auto whitespace-pre-wrap",children:b})})]})}function aU({itemId:a,content:b,isExpanded:c,onToggle:e}){let f=b.includes("✅"),g=b.replace(/^[✅🔄]\s*/,"").substring(0,50);return(0,d.jsxs)("div",{className:"bg-muted/30 rounded-md transition-all p-1.5",children:[(0,d.jsxs)("button",{onClick:e,className:"flex items-center gap-2 w-full text-left hover:bg-muted/50 rounded px-1",children:[(0,d.jsxs)("div",{className:"flex items-center gap-1.5",children:[f?(0,d.jsx)(ay.A,{className:"h-3 w-3 text-green-500"}):(0,d.jsx)(ax.A,{className:"h-3 w-3 animate-spin text-blue-500"}),(0,d.jsx)("span",{className:"text-xs font-mono",children:"progress"})]}),(0,d.jsx)("code",{className:"text-xs text-muted-foreground truncate flex-1",children:g}),(0,d.jsx)("div",{className:"ml-auto",children:(0,d.jsx)(o.A,{className:`h-3 w-3 transition-transform ${c?"rotate-90":""}`})})]}),c&&(0,d.jsx)("div",{className:"mt-2 px-2",children:(0,d.jsx)("pre",{className:"text-xs bg-muted/50 p-2 rounded overflow-x-auto whitespace-pre-wrap",children:b})})]})}function aV({projectId:a,selectedSiteId:b,onSiteChange:c,className:d}){let[f,g]=(0,e.useState)([]),[h,i]=(0,e.useState)(!0),[j,k]=(0,e.useState)(null);return null}c(65828),c(28241);var aW=c(22544),aX=c(1949),aY=c(75535),aZ=c(51855);function a$({projectId:a,events:b,currentCheckpointId:c,onRestore:f,onScrollToTurn:g,onClose:h,refreshKey:i}){let[j,k]=(0,e.useState)([]),l=(0,e.useMemo)(()=>{let a=new Set;for(let c of b)"checkpoint_created"===c.event&&c.data?.checkpointId&&a.add(c.data.checkpointId);return a},[b]);return(0,d.jsxs)("div",{className:"h-full border border-border rounded-lg shadow-sm overflow-hidden flex flex-col",style:{background:"linear-gradient(0deg, rgba(var(--panel-checkpoint-rgb), 0.01), rgba(var(--panel-checkpoint-rgb), 0.01)), var(--card)",minWidth:"240px"},children:[(0,d.jsxs)("div",{className:"flex items-center justify-between px-3 py-2 border-b border-border shrink-0",style:{background:"linear-gradient(0deg, rgba(var(--panel-checkpoint-rgb), 0.03), rgba(var(--panel-checkpoint-rgb), 0.05))"},children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(V.A,{className:"h-3.5 w-3.5",style:{color:"var(--button-checkpoint-active)"}}),(0,d.jsx)("span",{className:"text-xs font-medium",children:"Checkpoints"}),j.length>0&&(0,d.jsxs)("span",{className:"text-[10px] text-muted-foreground",children:["(",j.length,")"]})]}),h&&(0,d.jsx)(x.$,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0",onClick:h,children:(0,d.jsx)(v.A,{className:"h-3.5 w-3.5"})})]}),(0,d.jsx)("div",{className:"flex-1 overflow-y-auto",children:0===j.length?(0,d.jsxs)("div",{className:"flex flex-col items-center justify-center h-full text-muted-foreground gap-2 p-4",children:[(0,d.jsx)(aX.A,{className:"h-8 w-8 opacity-40"}),(0,d.jsx)("span",{className:"text-xs text-center",children:"No checkpoints yet. Checkpoints are created automatically when the AI makes changes."})]}):(0,d.jsx)("div",{className:"p-2 space-y-1.5",children:j.map(a=>{let b=a.id===c,e=l.has(a.id);return(0,d.jsxs)("div",{className:`rounded-md border px-2.5 py-2 text-xs transition-colors ${b?"border-primary/40 bg-primary/5":"border-border/60 bg-card hover:bg-muted/30"}`,children:[(0,d.jsxs)("div",{className:"flex items-center gap-1.5 mb-1",children:[(0,d.jsx)(aW.E,{variant:"manual"===a.kind?"default":"secondary",className:"text-[9px] px-1.5 py-0 h-4 leading-none",children:"manual"===a.kind?"save":a.kind}),(0,d.jsx)("span",{className:"text-[10px] text-muted-foreground ml-auto whitespace-nowrap",children:(0,aZ.m)(new Date(a.timestamp),{addSuffix:!0})})]}),(0,d.jsxs)(ah.m_,{children:[(0,d.jsx)(ah.k$,{asChild:!0,children:(0,d.jsx)("p",{className:"text-[11px] text-foreground/80 truncate leading-snug mb-1.5",children:a.description})}),(0,d.jsx)(ah.ZI,{side:"bottom",className:"max-w-[300px]",children:(0,d.jsx)("p",{className:"text-xs",children:a.description})})]}),(0,d.jsxs)("div",{className:"flex items-center gap-1",children:[e&&(0,d.jsxs)(x.$,{variant:"ghost",size:"sm",className:"h-5 px-1.5 text-[10px] text-muted-foreground hover:text-foreground",onClick:()=>g(a.id),children:[(0,d.jsx)(aY.A,{className:"h-3 w-3 mr-0.5"}),"Jump"]}),(0,d.jsxs)(x.$,{variant:"ghost",size:"sm",className:"h-5 px-1.5 text-[10px] text-muted-foreground hover:text-foreground ml-auto",onClick:()=>f(a.id,a.description),children:[(0,d.jsx)(S.A,{className:"h-3 w-3 mr-0.5"}),"Restore"]})]})]},a.id)})})})]})}function a_({project:a,onBack:b}){let[c,f]=(0,e.useState)(0),[i,j]=(0,e.useState)(""),[k,l]=(0,e.useState)(!1),[m,n]=(0,e.useState)(null),[o,p]=(0,e.useState)(null),[q,r]=(0,e.useState)("preview"),[s,v]=(0,e.useState)(!1),[w,y]=(0,e.useState)(!1),[z,A]=(0,e.useState)(a.lastSavedAt??null),[B,C]=(0,e.useState)(null),[D,E]=(0,e.useState)(()=>!1),F=(0,e.useRef)(null),I=(0,e.useRef)(null),L=(0,e.useRef)(!1),[M,N]=(0,e.useState)(null),[_,aa]=(0,e.useState)(0),[ac,ad]=(0,e.useState)(Z.s.getDefaultModel()),[ap,aq]=(0,e.useState)(!1),[ar,as]=(0,e.useState)(!1),[at,au]=(0,e.useState)(0),{state:aw,start:ax,setWorkspaceHandler:ay}=(0,an.C)(),az=aw.currentStep?.id,aA="running"===aw.status&&"wrap-up"!==az,{shouldShowCosts:aB}=function(){let[a,b]=(0,e.useState)(()=>Z.s.getCostSettings()),c=!1!==a.showCosts;return{costSettings:a,shouldShowCosts:c}}(),aC=(0,e.useMemo)(()=>{let a=Z.s.getSelectedProvider(),b=ac||Z.s.getDefaultModel();return(0,$.Uw)(a,b)},[ac]),aD=(0,e.useMemo)(()=>{let a=Z.s.getSelectedProvider(),b=(0,$.sO)(a);return!!b.isLocal||!b.apiKeyRequired&&!b.usesOAuth||!!Z.s.getProviderApiKey(a)},[ac]),[aE,aF]=(0,e.useState)(!0),[aG,aH]=(0,e.useState)(!0),[aI,aJ]=(0,e.useState)(!1),[aK,aL]=(0,e.useState)(!0),[aM,aO]=(0,e.useState)(!1),[aP,aQ]=(0,e.useState)(!1),[aR,aS]=(0,e.useState)(null),[aT,aU]=(0,e.useState)(null),[aW,aX]=(0,e.useState)([]),aY=(0,e.useRef)(0),aZ=(0,e.useRef)(null),a_=(0,e.useCallback)(b=>{aZ.current&&clearTimeout(aZ.current),aZ.current=setTimeout(()=>{ab.saveEvents(a.id,b).catch(a=>{h.v.error("Failed to persist debug events:",a)})},500)},[a.id]),a0=(0,e.useCallback)(async(a,b)=>{aX(c=>{let d;if(("assistant_delta"===a||"tool_param_delta"===a||"reasoning_delta"===a)&&c.length>0){let e=Math.max(0,c.length-4);for(let f=c.length-1;f>=e;f--)if(c[f].event===a){let a=c[f],e={...a,timestamp:Date.now(),version:(a.version||1)+1,count:(a.count||1)+1,data:{all:a.data.all?[...a.data.all,b]:[a.data,b]}};return a_(d=[...c.slice(0,f),e,...c.slice(f+1)]),d}}return(d=[...c,{id:`${Date.now()}-${aY.current++}`,timestamp:Date.now(),event:a,data:b,count:1,version:1}]).length>500&&(d=d.slice(-500)),a_(d),d})},[a.id,a_,500]),a1=(0,e.useCallback)(async()=>{aX([]),await ab.clearEvents(a.id),await ai.Y.clearAutoCheckpoints(a.id),p(null)},[a.id]),a2=(()=>{let a=[aE,aG,aI,aK,aM,aP].filter(Boolean).length;return a>=5?{chat:18,files:13,editor:22,preview:18,checkpoints:14,debug:15}:4===a?{chat:25,files:15,editor:35,preview:25,checkpoints:15,debug:15}:3===a?{chat:33,files:33,editor:33,preview:33,checkpoints:33,debug:33}:2===a?{chat:50,files:50,editor:50,preview:50,checkpoints:50,debug:50}:{chat:100,files:100,editor:100,preview:100,checkpoints:100,debug:100}})(),a3=a=>{if(!a)return"Select Model";let b=a.split("/");return b[b.length-1].split("-").map(a=>a.charAt(0).toUpperCase()+a.slice(1)).join(" ")},a4=(0,e.useCallback)((a,b=1200)=>{if(!a)return"";if(a.length<=b)return a;let c=Math.max(0,Math.floor(.6*b)),d=Math.max(0,Math.floor(.3*b)),e=a.slice(0,c),f=d>0?a.slice(-d):"";return`${e} - (...truncated...) -${f}`},[]),a5=(0,e.useCallback)(a=>{let b=Object.entries(a.attributes||{}).slice(0,6);if(0===b.length)return`<${a.tagName}>`;let c=b.map(([a,b])=>{let c=b.length>40?`${b.slice(0,37)}…`:b;return`${a}="${c}"`}).join(" ");return`<${a.tagName} ${c}>`},[]),a6=(0,e.useCallback)(a=>{let b=a5(a),c=a4(a.outerHTML,1200),d=a.domPath||"(unknown path)";return["Focus context:",`- Target: ${b}`,`- DOM path: ${d}`,"- HTML snippet:\n```html",c,"```"].join("\n")},[a5,a4]),a7=(0,e.useCallback)(a=>{if(!a){C(null),F.current=null;return}let b=`${a.domPath||""}::${a.tagName||""}::${a.outerHTML?a.outerHTML.length:0}`,c=Date.now();if(F.current&&F.current.signature===b&&c-F.current.timestamp<400)return;let d={...a,timestamp:c};C(d),G.oR.info("Focus context set",{description:a5(d)}),F.current={signature:b,timestamp:c}},[a5]),a8=(0,e.useCallback)(()=>{aL(!1)},[]);B&&a5(B);let a9=B?a4(B.outerHTML,240):"";a9?.trim(),B&&(x.$,B.domPath&&B.domPath);let ba=(0,e.useCallback)(async(a,b)=>{aS(a),aU(b),p(null),a&&b?(await g.vfs.mountServerContext(a,b),h.v.info(`[Workspace] Mounted server context for site: ${b}`)):(g.vfs.unmountServerContext(),h.v.info("[Workspace] Unmounted server context")),f(a=>a+1)},[]),bb=(0,e.useCallback)(a=>{window.innerWidth<768?(r("editor"),setTimeout(()=>{P(a)},0)):aI?P(a):(aJ(!0),setTimeout(()=>{P(a)},0))},[aI]),bc=(0,e.useCallback)(()=>{f(a=>a+1),window.dispatchEvent(new CustomEvent("filesChanged"))},[]),bd=(0,e.useCallback)(async()=>{if(!w){y(!0);try{let b=await aj.$.save(a.id),c=await g.vfs.getProject(a.id);A(c.lastSavedAt??new Date(b.timestamp)),aa(a=>a+1),G.oR.success("Project saved")}catch(a){h.v.error("Failed to save project",a),G.oR.error("Failed to save project")}finally{y(!1)}}},[a.id,w]),be=(0,e.useCallback)(async b=>{try{let c=await g.vfs.getProject(a.id);c.previewImage=b,c.previewUpdatedAt=new Date,await g.vfs.updateProject(c),G.oR.success("Thumbnail updated")}catch(a){h.v.error("Failed to save screenshot:",a),G.oR.error("Failed to save thumbnail")}},[a.id]),bf=(0,e.useCallback)(async(b,c)=>{try{if(!await ai.Y.checkpointExists(b)){G.oR.error("Checkpoint no longer exists - it may have been cleaned up"),h.v.warn(`[Workspace] Checkpoint ${b} no longer exists`);return}if(await aj.$.runWithSuppressedDirty(a.id,()=>ai.Y.restoreCheckpoint(b))){G.oR.success(`Restored to: ${c||"checkpoint"}`),bc();let d=aj.$.getSavedCheckpointId(a.id);if(d&&d===b){aj.$.markClean(a.id);let b=await g.vfs.getProject(a.id);A(b.lastSavedAt??null)}else aj.$.markDirty(a.id)}else G.oR.error("Failed to restore checkpoint")}catch(a){h.v.error("Error restoring checkpoint:",a),G.oR.error("Failed to restore checkpoint")}},[bc,a.id]),bg=(0,e.useCallback)(a=>{aE||aF(!0),requestAnimationFrame(()=>{let b=document.querySelector(`[data-checkpoint-id="${a}"]`);b&&(b.scrollIntoView({behavior:"smooth",block:"center"}),b.classList.add("ring-2","ring-primary/50"),setTimeout(()=>b.classList.remove("ring-2","ring-primary/50"),2e3))})},[aE]),bh=(0,e.useCallback)(async b=>{try{if(!await ai.Y.checkpointExists(b)){G.oR.error("Checkpoint no longer exists - cannot retry"),h.v.warn(`[Workspace] Checkpoint ${b} no longer exists`);return}let c=null,d=aW.findIndex(a=>"checkpoint_created"===a.event&&a.data?.checkpointId===b);if(d>=0){for(let a=d-1;a>=0;a--)if("conversation_message"===aW[a].event&&aW[a].data?.message?.role==="user"){c=aW[a].data.message.content;break}}if(!c){G.oR.error("Cannot find original user message to retry"),h.v.warn("[Workspace] No user message found before checkpoint");return}let e=-1;for(let a=d-1;a>=0;a--)if("conversation_message"===aW[a].event&&aW[a].data?.message?.role==="user"&&aW[a].data.message.content===c){e=a;break}if(-1===e){G.oR.error("Cannot find user message event to truncate"),h.v.warn("[Workspace] User message event not found in debug events");return}if(!await aj.$.runWithSuppressedDirty(a.id,()=>ai.Y.restoreCheckpoint(b)))return void G.oR.error("Failed to restore checkpoint");let f=aj.$.getSavedCheckpointId(a.id);if(f&&f===b){aj.$.markClean(a.id);let b=await g.vfs.getProject(a.id);A(b.lastSavedAt??null)}else aj.$.markDirty(a.id);let i=aW.slice(0,e);aX(i),await ab.truncateEvents(a.id,i),p(null),G.oR.success("Restored checkpoint and retrying..."),bc(),j(c),L.current=!0}catch(a){h.v.error("Error during retry:",a),G.oR.error("Failed to retry")}},[bc,a.id,aW,j]),bi=async b=>{if(aA)return;let c=i.trim();if(!c&&(!b||0===b.length))return void G.oR.error("Please enter a prompt");let d=Z.s.getSelectedProvider(),e=(0,$.sO)(d),f=Z.s.getApiKey();if(e.apiKeyRequired&&!f)return void G.oR.error(`Please set your ${e.name} API key in settings`);if(e.isLocal&&!Z.s.getProviderModel(d))return void G.oR.error(`No model selected for ${e.name}. Please select a model in settings.`);let k=Z.s.getProviderModel(d)||Z.s.getDefaultModel();if(!k)return void G.oR.error(`No model selected for ${D?"chat":"code"} mode. Please select a model in settings.`);l(!0),(0,ao.u4)("task_started",{provider:d,model:k});let m=Date.now(),q=B?`${a6(B)} - -${c}`:c;try{let c=o;if(!c){c=new Y.t(a.id,"orchestrator",a0,{chatMode:D,model:k});let b=aW.filter(a=>"conversation_message"===a.event).map(a=>a.data.message);b.length>0&&(c.importConversation(b),h.v.debug(`[Workspace] Restored ${b.length} conversation messages from debug events`)),p(c)}n(c);let e=b?.map(a=>({data:a.data,mediaType:a.mediaType})),f=await c.execute(q,e?.length?{images:e}:void 0);h.v.debug("[Workspace] Orchestrator result:",{success:f.success,summary:f.summary,totalCost:f.totalCost}),f.success?(bc(),g.vfs.hasServerContext()&&await g.vfs.refreshServerContext(),(0,ao.u4)("task_complete",{provider:d,model:k,duration_ms:Date.now()-m}),G.oR.success("Task completed")):((0,ao.u4)("task_fail",{provider:d,model:k,reason:"error",duration_ms:Date.now()-m}),G.oR.error(f.summary||"Generation failed",{duration:5e3,position:"bottom-center"})),j(""),B&&C(null)}catch(b){h.v.error("Generation error:",b);let a=b instanceof Error?b.message:"Failed to generate";(0,ao.u4)("task_fail",{provider:d,model:k,reason:"error",duration_ms:Date.now()-m}),a0("error",{message:a}),G.oR.error(a,{duration:5e3,position:"bottom-center"})}finally{l(!1),n(null)}},bj=(0,e.useCallback)(()=>{m&&(m.stop(),(0,ao.u4)("task_fail",{provider:Z.s.getSelectedProvider(),model:Z.s.getDefaultModel(),reason:"stopped"}),G.oR.info("Generation stopped"))},[m]),bk=[{id:"back",label:"Back to projects",icon:R.A,onClick:b,variant:"outline"}];bk.push({id:"save",label:w?"Saving…":s?"Save":"Saved",icon:K.A,onClick:bd,variant:s?"default":"outline",disabled:!s||w}),M&&bk.push({id:"discard",label:"Discard Changes",icon:S.A,onClick:()=>bf(M,"Last saved state"),variant:"outline",disabled:w||!s,dataTourId:"discard-changes-button"});let bl=(0,d.jsxs)("div",{className:"flex items-center gap-3",children:[(0,d.jsx)(aV,{projectId:a.id,selectedSiteId:aR,onSiteChange:ba}),(0,d.jsxs)(ak.AM,{children:[(0,d.jsx)(ak.Wv,{asChild:!0,children:(0,d.jsxs)(x.$,{variant:"outline",size:"sm",className:"h-8 px-3 flex items-center gap-2",title:"Project cost and settings",children:[aB&&(0,d.jsxs)("span",{className:"text-sm font-medium",children:["$",at.toFixed(3)]}),(0,d.jsx)(T.A,{className:"h-4 w-4"})]})}),(0,d.jsx)(ak.hl,{className:"w-[460px] max-h-[min(720px,calc(100vh-5rem))] overflow-hidden flex flex-col",align:"end",children:(0,d.jsx)(al.O,{})})]})]}),bm=(0,d.jsxs)("div",{className:"space-y-2",children:[aB&&(0,d.jsx)("div",{className:"pb-2 border-b border-border/50",children:(0,d.jsxs)("span",{className:"text-sm font-medium",children:["Project cost: $",at.toFixed(at>=10?2:3)]})}),(0,d.jsxs)(ak.AM,{children:[(0,d.jsx)(ak.Wv,{asChild:!0,children:(0,d.jsxs)(x.$,{variant:"outline",size:"sm",className:"w-full justify-start",children:[(0,d.jsx)(T.A,{className:"h-4 w-4 mr-2"}),"Settings"]})}),(0,d.jsx)(ak.hl,{className:"w-[460px] max-w-[calc(100vw-2rem)] max-h-[min(720px,calc(100vh-5rem))] overflow-hidden flex flex-col",align:"start",children:(0,d.jsx)(al.O,{})})]})]});return(0,d.jsxs)(ah.Bc,{children:[(0,d.jsxs)("div",{className:"h-screen flex flex-col",children:[(0,d.jsx)(X.j,{leftText:a.name,onLogoClick:b,actions:bk,mobileMenuContent:bm,desktopOnlyContent:bl,mobileVisibleActions:s?["save"]:[]}),(0,d.jsxs)("div",{className:"hidden md:flex flex-1 overflow-hidden bg-background",children:[(0,d.jsxs)("div",{className:"w-10 bg-muted/70 border-r border-border flex flex-col items-center py-3 gap-1.5",children:[(0,d.jsxs)(ah.m_,{children:[(0,d.jsx)(ah.k$,{asChild:!0,children:(0,d.jsx)("button",{className:`h-5 w-5 px-1 rounded-sm flex items-center justify-center transition-all ${aE?"shadow-sm":"bg-transparent text-muted-foreground hover:bg-muted/80 hover:text-foreground"}`,style:{backgroundColor:aE?"var(--button-assistant-active)":void 0,color:aE?"white":void 0},onClick:()=>aF(!aE),children:(0,d.jsx)(U.A,{className:"h-3.5 w-3.5"})})}),(0,d.jsx)(ah.ZI,{side:"right",className:"border-0",style:{backgroundColor:"var(--button-assistant-active)",color:"white"},arrowStyle:{backgroundColor:"var(--button-assistant-active)",fill:"var(--button-assistant-active)"},children:(0,d.jsx)("p",{children:"Chat"})})]}),(0,d.jsxs)(ah.m_,{children:[(0,d.jsx)(ah.k$,{asChild:!0,children:(0,d.jsx)("button",{className:`h-5 w-5 px-1 rounded-sm flex items-center justify-center transition-all ${aG?"shadow-sm":"bg-transparent text-muted-foreground hover:bg-muted/80 hover:text-foreground"}`,style:{backgroundColor:aG?"var(--button-files-active)":void 0,color:aG?"white":void 0},onClick:()=>aH(!aG),children:(0,d.jsx)(u.A,{className:"h-3.5 w-3.5"})})}),(0,d.jsx)(ah.ZI,{side:"right",className:"border-0",style:{backgroundColor:"var(--button-files-active)",color:"white"},arrowStyle:{backgroundColor:"var(--button-files-active)",fill:"var(--button-files-active)"},children:(0,d.jsx)("p",{children:"File Explorer"})})]}),(0,d.jsxs)(ah.m_,{children:[(0,d.jsx)(ah.k$,{asChild:!0,children:(0,d.jsx)("button",{className:`h-5 w-5 px-1 rounded-sm flex items-center justify-center transition-all ${aI?"shadow-sm":"bg-transparent text-muted-foreground hover:bg-muted/80 hover:text-foreground"}`,style:{backgroundColor:aI?"var(--button-editor-active)":void 0,color:aI?"white":void 0},onClick:()=>aJ(!aI),children:(0,d.jsx)(J.A,{className:"h-3.5 w-3.5"})})}),(0,d.jsx)(ah.ZI,{side:"right",className:"border-0",style:{backgroundColor:"var(--button-editor-active)",color:"white"},arrowStyle:{backgroundColor:"var(--button-editor-active)",fill:"var(--button-editor-active)"},children:(0,d.jsx)("p",{children:"Code Editor"})})]}),(0,d.jsxs)(ah.m_,{children:[(0,d.jsx)(ah.k$,{asChild:!0,children:(0,d.jsx)("button",{className:`h-5 w-5 mx-1 rounded-sm flex items-center justify-center transition-all ${aK?"shadow-sm":"bg-transparent text-muted-foreground hover:bg-muted/80 hover:text-foreground"}`,style:{backgroundColor:aK?"var(--button-preview-active)":void 0,color:aK?"white":void 0},onClick:()=>aL(!aK),children:(0,d.jsx)(t.A,{className:"h-3.5 w-3.5"})})}),(0,d.jsx)(ah.ZI,{side:"right",className:"border-0",style:{backgroundColor:"var(--button-preview-active)",color:"white"},arrowStyle:{backgroundColor:"var(--button-preview-active)",fill:"var(--button-preview-active)"},children:(0,d.jsx)("p",{children:"Preview"})})]}),(0,d.jsxs)(ah.m_,{children:[(0,d.jsx)(ah.k$,{asChild:!0,children:(0,d.jsx)("button",{className:`h-5 w-5 px-1 rounded-sm flex items-center justify-center transition-all ${aM?"shadow-sm":"bg-transparent text-muted-foreground hover:bg-muted/80 hover:text-foreground"}`,style:{backgroundColor:aM?"var(--button-checkpoint-active)":void 0,color:aM?"white":void 0},onClick:()=>aO(!aM),children:(0,d.jsx)(V.A,{className:"h-3.5 w-3.5"})})}),(0,d.jsx)(ah.ZI,{side:"right",className:"border-0",style:{backgroundColor:"var(--button-checkpoint-active)",color:"white"},arrowStyle:{backgroundColor:"var(--button-checkpoint-active)",fill:"var(--button-checkpoint-active)"},children:(0,d.jsx)("p",{children:"Checkpoints"})})]}),(0,d.jsxs)(ah.m_,{children:[(0,d.jsx)(ah.k$,{asChild:!0,children:(0,d.jsx)("button",{className:`h-5 w-5 px-1 rounded-sm flex items-center justify-center transition-all ${aP?"bg-foreground shadow-sm":"bg-transparent text-muted-foreground hover:bg-muted/80 hover:text-foreground"}`,style:{color:aP?"var(--background)":void 0},onClick:()=>aQ(!aP),children:(0,d.jsx)(W.A,{className:"h-3.5 w-3.5"})})}),(0,d.jsx)(ah.ZI,{side:"right",className:"border-0 bg-foreground text-background",arrowStyle:{backgroundColor:"var(--foreground)",fill:"var(--foreground)"},children:(0,d.jsx)("p",{children:"Debug Events"})})]})]}),(0,d.jsx)("div",{className:"flex-1 p-2 overflow-hidden","data-tour-id":"workspace-panels",children:(0,d.jsxs)(ae,{direction:"horizontal",autoSaveId:"workspace-layout",children:[aE&&(0,d.jsx)(af,{id:"chat",order:1,defaultSize:a2.chat,minSize:15,children:(0,d.jsx)(aN,{events:aW,onRestore:bf,onRetry:bh,prompt:i,setPrompt:j,generating:k,onGenerate:bi,onStop:bj,focusContext:B,setFocusContext:C,focusPreviewSnippet:a9,chatMode:D,setChatMode:E,currentModel:ac,setCurrentModel:ad,getModelDisplayName:a3,isTourLockingInput:aA,onClearChat:a1,onClose:()=>aF(!1),supportsVision:aC,providerReady:aD})}),aE&&(aG||aI||aK||aM||aP)&&(0,d.jsx)(ag,{withHandle:!0}),aG&&(0,d.jsx)(af,{id:"files",order:2,defaultSize:a2.files,minSize:14,children:(0,d.jsx)("div",{className:"h-full border border-border rounded-lg shadow-sm overflow-hidden relative",style:{background:"linear-gradient(0deg, rgba(var(--panel-files-rgb), 0.01), rgba(var(--panel-files-rgb), 0.01)), var(--card)",minWidth:"240px"},children:(0,d.jsx)(H,{projectId:a.id,onFileSelect:bb,onClose:()=>aH(!1)})})}),aG&&(aI||aK||aM||aP)&&(0,d.jsx)(ag,{withHandle:!0}),aI&&(0,d.jsx)(af,{id:"editor",order:3,defaultSize:a2.editor,minSize:20,children:(0,d.jsx)("div",{className:"h-full border border-border rounded-lg shadow-sm overflow-hidden relative",style:{background:"linear-gradient(0deg, rgba(var(--panel-editor-rgb), 0.01), rgba(var(--panel-editor-rgb), 0.01)), var(--card)",minWidth:"240px"},children:(0,d.jsx)(O,{projectId:a.id,onFilesChange:bc,onClose:()=>aJ(!1)})})}),aI&&(aK||aM||aP)&&(0,d.jsx)(ag,{withHandle:!0}),aK&&(0,d.jsx)(af,{id:"preview",order:4,defaultSize:a2.preview,minSize:20,children:(0,d.jsx)("div",{className:"h-full border border-border rounded-lg shadow-sm overflow-hidden relative",style:{background:"linear-gradient(0deg, rgba(var(--panel-preview-rgb), 0.01), rgba(var(--panel-preview-rgb), 0.01)), var(--card)",minWidth:"240px"},children:(0,d.jsx)(Q.X,{ref:I,projectId:a.id,refreshTrigger:c,onFocusSelection:a7,hasFocusTarget:!!B,onClose:a8,siteId:aR,onCaptureScreenshot:be})})}),aK&&(aM||aP)&&(0,d.jsx)(ag,{withHandle:!0}),aM&&(0,d.jsx)(af,{id:"checkpoints",order:5,defaultSize:a2.checkpoints,minSize:12,children:(0,d.jsx)(a$,{projectId:a.id,events:aW,currentCheckpointId:ai.Y.getCurrentCheckpoint()?.id,onRestore:bf,onScrollToTurn:bg,onClose:()=>aO(!1),refreshKey:_})}),aM&&aP&&(0,d.jsx)(ag,{withHandle:!0}),aP&&(0,d.jsx)(af,{id:"debug",order:6,defaultSize:a2.debug,minSize:15,children:(0,d.jsx)(av,{events:aW,onClear:a1,onClose:()=>aQ(!1),projectId:a.id})})]})})]}),(0,d.jsxs)("div",{className:"flex md:hidden flex-1 overflow-hidden bg-background flex-col",children:[(0,d.jsxs)("div",{className:"flex-1 p-2 pb-16 overflow-hidden",children:["chat"===q&&(0,d.jsx)(aN,{events:aW,onRestore:bf,onRetry:bh,prompt:i,setPrompt:j,generating:k,onGenerate:bi,onStop:bj,focusContext:B,setFocusContext:C,focusPreviewSnippet:a9,chatMode:D,setChatMode:E,currentModel:ac,setCurrentModel:ad,getModelDisplayName:a3,isTourLockingInput:aA,onClearChat:a1,supportsVision:aC,providerReady:aD}),"files"===q&&(0,d.jsx)("div",{className:"h-full border border-border rounded-lg shadow-sm overflow-hidden relative",style:{background:"linear-gradient(0deg, rgba(var(--panel-files-rgb), 0.01), rgba(var(--panel-files-rgb), 0.01)), var(--card)"},children:(0,d.jsx)(H,{projectId:a.id,onFileSelect:bb,onClose:()=>aH(!1)})}),"editor"===q&&(0,d.jsx)("div",{className:"h-full border border-border rounded-lg shadow-sm overflow-hidden relative",style:{background:"linear-gradient(0deg, rgba(var(--panel-editor-rgb), 0.01), rgba(var(--panel-editor-rgb), 0.01)), var(--card)"},children:(0,d.jsx)(O,{projectId:a.id,onFilesChange:bc,onClose:()=>aJ(!1)})}),"preview"===q&&(0,d.jsx)("div",{className:"h-full border border-border rounded-lg shadow-sm overflow-hidden relative",style:{background:"linear-gradient(0deg, rgba(var(--panel-preview-rgb), 0.01), rgba(var(--panel-preview-rgb), 0.01)), var(--card)"},children:(0,d.jsx)(Q.X,{ref:I,projectId:a.id,refreshTrigger:c,onFocusSelection:a7,hasFocusTarget:!!B,onClose:a8,siteId:aR,onCaptureScreenshot:be})})]}),(0,d.jsx)("div",{className:"fixed bottom-0 left-0 right-0 bg-card border-t border-border",children:(0,d.jsxs)("div",{className:"flex justify-center items-center p-2 gap-2",children:[(0,d.jsx)("button",{className:`flex items-center justify-center py-2 px-2 rounded-lg transition-all shadow-sm ${"chat"===q?"text-white":"bg-transparent text-muted-foreground hover:bg-muted/80 hover:text-foreground"}`,style:{backgroundColor:"chat"===q?"var(--button-assistant-active)":void 0},onClick:()=>r("chat"),children:(0,d.jsx)(U.A,{className:"h-4 w-4"})}),(0,d.jsx)("button",{className:`flex items-center justify-center py-2 px-2 rounded-lg transition-all shadow-sm ${"files"===q?"text-white":"bg-transparent text-muted-foreground hover:bg-muted/80 hover:text-foreground"}`,style:{backgroundColor:"files"===q?"var(--button-files-active)":void 0},onClick:()=>r("files"),children:(0,d.jsx)(u.A,{className:"h-4 w-4"})}),(0,d.jsx)("button",{className:`flex items-center justify-center py-2 px-2 rounded-lg transition-all shadow-sm ${"editor"===q?"text-white":"bg-transparent text-muted-foreground hover:bg-muted/80 hover:text-foreground"}`,style:{backgroundColor:"editor"===q?"var(--button-editor-active)":void 0},onClick:()=>r("editor"),children:(0,d.jsx)(J.A,{className:"h-4 w-4"})}),(0,d.jsx)("button",{className:`flex items-center justify-center py-2 px-2 rounded-lg transition-all shadow-sm ${"preview"===q?"text-white":"bg-transparent text-muted-foreground hover:bg-muted/80 hover:text-foreground"}`,style:{backgroundColor:"preview"===q?"var(--button-preview-active)":void 0},onClick:()=>r("preview"),children:(0,d.jsx)(t.A,{className:"h-4 w-4"})})]})})]})]}),(0,d.jsx)(am.V,{location:"workspace"}),(0,d.jsx)(am.V,{location:"settings"})]})}},85986:(a,b,c)=>{c.d(b,{O:()=>D});var d=c(21124),e=c(38301),f=c(47247),g=c(19217),h=c(7629),i=c(53199),j=c(17585),k=c(42830),l=c(45523),m=c(28074),n=c(85351),o=c(32717),p=c(16945),q=c(65828),r=c(49269),s=c(43700),t=c(71117),u=c(86275),v=c(45914),w=c(39193),x=c.n(w),y=c(15514);class z{static{this.BACKUP_VERSION="1.9.0"}static{this.FILE_EXTENSION=".osws"}static{this.MAX_IMPORT_SIZE=0x6400000}static async exportAllData(){try{y.v.info("Starting data export...");let a={version:this.BACKUP_VERSION,exportDate:new Date().toISOString(),databases:{vfs:await this.exportUnifiedData(),conversations:[],checkpoints:[]},metadata:{projectCount:0,totalSize:0,exportedFrom:"oswstudio"}};a.metadata.projectCount=a.databases.vfs.projects.length,a.metadata.totalSize=this.calculateDataSize(a);let b=new(x());b.file("backup.json",JSON.stringify(a,null,2));let c=await b.generateAsync({type:"blob",compression:"DEFLATE",compressionOptions:{level:6}}),d=`oswstudio-backup-${new Date().toISOString().split("T")[0]}${this.FILE_EXTENSION}`;this.downloadBlob(c,d),y.v.info(`Export completed: ${a.metadata.projectCount} projects, ${this.formatBytes(a.metadata.totalSize)}`)}catch(a){throw y.v.error("Export failed:",a),Error(`Export failed: ${a instanceof Error?a.message:"Unknown error"}`)}}static async importAllData(a,b={mode:"merge"}){try{if(!a.name.endsWith(this.FILE_EXTENSION))throw Error(`Invalid file type. Expected ${this.FILE_EXTENSION} file.`);if(a.size>this.MAX_IMPORT_SIZE)throw Error(`File too large. Maximum size is ${this.formatBytes(this.MAX_IMPORT_SIZE)}.`);b.onProgress?.(10,"Reading backup file...");let d=new(x()),e=(await d.loadAsync(a)).file("backup.json");if(!e)throw Error("Invalid backup file format.");let f=await e.async("string"),g=JSON.parse(f);if(this.validateBackupData(g),b.onProgress?.(30,"Validating backup data..."),"replace"===b.mode){b.onProgress?.(40,"Clearing existing data...");try{let{vfs:a}=await Promise.resolve().then(c.bind(c,11482));a.db?.db&&(y.v.info("[Backup] Closing VFS database before deletion"),a.db.db.close())}catch(a){y.v.warn("[Backup] Could not close VFS database",a)}await this.clearAllData(),await new Promise(a=>setTimeout(a,500))}b.onProgress?.(50,"Importing all data...");let h={...g.databases.vfs,conversations:g.databases.vfs.conversations||g.databases.conversations||[],checkpoints:g.databases.vfs.checkpoints||g.databases.checkpoints||[]};await this.importUnifiedData(h),b.onProgress?.(100,"Import completed successfully!"),y.v.info(`Import completed: ${g.metadata.projectCount} projects restored`)}catch(a){throw y.v.error("Import failed:",a),Error(`Import failed: ${a instanceof Error?a.message:"Unknown error"}`)}}static async validateBackupFile(a){try{if(!a.name.endsWith(this.FILE_EXTENSION))return{valid:!1,reason:"Invalid file extension"};if(a.size>this.MAX_IMPORT_SIZE)return{valid:!1,reason:"File too large"};let b=new(x()),c=(await b.loadAsync(a)).file("backup.json");if(!c)return{valid:!1,reason:"Invalid backup file format"};let d=await c.async("string"),e=JSON.parse(d);return this.validateBackupData(e),{valid:!0,metadata:e.metadata}}catch(a){return{valid:!1,reason:a instanceof Error?a.message:"Unknown error"}}}static async exportUnifiedData(){let a={projects:[],files:[],fileTree:[],conversations:[],checkpoints:[]};return new Promise((b,c)=>{let d=indexedDB.open("osw-studio-db",1);d.onsuccess=async()=>{try{let c=d.result,e=c.transaction(["projects"],"readonly"),f=e.objectStore("projects").getAll();f.onsuccess=()=>{a.projects=f.result||[]};let g=c.transaction(["files"],"readonly"),h=g.objectStore("files").getAll();h.onsuccess=()=>{a.files=h.result||[]};let i=c.transaction(["fileTree"],"readonly"),j=i.objectStore("fileTree").getAll();j.onsuccess=()=>{a.fileTree=j.result||[]};let k=c.transaction(["conversations"],"readonly"),l=k.objectStore("conversations").getAll();l.onsuccess=()=>{a.conversations=l.result||[]};let m=c.transaction(["checkpoints"],"readonly"),n=m.objectStore("checkpoints").getAll();n.onsuccess=()=>{a.checkpoints=n.result||[]},await Promise.all([new Promise(a=>e.oncomplete=()=>a(void 0)),new Promise(a=>g.oncomplete=()=>a(void 0)),new Promise(a=>i.oncomplete=()=>a(void 0)),new Promise(a=>k.oncomplete=()=>a(void 0)),new Promise(a=>m.oncomplete=()=>a(void 0))]),b(a)}catch(a){c(a)}},d.onerror=()=>c(d.error)})}static async importLegacyConversations(){return new Promise(a=>{let b=indexedDB.open("DeepStudioConversations",1);b.onsuccess=()=>{let c=b.result.transaction(["conversations"],"readonly").objectStore("conversations").getAll();c.onsuccess=()=>{a(c.result||[])},c.onerror=()=>a([])},b.onerror=()=>a([])})}static async importLegacyCheckpoints(){return new Promise(a=>{let b=indexedDB.open("DeepStudioCheckpoints",1);b.onsuccess=()=>{let c=b.result.transaction(["checkpoints"],"readonly").objectStore("checkpoints").getAll();c.onsuccess=()=>{a(c.result||[])},c.onerror=()=>a([])},b.onerror=()=>a([])})}static async importUnifiedData(a){return new Promise((b,c)=>{y.v.info("[Import] Opening database for import...");let d=setTimeout(()=>{y.v.error("[Import] Database open timeout after 10s"),c(Error("Database open timeout"))},1e4),e=indexedDB.open("osw-studio-db",1);e.onerror=()=>{clearTimeout(d),y.v.error("[Import] Failed to open database for import",e.error),c(e.error)},e.onblocked=()=>{y.v.warn("[Import] Database open is blocked - waiting for connections to close")},e.onupgradeneeded=a=>{y.v.info("[Import] Creating database schema...");let b=a.target.result;if(!b.objectStoreNames.contains("projects")){let a=b.createObjectStore("projects",{keyPath:"id"});a.createIndex("name","name",{unique:!1}),a.createIndex("createdAt","createdAt",{unique:!1})}if(!b.objectStoreNames.contains("files")){let a=b.createObjectStore("files",{keyPath:"id"});a.createIndex("projectId","projectId",{unique:!1}),a.createIndex("path",["projectId","path"],{unique:!0}),a.createIndex("type","type",{unique:!1})}if(!b.objectStoreNames.contains("fileTree")){let a=b.createObjectStore("fileTree",{keyPath:"id"});a.createIndex("projectId","projectId",{unique:!1}),a.createIndex("path",["projectId","path"],{unique:!0}),a.createIndex("parentPath",["projectId","parentPath"],{unique:!1})}if(!b.objectStoreNames.contains("conversations")){let a=b.createObjectStore("conversations",{keyPath:"id"});a.createIndex("projectId","projectId",{unique:!1}),a.createIndex("lastUpdated","lastUpdated",{unique:!1})}if(!b.objectStoreNames.contains("checkpoints")){let a=b.createObjectStore("checkpoints",{keyPath:"id"});a.createIndex("projectId","projectId",{unique:!1}),a.createIndex("timestamp","timestamp",{unique:!1})}},e.onsuccess=async()=>{try{clearTimeout(d);let c=e.result;y.v.info("[Import] Database opened successfully"),y.v.info("[Import] Starting data import...",{projects:a.projects?.length||0,files:a.files?.length||0,fileTree:a.fileTree?.length||0,conversations:a.conversations?.length||0,checkpoints:a.checkpoints?.length||0});let f=c.transaction(["projects"],"readwrite").objectStore("projects");for(let b of a.projects||[])await new Promise((a,c)=>{let d=f.put(b);d.onsuccess=()=>a(),d.onerror=()=>{y.v.error("[Import] Failed to import project:",b.id,d.error),c(d.error)}});y.v.info("[Import] Projects imported");let g=c.transaction(["files"],"readwrite").objectStore("files");for(let b of a.files||[])await new Promise((a,c)=>{let d=g.put(b);d.onsuccess=()=>a(),d.onerror=()=>{y.v.error("[Import] Failed to import file:",b.path,d.error),c(d.error)}});y.v.info("[Import] Files imported");let h=c.transaction(["fileTree"],"readwrite").objectStore("fileTree");for(let b of a.fileTree||[])await new Promise((a,c)=>{let d=h.put(b);d.onsuccess=()=>a(),d.onerror=()=>{y.v.error("[Import] Failed to import tree node:",b.path,d.error),c(d.error)}});y.v.info("[Import] File tree imported");let i=a.conversations||[];if(i.length>0){y.v.info("[Import] Importing conversations:",i.length);let a=c.transaction(["conversations"],"readwrite").objectStore("conversations");for(let b of i)await new Promise((c,d)=>{let e=a.put(b);e.onsuccess=()=>c(),e.onerror=()=>{y.v.error("[Import] Failed to import conversation:",b.id,e.error),d(e.error)}});y.v.info("[Import] Conversations imported")}let j=a.checkpoints||[];if(j.length>0){y.v.info("[Import] Importing checkpoints:",j.length);let a=c.transaction(["checkpoints"],"readwrite").objectStore("checkpoints");for(let b of j)await new Promise((c,d)=>{let e=a.put(b);e.onsuccess=()=>c(),e.onerror=()=>{y.v.error("[Import] Failed to import checkpoint:",b.id,e.error),d(e.error)}});y.v.info("[Import] Checkpoints imported")}y.v.info("[Import] All data imported successfully"),b()}catch(a){c(a)}},e.onerror=()=>c(e.error)})}static async clearAllData(){for(let a of["osw-studio-db","osw-studio-vfs","OSWStudioConversations","OSWStudioCheckpoints","deepstudio-vfs","DeepStudioConversations","DeepStudioCheckpoints"])await new Promise(b=>{let c=setTimeout(()=>{y.v.warn(`[Backup] Database deletion timeout for: ${a}`),b()},2e3),d=indexedDB.deleteDatabase(a);d.onsuccess=()=>{clearTimeout(c),y.v.info(`[Backup] Deleted database: ${a}`),b()},d.onerror=()=>{clearTimeout(c),y.v.warn(`[Backup] Error deleting database: ${a}`,d.error),b()},d.onblocked=()=>{y.v.warn(`[Backup] Database deletion blocked: ${a}`)}});y.v.info("[Backup] All databases cleared")}static validateBackupData(a){if(!a.version||!a.exportDate||!a.databases||!a.metadata)throw Error("Invalid backup file structure");if(!a.databases.vfs||!a.databases.conversations||!a.databases.checkpoints)throw Error("Incomplete backup data");let b=a.version.split(".").map(Number),c=this.BACKUP_VERSION.split(".").map(Number);if(b[0]>c[0])throw Error(`Backup version ${a.version} is not compatible with current version ${this.BACKUP_VERSION}`)}static calculateDataSize(a){return JSON.stringify(a).length}static formatBytes(a){if(0===a)return"0 Bytes";let b=Math.floor(Math.log(a)/Math.log(1024));return parseFloat((a/Math.pow(1024,b)).toFixed(2))+" "+["Bytes","KB","MB","GB"][b]}static downloadBlob(a,b){let c=URL.createObjectURL(a),d=document.createElement("a");d.href=c,d.download=b,document.body.appendChild(d),d.click(),document.body.removeChild(d),URL.revokeObjectURL(c)}}var A=c(93554),B=c(62949),C=c(46435);function D({onClose:a}){let[b,c]=(0,e.useState)({}),[w,x]=(0,e.useState)({}),{theme:y,setTheme:D}=(0,l.D)(),[E,F]=(0,e.useState)(!1),[G,H]=(0,e.useState)(!1),[I,J]=(0,e.useState)(!1),[K,L]=(0,e.useState)(!1),[M,N]=(0,e.useState)(0),[O,P]=(0,e.useState)(""),[Q,R]=(0,e.useState)(()=>!1!==f.s.getSettings().telemetryOptIn),[S,T]=(0,e.useState)({application:!0,costTracking:!0,dataManagement:!0}),U=async()=>{try{J(!0),await z.exportAllData(),k.oR.success("Data exported successfully!")}catch(a){k.oR.error(a instanceof Error?a.message:"Export failed")}finally{J(!1)}},V=a=>{T(b=>({...b,[a]:!b[a]}))};return(0,d.jsxs)("div",{className:"flex-1 min-h-0 flex flex-col overflow-hidden",children:[(0,d.jsxs)("div",{className:"shrink-0 pb-3 mb-1 border-b",children:[(0,d.jsx)("h3",{className:"font-semibold text-base tracking-tight",children:"Settings"}),(0,d.jsx)("p",{className:"text-muted-foreground text-xs mt-1",children:"Application preferences and data management"})]}),(0,d.jsx)("div",{className:"flex-1 min-h-0 overflow-y-auto",children:(0,d.jsxs)("div",{className:"space-y-3 pb-4",children:[(0,d.jsxs)(B.Nt,{open:S.application,onOpenChange:()=>V("application"),children:[(0,d.jsxs)(B.R6,{className:"flex items-center justify-between w-full p-3 rounded-lg hover:bg-muted/50 transition-colors",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(m.A,{className:"h-4 w-4"}),(0,d.jsx)("h4",{className:"font-medium text-sm",children:"Application Settings"})]}),(0,d.jsx)(n.A,{className:`h-4 w-4 transition-transform duration-200 ${S.application?"rotate-180":""}`})]}),(0,d.jsxs)(B.Ke,{className:"px-3 pt-2 pb-3",children:[(0,d.jsx)("p",{className:"text-muted-foreground text-xs mb-4",children:"Configure your preferences and display options"}),(0,d.jsxs)("div",{className:"space-y-4",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)(i.J,{htmlFor:"theme",children:"Theme"}),(0,d.jsxs)(C.OY,{type:"single",value:E&&y||"dark",onValueChange:a=>{a&&(D(a),f.s.setSetting("theme",a),c(b=>({...b,theme:a})))},className:"w-full mt-2",children:[(0,d.jsx)(C.dz,{value:"dark",className:"flex-1",children:"Dark"}),(0,d.jsx)(C.dz,{value:"light",className:"flex-1",children:"Light"}),(0,d.jsx)(C.dz,{value:"system",className:"flex-1",children:"System"})]})]}),(0,d.jsxs)("div",{className:"flex items-center justify-between",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)(i.J,{htmlFor:"telemetry",children:"Anonymous Usage Analytics"}),(0,d.jsx)("p",{className:"text-xs text-muted-foreground mt-0.5",children:"Help improve OSW Studio by sharing anonymous usage data"})]}),(0,d.jsx)(j.d,{id:"telemetry",checked:Q,onCheckedChange:a=>{R(a),(0,A._e)(a)}})]})]})]})]}),(0,d.jsxs)(B.Nt,{open:S.costTracking,onOpenChange:()=>V("costTracking"),children:[(0,d.jsxs)(B.R6,{className:"flex items-center justify-between w-full p-3 rounded-lg hover:bg-muted/50 transition-colors",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(o.A,{className:"h-4 w-4"}),(0,d.jsx)("h4",{className:"font-medium text-sm",children:"Cost Tracking"})]}),(0,d.jsx)(n.A,{className:`h-4 w-4 transition-transform duration-200 ${S.costTracking?"rotate-180":""}`})]}),(0,d.jsx)(B.Ke,{className:"px-3 pt-2 pb-3",children:(0,d.jsxs)("div",{className:"space-y-4",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)(i.J,{htmlFor:"show-costs",children:"Display Costs"}),(0,d.jsx)("p",{className:"text-xs text-muted-foreground mt-0.5",children:"Show cost information in messages"})]}),(0,d.jsx)(j.d,{id:"show-costs",checked:!1!==w.showCosts,onCheckedChange:a=>{let b={...w,showCosts:a};f.s.setCostSettings(b),x(b)}})]}),(0,d.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)(i.J,{htmlFor:"daily-limit",className:"text-xs",children:"Daily Limit (USD)"}),(0,d.jsx)(h.p,{id:"daily-limit",type:"number",min:"0",step:"0.01",placeholder:"No limit",className:"mt-1.5",value:w.dailyLimit||"",onChange:a=>{let b=a.target.value?parseFloat(a.target.value):void 0,c={...w,dailyLimit:b};f.s.setCostSettings(c),x(c)}})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)(i.J,{htmlFor:"project-limit",className:"text-xs",children:"Project Limit (USD)"}),(0,d.jsx)(h.p,{id:"project-limit",type:"number",min:"0",step:"0.01",placeholder:"No limit",className:"mt-1.5",value:w.projectLimit||"",onChange:a=>{let b=a.target.value?parseFloat(a.target.value):void 0,c={...w,projectLimit:b};f.s.setCostSettings(c),x(c)}})]})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)(i.J,{htmlFor:"warning-threshold",className:"text-xs",children:"Warning Threshold"}),(0,d.jsxs)("div",{className:"flex items-center gap-3 mt-1.5",children:[(0,d.jsx)(h.p,{id:"warning-threshold",type:"number",min:"50",max:"100",step:"5",className:"flex-1",value:w.warningThreshold||80,onChange:a=>{let b=parseInt(a.target.value),c={...w,warningThreshold:b};f.s.setCostSettings(c),x(c)}}),(0,d.jsxs)("span",{className:"text-xs text-muted-foreground flex items-center gap-1 whitespace-nowrap font-mono",children:[(0,d.jsx)(p.A,{className:"h-3 w-3"}),"Warn at ",w.warningThreshold||80,"%"]})]})]}),(0,d.jsxs)("div",{className:"flex items-center justify-between bg-muted/30 border rounded-lg p-3",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("div",{className:"text-xs text-muted-foreground font-medium",children:"Lifetime Total"}),(0,d.jsx)("div",{className:"text-lg font-bold font-mono tracking-tight mt-0.5",children:u.U.formatCost(f.s.getLifetimeCosts().total)})]}),(0,d.jsx)(g.$,{variant:"outline",size:"sm",onClick:()=>{confirm("Reset lifetime cost tracking? This cannot be undone.")&&(f.s.resetLifetimeCosts(),k.oR.success("Lifetime costs reset"))},children:"Reset Stats"})]})]})})]}),(0,d.jsxs)(B.Nt,{open:S.dataManagement,onOpenChange:()=>V("dataManagement"),children:[(0,d.jsxs)(B.R6,{className:"flex items-center justify-between w-full p-3 rounded-lg hover:bg-muted/50 transition-colors",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(q.A,{className:"h-4 w-4"}),(0,d.jsx)("h4",{className:"font-medium text-sm",children:"Data Management"})]}),(0,d.jsx)(n.A,{className:`h-4 w-4 transition-transform duration-200 ${S.dataManagement?"rotate-180":""}`})]}),(0,d.jsxs)(B.Ke,{className:"px-3 pt-2 pb-3",children:[(0,d.jsx)("p",{className:"text-xs text-muted-foreground mb-4",children:"Backup and restore your projects, conversations, and settings."}),(0,d.jsxs)("div",{className:"space-y-2.5",children:[(0,d.jsxs)("div",{className:"flex items-center gap-3 p-3 rounded-lg border",children:[(0,d.jsx)(r.A,{className:"h-4 w-4 text-muted-foreground shrink-0"}),(0,d.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,d.jsx)("div",{className:"text-sm font-medium",children:"Export All Data"}),(0,d.jsx)("div",{className:"text-xs text-muted-foreground",children:"Download a backup of all projects and data"})]}),(0,d.jsx)(g.$,{variant:"outline",size:"sm",onClick:U,disabled:I,children:I?"Exporting...":"Export"})]}),(0,d.jsxs)("div",{className:"flex items-center gap-3 p-3 rounded-lg border",children:[(0,d.jsx)(s.A,{className:"h-4 w-4 text-muted-foreground shrink-0"}),(0,d.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,d.jsx)("div",{className:"text-sm font-medium",children:"Import Data"}),(0,d.jsx)("div",{className:"text-xs text-muted-foreground",children:"Restore from a .osws backup file"})]}),(0,d.jsx)(g.$,{variant:"outline",size:"sm",onClick:()=>{let a=document.createElement("input");a.type="file",a.accept=".osws",a.onchange=async a=>{let b=a.target.files?.[0];if(b)try{L(!0),N(0),P("Validating file...");let a=await z.validateBackupFile(b);if(!a.valid)return void k.oR.error(`Invalid backup file: ${a.reason}`);let c=confirm(`Import ${a.metadata?.projectCount||0} projects? - -Choose OK to REPLACE all current data, or Cancel to MERGE with existing data.`);await z.importAllData(b,{mode:c?"replace":"merge",onProgress:(a,b)=>{N(a),P(b)}}),k.oR.success("Data imported successfully!"),setTimeout(()=>window.location.reload(),1e3)}catch(a){k.oR.error(a instanceof Error?a.message:"Import failed")}finally{L(!1),N(0),P("")}},a.click()},disabled:K,children:K?"Importing...":"Import"})]}),K&&(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsxs)("div",{className:"flex justify-between text-xs",children:[(0,d.jsx)("span",{children:O}),(0,d.jsxs)("span",{children:[M,"%"]})]}),(0,d.jsx)("div",{className:"w-full bg-muted rounded-full h-2",children:(0,d.jsx)("div",{className:"bg-primary h-2 rounded-full transition-all duration-300",style:{width:`${M}%`}})})]})]})]})]})]})}),(0,d.jsxs)("div",{className:"shrink-0 flex items-center justify-between pt-4 px-3 border-t",children:[(0,d.jsx)(g.$,{variant:"ghost",size:"sm",className:"text-destructive hover:text-destructive",onClick:()=>{confirm("Are you sure you want to clear all settings?")&&(f.s.clearSettings(),c({}),k.oR.success("Settings cleared"))},children:"Clear All Settings"}),(0,d.jsxs)(g.$,{variant:"ghost",size:"sm",onClick:()=>H(!0),children:[(0,d.jsx)(t.A,{className:"mr-1.5 h-3.5 w-3.5"}),"About OSW Studio"]})]}),(0,d.jsx)(v.V,{open:G,onOpenChange:H})]})}},87251:(a,b,c)=>{c.d(b,{E:()=>e});var d=c(21124);function e({className:a}){return(0,d.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 48",fill:"currentColor",className:a,children:(0,d.jsx)("path",{d:"M40.575 0C39.9562 1.09866 39.4006 2.2352 38.8954 3.397C34.0967 2.67719 29.2096 2.67719 24.3982 3.397C23.9057 2.2352 23.3374 1.09866 22.7186 0C18.2104 0.770324 13.8157 2.12155 9.64839 4.02841C1.38951 16.2652 -0.845688 28.1863 0.265599 39.9432C5.10222 43.517 10.5197 46.2447 16.2909 47.9874C17.5916 46.2447 18.7407 44.3883 19.7257 42.4562C17.8568 41.7616 16.0509 40.8903 14.3208 39.88C14.7755 39.5517 15.2175 39.2107 15.6468 38.8824C25.7873 43.6559 37.5316 43.6559 47.6847 38.8824C48.1141 39.236 48.5561 39.577 49.0107 39.88C47.2806 40.9029 45.4748 41.7616 43.5931 42.4688C44.5781 44.4009 45.7273 46.2573 47.028 48C52.7991 46.2573 58.2167 43.5422 63.0533 39.9684C64.3666 26.3299 60.8055 14.5099 53.6452 4.04104C49.4905 2.13418 45.0959 0.782952 40.5876 0.0252565L40.575 0ZM21.1401 32.7072C18.0209 32.7072 15.4321 29.8785 15.4321 26.3804C15.4321 22.8824 17.9199 20.041 21.1275 20.041C24.3351 20.041 26.886 22.895 26.8354 26.3804C26.7849 29.8658 24.3224 32.7072 21.1401 32.7072ZM42.1788 32.7072C39.047 32.7072 36.4834 29.8785 36.4834 26.3804C36.4834 22.8824 38.9712 20.041 42.1788 20.041C45.3864 20.041 47.9246 22.895 47.8741 26.3804C47.8236 29.8658 45.3611 32.7072 42.1788 32.7072Z"})})}},90528:(a,b,c)=>{c.d(b,{ZQ:()=>e,uD:()=>g,Nr:()=>j,I1:()=>f,vY:()=>d,c3:()=>i});let d={name:"Example Studios",description:"Creative agency portfolio showcasing modern web development capabilities",directories:["/styles","/scripts","/portfolio","/assets","/assets/images","/templates"],files:[{path:"/index.html",content:` - - - - - Example Studios - Creative Agency - - - - - {{> navigation}} - -
-
-
-

Crafting Digital Experiences

-

We create stunning websites and digital solutions that captivate audiences and drive results

- -
-
- -
-
-

What We Do

-

From concept to launch, we deliver exceptional digital experiences

-
- -
-
-
Design
-

Web Design

-

Beautiful, user-centered designs that make lasting impressions

- See Our Work -
- -
-
Code
-

Development

-

Fast, responsive websites built with modern technologies

- View Projects -
- -
-
Mobile
-

Mobile Apps

-

Native and web applications that users love to use

- Get Started -
-
-
- - - -
-
-

Ready to Build Something Amazing?

-

Let's turn your ideas into reality. We'd love to hear about your project.

- Start Your Project -
-
- -
- - {{> footer}} - - - -`},{path:"/portfolio.html",content:` - - - - - Portfolio - Example Studios - - - - - - - -
-
-
-

Our Portfolio

-

Explore our recent projects and see how we bring ideas to life

-
-
- -
-
-
-

Our Work

-

Filter by category to explore our diverse portfolio of projects

-
- -
- - - - -
- -
- - -
- Fitness Tracker App -
-

Fitness Tracker App

-

Cross-platform mobile app for health and wellness tracking

-
- React Native - Firebase - Redux -
-
-
- -
- Green Earth Campaign -
-

Green Earth Campaign

-

Complete brand identity for environmental awareness initiative

-
- Brand Design - Illustration - Print -
-
-
- -
- Web Application -
-

Web Application

-

Interactive web application with modern features

-
- React - Node.js - PostgreSQL -
-
-
- -
- Recipe Sharing App -
-

Recipe Sharing App

-

Social platform for food enthusiasts to share and discover recipes

-
- Flutter - AWS - ML Kit -
-
-
- -
- StartupLab Identity -
-

StartupLab Identity

-

Modern brand identity for tech incubator and coworking space

-
- Logo Design - Web Design - Marketing -
-
-
-
-
-
- -
-
-

Ready to Build Something Amazing?

-

Let's turn your ideas into reality. We'd love to hear about your project.

- Start Your Project -
-
-
- - {{> footer}} - - - - -`},{path:"/about.html",content:` - - - - - About - Example Studios - - - - - - -
-
-
-

About Example Studios

-

We're a passionate team of designers and developers crafting exceptional digital experiences that make a difference.

-
-
- -
- -
-
-

Our Story

-

From humble beginnings to digital excellence

-
-
-
-
🚀
-

Founded in 2020

-

Example Studios emerged from a simple belief: great design should be accessible to everyone. What started as a small team of passionate creators has grown into a full-service digital agency.

-
- -
-
💡
-

Our Philosophy

-

We believe in the power of collaboration, the importance of user-centered design, and the magic that happens when creativity meets technology.

-
-
-
- -
-
-

Our Mission

-

Crafting digital experiences that make a difference

-
-
-
🎯
-

Empowering Through Design

-

To empower businesses and individuals with stunning, functional digital solutions that not only look great but drive real results. We're not just building websites and applications; we're crafting digital experiences that connect, engage, and inspire.

- Start Your Project -
-
- -
-
-

Our Team

-
-
-
- Sarah Johnson -

Sarah Johnson

-
Creative Director
-

With over 8 years in design, Sarah leads our creative vision and ensures every project tells a compelling story.

-
- -
- Mike Chen -

Mike Chen

-
Lead Developer
-

Mike transforms designs into responsive, performant web experiences using the latest technologies and best practices.

-
- -
- Emily Rodriguez -

Emily Rodriguez

-
UX Designer
-

Emily ensures every user interaction is intuitive and delightful, backed by research and user testing.

-
-
-
- -
-
-

Our Values

-
-
-
-
Creativity
-

Creativity First

-

We believe every project deserves a unique, creative approach that stands out in the digital landscape.

-
- -
-
Performance
-

Performance Driven

-

Beautiful designs mean nothing without flawless performance. We optimize for speed, accessibility, and user experience.

-
- -
-
Partnership
-

Collaboration

-

The best results come from working closely with our clients as partners, not just service providers.

-
- -
-
Innovation
-

Innovation

-

We stay ahead of industry trends and constantly explore new technologies to deliver cutting-edge solutions.

-
-
-
- -
-
-

Ready to Build Something Amazing?

-

Let's turn your ideas into reality. We'd love to hear about your project.

- Start Your Project -
-
-
-
- - {{> footer}} - - - -`},{path:"/styles/main.css",content:`/* Main Stylesheet - Shared across all pages */ - -:root { - --primary: #ea580c; - --primary-dark: #c2410c; - --secondary: #0891b2; - --secondary-dark: #0e7490; - --accent: #f59e0b; - --neutral: #64748b; - --bg: linear-gradient(180deg, #ffffff 0%, #fdfdfd 100%); - --bg-secondary: linear-gradient(180deg, #f4f4f4 0%, #f8fafc 100%); - --text: #1e293b; - --text-light: #64748b; - --border: #e2e8f0; - --radius: 12px; - --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); - - /* Layout variables */ - --navbar-height: 65px; - --navbar-bg: rgba(255, 255, 255, 0.95); - --hero-gradient-blue: rgba(26, 54, 93, 0.9); - --hero-gradient-orange: rgba(255, 123, 0, 0.8); - - /* Responsive Typography Scale (Mobile-first) */ - --text-xs: 0.75rem; - --text-sm: 0.875rem; - --text-base: 1rem; - --text-lg: 1.125rem; - --text-xl: 1.25rem; - --text-2xl: 1.5rem; - --text-3xl: 1.875rem; - --text-4xl: 2.25rem; - --text-5xl: 3rem; - --text-6xl: 3.75rem; - - /* Semantic Typography Variables */ - --heading-h1: var(--text-4xl); - --heading-h2: var(--text-3xl); - --heading-h3: var(--text-xl); - --heading-h4: var(--text-lg); - --heading-h5: var(--text-base); - --text-subtitle: var(--text-lg); - --text-body: var(--text-base); - --text-small: var(--text-sm); - - /* Responsive Spacing Scale */ - --space-1: 0.25rem; - --space-2: 0.5rem; - --space-3: 0.75rem; - --space-4: 1rem; - --space-5: 1.25rem; - --space-6: 1.5rem; - --space-8: 2rem; - --space-10: 2.5rem; - --space-12: 3rem; - --space-16: 4rem; - --space-20: 5rem; - - /* Container and Grid Variables */ - --container-padding: var(--space-4); - --grid-gap: var(--space-6); - --card-padding: var(--space-6); - --section-spacing: var(--space-12); -} - -/* Tablet Breakpoint - 768px+ */ -@media (min-width: 768px) { - :root { - /* Larger typography for tablet */ - --text-3xl: 2.25rem; - --text-4xl: 2.75rem; - --text-5xl: 3.5rem; - --text-6xl: 4.5rem; - - /* Updated semantic typography for tablet */ - --heading-h1: var(--text-4xl); - --heading-h2: var(--text-3xl); - --heading-h3: var(--text-2xl); - --heading-h4: var(--text-xl); - --text-subtitle: var(--text-xl); - - /* Increased spacing for tablet */ - --container-padding: var(--space-6); - --grid-gap: var(--space-8); - --card-padding: var(--space-8); - --section-spacing: var(--space-16); - } -} - -/* Desktop Breakpoint - 1024px+ */ -@media (min-width: 1024px) { - :root { - /* Larger typography for desktop */ - --text-4xl: 2.5rem; - --text-5xl: 3rem; - --text-6xl: 3.5rem; - - /* Updated semantic typography for desktop */ - --heading-h1: var(--text-4xl); - --heading-h2: var(--text-3xl); - --heading-h3: var(--text-2xl); - --heading-h4: var(--text-xl); - - /* Increased spacing for desktop */ - --container-padding: var(--space-8); - --grid-gap: var(--space-10); - --card-padding: var(--space-10); - --section-spacing: var(--space-20); - } -} - -/* Large Desktop Breakpoint - 1200px+ */ -@media (min-width: 1200px) { - :root { - /* Maximum typography scaling */ - --text-6xl: 4rem; - - /* Maximum spacing */ - --section-spacing: var(--space-24, 6rem); - } -} - -* { - margin: 0; - padding: 0; - box-sizing: border-box; -} - -body { - font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; - background: var(--bg); - color: var(--text); - line-height: 1.6; -} - -/* Navigation */ -.navbar { - padding: var(--space-4) var(--container-padding); - display: flex; - justify-content: space-between; - align-items: center; - position: fixed; - top: 0; - left: 0; - right: 0; - z-index: 1000; - transition: transform 0.3s ease; - backdrop-filter: opacity(0); - background: var(--navbar-bg); - height: var(--navbar-height); -} - -.navbar.hidden { - transform: translateY(-100%); -} - -body { - padding-top: var(--navbar-height); -} - -.nav-brand { - font-size: var(--text-xl); - font-weight: 600; - color: var(--text); - text-decoration: none; - display: flex; - align-items: center; - gap: var(--space-2); -} - -.nav-logo { - width: 28px; - height: 28px; -} - -.nav-menu { - display: flex; - list-style: none; - gap: var(--space-6); -} - -.nav-link { - color: var(--text-light); - text-decoration: none; - transition: all 0.2s ease; - border-radius: var(--space-1); - padding: var(--space-2); -} - -.nav-link:hover, -.nav-link.active { - color: var(--primary); -} - -.nav-link:focus { - outline: none; -} - -/* Hamburger Menu Button */ -.nav-toggle { - display: none; - flex-direction: column; - justify-content: space-between; - width: 24px; - height: 18px; - background: transparent; - border: none; - cursor: pointer; - padding: 0; - z-index: 1001; - border-radius: var(--space-1); -} - -.nav-toggle:focus { - outline: none; -} - -.hamburger-line { - width: 100%; - height: 2px; - background: var(--text); - transition: all 0.3s ease; - transform-origin: center; -} - -.nav-toggle.active .hamburger-line:nth-child(1) { - transform: rotate(45deg) translate(6px, 6px); -} - -.nav-toggle.active .hamburger-line:nth-child(2) { - opacity: 0; -} - -.nav-toggle.active .hamburger-line:nth-child(3) { - transform: rotate(-45deg) translate(6px, -6px); -} - -/* Tablet Responsive - Enhanced desktop experience */ -@media (min-width: 768px) and (max-width: 1023px) { - .nav-menu { - gap: var(--space-4); - } - - .nav-link { - font-size: var(--text-sm); - padding: var(--space-2) var(--space-3); - } -} - -/* Mobile Menu Styles - Hamburger menu only on mobile */ -@media (max-width: 767px) { - .nav-toggle { - display: flex; - } - - .navbar.menu-open { - background: rgba(255, 255, 255, 1); - backdrop-filter: opacity(0); - } - - .nav-menu { - position: fixed; - top: var(--navbar-height); - left: 0; - right: 0; - background: #fff; - backdrop-filter: opacity(0); - flex-direction: column; - padding: var(--space-6) var(--space-4) var(--space-8); - gap: 0; - transform: translateY(-100%); - opacity: 0; - visibility: hidden; - transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); - } - - .nav-menu.active { - transform: translateY(0); - opacity: 1; - visibility: visible; - } - - .nav-link { - font-size: var(--text-lg); - font-weight: 500; - padding: var(--space-2) var(--space-6); - border-radius: var(--space-2); - background: transparent; - border: none; - transition: all 0.2s ease; - position: relative; - width: fit-content; - display: block; - margin: 0 auto; - } - - .nav-link:hover { - background: var(--bg-secondary); - color: var(--primary); - transform: translateY(-2px); - } - - .nav-link.active { - background: var(--primary); - color: white; - font-weight: 600; - } - - .nav-link.active::before { - content: ''; - position: absolute; - left: 0; - top: 50%; - transform: translateY(-50%); - width: 4px; - height: 20px; - background: white; - border-radius: 2px; - } -} - -/* Container */ -.container { - max-width: 1000px; - margin: 0 auto; - padding: var(--card-padding); -} - -/* Universal Heading Styles */ -h1 { - font-size: var(--heading-h1); - margin-bottom: var(--space-4); - font-weight: 700; - line-height: 1.2; -} - -h2 { - font-size: var(--heading-h2); - margin-bottom: var(--space-4); - font-weight: 600; - line-height: 1.3; -} - -h3 { - font-size: var(--heading-h3); - margin-bottom: var(--space-3); - font-weight: 600; - line-height: 1.4; -} - -h4 { - font-size: var(--heading-h4); - margin-bottom: var(--space-2); - font-weight: 600; - line-height: 1.4; -} - -h5 { - font-size: var(--heading-h5); - margin-bottom: var(--space-2); - font-weight: 600; - line-height: 1.5; -} - -p { - color: var(--text-light); - font-size: var(--text-body); - margin-bottom: var(--space-8); - line-height: 1.6; -} - -/* Cards */ -.card-grid { - display: grid; - grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); - gap: var(--space-6); - margin-bottom: var(--section-spacing); -} - -.card { - background: var(--bg-secondary); - padding: var(--card-padding); - border-radius: var(--radius); - text-align: center; -} - -.card h2 { - font-size: var(--heading-h2); - margin-bottom: var(--space-4); -} - -.card p { - font-size: var(--text-body); - margin-bottom: var(--space-6); -} - -/* Buttons */ -.btn { - display: inline-block; - background: var(--primary); - color: white; - padding: var(--space-3) var(--space-6); - border: none; - border-radius: var(--radius); - cursor: pointer; - text-decoration: none; - font-size: var(--text-body); - font-weight: 500; - transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); - box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); -} - -.btn:hover { - background: var(--primary-dark); - transform: translateY(-2px); - box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); -} - -.btn:active { - transform: translateY(0); - box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); -} - -.btn:focus { - outline: none; -} - -.btn-small { - padding: var(--space-2) var(--space-4); - font-size: var(--text-sm); -} - -/* Hero Section */ -.hero { - height: calc(100vh - var(--navbar-height) - var(--container-padding)); - background: linear-gradient(135deg, var(--hero-gradient-blue), var(--hero-gradient-orange)), - url('/assets/images/example-background.jpg') center/cover; - background-size: contain; - color: white; - display: flex; - align-items: center; - justify-content: center; - text-align: center; - padding: var(--space-8) var(--container-padding); - position: relative; - overflow: hidden; - margin: 0rem var(--container-padding) var(--section-spacing); - border-radius: var(--radius); -} - -.hero.sub-page { - height: calc(50vh + var(--navbar-height)); - min-height: calc(300px + var(--navbar-height)); -} - -.hero-content { - max-width: 800px; - z-index: 1; -} - -.hero h1 { - font-size: var(--text-4xl); - margin-bottom: var(--space-4); - font-weight: 700; - text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); -} - -.hero-subtitle { - font-size: var(--text-subtitle); - opacity: 0.95; - margin-bottom: var(--space-8); - color: white; -} - -.hero-buttons { - display: flex; - gap: var(--space-4); - justify-content: center; - flex-wrap: wrap; -} - -.btn-primary { - background: var(--primary); - color: white; -} - -.btn-primary:hover { - background: var(--primary-dark); - transform: translateY(-2px) scale(1.02); - box-shadow: 0 6px 16px rgba(234, 88, 12, 0.25); -} - -.btn-primary:focus { - outline: none; -} - -.btn-secondary { - background: rgba(255, 255, 255, 0.2); - color: white; - backdrop-filter: opacity(0); - box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); -} - -.btn-secondary:hover { - background: rgba(255, 255, 255, 0.3); - transform: translateY(-2px) scale(1.02); - box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15); -} - -.btn-secondary:focus { - outline: none; -} - -/* Features Section */ -.features-section { - padding: var(--section-spacing) 0; - background: var(--bg-secondary); - border-radius: var(--radius); - margin-top: var(--section-spacing); -} - -.feature-grid { - display: grid; - grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); - gap: var(--space-6); - margin-top: var(--space-8); -} - -.feature { - text-align: center; - padding: var(--space-6); -} - -.feature-icon { - font-size: 0.9rem; - font-weight: 600; - color: var(--secondary); - text-transform: uppercase; - letter-spacing: 0.1em; - display: block; - margin-bottom: var(--space-4); -} - -.feature h3 { - color: var(--secondary-dark); - margin-bottom: 0.5rem; -} - -.feature p { - color: var(--text-light); - font-size: var(--text-body); -} - -/* Example Section */ -.example-section { - background: var(--bg-secondary); - padding: var(--card-padding); - border-radius: var(--radius); - text-align: center; -} - -/* Aurora Studios Specific Styles */ -.section-subtitle { - font-size: var(--text-subtitle); - color: var(--text-light); - margin-bottom: var(--section-spacing); - text-align: center; - max-width: 600px; - margin-left: auto; - margin-right: auto; -} - -/* What We Do section title */ -#services h2 { - text-align: center; -} - -.service-icon { - font-size: var(--text-small); - font-weight: 600; - color: var(--primary); - text-transform: uppercase; - letter-spacing: 0.1em; - margin-bottom: var(--space-6); - display: block; -} - -/* Featured Work Section */ -.featured-work { - padding: var(--section-spacing) 0; - background: var(--bg-secondary); -} - -.featured-work h2 { - font-size: var(--heading-h2); - text-align: center; - margin-bottom: var(--section-spacing); - color: var(--text); -} - -.work-grid { - display: grid; - grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); - gap: var(--space-6); - max-width: 1200px; - margin: 0 auto; - padding: 0 var(--space-8); -} - -.work-item { - background: white; - border-radius: var(--radius); - overflow: hidden; - box-shadow: var(--shadow); - transition: transform 0.3s ease; -} - -.work-item:hover { - transform: translateY(-5px); -} - -.section-cta { - text-align: center; - margin-top: var(--space-8); - padding-top: var(--space-6); - border-top: 1px solid var(--border); -} - -.featured-work-cta { - text-align: center; - margin-top: var(--space-8); -} - -.work-image { - width: 100%; - height: 250px; - object-fit: cover; -} - -.work-info { - padding: var(--space-6); -} - -.work-info h3 { - color: var(--primary); - margin-bottom: var(--space-2); -} - -.work-info p { - color: var(--text-light); - font-size: var(--text-body); -} - -/* CTA Section */ -.cta-section { - background: linear-gradient(135deg, var(--secondary), var(--primary)); - color: white; - padding: var(--section-spacing) var(--space-8); - text-align: center; - margin: var(--section-spacing) var(--space-4); - border-radius: var(--radius); -} - -.cta-content h2 { - margin-bottom: var(--space-4); - font-size: var(--heading-h2); -} - -.cta-content p { - font-size: var(--text-subtitle); - opacity: 0.9; - margin-bottom: var(--space-8); - color: white; -} - -.cta-section .btn { - background: white; - color: var(--text); - font-weight: 600; - box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); -} - -.cta-section .btn:hover { - background: var(--bg-secondary); - transform: translateY(-2px) scale(1.02); - box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15); -} - -.cta-section .btn:focus { - outline: none; -} - -/* Page Header - Shared across sub-pages */ -.page-header { - text-align: center; - margin-bottom: var(--section-spacing); -} - -.page-header h1 { - font-size: var(--heading-h1); - margin-bottom: var(--space-4); - color: var(--text); -} - -.page-subtitle { - font-size: var(--text-subtitle); - color: var(--text-light); - max-width: 600px; - margin: 0 auto; -} - -/* Section Header Component */ -.section-header { - text-align: center; - margin-bottom: var(--section-spacing); -} - -.section-header h2 { - font-size: var(--heading-h2); - color: var(--text); - margin-bottom: var(--space-3); - position: relative; -} - -.section-header h2::after { - content: ''; - position: absolute; - bottom: -0.75rem; - left: 50%; - transform: translateX(-50%); - width: 2rem; - height: 3px; - background: var(--primary); - border-radius: 2px; -} - -.section-header .section-subtitle { - font-size: var(--text-subtitle); - color: var(--text-light); - margin-top: var(--space-6); - margin-bottom: 0; - max-width: 600px; - margin-left: auto; - margin-right: auto; - line-height: 1.6; -} - -/* Content Sections - Shared layout styles */ -.content-section { - margin-bottom: var(--section-spacing); -} - -.content-section h2 { - font-size: var(--heading-h2); - color: var(--text); - margin-bottom: var(--space-4); - position: relative; -} - -.content-section p { - font-size: var(--text-subtitle); - line-height: 1.8; - color: var(--text-light); - margin-bottom: var(--space-6); - text-align: center; -} - -/* Team Grid - Shared component */ -.team-grid { - display: grid; - grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); - gap: var(--space-6); - margin-top: var(--space-8); -} - -.team-member { - text-align: center; - padding: var(--card-padding); - background: var(--bg-secondary); - border-radius: var(--radius); - transition: transform 0.3s ease, box-shadow 0.3s ease; -} - -.team-member:hover { - transform: translateY(-5px); - box-shadow: var(--shadow); -} - -.team-member img { - width: 100px; - height: 100px; - border-radius: 50%; - object-fit: cover; - margin-bottom: var(--space-4); - border: 3px solid var(--primary); -} - -.team-member h3 { - font-size: var(--heading-h3); - color: var(--text); - margin-bottom: var(--space-2); -} - -.team-member .role { - color: var(--primary); - font-weight: 600; - margin-bottom: var(--space-4); -} - -.team-member p { - font-size: var(--text-small); - color: var(--text-light); - line-height: 1.6; -} - -/* Contact Page Components */ -.contact-card .contact-detail { - font-weight: 600; - color: var(--primary); - font-size: var(--text-base); - margin: var(--space-4) 0; - padding: var(--space-3); - background: var(--bg-secondary); - border-radius: var(--space-2); - text-align: center; -} - -.contact-form-section { - max-width: 600px; - margin: 0 auto; - background: white; - padding: var(--card-padding); - border-radius: var(--radius); - box-shadow: var(--shadow); -} - -.social-proof-container { - max-width: 800px; - margin: 0 auto; - text-align: center; -} - -/* Tablet Responsive Styles */ -@media (min-width: 768px) and (max-width: 1023px) { - /* Hero adjustments for tablet */ - .hero.sub-page { - height: calc(50vh + var(--navbar-height)); - min-height: calc(350px + var(--navbar-height)); - } - - /* Grid layout adjustments for tablet */ - .card-grid, - .work-grid, - .team-grid, - .portfolio-grid { - grid-template-columns: repeat(2, 1fr); - gap: var(--space-6); - } - -} - -/* Mobile Responsive Styles */ -@media (max-width: 767px) { - :root { - /* Mobile-optimized typography */ - --heading-h1: var(--text-3xl); - --heading-h2: var(--text-2xl); - --heading-h3: var(--text-lg); - --text-subtitle: var(--text-base); - - /* Tighter spacing for mobile */ - --section-spacing: var(--space-10); - --card-padding: var(--space-4); - } - - /* Hero section mobile adjustments */ - .hero { - margin: 0rem var(--space-4) var(--section-spacing); - padding: var(--space-6) var(--space-4); - } - - .hero h1 { - font-size: var(--text-4xl); - } - - .hero.sub-page { - height: calc(40vh + var(--navbar-height)); - min-height: calc(250px + var(--navbar-height)); - } - - /* Grid layout adjustments - single column for mobile */ - .card-grid, - .work-grid, - .team-grid, - .portfolio-grid { - grid-template-columns: 1fr; - gap: var(--space-4); - } - - - /* Mobile button improvements */ - .btn { - width: 100%; - max-width: 280px; - text-align: center; - } - - .hero-buttons { - flex-direction: column; - align-items: center; - gap: var(--space-3); - } - - /* Mobile typography improvements */ - p { - margin-bottom: var(--space-6); - } - - /* Contact form mobile adjustments */ - .form-row { - grid-template-columns: 1fr; - gap: var(--space-4); - margin-bottom: var(--space-4); - } - - .social-proof-stats { - grid-template-columns: 1fr; - gap: var(--space-6); - } - - .social-proof-text { - margin-left: 0; - border-left: none; - border-top: 3px solid var(--primary); - padding-left: 0; - padding-top: var(--space-4); - } -} - -.contact-info h2 { - font-size: var(--heading-h2); - color: var(--text); - margin-bottom: var(--space-4); -} - -.contact-info p { - font-size: var(--text-subtitle); - line-height: 1.8; - color: var(--text-light); - margin-bottom: var(--space-8); -} - - -/* Contact Form - Refactored */ -.contact-form-container { - padding: var(--card-padding); -} - -.contact-form-container .section-header { - text-align: left; - margin-bottom: var(--space-8); -} - -.contact-form-container .section-header h2 { - font-size: var(--heading-h2); - color: var(--text); - margin-bottom: var(--space-3); -} - -.contact-form-container .section-header p { - color: var(--text-light); - font-size: var(--text-base); - margin: 0; -} - -.form-row { - display: grid; - grid-template-columns: 1fr 1fr; - gap: var(--space-4); - margin-bottom: var(--space-6); -} - -.form-group { - margin-bottom: var(--space-6); -} - -.form-group label { - display: block; - font-weight: 600; - color: var(--text); - font-size: var(--text-body); - margin-bottom: var(--space-2); -} - -.form-group input, -.form-group select, -.form-group textarea { - width: 100%; - padding: var(--space-4); - border: 2px solid var(--border); - border-radius: var(--radius); - font-size: var(--text-body); - transition: border-color 0.3s ease, box-shadow 0.3s ease; -} - -.form-group input:focus, -.form-group select:focus, -.form-group textarea:focus { - outline: none; - border-color: var(--primary); - box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1); -} - -.form-group textarea { - resize: vertical; - min-height: 120px; -} - -.checkbox-group { - display: flex; - align-items: flex-start; - gap: var(--space-2); -} - -.checkbox-group input[type="checkbox"] { - width: auto; - margin: 0; - transform: scale(1.2); -} - -.checkbox-group label { - margin-bottom: 0; - font-weight: normal; - font-size: var(--text-small); - cursor: pointer; -} - -.error-message { - color: #ef4444; - font-size: var(--text-sm); - margin-top: var(--space-1); - display: block; -} - -.btn-full { - width: 100%; - padding: var(--space-4) var(--space-8); - font-size: var(--text-subtitle); - font-weight: 600; -} - -.form-success { - display: none; - background: #10b981; - color: white; - padding: var(--space-6); - border-radius: var(--radius); - margin-top: var(--space-4); - text-align: center; - border: 1px solid #059669; -} - -.form-success.show { - display: flex; - align-items: center; - justify-content: center; - gap: var(--space-3); -} - -.form-success .success-icon { - display: flex; - align-items: center; - justify-content: center; - width: 32px; - height: 32px; - background: rgba(255, 255, 255, 0.2); - border-radius: 50%; - flex-shrink: 0; -} - -.form-success .success-icon svg { - width: 20px; - height: 20px; - stroke: white; - stroke-width: 3; -} - -.form-success p { - margin: 0; - font-weight: 500; - font-size: var(--text-body); -} - -/* Social Proof Section */ -.contact-social-proof { - background: var(--bg-secondary); - padding: var(--card-padding); - border-radius: var(--radius); - border: 2px solid var(--border); -} - -.contact-social-proof h3 { - font-size: var(--heading-h3); - color: var(--text); - margin-bottom: var(--space-6); - text-align: center; -} - -.social-proof-stats { - display: grid; - grid-template-columns: repeat(3, 1fr); - gap: var(--space-4); - margin-bottom: var(--space-6); -} - -.stat { - text-align: center; - padding: var(--space-3); -} - -.stat-number { - font-size: var(--text-2xl); - font-weight: 700; - color: var(--primary); - margin-bottom: var(--space-1); -} - -.stat-label { - font-size: var(--text-sm); - color: var(--text-light); - font-weight: 500; -} - -.social-proof-text { - font-style: italic; - color: var(--text); - line-height: 1.6; - margin-bottom: var(--space-4); - text-align: center; - border-left: 3px solid var(--primary); - padding-left: var(--space-4); - margin-left: var(--space-4); -} - -.social-proof-attribution { - text-align: center; - color: var(--text-light); - font-size: var(--text-sm); -} - -.testimonial { - margin-top: var(--space-8); - padding: var(--space-6); - background: var(--bg-secondary); - border-radius: var(--radius); - border-left: 4px solid var(--primary); -} - -.testimonial-text { - font-size: var(--text-lg); - font-style: italic; - color: var(--text); - line-height: 1.6; - margin-bottom: var(--space-4); -} - -.testimonial-attribution { - color: var(--text-light); - font-size: var(--text-sm); -} - -/* Loading state for form submission */ -.contact-form.loading .btn-primary { - background: var(--neutral); - cursor: not-allowed; - position: relative; -} - -.contact-form.loading .btn-primary:after { - content: ''; - position: absolute; - width: 20px; - height: 20px; - margin: auto; - border: 2px solid white; - border-top: 2px solid transparent; - border-radius: 50%; - animation: spin 1s linear infinite; -} - -@keyframes spin { - 0% { transform: rotate(0deg); } - 100% { transform: rotate(360deg); } -} - -/* Form validation styles */ -.form-group.error input, -.form-group.error select, -.form-group.error textarea { - border-color: #ef4444; - background-color: #fef2f2; -} - -.form-group.success input, -.form-group.success select, -.form-group.success textarea { - border-color: #10b981; - background-color: #f0fdf4; -} - -/* Footer - Modern Light Design */ -.site-footer { - background: var(--bg-secondary); - border-top: 1px solid var(--border); - padding: var(--section-spacing) 0 0; - margin-top: var(--section-spacing); -} - -.footer-content { - max-width: 1200px; - margin: 0 auto; - padding: 0 var(--space-8) var(--section-spacing); - display: grid; - grid-template-columns: 1fr 2fr; - gap: var(--space-10); - align-items: start; -} - -/* Footer Brand Section */ -.footer-brand { - display: flex; - flex-direction: column; - gap: var(--space-4); -} - -.footer-logo { - display: flex; - align-items: center; - gap: var(--space-3); - font-size: var(--text-xl); - font-weight: 600; - color: var(--text); -} - -.footer-logo img { - width: 40px; - height: 40px; -} - -.footer-tagline { - color: var(--text-light); - font-size: var(--text-body); - margin: 0; - line-height: 1.5; -} - -.footer-social { - display: flex; - gap: var(--space-3); - margin-top: var(--space-2); -} - -.footer-social a { - width: 36px; - height: 36px; - display: flex; - align-items: center; - justify-content: center; - border-radius: 50%; - background: white; - color: var(--text); - text-decoration: none; - font-size: var(--text-base); - transition: all 0.2s ease; - border: 1px solid var(--border); -} - -.footer-social a:hover { - background: var(--primary); - color: white; - border-color: var(--primary); - transform: translateY(-2px); -} - -/* Footer Links Section */ -.footer-links-section { - display: grid; - grid-template-columns: 1fr 1fr; - gap: var(--space-8); -} - -.footer-column h4 { - font-size: var(--text-base); - font-weight: 600; - color: var(--text); - margin-bottom: var(--space-4); - text-transform: uppercase; - letter-spacing: 0.05em; -} - -.footer-links { - list-style: none; - padding: 0; - margin: 0; -} - -.footer-links li { - margin-bottom: var(--space-3); -} - -.footer-links a { - color: var(--text-light); - text-decoration: none; - font-size: var(--text-body); - transition: color 0.2s ease; - position: relative; -} - -.footer-links a:hover { - color: var(--primary); - transform: translateX(2px); - display: inline-block; -} - -/* Footer Bottom Bar */ -.footer-bottom { - border-top: 1px solid var(--border); - padding: var(--space-6) var(--space-8); - max-width: 1200px; - margin: 0 auto; - display: flex; - justify-content: space-between; - align-items: center; - flex-wrap: wrap; - gap: var(--space-4); -} - -.footer-hf-link { - display: flex; - align-items: center; - gap: var(--space-2); - color: var(--text-light); - text-decoration: none; - font-size: var(--text-sm); - font-weight: 500; - transition: all 0.2s ease; - padding: var(--space-1) var(--space-2); - border-radius: var(--space-1); -} - -.footer-hf-link:hover { - color: var(--primary); - background: rgba(234, 88, 12, 0.1); - transform: translateY(-1px); -} - -.footer-hf-link svg { - width: 16px; - height: 16px; - flex-shrink: 0; -} - -.footer-bottom-links { - display: flex; - align-items: center; - gap: var(--space-4); -} - -.footer-bottom-links a { - color: var(--text-light); - text-decoration: none; - font-size: var(--text-sm); - transition: color 0.2s ease; -} - -.footer-bottom-links a:hover { - color: var(--primary); -} - -.footer-bottom-links .separator { - color: var(--text-light); - font-size: var(--text-sm); -} - -/* Responsive Footer Styles */ -@media (max-width: 767px) { - .footer-content { - grid-template-columns: 1fr; - gap: var(--space-8); - padding: 0 var(--space-4) var(--space-8); - } - - .footer-brand { - text-align: center; - align-items: center; - } - - .footer-links-section { - grid-template-columns: 1fr 1fr; - gap: var(--space-6); - text-align: center; - } - - .footer-column h4 { - text-align: center; - } - - .footer-links { - text-align: center; - } - - .footer-links a { - display: inline-block; - } - - .footer-bottom { - flex-direction: column; - text-align: center; - padding: var(--space-4); - } - - .footer-bottom-links { - flex-wrap: wrap; - justify-content: center; - } -} - -`},{path:"/styles/portfolio.css",content:`/* Portfolio Page Styles */ - -/* Portfolio Filters */ -.portfolio-filters { - display: flex; - justify-content: center; - gap: var(--space-4); - margin-bottom: var(--section-spacing); - flex-wrap: wrap; -} - -.filter-btn { - padding: var(--space-3) var(--space-6); - border: 2px solid var(--border); - background: transparent; - border-radius: 50px; - cursor: pointer; - transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); - font-weight: 500; - font-size: var(--text-body); - color: var(--text-light); - box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); -} - -.filter-btn:hover, -.filter-btn.active { - border-color: var(--primary); - background: var(--primary); - color: white; - transform: translateY(-1px) scale(1.01); - box-shadow: 0 4px 12px rgba(234, 88, 12, 0.2); -} - -.filter-btn:focus { - outline: none; -} - -.filter-btn:active { - transform: translateY(0) scale(0.99); -} - -/* Portfolio Grid */ -.portfolio-grid { - display: grid; - grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); - gap: var(--space-6); - margin-bottom: var(--section-spacing); -} - -.portfolio-item { - position: relative; - border-radius: var(--radius); - overflow: hidden; - box-shadow: var(--shadow); - transition: transform 0.3s ease; - cursor: pointer; -} - -.portfolio-item:hover { - transform: translateY(-10px); -} - -.portfolio-item.hidden { - display: none; -} - -.portfolio-image { - width: 100%; - height: 300px; - object-fit: cover; - transition: transform 0.3s ease; -} - -.portfolio-item:hover .portfolio-image { - transform: scale(1.05); -} - -.portfolio-overlay { - position: absolute; - bottom: 0; - left: 0; - right: 0; - background: linear-gradient(transparent, rgba(0,0,0,0.8)); - color: white; - padding: var(--card-padding); - transform: translateY(100%); - transition: transform 0.3s ease; -} - -.portfolio-item:hover .portfolio-overlay { - transform: translateY(0); -} - -.portfolio-overlay h3 { - font-size: var(--heading-h3); - margin-bottom: var(--space-2); -} - -.portfolio-overlay p { - margin-bottom: var(--space-4); - opacity: 0.9; - color: white; -} - -.portfolio-tags { - display: flex; - flex-wrap: wrap; - gap: var(--space-2); -} - -.tag { - background: rgba(255,255,255,0.2); - color: white; - padding: var(--space-1) var(--space-3); - border-radius: 20px; - font-size: var(--text-xs); - font-weight: 500; -}`},{path:"/scripts/main.js",content:`// Main JavaScript - Shared functionality - -// Multi-file demo loaded - -// Set up navigation highlighting -document.addEventListener('DOMContentLoaded', function() { - const currentPath = window.location.pathname; - const navLinks = document.querySelectorAll('.nav-link'); - - navLinks.forEach(link => { - if (link.getAttribute('href') === currentPath) { - link.classList.add('active'); - } else { - link.classList.remove('active'); - } - }); - - // Scroll-reactive navbar functionality - const navbar = document.querySelector('.navbar'); - const hero = document.querySelector('.hero'); - let lastScrollY = window.scrollY; - let heroHeight = hero ? hero.offsetHeight : 0; - - function updateNavbarVisibility() { - const currentScrollY = window.scrollY; - const scrollDifference = currentScrollY - lastScrollY; - - // Always show navbar in hero section - if (currentScrollY <= heroHeight) { - navbar.classList.remove('hidden'); - } - // Hide when scrolling down past hero section - else if (scrollDifference > 0) { - navbar.classList.add('hidden'); - } - // Show when scrolling up by 20px or more - else if (scrollDifference <= -20) { - navbar.classList.remove('hidden'); - } - - lastScrollY = currentScrollY; - } - - // Throttle scroll events for better performance - let ticking = false; - function handleScroll() { - if (!ticking) { - requestAnimationFrame(updateNavbarVisibility); - ticking = true; - setTimeout(() => { ticking = false; }, 16); // ~60fps - } - } - - window.addEventListener('scroll', handleScroll); - - // Recalculate hero height on resize - window.addEventListener('resize', function() { - heroHeight = hero ? hero.offsetHeight : 0; - }); - - // Mobile hamburger menu functionality - const navToggle = document.querySelector('.nav-toggle'); - const navMenu = document.querySelector('.nav-menu'); - const mobileNavLinks = document.querySelectorAll('.nav-link'); - - function toggleMobileMenu() { - navToggle.classList.toggle('active'); - navMenu.classList.toggle('active'); - navbar.classList.toggle('menu-open'); - - // Update ARIA attributes - const isExpanded = navToggle.classList.contains('active'); - navToggle.setAttribute('aria-expanded', isExpanded); - - // Prevent body scroll when menu is open - document.body.style.overflow = isExpanded ? 'hidden' : ''; - } - - function closeMobileMenu() { - navToggle.classList.remove('active'); - navMenu.classList.remove('active'); - navbar.classList.remove('menu-open'); - navToggle.setAttribute('aria-expanded', 'false'); - document.body.style.overflow = ''; - } - - // Toggle menu on button click - if (navToggle) { - navToggle.addEventListener('click', toggleMobileMenu); - } - - // Close menu when clicking nav links - mobileNavLinks.forEach(link => { - link.addEventListener('click', closeMobileMenu); - }); - - // Close menu on escape key - document.addEventListener('keydown', function(e) { - if (e.key === 'Escape' && navMenu.classList.contains('active')) { - closeMobileMenu(); - } - }); - - // Close menu when clicking outside - document.addEventListener('click', function(e) { - if (!navToggle.contains(e.target) && !navMenu.contains(e.target) && navMenu.classList.contains('active')) { - closeMobileMenu(); - } - }); - - // Close mobile menu when navbar hides (scroll reactive) - const originalUpdateNavbarVisibility = updateNavbarVisibility; - updateNavbarVisibility = function() { - originalUpdateNavbarVisibility(); - if (navbar.classList.contains('hidden') && navMenu.classList.contains('active')) { - closeMobileMenu(); - } - }; - -});`},{path:"/templates/navigation.hbs",content:``},{path:"/templates/footer.hbs",content:`
- - - -
`},{path:"/scripts/portfolio.js",content:`// Portfolio Filtering Functionality - -(function() { - let currentFilter = 'all'; - - function init() { - const filterButtons = document.querySelectorAll('.filter-btn'); - const portfolioItems = document.querySelectorAll('.portfolio-item'); - - if (!filterButtons.length || !portfolioItems.length) return; - - // Add event listeners to filter buttons - filterButtons.forEach(btn => { - btn.addEventListener('click', handleFilterClick); - }); - - // Show all items initially - showItems(portfolioItems, 'all'); - } - - function handleFilterClick(e) { - const button = e.target; - const filter = button.dataset.filter; - - if (!filter) return; - - // Update active button - document.querySelectorAll('.filter-btn').forEach(btn => { - btn.classList.remove('active'); - }); - button.classList.add('active'); - - // Filter and show items - const portfolioItems = document.querySelectorAll('.portfolio-item'); - showItems(portfolioItems, filter); - - currentFilter = filter; - } - - function showItems(items, filter) { - items.forEach(item => { - const itemCategory = item.dataset.category; - - if (filter === 'all' || itemCategory === filter) { - item.style.display = 'block'; - item.style.opacity = '0'; - - // Animate in - setTimeout(() => { - item.style.opacity = '1'; - item.style.transform = 'translateY(0)'; - }, 50); - } else { - item.style.opacity = '0'; - item.style.transform = 'translateY(20px)'; - - // Hide after animation - setTimeout(() => { - item.style.display = 'none'; - }, 300); - } - }); - } - - // Add smooth transitions to portfolio items - function addTransitions() { - const portfolioItems = document.querySelectorAll('.portfolio-item'); - portfolioItems.forEach(item => { - item.style.transition = 'opacity 0.3s ease, transform 0.3s ease'; - }); - } - - document.addEventListener('DOMContentLoaded', function() { - addTransitions(); - init(); - }); -})();`},{path:"/scripts/contact.js",content:`// Contact Form Validation and Submission - -(function() { - let form; - let submitButton; - let isSubmitting = false; - - function init() { - form = document.getElementById('contactForm'); - submitButton = form?.querySelector('button[type="submit"]'); - - if (!form || !submitButton) return; - - // Add event listeners - form.addEventListener('submit', handleSubmit); - - // Real-time validation - const inputs = form.querySelectorAll('input[required], textarea[required]'); - inputs.forEach(input => { - input.addEventListener('blur', validateField); - input.addEventListener('input', clearErrors); - }); - - // Email specific validation - const emailInput = form.querySelector('#email'); - if (emailInput) { - emailInput.addEventListener('blur', validateEmail); - } - } - - function handleSubmit(e) { - e.preventDefault(); - - if (isSubmitting) return; - - // Clear all previous errors - clearAllErrors(); - - // Validate all fields - const isValid = validateForm(); - - if (isValid) { - submitForm(); - } - } - - function validateForm() { - let isValid = true; - - // Required field validation - const requiredFields = [ - { id: 'name', name: 'Full Name' }, - { id: 'email', name: 'Email Address' }, - { id: 'message', name: 'Project Details' } - ]; - - requiredFields.forEach(field => { - const input = document.getElementById(field.id); - const value = input.value.trim(); - - if (!value) { - showError(field.id, \`\${field.name} is required\`); - isValid = false; - } - }); - - // Email format validation - const emailInput = document.getElementById('email'); - const emailValue = emailInput.value.trim(); - if (emailValue && !isValidEmail(emailValue)) { - showError('email', 'Please enter a valid email address'); - isValid = false; - } - - // Message length validation - const messageInput = document.getElementById('message'); - const messageValue = messageInput.value.trim(); - if (messageValue && messageValue.length < 20) { - showError('message', 'Please provide more details about your project (minimum 20 characters)'); - isValid = false; - } - - return isValid; - } - - function validateField(e) { - const field = e.target; - const value = field.value.trim(); - - clearErrors(e); - - if (field.hasAttribute('required') && !value) { - const fieldName = field.previousElementSibling.textContent.replace(' *', ''); - showError(field.id, \`\${fieldName} is required\`); - } - } - - function validateEmail(e) { - const emailInput = e.target; - const emailValue = emailInput.value.trim(); - - if (emailValue && !isValidEmail(emailValue)) { - showError('email', 'Please enter a valid email address'); - } - } - - function isValidEmail(email) { - const emailRegex = /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/; - return emailRegex.test(email); - } - - function showError(fieldId, message) { - const field = document.getElementById(fieldId); - const formGroup = field.parentElement; - const errorElement = document.getElementById(fieldId + 'Error'); - - // Add error class to form group - formGroup.classList.add('error'); - formGroup.classList.remove('success'); - - // Show error message - if (errorElement) { - errorElement.textContent = message; - } - } - - function clearErrors(e) { - const field = e.target; - const formGroup = field.parentElement; - const errorElement = document.getElementById(field.id + 'Error'); - - // Remove error class - formGroup.classList.remove('error'); - - // Clear error message - if (errorElement) { - errorElement.textContent = ''; - } - - // Add success class if field has value and no errors - if (field.value.trim() && !formGroup.classList.contains('error')) { - formGroup.classList.add('success'); - } else { - formGroup.classList.remove('success'); - } - } - - function clearAllErrors() { - const errorMessages = form.querySelectorAll('.error-message'); - errorMessages.forEach(error => error.textContent = ''); - - const formGroups = form.querySelectorAll('.form-group'); - formGroups.forEach(group => { - group.classList.remove('error', 'success'); - }); - - // Hide success message - const successElement = document.getElementById('formSuccess'); - if (successElement) { - successElement.classList.remove('show'); - } - } - - function submitForm() { - if (isSubmitting) return; - - isSubmitting = true; - - // Add loading state - form.classList.add('loading'); - submitButton.disabled = true; - submitButton.textContent = 'Sending...'; - - // Collect form data - const formData = new FormData(form); - const data = { - name: formData.get('name'), - email: formData.get('email'), - company: formData.get('company'), - project: formData.get('project'), - budget: formData.get('budget'), - message: formData.get('message'), - newsletter: formData.get('newsletter') ? true : false, - timestamp: new Date().toISOString() - }; - - // Simulate form submission (replace with actual API call) - setTimeout(() => { - - // Show success message - showSuccess(); - - // Reset form - form.reset(); - clearAllErrors(); - - // Remove loading state - form.classList.remove('loading'); - submitButton.disabled = false; - submitButton.textContent = 'Send Message'; - - isSubmitting = false; - - // Auto-hide success message after 5 seconds - setTimeout(() => { - const successElement = document.getElementById('formSuccess'); - if (successElement) { - successElement.classList.remove('show'); - } - }, 5000); - - }, 2000); // Simulate network delay - } - - function showSuccess() { - const successElement = document.getElementById('formSuccess'); - if (successElement) { - successElement.classList.add('show'); - successElement.scrollIntoView({ behavior: 'smooth', block: 'nearest' }); - } - } - - // Initialize when DOM is ready - document.addEventListener('DOMContentLoaded', init); -})();`},{path:"/data.json",content:`{ - "siteName": "Example Studios", - "footerTagline": "Crafting digital experiences that inspire", - "navigation": [ - {"title": "Home", "url": "/"}, - {"title": "Portfolio", "url": "/portfolio.html"}, - {"title": "About", "url": "/about.html"}, - {"title": "Contact", "url": "/contact.html"} - ], - "social": [ - {"name": "Twitter", "url": "#", "icon": "𝕏"}, - {"name": "LinkedIn", "url": "#", "icon": "in"}, - {"name": "Instagram", "url": "#", "icon": "📷"}, - {"name": "GitHub", "url": "#", "icon": "⚡"} - ], - "services": [ - {"name": "Web Design", "url": "/portfolio.html"}, - {"name": "Development", "url": "/portfolio.html"}, - {"name": "Mobile Apps", "url": "/portfolio.html"}, - {"name": "Consulting", "url": "/portfolio.html"} - ], - "deepstudioLink": "https://huggingface.co/spaces/otst/oswstudio", - "deepstudioName": "OSW Studio", - "legalLinks": [ - {"name": "Privacy Policy", "url": "/privacy.html"}, - {"name": "Terms of Service", "url": "/terms.html"} - ] -}`},{path:"/assets/images/logo.svg",content:` - - - - - - - - - - - - -`},{path:"/assets/images/favicon.svg",content:` - - - - -`},{path:"/contact.html",content:` - - - - - Contact - Example Studios - - - - - - -
-
-
-

Let's Build Something Amazing

-

Ready to turn your ideas into reality? We'd love to hear about your project and show you how we can help.

-
-
- -
-
-

Get In Touch

-

Ready to start your next project? Choose how you'd like to connect with us

-
- -
-
-
Email
-

Send Us an Email

-

Drop us a line and we'll get back to you within 24 hours

-
hello@examplestudios.com
- Send Email -
- -
-
Phone
-

Give Us a Call

-

Speak directly with our team about your project

-
(555) 123-4567
- Call Now -
- -
-
Office
-

Visit Our Studio

-

Meet with us in person to discuss your vision

-
San Francisco, CA
By appointment only
- Schedule Visit -
-
-
- -
-
-

Start Your Project

-

Tell us about your vision and we'll get back to you within 24 hours

-
- -
-
-
-
- - - -
- -
- - - -
-
- -
- - - -
- - - -
-
- - - -
-

Thank you! We'll get back to you within 24 hours.

-
-
-
-
- - -
- - {{> footer}} - - - - -`},{path:"/privacy.html",content:` - - - - - Privacy Policy - Example Studios - - - - - {{> navigation}} - -
-
-
-

Privacy Policy

-

How we protect and handle your information

-
-
- -
-
-

Last updated: December 2024

- -

Overview

-

At Example Studios, we take your privacy seriously. This Privacy Policy explains how we collect, use, and protect your personal information when you use our services.

- -

Information We Collect

-

We may collect the following types of information:

-
    -
  • Contact Information: Name, email address, phone number when you contact us
  • -
  • Project Information: Details about your project requirements and preferences
  • -
  • Usage Data: How you interact with our website for improving our services
  • -
- -

How We Use Your Information

-

We use your information to:

-
    -
  • Provide and improve our design and development services
  • -
  • Communicate with you about your projects
  • -
  • Send you updates about our services (with your consent)
  • -
  • Analyze and improve our website and services
  • -
- -

Information Sharing

-

We do not sell, trade, or otherwise transfer your personal information to third parties without your consent, except:

-
    -
  • To trusted service providers who help us operate our business
  • -
  • When required by law or to protect our rights
  • -
  • With your explicit consent
  • -
- -

Data Security

-

We implement appropriate security measures to protect your personal information against unauthorized access, alteration, disclosure, or destruction.

- -

Your Rights

-

You have the right to:

-
    -
  • Access and review your personal information
  • -
  • Request corrections to your information
  • -
  • Request deletion of your information
  • -
  • Opt-out of marketing communications
  • -
- -

Contact Us

-

If you have questions about this Privacy Policy, please contact us at:

-

- Example Studios
- Email: hello@examplestudios.com
- Phone: (555) 123-4567 -

-
-
- -
-
-

Ready to Build Something Amazing?

-

Let's turn your ideas into reality. We'd love to hear about your project.

- Start Your Project -
-
-
- - {{> footer}} - - - -`},{path:"/terms.html",content:` - - - - - Terms of Service - Example Studios - - - - - {{> navigation}} - -
-
-
-

Terms of Service

-

Our terms and conditions for working together

-
-
- -
-
-

Last updated: December 2024

- -

Agreement to Terms

-

By accessing and using Example Studios' services, you agree to be bound by these Terms of Service and all applicable laws and regulations.

- -

Services

-

Example Studios provides web design, development, and digital consulting services. We reserve the right to modify or discontinue services with reasonable notice.

- -

Client Responsibilities

-

As a client, you agree to:

-
    -
  • Provide accurate and complete information for your project
  • -
  • Respond to requests for feedback in a timely manner
  • -
  • Collaborate effectively throughout the project
  • -
  • Respect intellectual property rights
  • -
- -

Project Process

-

Our typical process includes:

-
    -
  • Discovery: Understanding your requirements and goals
  • -
  • Proposal: Detailed scope, timeline, and pricing
  • -
  • Design & Development: Creating your solution
  • -
  • Review: Client feedback and revisions
  • -
  • Launch: Final delivery and launch support
  • -
- -

Project Timeline

-
    -
  • Project schedules will be outlined in individual agreements
  • -
  • Milestone deliverables will be clearly defined
  • -
  • Regular progress updates will be provided
  • -
- -

Intellectual Property

-

Upon project completion, clients receive ownership of custom work created specifically for their project, excluding any pre-existing intellectual property or third-party components.

- -

Limitation of Liability

-

Example Studios' liability is limited to the amount paid for services. We are not responsible for indirect, incidental, or consequential damages.

- -

Termination

-

Either party may terminate services with written notice. All completed work will be delivered upon termination.

- -

Changes to Terms

-

We reserve the right to update these terms with reasonable notice to existing clients.

- -

Contact

-

Questions about these terms? Contact us at:

-

- Example Studios
- Email: hello@examplestudios.com
- Phone: (555) 123-4567 -

-
-
-
- - {{> footer}} - - - -`},{path:"/portfolio/techflow-dashboard.html",content:` - - - - - TechFlow Dashboard - Example Studios - - - - - - -
-
-
-

TechFlow Dashboard

-

Modern analytics platform with real-time data visualization

-
-
- -
-
-
-

Project Overview

-

A comprehensive analytics solution built for modern businesses

-
- -
-
-
Challenge
-

Challenge

-

TechFlow needed a modern dashboard to visualize complex data streams in real-time, replacing their outdated reporting system with something more intuitive and scalable.

-
- -
-
Solution
-

Solution

-

We designed and built a React-based dashboard with D3.js visualizations, featuring customizable widgets and real-time data updates via WebSocket connections.

-
-
-
- -
-
-

Technology Stack

-
-
-
-
React
-

React

-

Modern component-based architecture for maintainable UI development

-
- -
-
Data
-

D3.js

-

Custom data visualizations with smooth animations and interactions

-
- -
-
Backend
-

Node.js

-

Robust backend API with real-time data processing capabilities

-
-
-
- -
-
-

Results

-
-
-
Results
-

Impact & Performance

-

The new dashboard reduced report generation time by 75% and improved user engagement by 300%. Real-time updates eliminated the need for manual refreshes, and the intuitive interface reduced training time for new users.

-
-
-
- -
-
-

Ready for Your Next Project?

-

Let's discuss how we can create a custom solution for your business needs.

- Start Your Project -
-
-
- - {{> footer}} - - - -`},{path:"/assets/README.md",content:`# Assets Directory - -This directory contains all static assets for the Example project. - -## Structure - -- \`/images/\` - Image files including: - - \`example-background.jpg\` - Hero section background image - - \`logo.svg\` - Site logo - - \`favicon.svg\` - Browser favicon - -## Background Image - -The \`example-background.jpg\` is automatically included when the demo project is created. It features a beautiful flowing gradient design that complements the orange (#ff7b00) and blue (#2563eb) color scheme. - -## File Types Supported - -The VFS system supports various file types: -- Images: PNG, JPG, JPEG, GIF, WebP, SVG, ICO -- Documents: HTML, CSS, JS, JSON, TXT, MD, XML -- Binary files up to 10MB - -This demonstrates the VFS capability to handle multiple file types and organize them in a structured directory system.`}],assets:[{filename:"example-background.jpg",path:"/assets/images/example-background.jpg"}]},e={name:"Barebones Project",description:"A minimal starting template",directories:["/styles","/scripts","/templates"],files:[{path:"/index.html",content:` - - - - - New Project - - - - {{> welcome-card}} - - - -`},{path:"/styles/style.css",content:`/* - * Your project styles start here. - * Use this file to customize typography, layout, and colors. - */ - -body { - font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; - margin: 0; - padding: 2rem; - background: #f9fafb; - color: #0f172a; -} - -h1 { - font-size: 2.25rem; - margin-bottom: 0.5rem; -} - -p { - font-size: 1rem; - line-height: 1.6; -} - -.welcome-card { - /* Component styles can be added here */ -} -`},{path:"/scripts/main.js",content:`// Welcome to your project! -// Use this file to add interactivity to your pages. - -document.addEventListener('DOMContentLoaded', () => { - console.log('Project ready. Happy building!'); -}); -`},{path:"/templates/welcome-card.hbs",content:`
-

{{title}}

-

{{message}}

-
`},{path:"/data.json",content:`{ - "title": "Welcome", - "message": "Start building your website!" -}`}]},f={name:"Landing Page with Contact Form",description:"Professional landing page with a working contact form powered by Resend",directories:["/styles","/scripts"],files:[{path:"/index.html",content:` - - - - - My Website - - - - - - - -
-
-

Build Something Amazing

-

A modern landing page template with a working contact form. In Server Mode, messages are saved to a database and forwarded via email.

- Get in Touch -
-
- - -
-
-

Features

-
-
-
-

Fast & Lightweight

-

Pure HTML, CSS, and JavaScript. No frameworks, no build steps. Just clean, fast code.

-
-
-
📧
-

Working Contact Form

-

Messages are stored in a database and can be forwarded to your email via Resend.

-
-
-
🌐
-

Ready to Deploy

-

Publish directly from OSW Studio in Server Mode, or export and host anywhere.

-
-
-
-
- - -
-
-

About

-

This is a starter template for a landing page with a fully functional contact form. Customize the content, colors, and layout to match your brand.

-

In Server Mode, the contact form saves submissions to a SQLite database and optionally sends email notifications using Resend. In Browser Mode, submissions are saved locally in your browser.

-
-
- - -
-
-

Contact Us

-

Have a question or want to work together? Send us a message.

-
-
-
- - -
-
- - -
-
-
- - -
-
- - -
- -
-
-
- - -
-
-

© 2025 MyBrand. Built with OSW Studio.

-
-
- - - -`},{path:"/styles/style.css",content:`/* Landing Page Styles */ -*, -*::before, -*::after { - box-sizing: border-box; - margin: 0; - padding: 0; -} - -body { - font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; - background: #ffffff; - color: #1e293b; - line-height: 1.6; -} - -.container { - max-width: 1100px; - margin: 0 auto; - padding: 0 1.5rem; -} - -/* Header */ -.site-header { - background: #ffffff; - border-bottom: 1px solid #e2e8f0; - padding: 1rem 0; - position: sticky; - top: 0; - z-index: 100; -} - -.header-inner { - display: flex; - justify-content: space-between; - align-items: center; -} - -.logo { - font-size: 1.25rem; - font-weight: 700; - color: #0f172a; - text-decoration: none; -} - -nav { - display: flex; - gap: 1.5rem; -} - -nav a { - text-decoration: none; - color: #64748b; - font-size: 0.875rem; - font-weight: 500; - transition: color 0.2s; -} - -nav a:hover { - color: #2563eb; -} - -/* Hero */ -.hero { - text-align: center; - padding: 6rem 0 5rem; - background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%); -} - -.hero h1 { - font-size: 3rem; - font-weight: 800; - color: #0f172a; - margin-bottom: 1rem; - line-height: 1.2; -} - -.hero p { - font-size: 1.125rem; - color: #64748b; - max-width: 600px; - margin: 0 auto 2rem; -} - -/* Features */ -.features { - padding: 5rem 0; -} - -.features h2, -.about h2, -.contact h2 { - text-align: center; - font-size: 2rem; - font-weight: 700; - margin-bottom: 1rem; - color: #0f172a; -} - -.feature-grid { - display: grid; - grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); - gap: 2rem; - margin-top: 3rem; -} - -.feature-card { - text-align: center; - padding: 2rem; - border: 1px solid #e2e8f0; - border-radius: 12px; - transition: box-shadow 0.2s; -} - -.feature-card:hover { - box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06); -} - -.feature-icon { - font-size: 2.5rem; - margin-bottom: 1rem; -} - -.feature-card h3 { - font-size: 1.125rem; - margin-bottom: 0.5rem; - color: #0f172a; -} - -.feature-card p { - color: #64748b; - font-size: 0.9375rem; -} - -/* About */ -.about { - padding: 5rem 0; - background: #f8fafc; -} - -.about p { - max-width: 700px; - margin: 0 auto 1rem; - text-align: center; - color: #475569; -} - -.about a { - color: #2563eb; - text-decoration: none; -} - -.about a:hover { - text-decoration: underline; -} - -/* Contact */ -.contact { - padding: 5rem 0; -} - -.section-subtitle { - text-align: center; - color: #64748b; - margin-bottom: 2.5rem; -} - -.contact-form { - max-width: 600px; - margin: 0 auto; -} - -.form-row { - display: grid; - grid-template-columns: 1fr 1fr; - gap: 1rem; -} - -@media (max-width: 640px) { - .form-row { - grid-template-columns: 1fr; - } - .hero h1 { - font-size: 2rem; - } -} - -.form-group { - margin-bottom: 1rem; -} - -.form-group label { - display: block; - font-size: 0.875rem; - font-weight: 500; - margin-bottom: 0.375rem; - color: #334155; -} - -.form-group input, -.form-group textarea { - width: 100%; - padding: 0.625rem 0.75rem; - border: 1px solid #d1d5db; - border-radius: 8px; - font-family: inherit; - font-size: 0.9375rem; - transition: border-color 0.2s, box-shadow 0.2s; -} - -.form-group input:focus, -.form-group textarea:focus { - outline: none; - border-color: #2563eb; - box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); -} - -/* Buttons */ -.btn { - display: inline-block; - padding: 0.625rem 1.5rem; - border: none; - border-radius: 8px; - font-size: 0.9375rem; - font-weight: 600; - cursor: pointer; - text-decoration: none; - transition: background 0.2s, transform 0.1s; -} - -.btn:active { - transform: scale(0.98); -} - -.btn-primary { - background: #2563eb; - color: white; -} - -.btn-primary:hover { - background: #1d4ed8; -} - -.btn-lg { - padding: 0.875rem 2.5rem; - font-size: 1rem; -} - -.btn:disabled { - opacity: 0.6; - cursor: not-allowed; -} - -/* Success Message */ -.form-success { - text-align: center; - padding: 2rem; - background: #f0fdf4; - border: 1px solid #bbf7d0; - border-radius: 12px; -} - -.form-success h3 { - color: #16a34a; - font-size: 1.25rem; - margin-bottom: 0.5rem; -} - -.form-success p { - color: #475569; -} - -/* Toast */ -.toast { - position: fixed; - bottom: 1.5rem; - right: 1.5rem; - padding: 0.75rem 1.25rem; - border-radius: 8px; - color: white; - font-size: 0.875rem; - font-weight: 500; - z-index: 1000; - opacity: 0; - transform: translateY(10px); - transition: opacity 0.3s, transform 0.3s; -} - -.toast.show { - opacity: 1; - transform: translateY(0); -} - -.toast-success { background: #16a34a; } -.toast-error { background: #dc2626; } -.toast-info { background: #2563eb; } - -/* Footer */ -.site-footer { - background: #f1f5f9; - padding: 2rem 0; - text-align: center; - color: #64748b; - font-size: 0.875rem; -} -`},{path:"/scripts/main.js",content:`// Landing Page with Contact Form -// In Server Mode, submissions are saved to the database and optionally emailed via Resend. -// In Browser Mode, submissions are saved to localStorage. - -let serverMode = false; - -async function handleContactSubmit(e) { - e.preventDefault(); - - const nameEl = document.getElementById('contact-name'); - const emailEl = document.getElementById('contact-email'); - const subjectEl = document.getElementById('contact-subject'); - const messageEl = document.getElementById('contact-message'); - - const name = nameEl.value.trim(); - const email = emailEl.value.trim(); - const subject = subjectEl.value.trim(); - const message = messageEl.value.trim(); - - if (!name || !email || !message) { - showToast('Please fill in all required fields.', 'error'); - return; - } - - const submitBtn = e.target.querySelector('button[type="submit"]'); - submitBtn.disabled = true; - submitBtn.textContent = 'Sending...'; - - let success = false; - - if (serverMode) { - try { - const res = await fetch('/submit-contact', { - method: 'POST', - headers: { 'Content-Type': 'application/json' }, - body: JSON.stringify({ name, email, subject, message }), - }); - if (!res.ok) throw new Error(); - success = true; - } catch { - showToast('Failed to send message. Please try again.', 'error'); - } - } else { - // Browser Mode — save locally - saveMessageLocally({ name, email, subject, message, date: new Date().toISOString() }); - success = true; - } - - submitBtn.disabled = false; - submitBtn.textContent = 'Send Message'; - - if (success) { - showFormSuccess(); - e.target.reset(); - } -} - -function saveMessageLocally(msg) { - try { - const messages = JSON.parse(localStorage.getItem('contact-messages') || '[]'); - messages.push(msg); - localStorage.setItem('contact-messages', JSON.stringify(messages)); - } catch { - // Ignore storage errors - } -} - -function showFormSuccess() { - const form = document.getElementById('contact-form'); - if (!form) return; - - const successDiv = document.createElement('div'); - successDiv.className = 'form-success'; - successDiv.innerHTML = '

Message Sent!

Thank you for reaching out. We\\u2019ll get back to you soon.

'; - - form.style.display = 'none'; - form.parentNode.insertBefore(successDiv, form.nextSibling); - - // Restore form after 5 seconds - setTimeout(() => { - successDiv.remove(); - form.style.display = 'block'; - }, 5000); -} - -// --- Detect Server Mode --- - -async function detectServerMode() { - try { - const res = await fetch('/list-messages'); - if (res.ok) serverMode = true; - } catch { - // Not in server mode - } -} - -// --- Utilities --- - -function showToast(message, type) { - const toast = document.createElement('div'); - toast.className = 'toast toast-' + (type || 'info'); - toast.textContent = message; - document.body.appendChild(toast); - requestAnimationFrame(() => toast.classList.add('show')); - setTimeout(() => { - toast.classList.remove('show'); - setTimeout(() => toast.remove(), 300); - }, 2500); -} - -// --- Smooth scrolling for anchor links --- - -function setupSmoothScroll() { - document.querySelectorAll('a[href^="#"]').forEach(anchor => { - anchor.addEventListener('click', (e) => { - const target = document.querySelector(anchor.getAttribute('href')); - if (target) { - e.preventDefault(); - target.scrollIntoView({ behavior: 'smooth', block: 'start' }); - } - }); - }); -} - -// --- Init --- - -document.addEventListener('DOMContentLoaded', () => { - setupSmoothScroll(); - detectServerMode(); - - const form = document.getElementById('contact-form'); - if (form) { - form.addEventListener('submit', handleContactSubmit); - } -}); -`}]},g={name:"Blog with Comments",description:"Blog platform with posts, comments, and content management",directories:["/styles","/scripts","/blog","/templates"],files:[{path:"/data.json",content:`{ - "siteName": "My Blog", - "tagline": "Thoughts, tutorials, and stories.", - "navigation": [ - { "title": "Home", "url": "/" } - ], - "posts": [ - { - "title": "Hello World", - "slug": "hello-world", - "excerpt": "Welcome to my blog! This is the first post to get you started.", - "author": "Admin", - "date": "January 15, 2025" - }, - { - "title": "Getting Started with OSW Studio", - "slug": "getting-started", - "excerpt": "Learn how to build and publish websites using OSW Studio's AI-powered development environment.", - "author": "Admin", - "date": "January 10, 2025" - } - ] -}`},{path:"/index.html",content:` - - - - - {{siteName}} - - - - {{> navigation}} - -
-
-

{{siteName}}

-

{{tagline}}

-
- -
- {{#each posts}} -
- -

{{title}}

-

{{excerpt}}

- by {{author}} -
- {{/each}} -
-
- - {{> footer}} - -`},{path:"/blog/hello-world.html",content:` - - - - - Hello World - {{siteName}} - - - - {{> navigation}} - -
-
- -

Hello World

- -
-

Welcome to my blog! This is a sample post to help you get started.

-

In Server Mode, comments are stored in a SQLite database and moderated before display. Users can register, log in, and leave comments on any post.

-

In Browser Mode, comments are stored in your browser's localStorage — great for testing and development.

-

What You Can Do

-
    -
  • Create new blog posts as HTML files in the /blog/ directory
  • -
  • Update the post index in /data.json
  • -
  • Customize the design in /styles/style.css
  • -
  • Add dynamic features in Server Mode
  • -
  • Export and deploy anywhere
  • -
-

Each blog post is a standalone HTML file that uses Handlebars partials for the navigation, footer, and comments section — keeping things consistent and easy to maintain.

-
-
- - {{> comments}} -
- - {{> footer}} - - - -`},{path:"/blog/getting-started.html",content:` - - - - - Getting Started with OSW Studio - {{siteName}} - - - - {{> navigation}} - -
-
- -

Getting Started with OSW Studio

- -
-

OSW Studio makes it easy to build and publish websites using AI. Here\u2019s how to get started.

-

Step 1: Create a Project

-

Open the Projects tab and click New Project. Choose a template or start from scratch.

-

Step 2: Chat with AI

-

Describe what you want to build. The AI will create files, write code, and set up your project structure.

-

Step 3: Preview & Publish

-

Use the live preview to see your changes in real time. In Server Mode, publish your site with one click and your blog is live!

-

Adding New Posts

-

To add a new blog post:

-
    -
  1. Create a new HTML file in the /blog/ directory (e.g. /blog/my-new-post.html)
  2. -
  3. Use the same structure as existing posts — include the navigation, comments, and footer partials
  4. -
  5. Add an entry to the posts array in /data.json with the title, slug, excerpt, author, and date
  6. -
-

Or simply ask the AI to create a new post for you!

-
-
- - {{> comments}} -
- - {{> footer}} - - - -`},{path:"/templates/navigation.hbs",content:``},{path:"/templates/footer.hbs",content:`
-
-

© 2025 {{siteName}}. Built with OSW Studio.

-
-
`},{path:"/templates/comments.hbs",content:`
- - -
`},{path:"/styles/style.css",content:`/* Blog Styles */ -*, -*::before, -*::after { - box-sizing: border-box; - margin: 0; - padding: 0; -} - -body { - font-family: Georgia, 'Times New Roman', serif; - background: #fafaf9; - color: #292524; - line-height: 1.8; -} - -.container { - max-width: 800px; - margin: 0 auto; - padding: 0 1.5rem; -} - -/* Header */ -.site-header { - background: #ffffff; - border-bottom: 1px solid #e7e5e4; - padding: 1rem 0; -} - -.header-inner { - display: flex; - justify-content: space-between; - align-items: center; - max-width: 800px; - margin: 0 auto; - padding: 0 1.5rem; -} - -.logo { - font-size: 1.5rem; - font-weight: 700; - color: #1c1917; - font-family: system-ui, sans-serif; -} - -.logo a { - text-decoration: none; - color: inherit; -} - -nav { - display: flex; - gap: 1.5rem; - font-family: system-ui, sans-serif; -} - -nav a { - text-decoration: none; - color: #78716c; - font-size: 0.875rem; - font-weight: 500; - transition: color 0.2s; -} - -nav a:hover, -nav a.active { - color: #b45309; -} - -/* Hero */ -.hero { - text-align: center; - padding: 3rem 0 2rem; -} - -.hero h2 { - font-size: 2.25rem; - margin-bottom: 0.5rem; - color: #1c1917; -} - -.hero p { - color: #78716c; - font-size: 1.125rem; -} - -/* Post Cards */ -.posts { - padding: 1rem 0 4rem; -} - -.post-card { - padding: 2rem 0; - border-bottom: 1px solid #e7e5e4; -} - -.post-card time { - font-family: system-ui, sans-serif; - font-size: 0.8125rem; - color: #a8a29e; - text-transform: uppercase; - letter-spacing: 0.05em; -} - -.post-card h3 { - font-size: 1.5rem; - margin: 0.5rem 0; -} - -.post-card h3 a { - text-decoration: none; - color: #1c1917; - transition: color 0.2s; -} - -.post-card h3 a:hover { - color: #b45309; -} - -.post-card p { - color: #57534e; - margin-bottom: 0.5rem; -} - -.author { - font-family: system-ui, sans-serif; - font-size: 0.8125rem; - color: #a8a29e; -} - -/* Full Post */ -.post-full { - padding: 2rem 0; -} - -.post-full time { - font-family: system-ui, sans-serif; - font-size: 0.8125rem; - color: #a8a29e; - text-transform: uppercase; - letter-spacing: 0.05em; -} - -.post-full h2 { - font-size: 2rem; - margin: 0.5rem 0 0.25rem; -} - -.post-meta { - margin-bottom: 2rem; - padding-bottom: 1rem; - border-bottom: 1px solid #e7e5e4; -} - -.post-body p { - margin-bottom: 1.25rem; - color: #44403c; -} - -.post-body h3 { - margin: 2rem 0 1rem; - font-size: 1.375rem; -} - -.post-body ul, -.post-body ol { - margin-bottom: 1.25rem; - padding-left: 1.5rem; -} - -.post-body li { - margin-bottom: 0.5rem; - color: #44403c; -} - -.post-body code { - background: #f5f5f4; - padding: 0.125rem 0.375rem; - border-radius: 4px; - font-size: 0.875rem; -} - -/* Comments */ -.comments-section { - border-top: 2px solid #e7e5e4; - padding: 2rem 0 4rem; - margin-top: 2rem; -} - -.comments-section h3 { - font-size: 1.375rem; - margin-bottom: 1.5rem; - font-family: system-ui, sans-serif; -} - -.no-comments { - text-align: center; - padding: 2rem; - color: #a8a29e; - font-style: italic; -} - -.comment { - padding: 1rem 0; - border-bottom: 1px solid #f5f5f4; -} - -.comment.pending { - opacity: 0.7; - font-style: italic; -} - -.comment-header { - display: flex; - justify-content: space-between; - margin-bottom: 0.5rem; - font-family: system-ui, sans-serif; - font-size: 0.875rem; -} - -.comment-author { - font-weight: 600; - color: #1c1917; -} - -.comment-date { - color: #a8a29e; -} - -.comment-body { - color: #57534e; -} - -.comment-pending-label { - font-size: 0.75rem; - color: #b45309; - margin-left: 0.5rem; - font-weight: 400; -} - -/* Comment Form */ -.comment-form { - margin-top: 2rem; - padding: 1.5rem; - background: #ffffff; - border: 1px solid #e7e5e4; - border-radius: 8px; -} - -.comment-form h4 { - font-family: system-ui, sans-serif; - margin-bottom: 1rem; -} - -.form-group { - margin-bottom: 1rem; -} - -.form-group label { - display: block; - font-family: system-ui, sans-serif; - font-size: 0.875rem; - font-weight: 500; - margin-bottom: 0.375rem; - color: #44403c; -} - -.form-group input, -.form-group textarea { - width: 100%; - padding: 0.625rem; - border: 1px solid #d6d3d1; - border-radius: 6px; - font-family: inherit; - font-size: 0.9375rem; - line-height: 1.6; - transition: border-color 0.2s; -} - -.form-group input:focus, -.form-group textarea:focus { - outline: none; - border-color: #b45309; -} - -/* Buttons */ -.btn { - display: inline-block; - padding: 0.625rem 1.25rem; - border: none; - border-radius: 6px; - font-family: system-ui, sans-serif; - font-size: 0.875rem; - font-weight: 600; - cursor: pointer; - transition: background 0.2s, border-color 0.2s; -} - -.btn-primary { - background: #b45309; - color: white; -} - -.btn-primary:hover { - background: #92400e; -} - -.btn-outline { - background: transparent; - border: 1px solid #d6d3d1; - color: #57534e; -} - -.btn-outline:hover { - border-color: #b45309; - color: #b45309; -} - -.btn:disabled { - opacity: 0.6; - cursor: not-allowed; -} - -/* Auth Bar */ -.auth-bar { - display: flex; - align-items: center; - gap: 0.75rem; - margin-bottom: 1rem; - padding: 0.625rem 1rem; - background: #f5f5f4; - border-radius: 6px; - font-family: system-ui, sans-serif; - font-size: 0.875rem; - color: #57534e; -} - -.auth-bar strong { - color: #1c1917; -} - -.auth-bar a { - color: #b45309; - text-decoration: none; - cursor: pointer; -} - -.auth-bar a:hover { - text-decoration: underline; -} - -/* Auth Form (login/register) */ -.auth-form { - margin-top: 2rem; - padding: 1.5rem; - background: #ffffff; - border: 1px solid #e7e5e4; - border-radius: 8px; -} - -.auth-form h4 { - font-family: system-ui, sans-serif; - margin-bottom: 1rem; -} - -/* Tab Toggle */ -.tab-toggle { - display: flex; - gap: 0; - margin-bottom: 1.25rem; - border: 1px solid #e7e5e4; - border-radius: 6px; - overflow: hidden; -} - -.tab-toggle button { - flex: 1; - padding: 0.5rem 1rem; - border: none; - background: #fafaf9; - font-family: system-ui, sans-serif; - font-size: 0.875rem; - font-weight: 500; - color: #78716c; - cursor: pointer; - transition: background 0.2s, color 0.2s; -} - -.tab-toggle button.active { - background: #b45309; - color: white; -} - -.tab-toggle button:not(.active):hover { - background: #f5f5f4; -} - -/* Toast */ -.toast { - position: fixed; - bottom: 1.5rem; - right: 1.5rem; - padding: 0.75rem 1.25rem; - border-radius: 8px; - color: white; - font-family: system-ui, sans-serif; - font-size: 0.875rem; - font-weight: 500; - z-index: 1000; - opacity: 0; - transform: translateY(10px); - transition: opacity 0.3s, transform 0.3s; -} - -.toast.show { - opacity: 1; - transform: translateY(0); -} - -.toast-success { background: #16a34a; } -.toast-error { background: #dc2626; } -.toast-info { background: #b45309; } - -/* Footer */ -.site-footer { - background: #f5f5f4; - padding: 2rem 0; - text-align: center; - color: #a8a29e; - font-family: system-ui, sans-serif; - font-size: 0.875rem; - margin-top: 4rem; -} -`},{path:"/scripts/main.js",content:`// Blog Comments & Auth — works in both Browser Mode and Server Mode -// Server Mode: user auth + moderated comments via edge functions -// Browser Mode: localStorage comments with simple name field (no auth) - -let serverMode = false; -let commentsLoaded = false; - -// Derive slug from current URL: /blog/hello-world.html → hello-world -function getSlug() { - const path = window.location.pathname; - const match = path.match(/\\/blog\\/([^\\/]+)\\.html$/); - return match ? decodeURIComponent(match[1]) : null; -} - -// --- Show Comments (lazy load on button click) --- - -async function showComments() { - if (commentsLoaded) return; - commentsLoaded = true; - - const btn = document.getElementById('show-comments-btn'); - if (btn) btn.textContent = 'Loading...'; - - const area = document.getElementById('comments-area'); - const slug = getSlug(); - if (!slug) return; - - // Detect Server Mode by checking auth-status endpoint - try { - const authRes = await fetch('/auth-status'); - if (authRes.ok) { - const authData = await authRes.json(); - serverMode = true; - - // Fetch comments - const commentsRes = await fetch('/get-comments?slug=' + encodeURIComponent(slug)); - const commentsData = commentsRes.ok ? await commentsRes.json() : { comments: [] }; - - renderComments(commentsData.comments || []); - renderAuthArea(authData.authenticated ? authData.user : null); - } else { - throw new Error('not server mode'); - } - } catch { - // Browser Mode — localStorage comments, no auth - renderComments(getLocalComments(slug)); - renderBrowserCommentForm(); - } - - if (btn) btn.style.display = 'none'; - if (area) area.style.display = 'block'; -} - -// --- Comments --- - -function renderComments(comments) { - const container = document.getElementById('comments-list'); - if (!container) return; - - if (comments.length === 0) { - container.innerHTML = '

No comments yet. Be the first to share your thoughts!

'; - return; - } - - container.innerHTML = comments.map(function(c) { - return '
' - + '
' - + '' + esc(c.author) + (c.pending ? '(pending moderation)' : '') + '' - + '' + formatDate(c.created_at) + '' - + '
' - + '
' + esc(c.content) + '
' - + '
'; - }).join(''); -} - -function getLocalComments(slug) { - try { - var all = JSON.parse(localStorage.getItem('blog-comments') || '{}'); - return all[slug] || []; - } catch { - return []; - } -} - -function saveLocalComment(slug, comment) { - try { - var all = JSON.parse(localStorage.getItem('blog-comments') || '{}'); - if (!all[slug]) all[slug] = []; - all[slug].push(comment); - localStorage.setItem('blog-comments', JSON.stringify(all)); - } catch { - // Ignore storage errors - } -} - -// --- Auth Area (Server Mode) --- - -function renderAuthArea(user) { - var container = document.getElementById('auth-area'); - if (!container) return; - - if (user) { - // Logged in — show auth bar + comment form - container.innerHTML = '
' - + 'Logged in as ' + esc(user.displayName) + ' \\u00b7 Logout' - + '
' - + '
' - + '

Leave a Comment

' - + '
' - + '' - + '' - + '
' - + '' - + '
'; - document.getElementById('logout-link').addEventListener('click', handleLogout); - document.getElementById('comment-form').addEventListener('submit', handleCommentSubmit); - } else { - // Not logged in — show login/register tabbed form - container.innerHTML = '
' - + '
' - + '' - + '' - + '
' - + '
' - + '
' - + '
' - + '
' - + '
' - + '' - + '
' - + '' - + '
'; - - // Tab toggle - var tabLogin = document.getElementById('tab-login'); - var tabRegister = document.getElementById('tab-register'); - tabLogin.addEventListener('click', function() { - tabLogin.classList.add('active'); - tabRegister.classList.remove('active'); - document.getElementById('login-form').style.display = ''; - document.getElementById('register-form').style.display = 'none'; - }); - tabRegister.addEventListener('click', function() { - tabRegister.classList.add('active'); - tabLogin.classList.remove('active'); - document.getElementById('register-form').style.display = ''; - document.getElementById('login-form').style.display = 'none'; - }); - - document.getElementById('login-form').addEventListener('submit', handleLogin); - document.getElementById('register-form').addEventListener('submit', handleRegister); - } -} - -// --- Browser Mode Comment Form --- - -function renderBrowserCommentForm() { - var container = document.getElementById('auth-area'); - if (!container) return; - - container.innerHTML = '
' - + '

Leave a Comment

' - + '
' - + '
' - + '
' - + '
' - + '' - + '
'; - document.getElementById('comment-form').addEventListener('submit', handleBrowserComment); -} - -function handleBrowserComment(e) { - e.preventDefault(); - var slug = getSlug(); - if (!slug) return; - - var author = document.getElementById('comment-author').value.trim(); - var content = document.getElementById('comment-content').value.trim(); - if (!author || !content) { showToast('Please fill in your name and comment.', 'error'); return; } - - var comment = { author: author, content: content, created_at: new Date().toISOString(), pending: false }; - saveLocalComment(slug, comment); - appendCommentToUI(comment); - showToast('Comment added!', 'success'); - e.target.reset(); -} - -// --- Auth Handlers (Server Mode) --- - -async function handleLogin(e) { - e.preventDefault(); - var username = document.getElementById('login-username').value.trim(); - var password = document.getElementById('login-password').value; - if (!username || !password) return; - - var btn = e.target.querySelector('button[type="submit"]'); - btn.disabled = true; btn.textContent = 'Logging in...'; - - try { - var res = await fetch('/login', { - method: 'POST', - headers: { 'Content-Type': 'application/json' }, - body: JSON.stringify({ username: username, password: password }), - }); - var data = await res.json(); - if (!res.ok) { showToast(data.error || 'Login failed', 'error'); btn.disabled = false; btn.textContent = 'Login'; return; } - showToast('Logged in!', 'success'); - renderAuthArea(data.user); - } catch { - showToast('Login failed. Please try again.', 'error'); - btn.disabled = false; btn.textContent = 'Login'; - } -} - -async function handleRegister(e) { - e.preventDefault(); - var username = document.getElementById('reg-username').value.trim(); - var displayName = document.getElementById('reg-display').value.trim(); - var password = document.getElementById('reg-password').value; - if (!username || !password) return; - - var btn = e.target.querySelector('button[type="submit"]'); - btn.disabled = true; btn.textContent = 'Registering...'; - - try { - var res = await fetch('/register', { - method: 'POST', - headers: { 'Content-Type': 'application/json' }, - body: JSON.stringify({ username: username, password: password, displayName: displayName || undefined }), - }); - var data = await res.json(); - if (!res.ok) { showToast(data.error || 'Registration failed', 'error'); btn.disabled = false; btn.textContent = 'Register'; return; } - showToast('Account created!', 'success'); - renderAuthArea(data.user); - } catch { - showToast('Registration failed. Please try again.', 'error'); - btn.disabled = false; btn.textContent = 'Register'; - } -} - -async function handleLogout() { - try { - await fetch('/logout', { method: 'POST' }); - } catch { /* ignore */ } - showToast('Logged out.', 'info'); - renderAuthArea(null); -} - -// --- Comment Submit (Server Mode — authenticated) --- - -async function handleCommentSubmit(e) { - e.preventDefault(); - var slug = getSlug(); - if (!slug) return; - - var contentEl = document.getElementById('comment-content'); - var content = contentEl.value.trim(); - if (!content) { showToast('Please write a comment.', 'error'); return; } - - var submitBtn = e.target.querySelector('button[type="submit"]'); - submitBtn.disabled = true; submitBtn.textContent = 'Submitting...'; - - try { - var res = await fetch('/add-comment', { - method: 'POST', - headers: { 'Content-Type': 'application/json' }, - body: JSON.stringify({ slug: slug, content: content }), - }); - var data = await res.json(); - if (!res.ok) { - if (res.status === 401) { - showToast('Session expired. Please log in again.', 'error'); - renderAuthArea(null); - return; - } - throw new Error(data.error); - } - showToast('Comment submitted for moderation.', 'success'); - appendCommentToUI({ author: 'You', content: content, created_at: new Date().toISOString(), pending: true }); - contentEl.value = ''; - } catch { - showToast('Failed to submit comment. Please try again.', 'error'); - } - - submitBtn.disabled = false; submitBtn.textContent = 'Submit Comment'; -} - -function appendCommentToUI(comment) { - var container = document.getElementById('comments-list'); - if (!container) return; - - var noComments = container.querySelector('.no-comments'); - if (noComments) noComments.remove(); - - var div = document.createElement('div'); - div.className = 'comment' + (comment.pending ? ' pending' : ''); - div.innerHTML = '
' - + '' + esc(comment.author) + (comment.pending ? '(pending moderation)' : '') + '' - + 'Just now' - + '
' - + '
' + esc(comment.content) + '
'; - container.appendChild(div); -} - -// --- Utilities --- - -function esc(str) { - var d = document.createElement('div'); - d.textContent = str; - return d.innerHTML; -} - -function formatDate(dateStr) { - if (!dateStr) return ''; - try { - var date = new Date(dateStr); - return date.toLocaleDateString('en-US', { year: 'numeric', month: 'long', day: 'numeric' }); - } catch { - return dateStr; - } -} - -function showToast(message, type) { - var toast = document.createElement('div'); - toast.className = 'toast toast-' + (type || 'info'); - toast.textContent = message; - document.body.appendChild(toast); - requestAnimationFrame(function() { toast.classList.add('show'); }); - setTimeout(function() { - toast.classList.remove('show'); - setTimeout(function() { toast.remove(); }, 300); - }, 2500); -} - -// --- Init --- - -document.addEventListener('DOMContentLoaded', function() { - var btn = document.getElementById('show-comments-btn'); - if (btn) { - btn.addEventListener('click', showComments); - } -}); -`}]};var h=c(49186);async function i(a,b,c,d){await h.$.runWithSuppressedDirty(b,async()=>{for(let d of c.directories)await a.createDirectory(b,d);for(let d of c.files){let c=d.content;if(d.isBase64){let a=atob(d.content),b=new Uint8Array(a.length);for(let c=0;c0)for(let c of d)try{let d=await fetch(`${window.location.origin}/${c.filename}`);if(d.ok){let e=await d.arrayBuffer();await a.createFile(b,c.path,e)}}catch(a){}})}let j=[{id:"blank",name:"Blank",description:"Minimal starting template with basic HTML/CSS/JS structure",isBuiltIn:!0,updatedAt:new Date("2025-01-01T00:00:00Z"),metadata:{author:"OSW Studio",tags:["starter","basic"]}},{id:"demo",name:"Example Studios",description:"Multi-page agency portfolio showcasing modern web development",isBuiltIn:!0,updatedAt:new Date("2025-01-01T00:00:00Z"),metadata:{author:"OSW Studio",tags:["portfolio","multi-page","example"]}},{id:"contact-landing",name:"Landing Page with Contact Form",description:"Professional landing page with a working contact form powered by Resend",isBuiltIn:!0,updatedAt:new Date("2025-01-01T00:00:00Z"),templateType:"site",siteFeatures:{edgeFunctions:[{name:"submit-contact",method:"POST",code:`const body = typeof request.body === 'string' ? JSON.parse(request.body) : request.body; -const { name, email, subject, message } = body; -if (!name || !email || !message) { Response.json({ error: 'Missing required fields' }, 400); return; } -db.run('INSERT INTO messages (name, email, subject, message) VALUES (?, ?, ?, ?)', [name, email, subject || null, message]); - -// Optional: send email via Resend if API key is configured -const apiKey = secrets.has('RESEND_API_KEY') ? secrets.get('RESEND_API_KEY') : null; -const notifyEmail = secrets.has('NOTIFY_EMAIL') ? secrets.get('NOTIFY_EMAIL') : null; -if (apiKey && notifyEmail) { - try { - await fetch('https://api.resend.com/emails', { - method: 'POST', - headers: { 'Authorization': 'Bearer ' + apiKey, 'Content-Type': 'application/json' }, - body: JSON.stringify({ - from: 'Contact Form ', - to: [notifyEmail], - subject: 'New contact: ' + (subject || 'No subject'), - html: '

From: ' + name + ' (' + email + ')

' + message + '

' - }) - }); - } catch (e) { console.error('Email send failed:', e); } -} - -Response.json({ success: true });`,description:"Handle contact form submission — saves to DB and optionally emails via Resend",enabled:!0,timeoutMs:1e4},{name:"list-messages",method:"GET",code:`const messages = db.query('SELECT id, name, email, subject, message, created_at FROM messages ORDER BY created_at DESC LIMIT 50'); -Response.json({ messages });`,description:"List recent contact form submissions (admin use)",enabled:!0,timeoutMs:5e3}],serverFunctions:[],secrets:[{name:"RESEND_API_KEY",description:"Resend API key for sending email notifications (get one at resend.com)"},{name:"NOTIFY_EMAIL",description:"Email address to receive contact form notifications"}],databaseSchema:`CREATE TABLE IF NOT EXISTS messages ( - id INTEGER PRIMARY KEY AUTOINCREMENT, - name TEXT NOT NULL, - email TEXT NOT NULL, - subject TEXT, - message TEXT NOT NULL, - created_at DATETIME DEFAULT CURRENT_TIMESTAMP -);`},metadata:{author:"OSW Studio",tags:["landing-page","contact-form","server-mode"]}},{id:"blog",name:"Blog with Comments",description:"Blog platform with posts, user auth, and moderated comments",isBuiltIn:!0,updatedAt:new Date("2025-01-01T00:00:00Z"),templateType:"site",siteFeatures:{edgeFunctions:[{name:"get-comments",method:"GET",code:`const slug = request.query && request.query.slug ? request.query.slug : null; -if (!slug) { Response.json({ error: 'Missing slug' }, 400); return; } -const comments = db.query('SELECT id, author, content, created_at FROM comments WHERE post_slug = ? AND approved = 1 ORDER BY created_at ASC', [slug]); -Response.json({ comments });`,description:"Get approved comments for a blog post by slug",enabled:!0,timeoutMs:5e3},{name:"add-comment",method:"POST",code:`// Requires authenticated session via cookie -const cookie = request.headers && request.headers.cookie ? request.headers.cookie : ''; -const tokenMatch = cookie.match(/blog_session=([^;]+)/); -if (!tokenMatch) { Response.json({ error: 'Not authenticated' }, 401); return; } -const sessions = db.query('SELECT s.*, u.display_name FROM sessions s JOIN users u ON s.user_id = u.id WHERE s.token = ? AND s.expires_at > datetime(\\'now\\')', [tokenMatch[1]]); -if (sessions.length === 0) { Response.json({ error: 'Invalid or expired session' }, 401); return; } -const body = typeof request.body === 'string' ? JSON.parse(request.body) : request.body; -const { slug, content } = body; -if (!slug || !content) { Response.json({ error: 'Missing required fields' }, 400); return; } -db.run('INSERT INTO comments (post_slug, author, content, approved) VALUES (?, ?, ?, ?)', [slug, sessions[0].display_name, content, 0]); -Response.json({ success: true, message: 'Comment submitted for moderation' });`,description:"Submit a comment (requires authenticated session)",enabled:!0,timeoutMs:5e3},{name:"register",method:"POST",code:`const body = typeof request.body === 'string' ? JSON.parse(request.body) : request.body; -const { username, password, displayName } = body; -if (!username || username.length < 3) { Response.json({ error: 'Username must be at least 3 characters' }, 400); return; } -if (!password || password.length < 6) { Response.json({ error: 'Password must be at least 6 characters' }, 400); return; } -const display = displayName || username; -const existing = db.query('SELECT id FROM users WHERE username = ?', [username.toLowerCase()]); -if (existing.length > 0) { Response.json({ error: 'Username already taken' }, 409); return; } -const salt = crypto.randomUUID(); -const passwordHash = crypto.sha256(salt + ':' + password); -const result = db.run('INSERT INTO users (username, password_hash, salt, display_name) VALUES (?, ?, ?, ?)', [username.toLowerCase(), passwordHash, salt, display]); -const userId = result.lastInsertRowid; -const token = crypto.randomUUID(); -db.run('INSERT INTO sessions (user_id, token, expires_at) VALUES (?, ?, datetime(\\'now\\', \\'+30 days\\'))', [userId, token]); -Response.json({ success: true, user: { username: username.toLowerCase(), displayName: display } }, 200, { 'Set-Cookie': 'blog_session=' + token + '; Path=/; HttpOnly; SameSite=Lax; Max-Age=2592000' });`,description:"Register a new user account",enabled:!0,timeoutMs:5e3},{name:"login",method:"POST",code:`const body = typeof request.body === 'string' ? JSON.parse(request.body) : request.body; -const { username, password } = body; -if (!username || !password) { Response.json({ error: 'Username and password are required' }, 400); return; } -const users = db.query('SELECT * FROM users WHERE username = ?', [username.toLowerCase()]); -if (users.length === 0) { Response.json({ error: 'Invalid credentials' }, 401); return; } -const user = users[0]; -const hash = crypto.sha256(user.salt + ':' + password); -if (hash !== user.password_hash) { Response.json({ error: 'Invalid credentials' }, 401); return; } -// Clean up expired sessions for this user -db.run('DELETE FROM sessions WHERE user_id = ? AND expires_at < datetime(\\'now\\')', [user.id]); -const token = crypto.randomUUID(); -db.run('INSERT INTO sessions (user_id, token, expires_at) VALUES (?, ?, datetime(\\'now\\', \\'+30 days\\'))', [user.id, token]); -Response.json({ success: true, user: { username: user.username, displayName: user.display_name } }, 200, { 'Set-Cookie': 'blog_session=' + token + '; Path=/; HttpOnly; SameSite=Lax; Max-Age=2592000' });`,description:"Log in with username and password",enabled:!0,timeoutMs:5e3},{name:"logout",method:"POST",code:`const cookie = request.headers && request.headers.cookie ? request.headers.cookie : ''; -const tokenMatch = cookie.match(/blog_session=([^;]+)/); -if (tokenMatch) { db.run('DELETE FROM sessions WHERE token = ?', [tokenMatch[1]]); } -Response.json({ success: true }, 200, { 'Set-Cookie': 'blog_session=; Path=/; HttpOnly; SameSite=Lax; Max-Age=0' });`,description:"Log out and clear session",enabled:!0,timeoutMs:5e3},{name:"auth-status",method:"GET",code:`const cookie = request.headers && request.headers.cookie ? request.headers.cookie : ''; -const tokenMatch = cookie.match(/blog_session=([^;]+)/); -if (!tokenMatch) { Response.json({ authenticated: false }); return; } -const sessions = db.query('SELECT s.*, u.username, u.display_name FROM sessions s JOIN users u ON s.user_id = u.id WHERE s.token = ? AND s.expires_at > datetime(\\'now\\')', [tokenMatch[1]]); -if (sessions.length === 0) { Response.json({ authenticated: false }); return; } -Response.json({ authenticated: true, user: { username: sessions[0].username, displayName: sessions[0].display_name } });`,description:"Check authentication status from session cookie",enabled:!0,timeoutMs:5e3}],serverFunctions:[],secrets:[],databaseSchema:`CREATE TABLE IF NOT EXISTS comments ( - id INTEGER PRIMARY KEY AUTOINCREMENT, - post_slug TEXT NOT NULL, - author TEXT NOT NULL, - content TEXT NOT NULL, - approved INTEGER DEFAULT 0, - created_at DATETIME DEFAULT CURRENT_TIMESTAMP -); - -CREATE TABLE IF NOT EXISTS users ( - id INTEGER PRIMARY KEY AUTOINCREMENT, - username TEXT NOT NULL UNIQUE, - password_hash TEXT NOT NULL, - salt TEXT NOT NULL, - display_name TEXT NOT NULL, - created_at DATETIME DEFAULT CURRENT_TIMESTAMP -); - -CREATE TABLE IF NOT EXISTS sessions ( - id INTEGER PRIMARY KEY AUTOINCREMENT, - user_id INTEGER NOT NULL REFERENCES users(id), - token TEXT NOT NULL UNIQUE, - expires_at DATETIME NOT NULL, - created_at DATETIME DEFAULT CURRENT_TIMESTAMP -);`},metadata:{author:"OSW Studio",tags:["blog","comments","auth","server-mode"]}}]},95919:(a,b,c)=>{c.d(b,{g:()=>k,C:()=>l});var d=c(21124),e=c(38301),f=c(47247),g=c(6027);c(2117),c(11482);var h=c(98763),i=c(49186);let j=(0,e.createContext)(null);function k({children:a}){let[b,k]=(0,e.useState)("idle"),[l,m]=(0,e.useState)(0),[n,o]=(0,e.useState)(0),[p,q]=(0,e.useState)([]),[r,s]=(0,e.useState)(!1),[t,u]=(0,e.useState)([]),[v,w]=(0,e.useState)(null),[x,y]=(0,e.useState)(null),[z,A]=(0,e.useState)({projectId:null,preCheckpointId:null,postCheckpointId:null,originalCss:null,updatedCss:null}),B=(0,e.useRef)(z),C=(0,e.useRef)(null),D=(0,e.useRef)(null),E=(0,e.useRef)(null),F=(0,e.useRef)(null),G=(0,e.useRef)(null),H=(0,e.useRef)(null),I=(0,e.useMemo)(()=>(function(a){if(!(a<0)&&!(a>=g.A.length))return g.A[a]})(l),[l]),J=(0,e.useCallback)(()=>{A({projectId:null,preCheckpointId:null,postCheckpointId:null,originalCss:null,updatedCss:null}),C.current=null,D.current=null,E.current=null,F.current=null},[]),K=(0,e.useCallback)(async()=>{"running"===b&&(k("idle"),await new Promise(a=>setTimeout(a,100)));try{let{vfs:a}=await Promise.resolve().then(c.bind(c,11482)),{createProjectFromTemplate:b}=await Promise.resolve().then(c.bind(c,69374)),{DEMO_PROJECT_TEMPLATE:d}=await Promise.resolve().then(c.bind(c,69374));await a.init();let e=await a.createProject("Example Studios (Tour)","Demo project for guided tour");await b(a,e.id,d,d.assets),y(e.id);let f=await a.listProjects();u(f),await new Promise(a=>setTimeout(a,100)),k("running"),m(0),o(a=>a+1),q([]),J()}catch(a){console.error("[Tour] Failed to create demo project:",a),k("running"),m(0),o(a=>a+1),q([]),J()}},[J,b]),L=(0,e.useCallback)(a=>{H.current=a},[]),M=(0,e.useCallback)(async(a="finish")=>{let b=B.current;if(b.projectId&&b.preCheckpointId&&b.postCheckpointId&&i.$.runWithSuppressedDirty(b.projectId,async()=>{await h.Y.restoreCheckpoint(b.preCheckpointId)}).then(()=>{}).catch(a=>{console.error("[GuidedTour] Failed to restore baseline during cleanup",a)}),x)try{let{vfs:a}=await Promise.resolve().then(c.bind(c,11482));await a.init(),(await a.listProjects()).filter(a=>a.id!==x).length>0&&await a.deleteProject(x)}catch(a){console.error("[GuidedTour] Failed to cleanup tour demo project",a)}J(),q([]),m(0),o(a=>a+1),k("finish"===a?"completed":"idle"),f.s.setHasSeenTour(!0),G.current?.abort(),H.current=null},[J,x,t]),N=(0,e.useCallback)(()=>{M("skip")},[M]),O=(0,e.useCallback)(()=>{m(a=>{let b=a+1;if(b>=g.A.length)return M(),a;let c=g.A[b];return c?.location==="workspace"&&x&&setTimeout(()=>{w(x)},100),o(a=>a+1),b})},[M,x]),P=(0,e.useCallback)(()=>{m(a=>{let b=Math.max(0,a-1);return b!==a&&o(a=>a+1),b})},[]),Q=(0,e.useMemo)(()=>({state:{status:b,stepIndex:l,stepKey:n,currentStep:I,transcript:p,isBusy:r,projectList:t,tourDemoProjectId:x},start:K,skip:N,next:O,previous:P,setProjectList:a=>{u(a)},setActiveProjectId:w,setTranscript:q,setWorkspaceHandler:L,setTourDemoProjectId:y}),[b,l,n,I,p,r,t,x,K,N,O,P,L]);return(0,d.jsx)(j.Provider,{value:Q,children:a})}function l(){let a=(0,e.useContext)(j);if(!a)throw Error("useGuidedTour must be used within a GuidedTourProvider");return a}},97518:(a,b,c)=>{c.d(b,{P:()=>p});var d=c(75234),e=c(74097),f=c(46422),g=c(15350),h=c(2510),i=c(80196),j=c(11082),k=c(79764),l=c(43700),m=c(65828),n=c(86949),o=c(98688);let p=[{id:"whats-new",title:"What's New",icon:d.A,file:"WHATS_NEW.md"},{id:"overview",title:"Overview",icon:e.A,file:"OVERVIEW.md"},{id:"getting-started",title:"Getting Started",icon:f.A,file:"GETTING_STARTED.md"},{id:"projects",title:"Projects",icon:g.A,file:"PROJECTS.md"},{id:"working-with-ai",title:"Working with AI",icon:d.A,file:"WORKING_WITH_AI.md"},{id:"templates",title:"Templates",icon:h.A,file:"TEMPLATES.md"},{id:"skills",title:"Skills",icon:d.A,file:"SKILLS.md"},{id:"deploying-sites",title:"Deploying Sites",icon:i.A,file:"DEPLOYING_SITES.md"},{id:"server-mode",title:"Server Mode",icon:j.A,file:"SERVER_MODE.md"},{id:"vps-deployment",title:"VPS Deployment",icon:k.A,file:"VPS_DEPLOYMENT.md"},{id:"site-publishing",title:"Site Publishing",icon:l.A,file:"SITE_PUBLISHING.md"},{id:"server-features",title:"Server Features",icon:m.A,file:"SERVER_FEATURES.md"},{id:"faq",title:"FAQ",icon:n.A,file:"FAQ.md"},{id:"troubleshooting",title:"Troubleshooting",icon:o.A,file:"TROUBLESHOOTING.md"}]}}; \ No newline at end of file diff --git a/.next/server/chunks/4681.js b/.next/server/chunks/9050.js similarity index 54% rename from .next/server/chunks/4681.js rename to .next/server/chunks/9050.js index 8e3c04e2a4d96e4c98d9883756af23315fb1380a..5993692d6a79001587e1d0512b12399c5cfb48c6 100644 --- a/.next/server/chunks/4681.js +++ b/.next/server/chunks/9050.js @@ -1,4 +1,40 @@ -"use strict";exports.id=4681,exports.ids=[4681],exports.modules={64681:(a,b,c)=>{c.d(b,{SQLiteAdapter:()=>K});var d=c(87550),e=c.n(d),f=c(33873),g=c.n(f),h=c(29021),i=c.n(h);let j=null,k=new Map;function l(){return g().join(process.cwd(),"sites")}function m(a){i().existsSync(a)||i().mkdirSync(a,{recursive:!0})}function n(a){a.pragma("journal_mode = WAL"),a.pragma("foreign_keys = ON"),a.pragma("synchronous = NORMAL"),a.pragma("cache_size = -64000"),a.pragma("temp_store = MEMORY")}function o(a){let b=l(),c=g().join(b,a,"site.sqlite");return i().existsSync(c)}function p(a){q(a);let b=l(),c=g().join(b,a);if(i().existsSync(c)){for(let a of i().readdirSync(c))i().unlinkSync(g().join(c,a));i().rmdirSync(c)}}function q(a){let b=k.get(a);if(b){try{b.close()}catch{}k.delete(a)}}var r=c(2117),s=c(55511),t=c.n(s);function u(){let a=process.env.SECRETS_ENCRYPTION_KEY;if(!a)throw Error("SECRETS_ENCRYPTION_KEY environment variable not set");let b=Buffer.from(a,"base64");if(32!==b.length)throw Error(`Invalid SECRETS_ENCRYPTION_KEY: expected 32 bytes, got ${b.length}`);return b}function v(){try{return u(),!0}catch{return!1}}function w(a){let b=u(),c=t().randomBytes(16),d=t().createCipheriv("aes-256-gcm",b,c),e=d.update(a,"utf8","base64");return{encryptedValue:e+=d.final("base64"),iv:c.toString("base64"),authTag:d.getAuthTag().toString("base64")}}function x(a){return a?"string"==typeof a?a:a.toISOString():null}function y(a){return"string"==typeof a?a:a.toISOString()}function z(a,b){if(!a)return b;try{return JSON.parse(a)}catch{return b}}function A(a){return a?new Date(a):new Date}class B{constructor(a){this.initialized=!1,this.siteId=a,this.db=function(a){let b=k.get(a);if(b)return b;let c=l(),d=g().join(c,a);m(d);let f=g().join(d,"site.sqlite"),h=new(e())(f);return n(h),k.set(a,h),h}(a)}init(){this.initialized||(this.db.exec(` +"use strict";exports.id=9050,exports.ids=[9050],exports.modules={49050:(a,b,c)=>{c.d(b,{SQLiteAdapter:()=>U});var d=c(87550),e=c.n(d),f=c(33873),g=c.n(f),h=c(29021),i=c.n(h);let j=null,k=new Map,l=new Map,m=new Map;function n(){return process.env.DATA_DIR||g().join(process.cwd(),"data")}function o(){let a=g().join(process.cwd(),"deployments"),b=g().join(process.cwd(),"sites");try{!i().existsSync(a)&&i().existsSync(b)&&i().renameSync(b,a)}catch{if(!i().existsSync(a))throw Error("Neither deployments/ nor sites/ directory exists")}return a}function p(a){i().existsSync(a)||i().mkdirSync(a,{recursive:!0})}function q(a,b){if(!/^[a-f0-9-]+$/i.test(a))throw Error(`Invalid ${b} format: ${a}`)}function r(a){a.pragma("journal_mode = WAL"),a.pragma("foreign_keys = ON"),a.pragma("synchronous = NORMAL"),a.pragma("cache_size = -64000"),a.pragma("temp_store = MEMORY")}function s(a,b){if(b&&!/^[a-f0-9-]+$/i.test(b))throw Error(`Invalid deployment ID format: ${b}`);let c=g().join(a,"deployment.sqlite"),d=g().join(a,"site.sqlite"),f=g().join(a,"runtime.sqlite"),h=g().join(a,"analytics.sqlite");if(i().existsSync(f))return;let j=null;if(i().existsSync(c)?j=c:i().existsSync(d)&&(j=d),j){var k=j;for(let a of(i().renameSync(k,f),["-wal","-shm"])){let b=k+a;i().existsSync(b)&&i().renameSync(b,f+a)}try{let a=new(e())(f);r(a);try{a.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='pageviews'").get()&&(a.exec(`ATTACH DATABASE '${h}' AS analytics_new`),a.exec(` + CREATE TABLE IF NOT EXISTS analytics_new.pageviews ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + page_path TEXT NOT NULL, + referrer TEXT, + country TEXT, + user_agent TEXT, + device_type TEXT, + session_id TEXT NOT NULL, + load_time INTEGER, + timestamp TEXT NOT NULL DEFAULT (datetime('now')) + ) + `),a.exec("CREATE INDEX IF NOT EXISTS analytics_new.idx_pageviews_timestamp ON pageviews(timestamp)"),a.exec("CREATE INDEX IF NOT EXISTS analytics_new.idx_pageviews_session_id ON pageviews(session_id)"),a.exec(` + CREATE TABLE IF NOT EXISTS analytics_new.interactions ( + id TEXT PRIMARY KEY, + session_id TEXT NOT NULL, + page_path TEXT NOT NULL, + interaction_type TEXT NOT NULL, + element_selector TEXT, + coordinates TEXT, + scroll_depth INTEGER, + time_on_page INTEGER, + timestamp TEXT NOT NULL DEFAULT (datetime('now')) + ) + `),a.exec("CREATE INDEX IF NOT EXISTS analytics_new.idx_interactions_page_path ON interactions(page_path)"),a.exec("CREATE INDEX IF NOT EXISTS analytics_new.idx_interactions_timestamp ON interactions(timestamp)"),a.exec(` + CREATE TABLE IF NOT EXISTS analytics_new.sessions ( + id TEXT PRIMARY KEY, + session_id TEXT NOT NULL, + entry_page TEXT, + exit_page TEXT, + page_count INTEGER DEFAULT 1, + duration INTEGER, + is_bounce INTEGER DEFAULT 1, + created_at TEXT NOT NULL DEFAULT (datetime('now')), + ended_at TEXT + ) + `),a.exec("CREATE INDEX IF NOT EXISTS analytics_new.idx_sessions_session_id ON sessions(session_id)"),a.exec("CREATE INDEX IF NOT EXISTS analytics_new.idx_sessions_created_at ON sessions(created_at)"),a.exec("INSERT INTO analytics_new.pageviews SELECT * FROM main.pageviews"),a.exec("INSERT INTO analytics_new.interactions SELECT * FROM main.interactions"),a.exec("INSERT INTO analytics_new.sessions SELECT * FROM main.sessions"),a.exec("DETACH DATABASE analytics_new"),a.exec("DROP TABLE IF EXISTS pageviews"),a.exec("DROP TABLE IF EXISTS interactions"),a.exec("DROP TABLE IF EXISTS sessions"))}finally{a.close()}}catch(a){console.error("[SQLite Migration] Failed to split deployment database:",a)}}}function t(a){q(a,"deployment ID");let b=o(),c=g().join(b,a),d=g().join(c,"runtime.sqlite"),e=g().join(c,"deployment.sqlite"),f=g().join(c,"site.sqlite");return i().existsSync(d)||i().existsSync(e)||i().existsSync(f)}function u(a){q(a,"deployment ID"),v(a),w(a);let b=o(),c=g().join(b,a);if(i().existsSync(c)){for(let a of i().readdirSync(c))i().unlinkSync(g().join(c,a));i().rmdirSync(c)}}function v(a){let b=k.get(a);if(b){try{b.close()}catch{}k.delete(a)}}function w(a){let b=l.get(a);if(b){try{b.close()}catch{}l.delete(a)}}function x(a){let b=m.get(a);if(b){try{b.close()}catch{}m.delete(a)}}var y=c(2117),z=c(55511),A=c.n(z);function B(){let a=process.env.SECRETS_ENCRYPTION_KEY;if(!a)throw Error("SECRETS_ENCRYPTION_KEY environment variable not set");let b=Buffer.from(a,"base64");if(32!==b.length)throw Error(`Invalid SECRETS_ENCRYPTION_KEY: expected 32 bytes, got ${b.length}`);return b}function C(){try{return B(),!0}catch{return!1}}function D(a){let b=B(),c=A().randomBytes(16),d=A().createCipheriv("aes-256-gcm",b,c),e=d.update(a,"utf8","base64");return{encryptedValue:e+=d.final("base64"),iv:c.toString("base64"),authTag:d.getAuthTag().toString("base64")}}function E(a){return a?"string"==typeof a?a:a.toISOString():null}function F(a){return"string"==typeof a?a:a.toISOString()}function G(a,b){if(!a)return b;try{return JSON.parse(a)}catch{return b}}function H(a){return a?new Date(a):new Date}class I{constructor(a){this.initialized=!1,this.deploymentId=a,this.db=function(a){q(a,"deployment ID");let b=k.get(a);if(b)return b;let c=o(),d=g().join(c,a);p(d),s(d,a);let f=g().join(d,"runtime.sqlite"),h=new(e())(f);return r(h),k.set(a,h),h}(a)}init(){this.initialized||(this.db.exec(` CREATE TABLE IF NOT EXISTS site_info ( id TEXT PRIMARY KEY DEFAULT 'main', project_id TEXT NOT NULL, @@ -34,9 +70,7 @@ updated_at TEXT NOT NULL, metadata TEXT DEFAULT '{}' ) - `),this.db.exec(` - CREATE INDEX IF NOT EXISTS idx_files_path ON files(path) - `),this.db.exec(` + `),this.db.exec("CREATE INDEX IF NOT EXISTS idx_files_path ON files(path)"),this.db.exec(` CREATE TABLE IF NOT EXISTS file_tree_nodes ( id TEXT PRIMARY KEY, path TEXT NOT NULL UNIQUE, @@ -47,57 +81,7 @@ children TEXT DEFAULT '[]', metadata TEXT DEFAULT '{}' ) - `),this.db.exec(` - CREATE INDEX IF NOT EXISTS idx_tree_nodes_parent_path ON file_tree_nodes(parent_path) - `),this.db.exec(` - CREATE TABLE IF NOT EXISTS pageviews ( - id INTEGER PRIMARY KEY AUTOINCREMENT, - page_path TEXT NOT NULL, - referrer TEXT, - country TEXT, - user_agent TEXT, - device_type TEXT, - session_id TEXT NOT NULL, - load_time INTEGER, - timestamp TEXT NOT NULL DEFAULT (datetime('now')) - ) - `),this.db.exec(` - CREATE INDEX IF NOT EXISTS idx_pageviews_timestamp ON pageviews(timestamp) - `),this.db.exec(` - CREATE INDEX IF NOT EXISTS idx_pageviews_session_id ON pageviews(session_id) - `),this.db.exec(` - CREATE TABLE IF NOT EXISTS interactions ( - id TEXT PRIMARY KEY, - session_id TEXT NOT NULL, - page_path TEXT NOT NULL, - interaction_type TEXT NOT NULL, - element_selector TEXT, - coordinates TEXT, - scroll_depth INTEGER, - time_on_page INTEGER, - timestamp TEXT NOT NULL DEFAULT (datetime('now')) - ) - `),this.db.exec(` - CREATE INDEX IF NOT EXISTS idx_interactions_page_path ON interactions(page_path) - `),this.db.exec(` - CREATE INDEX IF NOT EXISTS idx_interactions_timestamp ON interactions(timestamp) - `),this.db.exec(` - CREATE TABLE IF NOT EXISTS sessions ( - id TEXT PRIMARY KEY, - session_id TEXT NOT NULL, - entry_page TEXT, - exit_page TEXT, - page_count INTEGER DEFAULT 1, - duration INTEGER, - is_bounce INTEGER DEFAULT 1, - created_at TEXT NOT NULL DEFAULT (datetime('now')), - ended_at TEXT - ) - `),this.db.exec(` - CREATE INDEX IF NOT EXISTS idx_sessions_session_id ON sessions(session_id) - `),this.db.exec(` - CREATE INDEX IF NOT EXISTS idx_sessions_created_at ON sessions(created_at) - `),this.db.exec(` + `),this.db.exec("CREATE INDEX IF NOT EXISTS idx_tree_nodes_parent_path ON file_tree_nodes(parent_path)"),this.db.exec(` CREATE TABLE IF NOT EXISTS edge_functions ( id TEXT PRIMARY KEY, name TEXT NOT NULL UNIQUE, @@ -109,9 +93,7 @@ created_at TEXT NOT NULL, updated_at TEXT NOT NULL ) - `),this.db.exec(` - CREATE INDEX IF NOT EXISTS idx_edge_functions_name ON edge_functions(name) - `),this.db.exec(` + `),this.db.exec("CREATE INDEX IF NOT EXISTS idx_edge_functions_name ON edge_functions(name)"),this.db.exec(` CREATE TABLE IF NOT EXISTS function_logs ( id INTEGER PRIMARY KEY AUTOINCREMENT, function_id TEXT NOT NULL, @@ -123,11 +105,7 @@ timestamp TEXT NOT NULL DEFAULT (datetime('now')), FOREIGN KEY (function_id) REFERENCES edge_functions(id) ON DELETE CASCADE ) - `),this.db.exec(` - CREATE INDEX IF NOT EXISTS idx_function_logs_function_id ON function_logs(function_id) - `),this.db.exec(` - CREATE INDEX IF NOT EXISTS idx_function_logs_timestamp ON function_logs(timestamp) - `),this.db.exec(` + `),this.db.exec("CREATE INDEX IF NOT EXISTS idx_function_logs_function_id ON function_logs(function_id)"),this.db.exec("CREATE INDEX IF NOT EXISTS idx_function_logs_timestamp ON function_logs(timestamp)"),this.db.exec(` CREATE TABLE IF NOT EXISTS server_functions ( id TEXT PRIMARY KEY, name TEXT NOT NULL UNIQUE, @@ -137,9 +115,7 @@ created_at TEXT NOT NULL, updated_at TEXT NOT NULL ) - `),this.db.exec(` - CREATE INDEX IF NOT EXISTS idx_server_functions_name ON server_functions(name) - `),this.db.exec(` + `),this.db.exec("CREATE INDEX IF NOT EXISTS idx_server_functions_name ON server_functions(name)"),this.db.exec(` CREATE TABLE IF NOT EXISTS secrets ( id TEXT PRIMARY KEY, name TEXT NOT NULL UNIQUE, @@ -150,9 +126,7 @@ created_at TEXT NOT NULL, updated_at TEXT NOT NULL ) - `),this.db.exec(` - CREATE INDEX IF NOT EXISTS idx_secrets_name ON secrets(name) - `),this.db.exec(` + `),this.db.exec("CREATE INDEX IF NOT EXISTS idx_secrets_name ON secrets(name)"),this.db.exec(` CREATE TABLE IF NOT EXISTS scheduled_functions ( id TEXT PRIMARY KEY, name TEXT NOT NULL UNIQUE, @@ -171,11 +145,7 @@ updated_at TEXT NOT NULL, FOREIGN KEY (function_id) REFERENCES edge_functions(id) ON DELETE CASCADE ) - `),this.db.exec(` - CREATE INDEX IF NOT EXISTS idx_scheduled_functions_name ON scheduled_functions(name) - `),this.db.exec(` - CREATE INDEX IF NOT EXISTS idx_scheduled_functions_next_run ON scheduled_functions(next_run_at) - `),this.initialized=!0)}close(){q(this.siteId)}createSiteInfo(a){this.db.prepare(` + `),this.db.exec("CREATE INDEX IF NOT EXISTS idx_scheduled_functions_name ON scheduled_functions(name)"),this.db.exec("CREATE INDEX IF NOT EXISTS idx_scheduled_functions_next_run ON scheduled_functions(next_run_at)"),this.initialized=!0)}close(){v(this.deploymentId)}createDeploymentInfo(a){this.db.prepare(` INSERT OR REPLACE INTO site_info ( id, project_id, name, slug, enabled, under_construction, custom_domain, head_scripts, body_scripts, cdn_links, @@ -185,24 +155,102 @@ ) VALUES ( 'main', ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? ) - `).run(a.projectId,a.name,a.slug??null,+!!a.enabled,+!!a.underConstruction,a.customDomain??null,JSON.stringify(a.headScripts??[]),JSON.stringify(a.bodyScripts??[]),JSON.stringify(a.cdnLinks??[]),JSON.stringify(a.analytics??{}),JSON.stringify(a.seo??{}),JSON.stringify(a.compliance??{}),a.settingsVersion??1,a.lastPublishedVersion??null,a.previewImage??null,x(a.previewUpdatedAt),y(a.createdAt),y(a.updatedAt),x(a.publishedAt))}getSiteInfo(){let a=this.db.prepare("SELECT * FROM site_info WHERE id = ?").get("main");return a?{id:this.siteId,projectId:a.project_id,name:a.name,slug:a.slug,enabled:!!a.enabled,underConstruction:!!a.under_construction,customDomain:a.custom_domain,headScripts:z(a.head_scripts,[]),bodyScripts:z(a.body_scripts,[]),cdnLinks:z(a.cdn_links,[]),analytics:z(a.analytics,{enabled:!1,provider:"builtin",privacyMode:!0}),seo:z(a.seo,{}),compliance:z(a.compliance,{enabled:!1,bannerPosition:"bottom",bannerStyle:"bar",message:"",acceptButtonText:"Accept",declineButtonText:"Decline",mode:"opt-in",blockAnalytics:!1}),settingsVersion:a.settings_version,lastPublishedVersion:a.last_published_version,previewImage:a.preview_image,previewUpdatedAt:a.preview_updated_at?A(a.preview_updated_at):void 0,createdAt:A(a.created_at),updatedAt:A(a.updated_at),publishedAt:a.published_at?A(a.published_at):null}:null}updateSiteInfo(a){let b=[],c=[];if(void 0!==a.name&&(b.push("name = ?"),c.push(a.name)),void 0!==a.slug&&(b.push("slug = ?"),c.push(a.slug)),void 0!==a.enabled&&(b.push("enabled = ?"),c.push(+!!a.enabled)),void 0!==a.underConstruction&&(b.push("under_construction = ?"),c.push(+!!a.underConstruction)),void 0!==a.customDomain&&(b.push("custom_domain = ?"),c.push(a.customDomain)),void 0!==a.headScripts&&(b.push("head_scripts = ?"),c.push(JSON.stringify(a.headScripts))),void 0!==a.bodyScripts&&(b.push("body_scripts = ?"),c.push(JSON.stringify(a.bodyScripts))),void 0!==a.cdnLinks&&(b.push("cdn_links = ?"),c.push(JSON.stringify(a.cdnLinks))),void 0!==a.analytics&&(b.push("analytics = ?"),c.push(JSON.stringify(a.analytics))),void 0!==a.seo&&(b.push("seo = ?"),c.push(JSON.stringify(a.seo))),void 0!==a.compliance&&(b.push("compliance = ?"),c.push(JSON.stringify(a.compliance))),void 0!==a.settingsVersion&&(b.push("settings_version = ?"),c.push(a.settingsVersion)),void 0!==a.lastPublishedVersion&&(b.push("last_published_version = ?"),c.push(a.lastPublishedVersion)),void 0!==a.previewImage&&(b.push("preview_image = ?"),c.push(a.previewImage)),void 0!==a.previewUpdatedAt&&(b.push("preview_updated_at = ?"),c.push(x(a.previewUpdatedAt))),void 0!==a.updatedAt&&(b.push("updated_at = ?"),c.push(y(a.updatedAt))),void 0!==a.publishedAt&&(b.push("published_at = ?"),c.push(x(a.publishedAt))),0===b.length)return;a.updatedAt||(b.push("updated_at = ?"),c.push(new Date().toISOString()));let d=`UPDATE site_info SET ${b.join(", ")} WHERE id = 'main'`;this.db.prepare(d).run(...c)}createFile(a){let b,c=this.db.prepare(` + `).run(a.projectId,a.name,a.slug??null,+!!a.enabled,+!!a.underConstruction,a.customDomain??null,JSON.stringify(a.headScripts??[]),JSON.stringify(a.bodyScripts??[]),JSON.stringify(a.cdnLinks??[]),JSON.stringify(a.analytics??{}),JSON.stringify(a.seo??{}),JSON.stringify(a.compliance??{}),a.settingsVersion??1,a.lastPublishedVersion??null,a.previewImage??null,E(a.previewUpdatedAt),F(a.createdAt),F(a.updatedAt),E(a.publishedAt))}getDeploymentInfo(){let a=this.db.prepare("SELECT * FROM site_info WHERE id = ?").get("main");return a?{id:this.deploymentId,projectId:a.project_id,name:a.name,slug:a.slug,enabled:!!a.enabled,underConstruction:!!a.under_construction,customDomain:a.custom_domain,headScripts:G(a.head_scripts,[]),bodyScripts:G(a.body_scripts,[]),cdnLinks:G(a.cdn_links,[]),analytics:G(a.analytics,{enabled:!1,provider:"builtin",privacyMode:!0}),seo:G(a.seo,{}),compliance:G(a.compliance,{enabled:!1,bannerPosition:"bottom",bannerStyle:"bar",message:"",acceptButtonText:"Accept",declineButtonText:"Decline",mode:"opt-in",blockAnalytics:!1}),settingsVersion:a.settings_version,lastPublishedVersion:a.last_published_version,previewImage:a.preview_image,previewUpdatedAt:a.preview_updated_at?H(a.preview_updated_at):void 0,createdAt:H(a.created_at),updatedAt:H(a.updated_at),publishedAt:a.published_at?H(a.published_at):null}:null}updateDeploymentInfo(a){let b=[],c=[];if(void 0!==a.name&&(b.push("name = ?"),c.push(a.name)),void 0!==a.slug&&(b.push("slug = ?"),c.push(a.slug)),void 0!==a.enabled&&(b.push("enabled = ?"),c.push(+!!a.enabled)),void 0!==a.underConstruction&&(b.push("under_construction = ?"),c.push(+!!a.underConstruction)),void 0!==a.customDomain&&(b.push("custom_domain = ?"),c.push(a.customDomain)),void 0!==a.headScripts&&(b.push("head_scripts = ?"),c.push(JSON.stringify(a.headScripts))),void 0!==a.bodyScripts&&(b.push("body_scripts = ?"),c.push(JSON.stringify(a.bodyScripts))),void 0!==a.cdnLinks&&(b.push("cdn_links = ?"),c.push(JSON.stringify(a.cdnLinks))),void 0!==a.analytics&&(b.push("analytics = ?"),c.push(JSON.stringify(a.analytics))),void 0!==a.seo&&(b.push("seo = ?"),c.push(JSON.stringify(a.seo))),void 0!==a.compliance&&(b.push("compliance = ?"),c.push(JSON.stringify(a.compliance))),void 0!==a.settingsVersion&&(b.push("settings_version = ?"),c.push(a.settingsVersion)),void 0!==a.lastPublishedVersion&&(b.push("last_published_version = ?"),c.push(a.lastPublishedVersion)),void 0!==a.previewImage&&(b.push("preview_image = ?"),c.push(a.previewImage)),void 0!==a.previewUpdatedAt&&(b.push("preview_updated_at = ?"),c.push(E(a.previewUpdatedAt))),void 0!==a.updatedAt&&(b.push("updated_at = ?"),c.push(F(a.updatedAt))),void 0!==a.publishedAt&&(b.push("published_at = ?"),c.push(E(a.publishedAt))),0===b.length)return;a.updatedAt||(b.push("updated_at = ?"),c.push(new Date().toISOString()));let d=`UPDATE site_info SET ${b.join(", ")} WHERE id = 'main'`;this.db.prepare(d).run(...c)}createFile(a){let b,c=this.db.prepare(` INSERT INTO files ( id, path, name, type, content, mime_type, size, created_at, updated_at, metadata ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) - `);b=a.content instanceof ArrayBuffer?Buffer.from(a.content).toString("base64"):"string"==typeof a.content?a.content:"",c.run(a.id,a.path,a.name,a.type,b,a.mimeType??null,a.size??0,y(a.createdAt),y(a.updatedAt),JSON.stringify(a.metadata??{}))}getFile(a){let b=this.db.prepare("SELECT * FROM files WHERE path = ?").get(a);return b?this.rowToFile(b):null}updateFile(a){let b,c=this.db.prepare(` + `);b=a.content instanceof ArrayBuffer?Buffer.from(a.content).toString("base64"):"string"==typeof a.content?a.content:"",c.run(a.id,a.path,a.name,a.type,b,a.mimeType??null,a.size??0,F(a.createdAt),F(a.updatedAt),JSON.stringify(a.metadata??{}))}getFile(a){let b=this.db.prepare("SELECT * FROM files WHERE path = ?").get(a);return b?this.rowToFile(b):null}updateFile(a){let b,c=this.db.prepare(` UPDATE files SET name = ?, type = ?, content = ?, mime_type = ?, size = ?, updated_at = ?, metadata = ? WHERE path = ? - `);b=a.content instanceof ArrayBuffer?Buffer.from(a.content).toString("base64"):"string"==typeof a.content?a.content:"",c.run(a.name,a.type,b,a.mimeType??null,a.size??0,y(a.updatedAt),JSON.stringify(a.metadata??{}),a.path)}deleteFile(a){this.db.prepare("DELETE FROM files WHERE path = ?").run(a)}listFiles(){return this.db.prepare("SELECT * FROM files ORDER BY path").all().map(a=>this.rowToFile(a))}deleteAllFiles(){this.db.prepare("DELETE FROM files").run()}rowToFile(a){let b=z(a.metadata,{}),c=a.type,d=a.content;if("image"===c||"video"===c||"binary"===c)try{let a=d;if(a.startsWith("data:")){let b=a.indexOf(",");-1!==b&&(a=a.slice(b+1))}d=Buffer.from(a,"base64").buffer}catch{}return{id:a.id,projectId:this.siteId,path:a.path,name:a.name,type:c,content:d,mimeType:a.mime_type,size:a.size,createdAt:A(a.created_at),updatedAt:A(a.updated_at),metadata:b}}createTreeNode(a){this.db.prepare(` + `);b=a.content instanceof ArrayBuffer?Buffer.from(a.content).toString("base64"):"string"==typeof a.content?a.content:"",c.run(a.name,a.type,b,a.mimeType??null,a.size??0,F(a.updatedAt),JSON.stringify(a.metadata??{}),a.path)}deleteFile(a){this.db.prepare("DELETE FROM files WHERE path = ?").run(a)}listFiles(){return this.db.prepare("SELECT * FROM files ORDER BY path").all().map(a=>this.rowToFile(a))}deleteAllFiles(){this.db.prepare("DELETE FROM files").run()}rowToFile(a){let b=G(a.metadata,{}),c=a.type,d=a.content;if("image"===c||"video"===c||"binary"===c)try{let a=d;if(a.startsWith("data:")){let b=a.indexOf(",");-1!==b&&(a=a.slice(b+1))}d=Buffer.from(a,"base64").buffer}catch{}return{id:a.id,projectId:this.deploymentId,path:a.path,name:a.name,type:c,content:d,mimeType:a.mime_type,size:a.size,createdAt:H(a.created_at),updatedAt:H(a.updated_at),metadata:b}}createTreeNode(a){this.db.prepare(` INSERT INTO file_tree_nodes (id, path, name, type, parent_path, is_expanded, children, metadata) VALUES (?, ?, ?, ?, ?, ?, ?, ?) `).run(a.id,a.path,a.name,a.type,a.parentPath,+!!a.isExpanded,JSON.stringify(a.children??[]),JSON.stringify(a.metadata??{}))}getTreeNode(a){let b=this.db.prepare("SELECT * FROM file_tree_nodes WHERE path = ?").get(a);return b?this.rowToTreeNode(b):null}updateTreeNode(a){this.db.prepare(` UPDATE file_tree_nodes SET name = ?, type = ?, parent_path = ?, is_expanded = ?, children = ?, metadata = ? WHERE path = ? - `).run(a.name,a.type,a.parentPath,+!!a.isExpanded,JSON.stringify(a.children??[]),JSON.stringify(a.metadata??{}),a.path)}deleteTreeNode(a){this.db.prepare("DELETE FROM file_tree_nodes WHERE path = ?").run(a)}getChildNodes(a){return this.db.prepare("SELECT * FROM file_tree_nodes WHERE parent_path IS ? ORDER BY type DESC, path").all(a).map(a=>this.rowToTreeNode(a))}getAllTreeNodes(){return this.db.prepare("SELECT * FROM file_tree_nodes ORDER BY path").all().map(a=>this.rowToTreeNode(a))}rowToTreeNode(a){return{id:a.id,projectId:this.siteId,path:a.path,name:a.name,type:a.type,parentPath:a.parent_path,isExpanded:!!a.is_expanded,children:z(a.children,[]),metadata:z(a.metadata,{})}}recordPageview(a){this.db.prepare(` + `).run(a.name,a.type,a.parentPath,+!!a.isExpanded,JSON.stringify(a.children??[]),JSON.stringify(a.metadata??{}),a.path)}deleteTreeNode(a){this.db.prepare("DELETE FROM file_tree_nodes WHERE path = ?").run(a)}getChildNodes(a){return this.db.prepare("SELECT * FROM file_tree_nodes WHERE parent_path IS ? ORDER BY type DESC, path").all(a).map(a=>this.rowToTreeNode(a))}getAllTreeNodes(){return this.db.prepare("SELECT * FROM file_tree_nodes ORDER BY path").all().map(a=>this.rowToTreeNode(a))}rowToTreeNode(a){return{id:a.id,projectId:this.deploymentId,path:a.path,name:a.name,type:a.type,parentPath:a.parent_path,isExpanded:!!a.is_expanded,children:G(a.children,[]),metadata:G(a.metadata,{})}}createFunction(a){let b=(0,y.A)(),c=new Date().toISOString();return this.db.prepare(` + INSERT INTO edge_functions ( + id, name, description, code, method, enabled, timeout_ms, created_at, updated_at + ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) + `).run(b,a.name,a.description??null,a.code,a.method,+!!a.enabled,a.timeoutMs,c,c),b}getFunction(a){let b=this.db.prepare("SELECT * FROM edge_functions WHERE id = ?").get(a);return b?this.rowToFunction(b):null}getFunctionByName(a){let b=this.db.prepare("SELECT * FROM edge_functions WHERE name = ?").get(a);return b?this.rowToFunction(b):null}updateFunction(a,b){let c=[],d=[];if(void 0!==b.name&&(c.push("name = ?"),d.push(b.name)),void 0!==b.description&&(c.push("description = ?"),d.push(b.description)),void 0!==b.code&&(c.push("code = ?"),d.push(b.code)),void 0!==b.method&&(c.push("method = ?"),d.push(b.method)),void 0!==b.enabled&&(c.push("enabled = ?"),d.push(+!!b.enabled)),void 0!==b.timeoutMs&&(c.push("timeout_ms = ?"),d.push(b.timeoutMs)),0===c.length)return;c.push("updated_at = ?"),d.push(new Date().toISOString()),d.push(a);let e=`UPDATE edge_functions SET ${c.join(", ")} WHERE id = ?`;this.db.prepare(e).run(...d)}deleteFunction(a){this.db.prepare("DELETE FROM edge_functions WHERE id = ?").run(a)}listFunctions(){return this.db.prepare("SELECT * FROM edge_functions ORDER BY name").all().map(a=>this.rowToFunction(a))}rowToFunction(a){return{id:a.id,projectId:"",name:a.name,description:a.description,code:a.code,method:a.method,enabled:!!a.enabled,timeoutMs:a.timeout_ms,createdAt:H(a.created_at),updatedAt:H(a.updated_at)}}logFunctionExecution(a,b){this.db.prepare(` + INSERT INTO function_logs (function_id, method, path, status_code, duration_ms, error) + VALUES (?, ?, ?, ?, ?, ?) + `).run(a,b.method,b.path,b.statusCode,b.durationMs,b.error??null)}getFunctionLogs(a,b=100){return this.db.prepare(` + SELECT * FROM function_logs WHERE function_id = ? + ORDER BY timestamp DESC LIMIT ? + `).all(a,b).map(a=>this.rowToFunctionLog(a))}getRecentLogs(a=100){return this.db.prepare(` + SELECT * FROM function_logs ORDER BY timestamp DESC LIMIT ? + `).all(a).map(a=>this.rowToFunctionLog(a))}clearFunctionLogs(a,b){a&&b?this.db.prepare("DELETE FROM function_logs WHERE function_id = ? AND timestamp < ?").run(a,b.toISOString()):a?this.db.prepare("DELETE FROM function_logs WHERE function_id = ?").run(a):b?this.db.prepare("DELETE FROM function_logs WHERE timestamp < ?").run(b.toISOString()):this.db.prepare("DELETE FROM function_logs").run()}rowToFunctionLog(a){return{id:a.id,functionId:a.function_id,method:a.method,path:a.path,statusCode:a.status_code,durationMs:a.duration_ms,error:a.error,timestamp:H(a.timestamp)}}createServerFunction(a){let b=(0,y.A)(),c=new Date().toISOString();return this.db.prepare(` + INSERT INTO server_functions ( + id, name, description, code, enabled, created_at, updated_at + ) VALUES (?, ?, ?, ?, ?, ?, ?) + `).run(b,a.name,a.description??null,a.code,+!!a.enabled,c,c),b}getServerFunction(a){let b=this.db.prepare("SELECT * FROM server_functions WHERE id = ?").get(a);return b?this.rowToServerFunction(b):null}getServerFunctionByName(a){let b=this.db.prepare("SELECT * FROM server_functions WHERE name = ?").get(a);return b?this.rowToServerFunction(b):null}updateServerFunction(a,b){let c=[],d=[];if(void 0!==b.name&&(c.push("name = ?"),d.push(b.name)),void 0!==b.description&&(c.push("description = ?"),d.push(b.description)),void 0!==b.code&&(c.push("code = ?"),d.push(b.code)),void 0!==b.enabled&&(c.push("enabled = ?"),d.push(+!!b.enabled)),0===c.length)return;c.push("updated_at = ?"),d.push(new Date().toISOString()),d.push(a);let e=`UPDATE server_functions SET ${c.join(", ")} WHERE id = ?`;this.db.prepare(e).run(...d)}deleteServerFunction(a){this.db.prepare("DELETE FROM server_functions WHERE id = ?").run(a)}listServerFunctions(){return this.db.prepare("SELECT * FROM server_functions ORDER BY name").all().map(a=>this.rowToServerFunction(a))}rowToServerFunction(a){return{id:a.id,projectId:"",name:a.name,description:a.description,code:a.code,enabled:!!a.enabled,createdAt:H(a.created_at),updatedAt:H(a.updated_at)}}createSecret(a,b,c){if(!C())throw Error("Secrets encryption not configured. Set SECRETS_ENCRYPTION_KEY environment variable.");let d=(0,y.A)(),e=new Date().toISOString(),f=D(b);return this.db.prepare(` + INSERT INTO secrets (id, name, encrypted_value, iv, auth_tag, description, created_at, updated_at) + VALUES (?, ?, ?, ?, ?, ?, ?, ?) + `).run(d,a,f.encryptedValue,f.iv,f.authTag,c||null,e,e),d}getSecret(a){let b=this.db.prepare("SELECT * FROM secrets WHERE id = ?").get(a);return b?this.rowToSecret(b):null}getSecretByName(a){let b=this.db.prepare("SELECT * FROM secrets WHERE name = ?").get(a);return b?this.rowToSecret(b):null}updateSecretValue(a,b){if(!C())throw Error("Secrets encryption not configured. Set SECRETS_ENCRYPTION_KEY environment variable.");let c=new Date().toISOString(),d=D(b);this.db.prepare(` + UPDATE secrets + SET encrypted_value = ?, iv = ?, auth_tag = ?, updated_at = ? + WHERE id = ? + `).run(d.encryptedValue,d.iv,d.authTag,c,a)}updateSecretMetadata(a,b){let c=new Date().toISOString();void 0!==b.name&&this.db.prepare("UPDATE secrets SET name = ?, updated_at = ? WHERE id = ?").run(b.name,c,a),void 0!==b.description&&this.db.prepare("UPDATE secrets SET description = ?, updated_at = ? WHERE id = ?").run(b.description,c,a)}deleteSecret(a){this.db.prepare("DELETE FROM secrets WHERE id = ?").run(a)}listSecrets(){return this.db.prepare("SELECT * FROM secrets ORDER BY name").all().map(a=>this.rowToSecret(a))}listSecretsWithValues(){return this.db.prepare("SELECT name, encrypted_value, iv, auth_tag FROM secrets").all().map(a=>({name:a.name,encryptedValue:a.encrypted_value,iv:a.iv,authTag:a.auth_tag}))}rowToSecret(a){return{id:a.id,projectId:"",name:a.name,description:a.description,hasValue:null!==a.encrypted_value&&""!==a.encrypted_value,createdAt:H(a.created_at),updatedAt:H(a.updated_at)}}createSecretPlaceholder(a,b){let c=(0,y.A)(),d=new Date().toISOString();return this.db.prepare(` + INSERT INTO secrets (id, name, encrypted_value, iv, auth_tag, description, created_at, updated_at) + VALUES (?, ?, '', '', '', ?, ?, ?) + `).run(c,a,b||null,d,d),c}createScheduledFunction(a){let b=(0,y.A)(),c=new Date().toISOString();return this.db.prepare(` + INSERT INTO scheduled_functions ( + id, name, description, function_id, cron_expression, timezone, + config, enabled, last_run_at, next_run_at, last_status, last_error, + last_duration_ms, created_at, updated_at + ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) + `).run(b,a.name,a.description??null,a.functionId,a.cronExpression,a.timezone||"UTC",JSON.stringify(a.config||{}),+!!a.enabled,E(a.lastRunAt),E(a.nextRunAt),a.lastStatus??null,a.lastError??null,a.lastDurationMs??null,c,c),b}getScheduledFunction(a){let b=this.db.prepare("SELECT * FROM scheduled_functions WHERE id = ?").get(a);return b?this.rowToScheduledFunction(b):null}getScheduledFunctionByName(a){let b=this.db.prepare("SELECT * FROM scheduled_functions WHERE name = ?").get(a);return b?this.rowToScheduledFunction(b):null}updateScheduledFunction(a,b){let c=[],d=[];if(void 0!==b.name&&(c.push("name = ?"),d.push(b.name)),void 0!==b.description&&(c.push("description = ?"),d.push(b.description)),void 0!==b.functionId&&(c.push("function_id = ?"),d.push(b.functionId)),void 0!==b.cronExpression&&(c.push("cron_expression = ?"),d.push(b.cronExpression)),void 0!==b.timezone&&(c.push("timezone = ?"),d.push(b.timezone)),void 0!==b.config&&(c.push("config = ?"),d.push(JSON.stringify(b.config))),void 0!==b.enabled&&(c.push("enabled = ?"),d.push(+!!b.enabled)),void 0!==b.lastRunAt&&(c.push("last_run_at = ?"),d.push(E(b.lastRunAt))),void 0!==b.nextRunAt&&(c.push("next_run_at = ?"),d.push(E(b.nextRunAt))),void 0!==b.lastStatus&&(c.push("last_status = ?"),d.push(b.lastStatus)),void 0!==b.lastError&&(c.push("last_error = ?"),d.push(b.lastError)),void 0!==b.lastDurationMs&&(c.push("last_duration_ms = ?"),d.push(b.lastDurationMs)),0===c.length)return;c.push("updated_at = ?"),d.push(new Date().toISOString()),d.push(a);let e=`UPDATE scheduled_functions SET ${c.join(", ")} WHERE id = ?`;this.db.prepare(e).run(...d)}deleteScheduledFunction(a){this.db.prepare("DELETE FROM scheduled_functions WHERE id = ?").run(a)}listScheduledFunctions(){return this.db.prepare("SELECT * FROM scheduled_functions ORDER BY name").all().map(a=>this.rowToScheduledFunction(a))}listDueScheduledFunctions(){return this.db.prepare("SELECT * FROM scheduled_functions WHERE enabled = 1 AND next_run_at IS NOT NULL AND next_run_at <= strftime('%Y-%m-%dT%H:%M:%fZ', 'now')").all().map(a=>this.rowToScheduledFunction(a))}rowToScheduledFunction(a){return{id:a.id,projectId:"",name:a.name,description:a.description,functionId:a.function_id,cronExpression:a.cron_expression,timezone:a.timezone,config:G(a.config,{}),enabled:!!a.enabled,lastRunAt:a.last_run_at?H(a.last_run_at):void 0,nextRunAt:a.next_run_at?H(a.next_run_at):void 0,lastStatus:a.last_status,lastError:a.last_error,lastDurationMs:a.last_duration_ms,createdAt:H(a.created_at),updatedAt:H(a.updated_at)}}executeDDL(a){this.db.exec(a)}static{this.SYSTEM_TABLES=["site_info","files","file_tree_nodes","edge_functions","function_logs","server_functions","secrets","scheduled_functions"]}executeRawSQL(a,b){if(a.trim().toLowerCase().startsWith("select")){let c=this.db.prepare(a),d=b?c.all(...b):c.all();if(0===d.length)return{columns:[],rows:[],rowsAffected:0};let e=Object.keys(d[0]),f=d.map(a=>e.map(b=>a[b]));return{columns:e,rows:f,rowsAffected:0}}{let c=this.db.prepare(a);return{columns:[],rows:[],rowsAffected:(b?c.run(...b):c.run()).changes}}}getTableSchema(){return this.db.prepare(` + SELECT name FROM sqlite_master + WHERE type = 'table' AND name NOT LIKE 'sqlite_%' + ORDER BY name + `).all().map(a=>{let b=I.SYSTEM_TABLES.includes(a.name),c=this.db.prepare(`PRAGMA table_info('${a.name}')`).all(),d=this.db.prepare(`SELECT COUNT(*) as count FROM "${a.name}"`).get();return{name:a.name,columns:c.map(a=>({name:a.name,type:a.type,nullable:!a.notnull,primaryKey:a.pk>0,defaultValue:a.dflt_value??void 0})),rowCount:d.count,isSystemTable:b}})}getTableData(a,b=100,c=0){if(!this.db.prepare(` + SELECT name FROM sqlite_master WHERE type = 'table' AND name = ? + `).get(a))throw Error(`Table "${a}" does not exist`);let d=this.db.prepare(`SELECT COUNT(*) as count FROM "${a}"`).get(),e=this.db.prepare(`SELECT * FROM "${a}" LIMIT ? OFFSET ?`).all(b,c);if(0===e.length)return{columns:[],rows:[],total:d.count};let f=Object.keys(e[0]),g=e.map(a=>f.map(b=>a[b]));return{columns:f,rows:g,total:d.count}}isSystemTable(a){return I.SYSTEM_TABLES.includes(a)}executeUserQuery(a,b){let c=a.trim().toUpperCase(),d=this.validateNotSystemTable(c);if(d)return{columns:[],rows:[],rowsAffected:0,error:d};try{return this.executeRawSQL(a,b)}catch(a){return{columns:[],rows:[],rowsAffected:0,error:a instanceof Error?a.message:String(a)}}}validateNotSystemTable(a){let b=a.match(/^(DROP|ALTER|TRUNCATE)\s+TABLE\s+(?:IF\s+EXISTS\s+)?["'`]?(\w+)["'`]?/i);if(b){let a=b[2].toLowerCase();if(I.SYSTEM_TABLES.includes(a))return`Cannot modify system table: ${a}`}let c=a.match(/^INSERT\s+INTO\s+["'`]?(\w+)["'`]?/i);if(c){let a=c[1].toLowerCase();if(I.SYSTEM_TABLES.includes(a))return`Cannot insert into system table: ${a}`}let d=a.match(/^UPDATE\s+["'`]?(\w+)["'`]?/i);if(d){let a=d[1].toLowerCase();if(I.SYSTEM_TABLES.includes(a))return`Cannot update system table: ${a}`}let e=a.match(/^DELETE\s+FROM\s+["'`]?(\w+)["'`]?/i);if(e){let a=e[1].toLowerCase();if(I.SYSTEM_TABLES.includes(a))return`Cannot delete from system table: ${a}`}return null}getSchemaForExport(){let a=this.getTableSchema().filter(a=>!a.isSystemTable);if(0===a.length)return"-- No user tables defined\n-- Create tables using the SQL Editor or edge functions\n";let b="-- Database Schema\n";for(let c of(b+=`-- ${a.length} user table(s) + +`,a))b+=`-- Table: ${c.name} (${c.rowCount} rows) +`,b+=`CREATE TABLE ${c.name} ( +`,b+=c.columns.map(a=>{let b=` ${a.name} ${a.type}`;return a.primaryKey&&(b+=" PRIMARY KEY"),a.nullable||(b+=" NOT NULL"),void 0!==a.defaultValue&&(b+=` DEFAULT ${a.defaultValue}`),b}).join(",\n"),b+="\n);\n\n";return b}}class J{constructor(a){this.initialized=!1,this.deploymentId=a,this.db=function(a){q(a,"deployment ID");let b=l.get(a);if(b)return b;let c=o(),d=g().join(c,a);p(d),s(d,a);let f=g().join(d,"analytics.sqlite"),h=new(e())(f);return r(h),l.set(a,h),h}(a)}init(){this.initialized||(this.db.exec(` + CREATE TABLE IF NOT EXISTS pageviews ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + page_path TEXT NOT NULL, + referrer TEXT, + country TEXT, + user_agent TEXT, + device_type TEXT, + session_id TEXT NOT NULL, + load_time INTEGER, + timestamp TEXT NOT NULL DEFAULT (datetime('now')) + ) + `),this.db.exec("CREATE INDEX IF NOT EXISTS idx_pageviews_timestamp ON pageviews(timestamp)"),this.db.exec("CREATE INDEX IF NOT EXISTS idx_pageviews_session_id ON pageviews(session_id)"),this.db.exec(` + CREATE TABLE IF NOT EXISTS interactions ( + id TEXT PRIMARY KEY, + session_id TEXT NOT NULL, + page_path TEXT NOT NULL, + interaction_type TEXT NOT NULL, + element_selector TEXT, + coordinates TEXT, + scroll_depth INTEGER, + time_on_page INTEGER, + timestamp TEXT NOT NULL DEFAULT (datetime('now')) + ) + `),this.db.exec("CREATE INDEX IF NOT EXISTS idx_interactions_page_path ON interactions(page_path)"),this.db.exec("CREATE INDEX IF NOT EXISTS idx_interactions_timestamp ON interactions(timestamp)"),this.db.exec(` + CREATE TABLE IF NOT EXISTS sessions ( + id TEXT PRIMARY KEY, + session_id TEXT NOT NULL, + entry_page TEXT, + exit_page TEXT, + page_count INTEGER DEFAULT 1, + duration INTEGER, + is_bounce INTEGER DEFAULT 1, + created_at TEXT NOT NULL DEFAULT (datetime('now')), + ended_at TEXT + ) + `),this.db.exec("CREATE INDEX IF NOT EXISTS idx_sessions_session_id ON sessions(session_id)"),this.db.exec("CREATE INDEX IF NOT EXISTS idx_sessions_created_at ON sessions(created_at)"),this.initialized=!0)}close(){w(this.deploymentId)}recordPageview(a){this.db.prepare(` INSERT INTO pageviews ( page_path, referrer, country, user_agent, device_type, session_id, load_time @@ -212,7 +260,7 @@ id, session_id, page_path, interaction_type, element_selector, coordinates, scroll_depth, time_on_page ) VALUES (?, ?, ?, ?, ?, ?, ?, ?) - `).run((0,r.A)(),a.sessionId,a.pagePath,a.interactionType,a.elementSelector??null,a.coordinates?JSON.stringify(a.coordinates):null,a.scrollDepth??null,a.timeOnPage??null)}upsertSession(a,b){let c=this.db.prepare("SELECT * FROM sessions WHERE session_id = ?").get(a);if(c){let d=c.page_count+1;this.db.prepare(` + `).run((0,y.A)(),a.sessionId,a.pagePath,a.interactionType,a.elementSelector??null,a.coordinates?JSON.stringify(a.coordinates):null,a.scrollDepth??null,a.timeOnPage??null)}upsertSession(a,b){let c=this.db.prepare("SELECT * FROM sessions WHERE session_id = ?").get(a);if(c){let d=c.page_count+1;this.db.prepare(` UPDATE sessions SET exit_page = ?, page_count = ?, @@ -224,7 +272,7 @@ id, session_id, entry_page, exit_page, page_count, is_bounce ) VALUES (?, ?, ?, ?, 1, 1) - `).run((0,r.A)(),a,b,b)}updateSessionDuration(a,b){this.db.prepare(` + `).run((0,y.A)(),a,b,b)}updateSessionDuration(a,b){this.db.prepare(` UPDATE sessions SET duration = ?, ended_at = datetime('now') WHERE session_id = ? `).run(b,a)}getStats(a=30){let b=new Date;b.setDate(b.getDate()-a);let c=b.toISOString(),d=this.db.prepare(` @@ -272,7 +320,7 @@ FROM interactions WHERE page_path = ? AND interaction_type = ? AND coordinates IS NOT NULL GROUP BY coordinates - `).all(a,b).map(a=>{let b=z(a.coordinates,{x:0,y:0});return{x:b.x,y:b.y,count:a.count}})}getClickData(a,b,c,d=1e4){let e=` + `).all(a,b).map(a=>{let b=function(a,b){if(!a)return b;try{return JSON.parse(a)}catch{return b}}(a.coordinates,{x:0,y:0});return{x:b.x,y:b.y,count:a.count}})}getClickData(a,b,c,d=1e4){let e=` SELECT coordinates, element_selector, timestamp FROM interactions WHERE page_path = ? AND interaction_type = 'click' AND coordinates IS NOT NULL @@ -337,49 +385,21 @@ duration, is_bounce, created_at, ended_at FROM sessions ORDER BY created_at DESC - `).all()),b}createFunction(a){let b=(0,r.A)(),c=new Date().toISOString();return this.db.prepare(` - INSERT INTO edge_functions ( - id, name, description, code, method, enabled, timeout_ms, created_at, updated_at - ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) - `).run(b,a.name,a.description??null,a.code,a.method,+!!a.enabled,a.timeoutMs,c,c),b}getFunction(a){let b=this.db.prepare("SELECT * FROM edge_functions WHERE id = ?").get(a);return b?this.rowToFunction(b):null}getFunctionByName(a){let b=this.db.prepare("SELECT * FROM edge_functions WHERE name = ?").get(a);return b?this.rowToFunction(b):null}updateFunction(a,b){let c=[],d=[];if(void 0!==b.name&&(c.push("name = ?"),d.push(b.name)),void 0!==b.description&&(c.push("description = ?"),d.push(b.description)),void 0!==b.code&&(c.push("code = ?"),d.push(b.code)),void 0!==b.method&&(c.push("method = ?"),d.push(b.method)),void 0!==b.enabled&&(c.push("enabled = ?"),d.push(+!!b.enabled)),void 0!==b.timeoutMs&&(c.push("timeout_ms = ?"),d.push(b.timeoutMs)),0===c.length)return;c.push("updated_at = ?"),d.push(new Date().toISOString()),d.push(a);let e=`UPDATE edge_functions SET ${c.join(", ")} WHERE id = ?`;this.db.prepare(e).run(...d)}deleteFunction(a){this.db.prepare("DELETE FROM edge_functions WHERE id = ?").run(a)}listFunctions(){return this.db.prepare("SELECT * FROM edge_functions ORDER BY name").all().map(a=>this.rowToFunction(a))}rowToFunction(a){return{id:a.id,name:a.name,description:a.description,code:a.code,method:a.method,enabled:!!a.enabled,timeoutMs:a.timeout_ms,createdAt:A(a.created_at),updatedAt:A(a.updated_at)}}logFunctionExecution(a,b){this.db.prepare(` - INSERT INTO function_logs (function_id, method, path, status_code, duration_ms, error) - VALUES (?, ?, ?, ?, ?, ?) - `).run(a,b.method,b.path,b.statusCode,b.durationMs,b.error??null)}getFunctionLogs(a,b=100){return this.db.prepare(` - SELECT * FROM function_logs WHERE function_id = ? - ORDER BY timestamp DESC LIMIT ? - `).all(a,b).map(a=>this.rowToFunctionLog(a))}getRecentLogs(a=100){return this.db.prepare(` - SELECT * FROM function_logs ORDER BY timestamp DESC LIMIT ? - `).all(a).map(a=>this.rowToFunctionLog(a))}clearFunctionLogs(a,b){a&&b?this.db.prepare("DELETE FROM function_logs WHERE function_id = ? AND timestamp < ?").run(a,b.toISOString()):a?this.db.prepare("DELETE FROM function_logs WHERE function_id = ?").run(a):b?this.db.prepare("DELETE FROM function_logs WHERE timestamp < ?").run(b.toISOString()):this.db.prepare("DELETE FROM function_logs").run()}rowToFunctionLog(a){return{id:a.id,functionId:a.function_id,method:a.method,path:a.path,statusCode:a.status_code,durationMs:a.duration_ms,error:a.error,timestamp:A(a.timestamp)}}createServerFunction(a){let b=(0,r.A)(),c=new Date().toISOString();return this.db.prepare(` - INSERT INTO server_functions ( - id, name, description, code, enabled, created_at, updated_at - ) VALUES (?, ?, ?, ?, ?, ?, ?) - `).run(b,a.name,a.description??null,a.code,+!!a.enabled,c,c),b}getServerFunction(a){let b=this.db.prepare("SELECT * FROM server_functions WHERE id = ?").get(a);return b?this.rowToServerFunction(b):null}getServerFunctionByName(a){let b=this.db.prepare("SELECT * FROM server_functions WHERE name = ?").get(a);return b?this.rowToServerFunction(b):null}updateServerFunction(a,b){let c=[],d=[];if(void 0!==b.name&&(c.push("name = ?"),d.push(b.name)),void 0!==b.description&&(c.push("description = ?"),d.push(b.description)),void 0!==b.code&&(c.push("code = ?"),d.push(b.code)),void 0!==b.enabled&&(c.push("enabled = ?"),d.push(+!!b.enabled)),0===c.length)return;c.push("updated_at = ?"),d.push(new Date().toISOString()),d.push(a);let e=`UPDATE server_functions SET ${c.join(", ")} WHERE id = ?`;this.db.prepare(e).run(...d)}deleteServerFunction(a){this.db.prepare("DELETE FROM server_functions WHERE id = ?").run(a)}listServerFunctions(){return this.db.prepare("SELECT * FROM server_functions ORDER BY name").all().map(a=>this.rowToServerFunction(a))}rowToServerFunction(a){return{id:a.id,name:a.name,description:a.description,code:a.code,enabled:!!a.enabled,createdAt:A(a.created_at),updatedAt:A(a.updated_at)}}createSecret(a,b,c){if(!v())throw Error("Secrets encryption not configured. Set SECRETS_ENCRYPTION_KEY environment variable.");let d=(0,r.A)(),e=new Date().toISOString(),f=w(b);return this.db.prepare(` - INSERT INTO secrets (id, name, encrypted_value, iv, auth_tag, description, created_at, updated_at) - VALUES (?, ?, ?, ?, ?, ?, ?, ?) - `).run(d,a,f.encryptedValue,f.iv,f.authTag,c||null,e,e),d}getSecret(a){let b=this.db.prepare("SELECT * FROM secrets WHERE id = ?").get(a);return b?this.rowToSecret(b):null}getSecretByName(a){let b=this.db.prepare("SELECT * FROM secrets WHERE name = ?").get(a);return b?this.rowToSecret(b):null}updateSecretValue(a,b){if(!v())throw Error("Secrets encryption not configured. Set SECRETS_ENCRYPTION_KEY environment variable.");let c=new Date().toISOString(),d=w(b);this.db.prepare(` - UPDATE secrets - SET encrypted_value = ?, iv = ?, auth_tag = ?, updated_at = ? - WHERE id = ? - `).run(d.encryptedValue,d.iv,d.authTag,c,a)}updateSecretMetadata(a,b){let c=new Date().toISOString();void 0!==b.name&&this.db.prepare("UPDATE secrets SET name = ?, updated_at = ? WHERE id = ?").run(b.name,c,a),void 0!==b.description&&this.db.prepare("UPDATE secrets SET description = ?, updated_at = ? WHERE id = ?").run(b.description,c,a)}deleteSecret(a){this.db.prepare("DELETE FROM secrets WHERE id = ?").run(a)}listSecrets(){return this.db.prepare("SELECT * FROM secrets ORDER BY name").all().map(a=>this.rowToSecret(a))}listSecretsWithValues(){return this.db.prepare("SELECT name, encrypted_value, iv, auth_tag FROM secrets").all().map(a=>({name:a.name,encryptedValue:a.encrypted_value,iv:a.iv,authTag:a.auth_tag}))}rowToSecret(a){return{id:a.id,name:a.name,description:a.description,hasValue:null!==a.encrypted_value&&""!==a.encrypted_value,createdAt:A(a.created_at),updatedAt:A(a.updated_at)}}createSecretPlaceholder(a,b){let c=(0,r.A)(),d=new Date().toISOString();return this.db.prepare(` - INSERT INTO secrets (id, name, encrypted_value, iv, auth_tag, description, created_at, updated_at) - VALUES (?, ?, '', '', '', ?, ?, ?) - `).run(c,a,b||null,d,d),c}createScheduledFunction(a){let b=(0,r.A)(),c=new Date().toISOString();return this.db.prepare(` - INSERT INTO scheduled_functions ( - id, name, description, function_id, cron_expression, timezone, - config, enabled, last_run_at, next_run_at, last_status, last_error, - last_duration_ms, created_at, updated_at - ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) - `).run(b,a.name,a.description??null,a.functionId,a.cronExpression,a.timezone||"UTC",JSON.stringify(a.config||{}),+!!a.enabled,x(a.lastRunAt),x(a.nextRunAt),a.lastStatus??null,a.lastError??null,a.lastDurationMs??null,c,c),b}getScheduledFunction(a){let b=this.db.prepare("SELECT * FROM scheduled_functions WHERE id = ?").get(a);return b?this.rowToScheduledFunction(b):null}getScheduledFunctionByName(a){let b=this.db.prepare("SELECT * FROM scheduled_functions WHERE name = ?").get(a);return b?this.rowToScheduledFunction(b):null}updateScheduledFunction(a,b){let c=[],d=[];if(void 0!==b.name&&(c.push("name = ?"),d.push(b.name)),void 0!==b.description&&(c.push("description = ?"),d.push(b.description)),void 0!==b.functionId&&(c.push("function_id = ?"),d.push(b.functionId)),void 0!==b.cronExpression&&(c.push("cron_expression = ?"),d.push(b.cronExpression)),void 0!==b.timezone&&(c.push("timezone = ?"),d.push(b.timezone)),void 0!==b.config&&(c.push("config = ?"),d.push(JSON.stringify(b.config))),void 0!==b.enabled&&(c.push("enabled = ?"),d.push(+!!b.enabled)),void 0!==b.lastRunAt&&(c.push("last_run_at = ?"),d.push(x(b.lastRunAt))),void 0!==b.nextRunAt&&(c.push("next_run_at = ?"),d.push(x(b.nextRunAt))),void 0!==b.lastStatus&&(c.push("last_status = ?"),d.push(b.lastStatus)),void 0!==b.lastError&&(c.push("last_error = ?"),d.push(b.lastError)),void 0!==b.lastDurationMs&&(c.push("last_duration_ms = ?"),d.push(b.lastDurationMs)),0===c.length)return;c.push("updated_at = ?"),d.push(new Date().toISOString()),d.push(a);let e=`UPDATE scheduled_functions SET ${c.join(", ")} WHERE id = ?`;this.db.prepare(e).run(...d)}deleteScheduledFunction(a){this.db.prepare("DELETE FROM scheduled_functions WHERE id = ?").run(a)}listScheduledFunctions(){return this.db.prepare("SELECT * FROM scheduled_functions ORDER BY name").all().map(a=>this.rowToScheduledFunction(a))}listDueScheduledFunctions(){return this.db.prepare("SELECT * FROM scheduled_functions WHERE enabled = 1 AND next_run_at IS NOT NULL AND next_run_at <= strftime('%Y-%m-%dT%H:%M:%fZ', 'now')").all().map(a=>this.rowToScheduledFunction(a))}rowToScheduledFunction(a){return{id:a.id,name:a.name,description:a.description,functionId:a.function_id,cronExpression:a.cron_expression,timezone:a.timezone,config:z(a.config,{}),enabled:!!a.enabled,lastRunAt:a.last_run_at?A(a.last_run_at):void 0,nextRunAt:a.next_run_at?A(a.next_run_at):void 0,lastStatus:a.last_status,lastError:a.last_error,lastDurationMs:a.last_duration_ms,createdAt:A(a.created_at),updatedAt:A(a.updated_at)}}executeDDL(a){this.db.exec(a)}static{this.SYSTEM_TABLES=["site_info","files","file_tree_nodes","pageviews","interactions","sessions","edge_functions","function_logs","server_functions","secrets","scheduled_functions"]}executeRawSQL(a,b){if(a.trim().toLowerCase().startsWith("select")){let c=this.db.prepare(a),d=b?c.all(...b):c.all();if(0===d.length)return{columns:[],rows:[],rowsAffected:0};let e=Object.keys(d[0]),f=d.map(a=>e.map(b=>a[b]));return{columns:e,rows:f,rowsAffected:0}}{let c=this.db.prepare(a);return{columns:[],rows:[],rowsAffected:(b?c.run(...b):c.run()).changes}}}getTableSchema(){return this.db.prepare(` + `).all()),b}}function K(a){return`"${a.replace(/"/g,'""')}"`}class L{constructor(a){this.projectId=a,this.db=function(a){q(a,"project ID");let b=m.get(a);if(b)return b;let c=n(),d=g().join(c,"projects",a);p(d);let f=g().join(d,"database.sqlite"),h=new(e())(f);return r(h),m.set(a,h),h}(a)}init(){}close(){x(this.projectId)}executeDDL(a){this.db.exec(a)}getTableSchema(){return this.db.prepare(` SELECT name FROM sqlite_master WHERE type = 'table' AND name NOT LIKE 'sqlite_%' ORDER BY name - `).all().map(a=>{let b=B.SYSTEM_TABLES.includes(a.name),c=this.db.prepare(`PRAGMA table_info('${a.name}')`).all(),d=this.db.prepare(`SELECT COUNT(*) as count FROM "${a.name}"`).get();return{name:a.name,columns:c.map(a=>({name:a.name,type:a.type,nullable:!a.notnull,primaryKey:a.pk>0,defaultValue:a.dflt_value??void 0})),rowCount:d.count,isSystemTable:b}})}getTableData(a,b=100,c=0){if(!this.db.prepare(` + `).all().map(a=>{let b=K(a.name),c=this.db.prepare(`PRAGMA table_info(${b})`).all(),d=this.db.prepare(`SELECT COUNT(*) as count FROM ${b}`).get();return{name:a.name,columns:c.map(a=>({name:a.name,type:a.type,nullable:!a.notnull,primaryKey:a.pk>0,defaultValue:a.dflt_value??void 0})),rowCount:d.count,isSystemTable:!1}})}executeRawSQL(a,b){if(a.trim().toLowerCase().startsWith("select")){let c=this.db.prepare(a),d=b?c.all(...b):c.all();if(0===d.length)return{columns:[],rows:[],rowsAffected:0};let e=Object.keys(d[0]),f=d.map(a=>e.map(b=>a[b]));return{columns:e,rows:f,rowsAffected:0}}{let c=this.db.prepare(a);return{columns:[],rows:[],rowsAffected:(b?c.run(...b):c.run()).changes}}}getTableData(a,b=100,c=0){if(!this.db.prepare(` SELECT name FROM sqlite_master WHERE type = 'table' AND name = ? - `).get(a))throw Error(`Table "${a}" does not exist`);let d=this.db.prepare(`SELECT COUNT(*) as count FROM "${a}"`).get(),e=this.db.prepare(`SELECT * FROM "${a}" LIMIT ? OFFSET ?`).all(b,c);if(0===e.length)return{columns:[],rows:[],total:d.count};let f=Object.keys(e[0]),g=e.map(a=>f.map(b=>a[b]));return{columns:f,rows:g,total:d.count}}isSystemTable(a){return B.SYSTEM_TABLES.includes(a)}executeUserQuery(a,b){let c=a.trim().toUpperCase(),d=this.validateNotSystemTable(c);if(d)return{columns:[],rows:[],rowsAffected:0,error:d};try{return this.executeRawSQL(a,b)}catch(a){return{columns:[],rows:[],rowsAffected:0,error:a instanceof Error?a.message:String(a)}}}validateNotSystemTable(a){let b=a.match(/^(DROP|ALTER|TRUNCATE)\s+TABLE\s+(?:IF\s+EXISTS\s+)?["'`]?(\w+)["'`]?/i);if(b){let a=b[2].toLowerCase();if(B.SYSTEM_TABLES.includes(a))return`Cannot modify system table: ${a}`}let c=a.match(/^INSERT\s+INTO\s+["'`]?(\w+)["'`]?/i);if(c){let a=c[1].toLowerCase();if(B.SYSTEM_TABLES.includes(a))return`Cannot insert into system table: ${a}`}let d=a.match(/^UPDATE\s+["'`]?(\w+)["'`]?/i);if(d){let a=d[1].toLowerCase();if(B.SYSTEM_TABLES.includes(a))return`Cannot update system table: ${a}`}let e=a.match(/^DELETE\s+FROM\s+["'`]?(\w+)["'`]?/i);if(e){let a=e[1].toLowerCase();if(B.SYSTEM_TABLES.includes(a))return`Cannot delete from system table: ${a}`}return null}getSchemaForExport(){let a=this.getTableSchema().filter(a=>!a.isSystemTable);if(0===a.length)return"-- No user tables defined\n-- Create tables using the SQL Editor or edge functions\n";let b="-- Database Schema\n";for(let c of(b+=`-- ${a.length} user table(s) - -`,a))b+=`-- Table: ${c.name} (${c.rowCount} rows) -`,b+=`CREATE TABLE ${c.name} ( -`,b+=c.columns.map(a=>{let b=` ${a.name} ${a.type}`;return a.primaryKey&&(b+=" PRIMARY KEY"),a.nullable||(b+=" NOT NULL"),void 0!==a.defaultValue&&(b+=` DEFAULT ${a.defaultValue}`),b}).join(",\n"),b+="\n);\n\n";return b}}let C={enabled:!1,provider:"builtin",privacyMode:!0},D={enabled:!1,bannerPosition:"bottom",bannerStyle:"bar",message:"This site uses cookies to improve your experience.",acceptButtonText:"Accept",declineButtonText:"Decline",mode:"opt-in",blockAnalytics:!0},E={},F=[{id:"initial_schema_v1",up:a=>{a.exec(` + `).get(a))throw Error(`Table "${a}" does not exist`);let d=K(a),e=this.db.prepare(`SELECT COUNT(*) as count FROM ${d}`).get(),f=this.db.prepare(`SELECT * FROM ${d} LIMIT ? OFFSET ?`).all(b,c);if(0===f.length)return{columns:[],rows:[],total:e.count};let g=Object.keys(f[0]),h=f.map(a=>g.map(b=>a[b]));return{columns:g,rows:h,total:e.count}}getSchemaForExport(){let a=this.db.prepare(` + SELECT sql FROM sqlite_master + WHERE type = 'table' AND name NOT LIKE 'sqlite_%' AND sql IS NOT NULL + ORDER BY name + `).all(),b=this.db.prepare(` + SELECT sql FROM sqlite_master + WHERE type = 'index' AND sql IS NOT NULL + ORDER BY name + `).all();return 0===a.length?"":[...a,...b].map(a=>a.sql+";").join("\n\n")+"\n"}}let M={enabled:!1,provider:"builtin",privacyMode:!0},N={enabled:!1,bannerPosition:"bottom",bannerStyle:"bar",message:"This site uses cookies to improve your experience.",acceptButtonText:"Accept",declineButtonText:"Decline",mode:"opt-in",blockAnalytics:!0},O={},P=[{id:"initial_schema_v1",up:a=>{a.exec(` CREATE TABLE IF NOT EXISTS _migrations ( id TEXT PRIMARY KEY, applied_at TEXT NOT NULL DEFAULT (datetime('now')) @@ -500,18 +520,106 @@ CREATE INDEX IF NOT EXISTS idx_request_log_timestamp ON request_log(timestamp) `),a.exec(` CREATE INDEX IF NOT EXISTS idx_request_log_site_id ON request_log(site_id) - `)}}];function G(a,b){if(!a)return b;try{return JSON.parse(a)}catch{return b}}function H(a){return a?new Date(a):new Date}function I(a){return a?"string"==typeof a?a:a.toISOString():null}function J(a){return"string"==typeof a?a:a.toISOString()}class K{async init(){this.initialized||(this.db=function(){if(j)return j;let a=process.env.DATA_DIR||g().join(process.cwd(),"data");m(a);let b=g().join(a,"osws.sqlite");return n(j=new(e())(b)),j}(),await this.runMigrations(),this.initialized=!0)}async close(){for(let[,a]of this.siteDatabases)a.close();for(let[a]of(this.siteDatabases.clear(),k))q(a);if(j){try{j.close()}catch{}j=null}this.db=null,this.initialized=!1}getDB(){if(!this.db)throw Error("SQLiteAdapter not initialized. Call init() first.");return this.db}getOrCreateSiteDB(a){let b=this.siteDatabases.get(a);return b||((b=new B(a)).init(),this.siteDatabases.set(a,b)),b}async enableSiteDatabase(a){this.getDB().prepare("UPDATE sites SET database_enabled = 1 WHERE id = ?").run(a),this.getOrCreateSiteDB(a)}async disableSiteDatabase(a){this.getDB().prepare("UPDATE sites SET database_enabled = 0 WHERE id = ?").run(a);let b=this.siteDatabases.get(a);b&&(b.close(),this.siteDatabases.delete(a)),o(a)&&p(a)}async runMigrations(){let a=this.getDB();a.exec(` + `)}},{id:"rename_sites_to_deployments_v4",up:a=>{a.exec("ALTER TABLE sites RENAME TO deployments"),a.exec("DROP INDEX IF EXISTS idx_sites_project_id"),a.exec(` + CREATE INDEX IF NOT EXISTS idx_deployments_project_id ON deployments(project_id) + `)}},{id:"add_project_server_features_v5",up:a=>{a.exec(` + CREATE TABLE IF NOT EXISTS project_edge_functions ( + id TEXT PRIMARY KEY, + project_id TEXT NOT NULL, + name TEXT NOT NULL, + description TEXT, + code TEXT NOT NULL, + method TEXT NOT NULL DEFAULT 'GET' CHECK(method IN ('GET', 'POST', 'PUT', 'DELETE', 'ANY')), + enabled INTEGER DEFAULT 1, + timeout_ms INTEGER DEFAULT 5000, + created_at TEXT NOT NULL DEFAULT (datetime('now')), + updated_at TEXT NOT NULL DEFAULT (datetime('now')), + UNIQUE(project_id, name), + FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE + ) + `),a.exec("CREATE INDEX IF NOT EXISTS idx_project_edge_functions_project_id ON project_edge_functions(project_id)"),a.exec(` + CREATE TABLE IF NOT EXISTS project_server_functions ( + id TEXT PRIMARY KEY, + project_id TEXT NOT NULL, + name TEXT NOT NULL, + description TEXT, + code TEXT NOT NULL, + enabled INTEGER DEFAULT 1, + created_at TEXT NOT NULL DEFAULT (datetime('now')), + updated_at TEXT NOT NULL DEFAULT (datetime('now')), + UNIQUE(project_id, name), + FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE + ) + `),a.exec("CREATE INDEX IF NOT EXISTS idx_project_server_functions_project_id ON project_server_functions(project_id)"),a.exec(` + CREATE TABLE IF NOT EXISTS project_secrets ( + id TEXT PRIMARY KEY, + project_id TEXT NOT NULL, + name TEXT NOT NULL, + description TEXT, + has_value INTEGER DEFAULT 0, + value TEXT, + created_at TEXT NOT NULL DEFAULT (datetime('now')), + updated_at TEXT NOT NULL DEFAULT (datetime('now')), + UNIQUE(project_id, name), + FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE + ) + `),a.exec("CREATE INDEX IF NOT EXISTS idx_project_secrets_project_id ON project_secrets(project_id)"),a.exec(` + CREATE TABLE IF NOT EXISTS project_scheduled_functions ( + id TEXT PRIMARY KEY, + project_id TEXT NOT NULL, + name TEXT NOT NULL, + description TEXT, + function_id TEXT NOT NULL, + cron_expression TEXT NOT NULL, + timezone TEXT DEFAULT 'UTC', + config TEXT DEFAULT '{}', + enabled INTEGER DEFAULT 1, + last_run_at TEXT, + next_run_at TEXT, + last_status TEXT, + last_error TEXT, + last_duration_ms INTEGER, + created_at TEXT NOT NULL DEFAULT (datetime('now')), + updated_at TEXT NOT NULL DEFAULT (datetime('now')), + UNIQUE(project_id, name), + FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE + ) + `),a.exec("CREATE INDEX IF NOT EXISTS idx_project_scheduled_functions_project_id ON project_scheduled_functions(project_id)")}}];function Q(a,b){if(!a)return b;try{return JSON.parse(a)}catch{return b}}function R(a){return a?new Date(a):new Date}function S(a){return a?"string"==typeof a?a:a.toISOString():null}function T(a){return"string"==typeof a?a:a.toISOString()}class U{async init(){this.initialized||(this.db=function(){if(j)return j;let a=n();p(a);let b=g().join(a,"osws.sqlite");return r(j=new(e())(b)),j}(),await this.runMigrations(),this.initialized=!0)}async close(){for(let[,a]of this.deploymentDatabases)a.close();for(let[,a]of(this.deploymentDatabases.clear(),this.analyticsDatabases))a.close();for(let[,a]of(this.analyticsDatabases.clear(),this.projectDatabases))a.close();for(let[a]of(this.projectDatabases.clear(),k))v(a);for(let[a]of l)w(a);for(let[a]of m)x(a);if(j){try{j.close()}catch{}j=null}this.db=null,this.initialized=!1}getProjectDatabase(a){let b=this.projectDatabases.get(a);return b||((b=new L(a)).init(),this.projectDatabases.set(a,b)),b}getDB(){if(!this.db)throw Error("SQLiteAdapter not initialized. Call init() first.");return this.db}getOrCreateDeploymentDB(a){let b=this.deploymentDatabases.get(a);return b||((b=new I(a)).init(),this.deploymentDatabases.set(a,b)),b}async createEdgeFunction(a){this.getDB().prepare(` + INSERT INTO project_edge_functions (id, project_id, name, description, code, method, enabled, timeout_ms, created_at, updated_at) + VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) + `).run(a.id,a.projectId,a.name,a.description||null,a.code,a.method,+!!a.enabled,a.timeoutMs,T(a.createdAt),T(a.updatedAt))}async getEdgeFunction(a){let b=this.getDB().prepare("SELECT * FROM project_edge_functions WHERE id = ?").get(a);return b?this.rowToEdgeFunction(b):null}async listEdgeFunctions(a){return this.getDB().prepare("SELECT * FROM project_edge_functions WHERE project_id = ? ORDER BY name").all(a).map(a=>this.rowToEdgeFunction(a))}async updateEdgeFunction(a){this.getDB().prepare(` + UPDATE project_edge_functions SET name = ?, description = ?, code = ?, method = ?, enabled = ?, timeout_ms = ?, updated_at = ? + WHERE id = ? + `).run(a.name,a.description||null,a.code,a.method,+!!a.enabled,a.timeoutMs,T(a.updatedAt),a.id)}async deleteEdgeFunction(a){this.getDB().prepare("DELETE FROM project_edge_functions WHERE id = ?").run(a)}rowToEdgeFunction(a){return{id:a.id,projectId:a.project_id,name:a.name,description:a.description||void 0,code:a.code,method:a.method,enabled:1===a.enabled,timeoutMs:a.timeout_ms,createdAt:R(a.created_at),updatedAt:R(a.updated_at)}}async createServerFunction(a){this.getDB().prepare(` + INSERT INTO project_server_functions (id, project_id, name, description, code, enabled, created_at, updated_at) + VALUES (?, ?, ?, ?, ?, ?, ?, ?) + `).run(a.id,a.projectId,a.name,a.description||null,a.code,+!!a.enabled,T(a.createdAt),T(a.updatedAt))}async getServerFunction(a){let b=this.getDB().prepare("SELECT * FROM project_server_functions WHERE id = ?").get(a);return b?this.rowToServerFunction(b):null}async listServerFunctions(a){return this.getDB().prepare("SELECT * FROM project_server_functions WHERE project_id = ? ORDER BY name").all(a).map(a=>this.rowToServerFunction(a))}async updateServerFunction(a){this.getDB().prepare(` + UPDATE project_server_functions SET name = ?, description = ?, code = ?, enabled = ?, updated_at = ? + WHERE id = ? + `).run(a.name,a.description||null,a.code,+!!a.enabled,T(a.updatedAt),a.id)}async deleteServerFunction(a){this.getDB().prepare("DELETE FROM project_server_functions WHERE id = ?").run(a)}rowToServerFunction(a){return{id:a.id,projectId:a.project_id,name:a.name,description:a.description||void 0,code:a.code,enabled:1===a.enabled,createdAt:R(a.created_at),updatedAt:R(a.updated_at)}}async createSecret(a){this.getDB().prepare(` + INSERT INTO project_secrets (id, project_id, name, description, has_value, value, created_at, updated_at) + VALUES (?, ?, ?, ?, ?, ?, ?, ?) + `).run(a.id,a.projectId,a.name,a.description||null,+!!a.hasValue,a.value||null,T(a.createdAt),T(a.updatedAt))}async getSecret(a){let b=this.getDB().prepare("SELECT * FROM project_secrets WHERE id = ?").get(a);return b?this.rowToSecret(b):null}async listSecrets(a){return this.getDB().prepare("SELECT * FROM project_secrets WHERE project_id = ? ORDER BY name").all(a).map(a=>this.rowToSecret(a))}async updateSecret(a){this.getDB().prepare(` + UPDATE project_secrets SET name = ?, description = ?, has_value = ?, value = ?, updated_at = ? + WHERE id = ? + `).run(a.name,a.description||null,+!!a.hasValue,a.value||null,T(a.updatedAt),a.id)}async deleteSecret(a){this.getDB().prepare("DELETE FROM project_secrets WHERE id = ?").run(a)}rowToSecret(a){return{id:a.id,projectId:a.project_id,name:a.name,description:a.description||void 0,hasValue:1===a.has_value,value:a.value||void 0,createdAt:R(a.created_at),updatedAt:R(a.updated_at)}}async createScheduledFunction(a){this.getDB().prepare(` + INSERT INTO project_scheduled_functions (id, project_id, name, description, function_id, cron_expression, timezone, config, enabled, last_run_at, next_run_at, last_status, last_error, last_duration_ms, created_at, updated_at) + VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) + `).run(a.id,a.projectId,a.name,a.description||null,a.functionId,a.cronExpression,a.timezone,JSON.stringify(a.config),+!!a.enabled,S(a.lastRunAt??null),S(a.nextRunAt??null),a.lastStatus||null,a.lastError||null,a.lastDurationMs??null,T(a.createdAt),T(a.updatedAt))}async getScheduledFunction(a){let b=this.getDB().prepare("SELECT * FROM project_scheduled_functions WHERE id = ?").get(a);return b?this.rowToScheduledFunction(b):null}async listScheduledFunctions(a){return this.getDB().prepare("SELECT * FROM project_scheduled_functions WHERE project_id = ? ORDER BY name").all(a).map(a=>this.rowToScheduledFunction(a))}async updateScheduledFunction(a){this.getDB().prepare(` + UPDATE project_scheduled_functions SET name = ?, description = ?, function_id = ?, cron_expression = ?, timezone = ?, config = ?, enabled = ?, last_run_at = ?, next_run_at = ?, last_status = ?, last_error = ?, last_duration_ms = ?, updated_at = ? + WHERE id = ? + `).run(a.name,a.description||null,a.functionId,a.cronExpression,a.timezone,JSON.stringify(a.config),+!!a.enabled,S(a.lastRunAt??null),S(a.nextRunAt??null),a.lastStatus||null,a.lastError||null,a.lastDurationMs??null,T(a.updatedAt),a.id)}async deleteScheduledFunction(a){this.getDB().prepare("DELETE FROM project_scheduled_functions WHERE id = ?").run(a)}rowToScheduledFunction(a){return{id:a.id,projectId:a.project_id,name:a.name,description:a.description||void 0,functionId:a.function_id,cronExpression:a.cron_expression,timezone:a.timezone,config:Q(a.config,{}),enabled:1===a.enabled,lastRunAt:a.last_run_at?R(a.last_run_at):void 0,nextRunAt:a.next_run_at?R(a.next_run_at):void 0,lastStatus:a.last_status||void 0,lastError:a.last_error||void 0,lastDurationMs:a.last_duration_ms??void 0,createdAt:R(a.created_at),updatedAt:R(a.updated_at)}}async enableDeploymentDatabase(a){this.getDB().prepare("UPDATE deployments SET database_enabled = 1 WHERE id = ?").run(a),this.getOrCreateDeploymentDB(a)}async disableDeploymentDatabase(a){this.getDB().prepare("UPDATE deployments SET database_enabled = 0 WHERE id = ?").run(a);let b=this.deploymentDatabases.get(a);b&&(b.close(),this.deploymentDatabases.delete(a)),t(a)&&u(a)}async runMigrations(){let a=this.getDB();a.exec(` CREATE TABLE IF NOT EXISTS _migrations ( id TEXT PRIMARY KEY, applied_at TEXT NOT NULL DEFAULT (datetime('now')) ) - `);let b=new Set(a.prepare("SELECT id FROM _migrations").all().map(a=>a.id)),c=a.transaction(c=>{b.has(c.id)||(c.up(a),a.prepare("INSERT INTO _migrations (id) VALUES (?)").run(c.id))});for(let a of F)c(a)}async createProject(a){this.getDB().prepare(` + `);let b=new Set(a.prepare("SELECT id FROM _migrations").all().map(a=>a.id)),c=a.transaction(c=>{b.has(c.id)||(c.up(a),a.prepare("INSERT INTO _migrations (id) VALUES (?)").run(c.id))});for(let a of P)c(a)}async createProject(a){this.getDB().prepare(` INSERT INTO projects ( id, name, description, created_at, updated_at, last_saved_at, last_saved_checkpoint_id, settings, cost_tracking, preview_image, last_synced_at, server_updated_at ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) - `).run(a.id,a.name,a.description??null,J(a.createdAt),J(a.updatedAt),I(a.lastSavedAt),a.lastSavedCheckpointId??null,JSON.stringify(a.settings??{}),JSON.stringify(a.costTracking??{}),a.previewImage??null,I(a.lastSyncedAt),I(a.serverUpdatedAt))}async getProject(a){let b=this.getDB().prepare("SELECT * FROM projects WHERE id = ?").get(a);return b?this.rowToProject(b):null}async updateProject(a){this.getDB().prepare(` + `).run(a.id,a.name,a.description??null,T(a.createdAt),T(a.updatedAt),S(a.lastSavedAt),a.lastSavedCheckpointId??null,JSON.stringify(a.settings??{}),JSON.stringify(a.costTracking??{}),a.previewImage??null,S(a.lastSyncedAt),S(a.serverUpdatedAt))}async getProject(a){let b=this.getDB().prepare("SELECT * FROM projects WHERE id = ?").get(a);return b?this.rowToProject(b):null}async updateProject(a){this.getDB().prepare(` UPDATE projects SET name = ?, description = ?, @@ -524,17 +632,17 @@ last_synced_at = ?, server_updated_at = ? WHERE id = ? - `).run(a.name,a.description??null,J(a.updatedAt),I(a.lastSavedAt),a.lastSavedCheckpointId??null,JSON.stringify(a.settings??{}),JSON.stringify(a.costTracking??{}),a.previewImage??null,I(a.lastSyncedAt),I(a.serverUpdatedAt),a.id)}async deleteProject(a){this.getDB().prepare("DELETE FROM projects WHERE id = ?").run(a),o(a)&&(this.siteDatabases.delete(a),p(a))}async listProjects(a){return this.getDB().prepare("SELECT * FROM projects ORDER BY updated_at DESC").all().map(a=>this.rowToProject(a))}rowToProject(a){return{id:a.id,name:a.name,description:a.description,createdAt:H(a.created_at),updatedAt:H(a.updated_at),lastSavedAt:a.last_saved_at?H(a.last_saved_at):void 0,lastSavedCheckpointId:a.last_saved_checkpoint_id,settings:G(a.settings,{}),costTracking:G(a.cost_tracking,void 0),previewImage:a.preview_image,lastSyncedAt:a.last_synced_at?H(a.last_synced_at):void 0,serverUpdatedAt:a.server_updated_at?H(a.server_updated_at):void 0}}async createFile(a){let b,c=this.getDB();b=a.content instanceof ArrayBuffer?Buffer.from(a.content).toString("base64"):"string"==typeof a.content?a.content:"",c.prepare(` + `).run(a.name,a.description??null,T(a.updatedAt),S(a.lastSavedAt),a.lastSavedCheckpointId??null,JSON.stringify(a.settings??{}),JSON.stringify(a.costTracking??{}),a.previewImage??null,S(a.lastSyncedAt),S(a.serverUpdatedAt),a.id)}async deleteProject(a){this.getDB().prepare("DELETE FROM projects WHERE id = ?").run(a),t(a)&&(this.deploymentDatabases.delete(a),u(a)),this.projectDatabases.delete(a);q(a,"project ID"),x(a);let b=n(),c=g().join(b,"projects",a);if(i().existsSync(c)){for(let a of i().readdirSync(c))i().unlinkSync(g().join(c,a));i().rmdirSync(c)}}async listProjects(a){return this.getDB().prepare("SELECT * FROM projects ORDER BY updated_at DESC").all().map(a=>this.rowToProject(a))}rowToProject(a){return{id:a.id,name:a.name,description:a.description,createdAt:R(a.created_at),updatedAt:R(a.updated_at),lastSavedAt:a.last_saved_at?R(a.last_saved_at):void 0,lastSavedCheckpointId:a.last_saved_checkpoint_id,settings:Q(a.settings,{}),costTracking:Q(a.cost_tracking,void 0),previewImage:a.preview_image,lastSyncedAt:a.last_synced_at?R(a.last_synced_at):void 0,serverUpdatedAt:a.server_updated_at?R(a.server_updated_at):void 0}}async createFile(a){let b,c=this.getDB();b=a.content instanceof ArrayBuffer?Buffer.from(a.content).toString("base64"):"string"==typeof a.content?a.content:"",c.prepare(` INSERT INTO files ( id, project_id, path, name, type, content, mime_type, size, created_at, updated_at, metadata ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) - `).run(a.id,a.projectId,a.path,a.name,a.type,b,a.mimeType??null,a.size??0,J(a.createdAt),J(a.updatedAt),JSON.stringify(a.metadata??{}))}async getFile(a,b){let c=this.getDB().prepare("SELECT * FROM files WHERE project_id = ? AND path = ?").get(a,b);return c?this.rowToFile(c,a):null}async updateFile(a){let b,c=this.getDB();b=a.content instanceof ArrayBuffer?Buffer.from(a.content).toString("base64"):"string"==typeof a.content?a.content:"",c.prepare(` + `).run(a.id,a.projectId,a.path,a.name,a.type,b,a.mimeType??null,a.size??0,T(a.createdAt),T(a.updatedAt),JSON.stringify(a.metadata??{}))}async getFile(a,b){let c=this.getDB().prepare("SELECT * FROM files WHERE project_id = ? AND path = ?").get(a,b);return c?this.rowToFile(c,a):null}async updateFile(a){let b,c=this.getDB();b=a.content instanceof ArrayBuffer?Buffer.from(a.content).toString("base64"):"string"==typeof a.content?a.content:"",c.prepare(` UPDATE files SET name = ?, type = ?, content = ?, mime_type = ?, size = ?, updated_at = ?, metadata = ? WHERE project_id = ? AND path = ? - `).run(a.name,a.type,b,a.mimeType??null,a.size??0,J(a.updatedAt),JSON.stringify(a.metadata??{}),a.projectId,a.path)}async deleteFile(a,b){this.getDB().prepare("DELETE FROM files WHERE project_id = ? AND path = ?").run(a,b)}async listFiles(a){return this.getDB().prepare("SELECT * FROM files WHERE project_id = ? ORDER BY path").all(a).map(b=>this.rowToFile(b,a))}async deleteProjectFiles(a){this.getDB().prepare("DELETE FROM files WHERE project_id = ?").run(a)}rowToFile(a,b){let c=a.type,d=a.content,e=d;if(("image"===c||"video"===c)&&d)try{let a=d;if(d.startsWith("data:")){let b=d.indexOf(",");-1!==b&&(a=d.slice(b+1))}let b=Buffer.from(a,"base64");e=b.buffer.slice(b.byteOffset,b.byteOffset+b.byteLength)}catch{e=d}return{id:a.id,projectId:b,path:a.path,name:a.name,type:c,content:e,mimeType:a.mime_type,size:a.size,createdAt:H(a.created_at),updatedAt:H(a.updated_at),metadata:G(a.metadata,{})}}async createTreeNode(a){this.getDB().prepare(` + `).run(a.name,a.type,b,a.mimeType??null,a.size??0,T(a.updatedAt),JSON.stringify(a.metadata??{}),a.projectId,a.path)}async deleteFile(a,b){this.getDB().prepare("DELETE FROM files WHERE project_id = ? AND path = ?").run(a,b)}async listFiles(a){return this.getDB().prepare("SELECT * FROM files WHERE project_id = ? ORDER BY path").all(a).map(b=>this.rowToFile(b,a))}async deleteProjectFiles(a){this.getDB().prepare("DELETE FROM files WHERE project_id = ?").run(a)}rowToFile(a,b){let c=a.type,d=a.content,e=d;if(("image"===c||"video"===c)&&d)try{let a=d;if(d.startsWith("data:")){let b=d.indexOf(",");-1!==b&&(a=d.slice(b+1))}let b=Buffer.from(a,"base64");e=b.buffer.slice(b.byteOffset,b.byteOffset+b.byteLength)}catch{e=d}return{id:a.id,projectId:b,path:a.path,name:a.name,type:c,content:e,mimeType:a.mime_type,size:a.size,createdAt:R(a.created_at),updatedAt:R(a.updated_at),metadata:Q(a.metadata,{})}}async createTreeNode(a){this.getDB().prepare(` INSERT INTO file_tree_nodes ( id, project_id, path, name, type, parent_path, is_expanded, metadata ) VALUES (?, ?, ?, ?, ?, ?, ?, ?) @@ -542,7 +650,7 @@ UPDATE file_tree_nodes SET name = ?, type = ?, parent_path = ?, is_expanded = ?, metadata = ? WHERE project_id = ? AND path = ? - `).run(a.name,a.type,a.parentPath??null,+!!a.isExpanded,JSON.stringify(a.metadata??{}),a.projectId,a.path)}async deleteTreeNode(a,b){this.getDB().prepare("DELETE FROM file_tree_nodes WHERE project_id = ? AND path = ?").run(a,b)}async getChildNodes(a,b){let c=this.getDB();return(null===b?c.prepare("SELECT * FROM file_tree_nodes WHERE project_id = ? AND parent_path IS NULL ORDER BY type DESC, name").all(a):c.prepare("SELECT * FROM file_tree_nodes WHERE project_id = ? AND parent_path = ? ORDER BY type DESC, name").all(a,b)).map(b=>this.rowToTreeNode(b,a))}async getAllTreeNodes(a){return this.getDB().prepare("SELECT * FROM file_tree_nodes WHERE project_id = ? ORDER BY path").all(a).map(b=>this.rowToTreeNode(b,a))}rowToTreeNode(a,b){return{id:a.id,projectId:b,path:a.path,name:a.name,type:a.type,parentPath:a.parent_path,isExpanded:!!a.is_expanded,metadata:G(a.metadata,{})}}async saveCustomTemplate(a){let b=this.getDB();b.prepare("SELECT id FROM custom_templates WHERE id = ?").get(a.id)?b.prepare(` + `).run(a.name,a.type,a.parentPath??null,+!!a.isExpanded,JSON.stringify(a.metadata??{}),a.projectId,a.path)}async deleteTreeNode(a,b){this.getDB().prepare("DELETE FROM file_tree_nodes WHERE project_id = ? AND path = ?").run(a,b)}async getChildNodes(a,b){let c=this.getDB();return(null===b?c.prepare("SELECT * FROM file_tree_nodes WHERE project_id = ? AND parent_path IS NULL ORDER BY type DESC, name").all(a):c.prepare("SELECT * FROM file_tree_nodes WHERE project_id = ? AND parent_path = ? ORDER BY type DESC, name").all(a,b)).map(b=>this.rowToTreeNode(b,a))}async getAllTreeNodes(a){return this.getDB().prepare("SELECT * FROM file_tree_nodes WHERE project_id = ? ORDER BY path").all(a).map(b=>this.rowToTreeNode(b,a))}rowToTreeNode(a,b){return{id:a.id,projectId:b,path:a.path,name:a.name,type:a.type,parentPath:a.parent_path,isExpanded:!!a.is_expanded,metadata:Q(a.metadata,{})}}async saveCustomTemplate(a){let b=this.getDB();b.prepare("SELECT id FROM custom_templates WHERE id = ?").get(a.id)?b.prepare(` UPDATE custom_templates SET name = ?, description = ?, version = ?, files = ?, directories = ?, assets = ?, @@ -553,30 +661,30 @@ id, name, description, version, files, directories, assets, metadata, imported_at ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) - `).run(a.id,a.name,a.description,a.version,JSON.stringify(a.files??[]),JSON.stringify(a.directories??[]),JSON.stringify(a.assets??[]),JSON.stringify(a.metadata??{}),J(a.importedAt))}async getCustomTemplate(a){let b=this.getDB().prepare("SELECT * FROM custom_templates WHERE id = ?").get(a);return b?this.rowToTemplate(b):null}async getAllCustomTemplates(){return this.getDB().prepare("SELECT * FROM custom_templates ORDER BY imported_at DESC").all().map(a=>this.rowToTemplate(a))}async deleteCustomTemplate(a){this.getDB().prepare("DELETE FROM custom_templates WHERE id = ?").run(a)}rowToTemplate(a){return{id:a.id,name:a.name,description:a.description,version:a.version,files:G(a.files,[]),directories:G(a.directories,[]),assets:G(a.assets,[]),metadata:G(a.metadata,{license:"personal"}),importedAt:H(a.imported_at)}}async createSkill(a){this.getDB().prepare(` + `).run(a.id,a.name,a.description,a.version,JSON.stringify(a.files??[]),JSON.stringify(a.directories??[]),JSON.stringify(a.assets??[]),JSON.stringify(a.metadata??{}),T(a.importedAt))}async getCustomTemplate(a){let b=this.getDB().prepare("SELECT * FROM custom_templates WHERE id = ?").get(a);return b?this.rowToTemplate(b):null}async getAllCustomTemplates(){return this.getDB().prepare("SELECT * FROM custom_templates ORDER BY imported_at DESC").all().map(a=>this.rowToTemplate(a))}async deleteCustomTemplate(a){this.getDB().prepare("DELETE FROM custom_templates WHERE id = ?").run(a)}rowToTemplate(a){return{id:a.id,name:a.name,description:a.description,version:a.version,files:Q(a.files,[]),directories:Q(a.directories,[]),assets:Q(a.assets,[]),metadata:Q(a.metadata,{license:"personal"}),importedAt:R(a.imported_at)}}async createSkill(a){this.getDB().prepare(` INSERT INTO skills ( id, name, description, content, markdown, is_built_in, created_at, updated_at ) VALUES (?, ?, ?, ?, ?, 0, ?, ?) - `).run(a.id,a.name,a.description,a.content,a.markdown,J(a.createdAt),J(a.updatedAt))}async getSkill(a){let b=this.getDB().prepare("SELECT * FROM skills WHERE id = ?").get(a);return b?this.rowToSkill(b):null}async updateSkill(a){this.getDB().prepare(` + `).run(a.id,a.name,a.description,a.content,a.markdown,T(a.createdAt),T(a.updatedAt))}async getSkill(a){let b=this.getDB().prepare("SELECT * FROM skills WHERE id = ?").get(a);return b?this.rowToSkill(b):null}async updateSkill(a){this.getDB().prepare(` UPDATE skills SET name = ?, description = ?, content = ?, markdown = ?, updated_at = ? WHERE id = ? AND is_built_in = 0 - `).run(a.name,a.description,a.content,a.markdown,J(a.updatedAt),a.id)}async deleteSkill(a){this.getDB().prepare("DELETE FROM skills WHERE id = ? AND is_built_in = 0").run(a)}async getAllSkills(){return this.getDB().prepare("SELECT * FROM skills ORDER BY name").all().map(a=>this.rowToSkill(a))}rowToSkill(a){return{id:a.id,name:a.name,description:a.description,content:a.content,markdown:a.markdown,isBuiltIn:!!a.is_built_in,createdAt:H(a.created_at),updatedAt:H(a.updated_at)}}async createSite(a){this.getDB().prepare(` - INSERT INTO sites ( + `).run(a.name,a.description,a.content,a.markdown,T(a.updatedAt),a.id)}async deleteSkill(a){this.getDB().prepare("DELETE FROM skills WHERE id = ? AND is_built_in = 0").run(a)}async getAllSkills(){return this.getDB().prepare("SELECT * FROM skills ORDER BY name").all().map(a=>this.rowToSkill(a))}rowToSkill(a){return{id:a.id,name:a.name,description:a.description,content:a.content,markdown:a.markdown,isBuiltIn:!!a.is_built_in,createdAt:R(a.created_at),updatedAt:R(a.updated_at)}}async createDeployment(a){this.getDB().prepare(` + INSERT INTO deployments ( id, project_id, name, slug, enabled, under_construction, custom_domain, head_scripts, body_scripts, cdn_links, analytics, seo, compliance, settings_version, last_published_version, preview_image, preview_updated_at, database_enabled, created_at, updated_at, published_at ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) - `).run(a.id,a.projectId,a.name,a.slug??null,+!!a.enabled,+!!a.underConstruction,a.customDomain??null,JSON.stringify(a.headScripts??[]),JSON.stringify(a.bodyScripts??[]),JSON.stringify(a.cdnLinks??[]),JSON.stringify(a.analytics??C),JSON.stringify(a.seo??E),JSON.stringify(a.compliance??D),a.settingsVersion??1,a.lastPublishedVersion??null,a.previewImage??null,I(a.previewUpdatedAt),+!!a.databaseEnabled,J(a.createdAt),J(a.updatedAt),I(a.publishedAt))}async getSite(a){let b=this.getDB().prepare("SELECT * FROM sites WHERE id = ?").get(a);return b?this.rowToSite(b):null}async getSiteBySlug(a){let b=this.getDB().prepare("SELECT * FROM sites WHERE slug = ?").get(a);return b?this.rowToSite(b):null}async listSites(){return this.getDB().prepare("SELECT * FROM sites ORDER BY updated_at DESC").all().map(a=>this.rowToSite(a))}async listSitesByProject(a){return this.getDB().prepare("SELECT * FROM sites WHERE project_id = ? ORDER BY created_at").all(a).map(a=>this.rowToSite(a))}async updateSite(a){this.getDB().prepare(` - UPDATE sites SET + `).run(a.id,a.projectId,a.name,a.slug??null,+!!a.enabled,+!!a.underConstruction,a.customDomain??null,JSON.stringify(a.headScripts??[]),JSON.stringify(a.bodyScripts??[]),JSON.stringify(a.cdnLinks??[]),JSON.stringify(a.analytics??M),JSON.stringify(a.seo??O),JSON.stringify(a.compliance??N),a.settingsVersion??1,a.lastPublishedVersion??null,a.previewImage??null,S(a.previewUpdatedAt),+!!a.databaseEnabled,T(a.createdAt),T(a.updatedAt),S(a.publishedAt))}async getDeployment(a){let b=this.getDB().prepare("SELECT * FROM deployments WHERE id = ?").get(a);return b?this.rowToDeployment(b):null}async getDeploymentBySlug(a){let b=this.getDB().prepare("SELECT * FROM deployments WHERE slug = ?").get(a);return b?this.rowToDeployment(b):null}async listDeployments(){return this.getDB().prepare("SELECT * FROM deployments ORDER BY updated_at DESC").all().map(a=>this.rowToDeployment(a))}async listDeploymentsByProject(a){return this.getDB().prepare("SELECT * FROM deployments WHERE project_id = ? ORDER BY created_at").all(a).map(a=>this.rowToDeployment(a))}async updateDeployment(a){this.getDB().prepare(` + UPDATE deployments SET project_id = ?, name = ?, slug = ?, enabled = ?, under_construction = ?, custom_domain = ?, head_scripts = ?, body_scripts = ?, cdn_links = ?, analytics = ?, seo = ?, compliance = ?, settings_version = ?, last_published_version = ?, preview_image = ?, preview_updated_at = ?, database_enabled = ?, updated_at = ?, published_at = ? WHERE id = ? - `).run(a.projectId,a.name,a.slug??null,+!!a.enabled,+!!a.underConstruction,a.customDomain??null,JSON.stringify(a.headScripts??[]),JSON.stringify(a.bodyScripts??[]),JSON.stringify(a.cdnLinks??[]),JSON.stringify(a.analytics??C),JSON.stringify(a.seo??E),JSON.stringify(a.compliance??D),a.settingsVersion??1,a.lastPublishedVersion??null,a.previewImage??null,I(a.previewUpdatedAt),+!!a.databaseEnabled,J(a.updatedAt),I(a.publishedAt),a.id)}async deleteSite(a){this.getDB().prepare("DELETE FROM sites WHERE id = ?").run(a);let b=this.siteDatabases.get(a);b&&(b.close(),this.siteDatabases.delete(a)),o(a)&&p(a)}rowToSite(a){return{id:a.id,projectId:a.project_id,name:a.name,slug:a.slug,enabled:!!a.enabled,underConstruction:!!a.under_construction,customDomain:a.custom_domain,headScripts:G(a.head_scripts,[]),bodyScripts:G(a.body_scripts,[]),cdnLinks:G(a.cdn_links,[]),analytics:G(a.analytics,C),seo:G(a.seo,E),compliance:G(a.compliance,D),settingsVersion:a.settings_version??1,lastPublishedVersion:a.last_published_version,previewImage:a.preview_image,previewUpdatedAt:a.preview_updated_at?H(a.preview_updated_at):void 0,databaseEnabled:!!a.database_enabled,createdAt:H(a.created_at),updatedAt:H(a.updated_at),publishedAt:a.published_at?H(a.published_at):void 0}}getSiteDatabaseForAnalytics(a){let b=this.getSiteSync(a);return b&&b.databaseEnabled?this.getOrCreateSiteDB(a):null}getSiteSync(a){let b=this.getDB().prepare("SELECT * FROM sites WHERE id = ?").get(a);return b?this.rowToSite(b):null}constructor(){this.db=null,this.initialized=!1,this.siteDatabases=new Map}}}}; \ No newline at end of file + `).run(a.projectId,a.name,a.slug??null,+!!a.enabled,+!!a.underConstruction,a.customDomain??null,JSON.stringify(a.headScripts??[]),JSON.stringify(a.bodyScripts??[]),JSON.stringify(a.cdnLinks??[]),JSON.stringify(a.analytics??M),JSON.stringify(a.seo??O),JSON.stringify(a.compliance??N),a.settingsVersion??1,a.lastPublishedVersion??null,a.previewImage??null,S(a.previewUpdatedAt),+!!a.databaseEnabled,T(a.updatedAt),S(a.publishedAt),a.id)}async deleteDeployment(a){this.getDB().prepare("DELETE FROM deployments WHERE id = ?").run(a);let b=this.deploymentDatabases.get(a);b&&(b.close(),this.deploymentDatabases.delete(a)),t(a)&&u(a)}rowToDeployment(a){return{id:a.id,projectId:a.project_id,name:a.name,slug:a.slug,enabled:!!a.enabled,underConstruction:!!a.under_construction,customDomain:a.custom_domain,headScripts:Q(a.head_scripts,[]),bodyScripts:Q(a.body_scripts,[]),cdnLinks:Q(a.cdn_links,[]),analytics:Q(a.analytics,M),seo:Q(a.seo,O),compliance:Q(a.compliance,N),settingsVersion:a.settings_version??1,lastPublishedVersion:a.last_published_version,previewImage:a.preview_image,previewUpdatedAt:a.preview_updated_at?R(a.preview_updated_at):void 0,databaseEnabled:!!a.database_enabled,createdAt:R(a.created_at),updatedAt:R(a.updated_at),publishedAt:a.published_at?R(a.published_at):void 0}}getDeploymentDatabaseForAnalytics(a){let b=this.getDeploymentSync(a);return b&&b.databaseEnabled?this.getOrCreateDeploymentDB(a):null}getAnalyticsDatabaseInstance(a){let b=this.getDeploymentSync(a);if(!b||!b.databaseEnabled)return null;let c=this.analyticsDatabases.get(a);return c||((c=new J(a)).init(),this.analyticsDatabases.set(a,c)),c}getDeploymentSync(a){let b=this.getDB().prepare("SELECT * FROM deployments WHERE id = ?").get(a);return b?this.rowToDeployment(b):null}constructor(){this.db=null,this.initialized=!1,this.deploymentDatabases=new Map,this.analyticsDatabases=new Map,this.projectDatabases=new Map}}}}; \ No newline at end of file diff --git a/.next/server/chunks/5823.js b/.next/server/chunks/9399.js similarity index 97% rename from .next/server/chunks/5823.js rename to .next/server/chunks/9399.js index dfd56eb33b951b946b15eda7c0dda8733fec2cae..0199d03cae061af9f8194d8068f5a84abcc89529 100644 --- a/.next/server/chunks/5823.js +++ b/.next/server/chunks/9399.js @@ -1 +1 @@ -"use strict";exports.id=5823,exports.ids=[5823],exports.modules={39018:(a,b,c)=>{var d=c(45984),e=c(76442);function f(a,b){this._options=b,this._utc=b.utc||!1,this._tz=this._utc?"UTC":b.tz,this._currentDate=new d(b.currentDate,this._tz),this._startDate=b.startDate?new d(b.startDate,this._tz):null,this._endDate=b.endDate?new d(b.endDate,this._tz):null,this._isIterator=b.iterator||!1,this._hasIterated=!1,this._nthDayOfWeek=b.nthDayOfWeek||0,this.fields=f._freezeFields(a)}f.map=["second","minute","hour","dayOfMonth","month","dayOfWeek"],f.predefined={"@yearly":"0 0 1 1 *","@monthly":"0 0 1 * *","@weekly":"0 0 * * 0","@daily":"0 0 * * *","@hourly":"0 * * * *"},f.constraints=[{min:0,max:59,chars:[]},{min:0,max:59,chars:[]},{min:0,max:23,chars:[]},{min:1,max:31,chars:["L"]},{min:1,max:12,chars:[]},{min:0,max:7,chars:["L"]}],f.daysInMonth=[31,29,31,30,31,30,31,31,30,31,30,31],f.aliases={month:{jan:1,feb:2,mar:3,apr:4,may:5,jun:6,jul:7,aug:8,sep:9,oct:10,nov:11,dec:12},dayOfWeek:{sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6}},f.parseDefaults=["0","*","*","*","*","*"],f.standardValidCharacters=/^[,*\d/-]+$/,f.dayOfWeekValidCharacters=/^[?,*\dL#/-]+$/,f.dayOfMonthValidCharacters=/^[?,*\dL/-]+$/,f.validCharacters={second:f.standardValidCharacters,minute:f.standardValidCharacters,hour:f.standardValidCharacters,dayOfMonth:f.dayOfMonthValidCharacters,month:f.standardValidCharacters,dayOfWeek:f.dayOfWeekValidCharacters},f._isValidConstraintChar=function(a,b){return"string"==typeof b&&a.chars.some(function(a){return b.indexOf(a)>-1})},f._parseField=function(a,b,c){switch(a){case"month":case"dayOfWeek":var d=f.aliases[a];b=b.replace(/[a-z]{3}/gi,function(a){if(void 0!==d[a=a.toLowerCase()])return d[a];throw Error('Validation error, cannot resolve alias "'+a+'"')})}if(!f.validCharacters[a].test(b))throw Error("Invalid characters, got value: "+b);function e(a){var b=a.split("/");if(b.length>2)throw Error("Invalid repeat: "+a);return b.length>1?(b[0]==+b[0]&&(b=[b[0]+"-"+c.max,b[1]]),g(b[0],b[b.length-1])):g(a,1)}function g(b,d){var e=[],f=b.split("-");if(f.length>1){if(f.length<2)return+b;if(!f[0].length){if(!f[1].length)throw Error("Invalid range: "+b);return+b}var g=+f[0],h=+f[1];if(Number.isNaN(g)||Number.isNaN(h)||gc.max)throw Error("Constraint error, got range "+g+"-"+h+" expected range "+c.min+"-"+c.max);if(g>h)throw Error("Invalid range: "+b);var i=+d;if(Number.isNaN(i)||i<=0)throw Error("Constraint error, cannot repeat at every "+i+" time.");"dayOfWeek"===a&&h%7==0&&e.push(0);for(var j=g;j<=h;j++)-1===e.indexOf(j)&&i>0&&i%d==0?(i=1,e.push(j)):i++;return e}return Number.isNaN(+b)?b:+b}return -1!==b.indexOf("*")?b=b.replace(/\*/g,c.min+"-"+c.max):-1!==b.indexOf("?")&&(b=b.replace(/\?/g,c.min+"-"+c.max)),function(b){var d=[];function g(b){if(b instanceof Array)for(var e=0,g=b.length;ec.max)throw Error("Constraint error, got value "+h+" expected range "+c.min+"-"+c.max);d.push(h)}else{if(f._isValidConstraintChar(c,b))return void d.push(b);var i=+b;if(Number.isNaN(i)||ic.max)throw Error("Constraint error, got value "+b+" expected range "+c.min+"-"+c.max);"dayOfWeek"===a&&(i%=7),d.push(i)}}var h=b.split(",");if(!h.every(function(a){return a.length>0}))throw Error("Invalid list value format");if(h.length>1)for(var i=0,j=h.length;ib)throw Error("Invalid explicit day of month definition");return a.dayOfMonth.filter(function(a){return"L"===a||a<=b}).sort(f._sortCompareFn)}},f._freezeFields=function(a){for(var b=0,c=f.map.length;b=a)return b[c]===a;return b[0]===a}function c(a){return a.length>0&&a.some(function(a){return"string"==typeof a&&a.indexOf("L")>=0})}for(var e=(a=a||!1)?"subtract":"add",g=new d(this._currentDate,this._tz),h=this._startDate,i=this._endDate,j=g.getTime(),k=0;k<1e4;){if(k++,a){if(h&&g.getTime()-h.getTime()<0)throw Error("Out of the timespan range")}else if(i&&i.getTime()-g.getTime()<0)throw Error("Out of the timespan range");var l=b(g.getDate(),this.fields.dayOfMonth);c(this.fields.dayOfMonth)&&(l=l||g.isLastDayOfMonth());var m=b(g.getDay(),this.fields.dayOfWeek);c(this.fields.dayOfWeek)&&(m=m||this.fields.dayOfWeek.some(function(a){if(!c([a]))return!1;var b=Number.parseInt(a[0])%7;if(Number.isNaN(b))throw Error("Invalid last weekday of the month expression: "+a);return g.getDay()===b&&g.isLastWeekdayOfMonth()}));var n=this.fields.dayOfMonth.length>=f.daysInMonth[g.getMonth()],o=this.fields.dayOfWeek.length===f.constraints[5].max-f.constraints[5].min+1,p=g.getHours();if(!l&&(!m||o)||!n&&o&&!l||n&&!o&&!m||this._nthDayOfWeek>0&&!function(a,b){if(b<6){if(8>a.getDate()&&1===b)return!0;var c=a.getDate()%7?1:0;return Math.floor((a.getDate()-a.getDate()%7)/7)+c===b}return!1}(g,this._nthDayOfWeek)){this._applyTimezoneShift(g,e,"Day");continue}if(!b(g.getMonth()+1,this.fields.month)){this._applyTimezoneShift(g,e,"Month");continue}if(b(p,this.fields.hour)){if(this._dstEnd===p&&!a){this._dstEnd=null,this._applyTimezoneShift(g,"add","Hour");continue}}else if(this._dstStart!==p){this._dstStart=null,this._applyTimezoneShift(g,e,"Hour");continue}else if(!b(p-1,this.fields.hour)){g[e+"Hour"]();continue}if(!b(g.getMinutes(),this.fields.minute)){this._applyTimezoneShift(g,e,"Minute");continue}if(!b(g.getSeconds(),this.fields.second)){this._applyTimezoneShift(g,e,"Second");continue}if(j===g.getTime()){"add"===e||0===g.getMilliseconds()?this._applyTimezoneShift(g,e,"Second"):g.setMilliseconds(0);continue}break}if(k>=1e4)throw Error("Invalid expression, loop limit exceeded");return this._currentDate=new d(g,this._tz),this._hasIterated=!0,g},f.prototype.next=function(){var a=this._findSchedule();return this._isIterator?{value:a,done:!this.hasNext()}:a},f.prototype.prev=function(){var a=this._findSchedule(!0);return this._isIterator?{value:a,done:!this.hasPrev()}:a},f.prototype.hasNext=function(){var a=this._currentDate,b=this._hasIterated;try{return this._findSchedule(),!0}catch(a){return!1}finally{this._currentDate=a,this._hasIterated=b}},f.prototype.hasPrev=function(){var a=this._currentDate,b=this._hasIterated;try{return this._findSchedule(!0),!0}catch(a){return!1}finally{this._currentDate=a,this._hasIterated=b}},f.prototype.iterate=function(a,b){var c=[];if(a>=0)for(var d=0,e=a;de;d--)try{var f=this.prev();c.push(f),b&&b(f,d)}catch(a){break}return c},f.prototype.reset=function(a){this._currentDate=new d(a||this._options.currentDate)},f.prototype.stringify=function(a){for(var b=[],c=+!a,d=f.map.length;c6)throw Error("Invalid cron expression");for(var h=f.map.length-g.length,i=0,j=f.map.length;ij?i:i-h];if(i1){var d=+c[c.length-1];if(/,/.test(a))throw Error("Constraint error, invalid dayOfWeek `#` and `,` special characters are incompatible");if(/\//.test(a))throw Error("Constraint error, invalid dayOfWeek `#` and `/` special characters are incompatible");if(/-/.test(a))throw Error("Constraint error, invalid dayOfWeek `#` and `-` special characters are incompatible");if(c.length>2||Number.isNaN(d)||d<1||d>5)throw Error("Constraint error, invalid dayOfWeek occurrence number (#)");return b.nthDayOfWeek=d,c[0]}return a}(l):l;e.push(f._parseField(k,m,f.constraints[i]))}}for(var n={},i=0,j=f.map.length;ic.max))throw Error("Constraint error, got value "+g+" expected range "+c.min+"-"+c.max)}}(g,h,f.constraints[d]);for(var i=[],j=-1;++j{var d=c(75806);function e(a,b){var c={zone:b};if(a?a instanceof e?this._date=a._date:a instanceof Date?this._date=d.DateTime.fromJSDate(a,c):"number"==typeof a?this._date=d.DateTime.fromMillis(a,c):"string"==typeof a&&(this._date=d.DateTime.fromISO(a,c),this._date.isValid||(this._date=d.DateTime.fromRFC2822(a,c)),this._date.isValid||(this._date=d.DateTime.fromSQL(a,c)),this._date.isValid||(this._date=d.DateTime.fromFormat(a,"EEE, d MMM yyyy HH:mm:ss",c))):this._date=d.DateTime.local(),!this._date||!this._date.isValid)throw Error("CronDate: unhandled timestamp: "+JSON.stringify(a));b&&b!==this._date.zoneName&&(this._date=this._date.setZone(b))}e.prototype.addYear=function(){this._date=this._date.plus({years:1})},e.prototype.addMonth=function(){this._date=this._date.plus({months:1}).startOf("month")},e.prototype.addDay=function(){this._date=this._date.plus({days:1}).startOf("day")},e.prototype.addHour=function(){var a=this._date;this._date=this._date.plus({hours:1}).startOf("hour"),this._date<=a&&(this._date=this._date.plus({hours:1}))},e.prototype.addMinute=function(){var a=this._date;this._date=this._date.plus({minutes:1}).startOf("minute"),this._date=a&&(this._date=this._date.minus({hours:1}))},e.prototype.subtractMinute=function(){var a=this._date;this._date=this._date.minus({minutes:1}).endOf("minute").startOf("second"),this._date>a&&(this._date=this._date.minus({hours:1}))},e.prototype.subtractSecond=function(){var a=this._date;this._date=this._date.minus({seconds:1}).startOf("second"),this._date>a&&(this._date=this._date.minus({hours:1}))},e.prototype.getDate=function(){return this._date.day},e.prototype.getFullYear=function(){return this._date.year},e.prototype.getDay=function(){var a=this._date.weekday;return 7==a?0:a},e.prototype.getMonth=function(){return this._date.month-1},e.prototype.getHours=function(){return this._date.hour},e.prototype.getMinutes=function(){return this._date.minute},e.prototype.getSeconds=function(){return this._date.second},e.prototype.getMilliseconds=function(){return this._date.millisecond},e.prototype.getTime=function(){return this._date.valueOf()},e.prototype.getUTCDate=function(){return this._getUTC().day},e.prototype.getUTCFullYear=function(){return this._getUTC().year},e.prototype.getUTCDay=function(){var a=this._getUTC().weekday;return 7==a?0:a},e.prototype.getUTCMonth=function(){return this._getUTC().month-1},e.prototype.getUTCHours=function(){return this._getUTC().hour},e.prototype.getUTCMinutes=function(){return this._getUTC().minute},e.prototype.getUTCSeconds=function(){return this._getUTC().second},e.prototype.toISOString=function(){return this._date.toUTC().toISO()},e.prototype.toJSON=function(){return this._date.toJSON()},e.prototype.setDate=function(a){this._date=this._date.set({day:a})},e.prototype.setFullYear=function(a){this._date=this._date.set({year:a})},e.prototype.setDay=function(a){this._date=this._date.set({weekday:a})},e.prototype.setMonth=function(a){this._date=this._date.set({month:a+1})},e.prototype.setHours=function(a){this._date=this._date.set({hour:a})},e.prototype.setMinutes=function(a){this._date=this._date.set({minute:a})},e.prototype.setSeconds=function(a){this._date=this._date.set({second:a})},e.prototype.setMilliseconds=function(a){this._date=this._date.set({millisecond:a})},e.prototype._getUTC=function(){return this._date.toUTC()},e.prototype.toString=function(){return this.toDate().toString()},e.prototype.toDate=function(){return this._date.toJSDate()},e.prototype.isLastDayOfMonth=function(){var a=this._date.plus({days:1}).startOf("day");return this._date.month!==a.month},e.prototype.isLastWeekdayOfMonth=function(){var a=this._date.plus({days:7}).startOf("day");return this._date.month!==a.month},a.exports=e},69049:(a,b,c)=>{var d=c(39018);function e(){}e._parseEntry=function(a){var b=a.split(" ");if(6===b.length)return{interval:d.parse(a)};if(b.length>6)return{interval:d.parse(b.slice(0,6).join(" ")),command:b.slice(6,b.length)};throw Error("Invalid entry: "+a)},e.parseExpression=function(a,b){return d.parse(a,b)},e.fieldsToExpression=function(a,b){return d.fieldsToExpression(a,b)},e.parseString=function(a){for(var b=a.split("\n"),c={variables:{},expressions:[],errors:{}},d=0,f=b.length;d0)if(i.match(/^#/))continue;else if(h=i.match(/^(.*)=(.*)$/))c.variables[h[1]]=h[2];else{var j=null;try{j=e._parseEntry("0 "+i),c.expressions.push(j.interval)}catch(a){c.errors[i]=a}}}return c},e.parseFile=function(a,b){c(29021).readFile(a,function(a,c){return a?void b(a):b(null,e.parseString(c.toString()))})},a.exports=e},75806:(a,b)=>{let c;Object.defineProperty(b,"__esModule",{value:!0});class d extends Error{}class e extends d{constructor(a){super(`Invalid DateTime: ${a.toMessage()}`)}}class f extends d{constructor(a){super(`Invalid Interval: ${a.toMessage()}`)}}class g extends d{constructor(a){super(`Invalid Duration: ${a.toMessage()}`)}}class h extends d{}class i extends d{constructor(a){super(`Invalid unit ${a}`)}}class j extends d{}class k extends d{constructor(){super("Zone is an abstract class")}}let l="numeric",m="short",n="long",o={year:l,month:l,day:l},p={year:l,month:m,day:l},q={year:l,month:m,day:l,weekday:m},r={year:l,month:n,day:l},s={year:l,month:n,day:l,weekday:n},t={hour:l,minute:l},u={hour:l,minute:l,second:l},v={hour:l,minute:l,second:l,timeZoneName:m},w={hour:l,minute:l,second:l,timeZoneName:n},x={hour:l,minute:l,hourCycle:"h23"},y={hour:l,minute:l,second:l,hourCycle:"h23"},z={hour:l,minute:l,second:l,hourCycle:"h23",timeZoneName:m},A={hour:l,minute:l,second:l,hourCycle:"h23",timeZoneName:n},B={year:l,month:l,day:l,hour:l,minute:l},C={year:l,month:l,day:l,hour:l,minute:l,second:l},D={year:l,month:m,day:l,hour:l,minute:l},E={year:l,month:m,day:l,hour:l,minute:l,second:l},F={year:l,month:m,day:l,weekday:m,hour:l,minute:l},G={year:l,month:n,day:l,hour:l,minute:l,timeZoneName:m},H={year:l,month:n,day:l,hour:l,minute:l,second:l,timeZoneName:m},I={year:l,month:n,day:l,weekday:n,hour:l,minute:l,timeZoneName:n},J={year:l,month:n,day:l,weekday:n,hour:l,minute:l,second:l,timeZoneName:n};class K{get type(){throw new k}get name(){throw new k}get ianaName(){return this.name}get isUniversal(){throw new k}offsetName(a,b){throw new k}formatOffset(a,b){throw new k}offset(a){throw new k}equals(a){throw new k}get isValid(){throw new k}}let L=null;class M extends K{static get instance(){return null===L&&(L=new M),L}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(a,{format:b,locale:c}){return a3(a,b,c)}formatOffset(a,b){return a7(this.offset(a),b)}offset(a){return-new Date(a).getTimezoneOffset()}equals(a){return"system"===a.type}get isValid(){return!0}}let N=new Map,O={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6},P=new Map;class Q extends K{static create(a){let b=P.get(a);return void 0===b&&P.set(a,b=new Q(a)),b}static resetCache(){P.clear(),N.clear()}static isValidSpecifier(a){return this.isValidZone(a)}static isValidZone(a){if(!a)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:a}).format(),!0}catch(a){return!1}}constructor(a){super(),this.zoneName=a,this.valid=Q.isValidZone(a)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(a,{format:b,locale:c}){return a3(a,b,c,this.name)}formatOffset(a,b){return a7(this.offset(a),b)}offset(a){var b;let c;if(!this.valid)return NaN;let d=new Date(a);if(isNaN(d))return NaN;let e=(b=this.name,void 0===(c=N.get(b))&&(c=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:b,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),N.set(b,c)),c),[f,g,h,i,j,k,l]=e.formatToParts?function(a,b){let c=a.formatToParts(b),d=[];for(let a=0;a=0?o:1e3+o))/6e4}equals(a){return"iana"===a.type&&a.name===this.name}get isValid(){return this.valid}}let R={},S=new Map;function T(a,b={}){let c=JSON.stringify([a,b]),d=S.get(c);return void 0===d&&(d=new Intl.DateTimeFormat(a,b),S.set(c,d)),d}let U=new Map,V=new Map,W=null,X=new Map;function Y(a){let b=X.get(a);return void 0===b&&(b=new Intl.DateTimeFormat(a).resolvedOptions(),X.set(a,b)),b}let Z=new Map;function $(a,b,c,d){let e=a.listingMode();return"error"===e?null:"en"===e?c(b):d(b)}class _{constructor(a,b,c){this.padTo=c.padTo||0,this.floor=c.floor||!1;let{padTo:d,floor:e,...f}=c;if(!b||Object.keys(f).length>0){let b={useGrouping:!1,...c};c.padTo>0&&(b.minimumIntegerDigits=c.padTo),this.inf=function(a,b={}){let c=JSON.stringify([a,b]),d=U.get(c);return void 0===d&&(d=new Intl.NumberFormat(a,b),U.set(c,d)),d}(a,b)}}format(a){if(!this.inf)return aT(this.floor?Math.floor(a):aX(a,3),this.padTo);{let b=this.floor?Math.floor(a):a;return this.inf.format(b)}}}class aa{constructor(a,b,c){let d;if(this.opts=c,this.originalZone=void 0,this.opts.timeZone)this.dt=a;else if("fixed"===a.zone.type){let b=-1*(a.offset/60),c=b>=0?`Etc/GMT+${b}`:`Etc/GMT${b}`;0!==a.offset&&Q.create(c).valid?(d=c,this.dt=a):(d="UTC",this.dt=0===a.offset?a:a.setZone("UTC").plus({minutes:a.offset}),this.originalZone=a.zone)}else"system"===a.zone.type?this.dt=a:"iana"===a.zone.type?(this.dt=a,d=a.zone.name):(d="UTC",this.dt=a.setZone("UTC").plus({minutes:a.offset}),this.originalZone=a.zone);let e={...this.opts};e.timeZone=e.timeZone||d,this.dtf=T(b,e)}format(){return this.originalZone?this.formatToParts().map(({value:a})=>a).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let a=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?a.map(a=>{if("timeZoneName"!==a.type)return a;{let b=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...a,value:b}}}):a}resolvedOptions(){return this.dtf.resolvedOptions()}}class ab{constructor(a,b,c){this.opts={style:"long",...c},!b&&aN()&&(this.rtf=function(a,b={}){let{base:c,...d}=b,e=JSON.stringify([a,d]),f=V.get(e);return void 0===f&&(f=new Intl.RelativeTimeFormat(a,b),V.set(e,f)),f}(a,c))}format(a,b){return this.rtf?this.rtf.format(a,b):function(a,b,c="always",d=!1){let e={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},f=-1===["hours","minutes","seconds"].indexOf(a);if("auto"===c&&f){let c="days"===a;switch(b){case 1:return c?"tomorrow":`next ${e[a][0]}`;case -1:return c?"yesterday":`last ${e[a][0]}`;case 0:return c?"today":`this ${e[a][0]}`}}let g=Object.is(b,-0)||b<0,h=Math.abs(b),i=1===h,j=e[a],k=d?i?j[1]:j[2]||j[1]:i?e[a][0]:a;return g?`${h} ${k} ago`:`in ${h} ${k}`}(b,a,this.opts.numeric,"long"!==this.opts.style)}formatToParts(a,b){return this.rtf?this.rtf.formatToParts(a,b):[]}}let ac={firstDay:1,minimalDays:4,weekend:[6,7]};class ad{static fromOpts(a){return ad.create(a.locale,a.numberingSystem,a.outputCalendar,a.weekSettings,a.defaultToEN)}static create(a,b,c,d,e=!1){let f=a||av.defaultLocale,g=f||(e?"en-US":W||(W=new Intl.DateTimeFormat().resolvedOptions().locale)),h=b||av.defaultNumberingSystem;return new ad(g,h,c||av.defaultOutputCalendar,aR(d)||av.defaultWeekSettings,f)}static resetCache(){W=null,S.clear(),U.clear(),V.clear(),X.clear(),Z.clear()}static fromObject({locale:a,numberingSystem:b,outputCalendar:c,weekSettings:d}={}){return ad.create(a,b,c,d)}constructor(a,b,c,d,e){let[f,g,h]=function(a){let b=a.indexOf("-x-");-1!==b&&(a=a.substring(0,b));let c=a.indexOf("-u-");if(-1===c)return[a];{let b,d;try{b=T(a).resolvedOptions(),d=a}catch(f){let e=a.substring(0,c);b=T(e).resolvedOptions(),d=e}let{numberingSystem:e,calendar:f}=b;return[d,e,f]}}(a);this.locale=f,this.numberingSystem=b||g||null,this.outputCalendar=c||h||null,this.weekSettings=d,this.intl=function(a,b,c){return(c||b)&&(a.includes("-u-")||(a+="-u"),c&&(a+=`-ca-${c}`),b&&(a+=`-nu-${b}`)),a}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=e,this.fastNumbersCached=null}get fastNumbers(){return null==this.fastNumbersCached&&(this.fastNumbersCached=(!this.numberingSystem||"latn"===this.numberingSystem)&&("latn"===this.numberingSystem||!this.locale||this.locale.startsWith("en")||"latn"===Y(this.locale).numberingSystem)),this.fastNumbersCached}listingMode(){let a=this.isEnglish(),b=(null===this.numberingSystem||"latn"===this.numberingSystem)&&(null===this.outputCalendar||"gregory"===this.outputCalendar);return a&&b?"en":"intl"}clone(a){return a&&0!==Object.getOwnPropertyNames(a).length?ad.create(a.locale||this.specifiedLocale,a.numberingSystem||this.numberingSystem,a.outputCalendar||this.outputCalendar,aR(a.weekSettings)||this.weekSettings,a.defaultToEN||!1):this}redefaultToEN(a={}){return this.clone({...a,defaultToEN:!0})}redefaultToSystem(a={}){return this.clone({...a,defaultToEN:!1})}months(a,b=!1){return $(this,a,bc,()=>{let c="ja"===this.intl||this.intl.startsWith("ja-"),d=(b&=!c)?{month:a,day:"numeric"}:{month:a},e=b?"format":"standalone";if(!this.monthsCache[e][a]){let b=c?a=>this.dtFormatter(a,d).format():a=>this.extract(a,d,"month");this.monthsCache[e][a]=function(a){let b=[];for(let c=1;c<=12;c++){let d=cV.utc(2009,c,1);b.push(a(d))}return b}(b)}return this.monthsCache[e][a]})}weekdays(a,b=!1){return $(this,a,bg,()=>{let c=b?{weekday:a,year:"numeric",month:"long",day:"numeric"}:{weekday:a},d=b?"format":"standalone";return this.weekdaysCache[d][a]||(this.weekdaysCache[d][a]=function(a){let b=[];for(let c=1;c<=7;c++){let d=cV.utc(2016,11,13+c);b.push(a(d))}return b}(a=>this.extract(a,c,"weekday"))),this.weekdaysCache[d][a]})}meridiems(){return $(this,void 0,()=>bh,()=>{if(!this.meridiemCache){let a={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[cV.utc(2016,11,13,9),cV.utc(2016,11,13,19)].map(b=>this.extract(b,a,"dayperiod"))}return this.meridiemCache})}eras(a){return $(this,a,bl,()=>{let b={era:a};return this.eraCache[a]||(this.eraCache[a]=[cV.utc(-40,1,1),cV.utc(2017,1,1)].map(a=>this.extract(a,b,"era"))),this.eraCache[a]})}extract(a,b,c){let d=this.dtFormatter(a,b).formatToParts().find(a=>a.type.toLowerCase()===c);return d?d.value:null}numberFormatter(a={}){return new _(this.intl,a.forceSimple||this.fastNumbers,a)}dtFormatter(a,b={}){return new aa(a,this.intl,b)}relFormatter(a={}){return new ab(this.intl,this.isEnglish(),a)}listFormatter(a={}){return function(a,b={}){let c=JSON.stringify([a,b]),d=R[c];return d||(d=new Intl.ListFormat(a,b),R[c]=d),d}(this.intl,a)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||Y(this.intl).locale.startsWith("en-us")}getWeekSettings(){if(this.weekSettings)return this.weekSettings;if(!aO())return ac;var a=this.locale;let b=Z.get(a);if(!b){let c=new Intl.Locale(a);"minimalDays"in(b="getWeekInfo"in c?c.getWeekInfo():c.weekInfo)||(b={...ac,...b}),Z.set(a,b)}return b}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(a){return this.locale===a.locale&&this.numberingSystem===a.numberingSystem&&this.outputCalendar===a.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let ae=null;class af extends K{static get utcInstance(){return null===ae&&(ae=new af(0)),ae}static instance(a){return 0===a?af.utcInstance:new af(a)}static parseSpecifier(a){if(a){let b=a.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(b)return new af(a4(b[1],b[2]))}return null}constructor(a){super(),this.fixed=a}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${a7(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${a7(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(a,b){return a7(this.fixed,b)}get isUniversal(){return!0}offset(){return this.fixed}equals(a){return"fixed"===a.type&&a.fixed===this.fixed}get isValid(){return!0}}class ag extends K{constructor(a){super(),this.zoneName=a}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function ah(a,b){if(aK(a)||null===a)return b;if(a instanceof K)return a;if("string"==typeof a){let c=a.toLowerCase();return"default"===c?b:"local"===c||"system"===c?M.instance:"utc"===c||"gmt"===c?af.utcInstance:af.parseSpecifier(c)||Q.create(a)}if(aL(a))return af.instance(a);if("object"==typeof a&&"offset"in a&&"function"==typeof a.offset)return a;else return new ag(a)}let ai={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},aj={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},ak=ai.hanidec.replace(/[\[|\]]/g,"").split(""),al=new Map;function am({numberingSystem:a},b=""){let c=a||"latn",d=al.get(c);void 0===d&&(d=new Map,al.set(c,d));let e=d.get(b);return void 0===e&&(e=RegExp(`${ai[c]}${b}`),d.set(b,e)),e}let an=()=>Date.now(),ao="system",ap=null,aq=null,ar=null,as=60,at,au=null;class av{static get now(){return an}static set now(a){an=a}static set defaultZone(a){ao=a}static get defaultZone(){return ah(ao,M.instance)}static get defaultLocale(){return ap}static set defaultLocale(a){ap=a}static get defaultNumberingSystem(){return aq}static set defaultNumberingSystem(a){aq=a}static get defaultOutputCalendar(){return ar}static set defaultOutputCalendar(a){ar=a}static get defaultWeekSettings(){return au}static set defaultWeekSettings(a){au=aR(a)}static get twoDigitCutoffYear(){return as}static set twoDigitCutoffYear(a){as=a%100}static get throwOnInvalid(){return at}static set throwOnInvalid(a){at=a}static resetCaches(){ad.resetCache(),Q.resetCache(),cV.resetCache(),al.clear()}}class aw{constructor(a,b){this.reason=a,this.explanation=b}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}let ax=[0,31,59,90,120,151,181,212,243,273,304,334],ay=[0,31,60,91,121,152,182,213,244,274,305,335];function az(a,b){return new aw("unit out of range",`you specified ${b} (of type ${typeof b}) as a ${a}, which is invalid`)}function aA(a,b,c){let d=new Date(Date.UTC(a,b-1,c));a<100&&a>=0&&d.setUTCFullYear(d.getUTCFullYear()-1900);let e=d.getUTCDay();return 0===e?7:e}function aB(a,b){let c=aY(a)?ay:ax,d=c.findIndex(a=>aa1(d,b,c)?(j=d+1,i=1):j=d,{weekYear:j,weekNumber:i,weekday:h,...a8(a)}}function aE(a,b=4,c=1){let{weekYear:d,weekNumber:e,weekday:f}=a,g=aC(aA(d,1,b),c),h=aZ(d),i=7*e+f-g-7+b,j;i<1?i+=aZ(j=d-1):i>h?(j=d+1,i-=aZ(d)):j=d;let{month:k,day:l}=aB(j,i);return{year:j,month:k,day:l,...a8(a)}}function aF(a){let{year:b,month:c,day:d}=a,e=d+(aY(b)?ay:ax)[c-1];return{year:b,ordinal:e,...a8(a)}}function aG(a){let{year:b,ordinal:c}=a,{month:d,day:e}=aB(b,c);return{year:b,month:d,day:e,...a8(a)}}function aH(a,b){if(!(!aK(a.localWeekday)||!aK(a.localWeekNumber)||!aK(a.localWeekYear)))return{minDaysInFirstWeek:4,startOfWeek:1};if(!aK(a.weekday)||!aK(a.weekNumber)||!aK(a.weekYear))throw new h("Cannot mix locale-based week fields with ISO-based week fields");return aK(a.localWeekday)||(a.weekday=a.localWeekday),aK(a.localWeekNumber)||(a.weekNumber=a.localWeekNumber),aK(a.localWeekYear)||(a.weekYear=a.localWeekYear),delete a.localWeekday,delete a.localWeekNumber,delete a.localWeekYear,{minDaysInFirstWeek:b.getMinDaysInFirstWeek(),startOfWeek:b.getStartOfWeek()}}function aI(a){let b=aM(a.year),c=aS(a.month,1,12),d=aS(a.day,1,a$(a.year,a.month));return b?c?!d&&az("day",a.day):az("month",a.month):az("year",a.year)}function aJ(a){let{hour:b,minute:c,second:d,millisecond:e}=a,f=aS(b,0,23)||24===b&&0===c&&0===d&&0===e,g=aS(c,0,59),h=aS(d,0,59),i=aS(e,0,999);return f?g?h?!i&&az("millisecond",e):az("second",d):az("minute",c):az("hour",b)}function aK(a){return void 0===a}function aL(a){return"number"==typeof a}function aM(a){return"number"==typeof a&&a%1==0}function aN(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(a){return!1}}function aO(){try{return"undefined"!=typeof Intl&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(a){return!1}}function aP(a,b,c){if(0!==a.length)return a.reduce((a,d)=>{let e=[b(d),d];return a&&c(a[0],e[0])===a[0]?a:e},null)[1]}function aQ(a,b){return Object.prototype.hasOwnProperty.call(a,b)}function aR(a){if(null==a)return null;if("object"!=typeof a)throw new j("Week settings must be an object");if(!aS(a.firstDay,1,7)||!aS(a.minimalDays,1,7)||!Array.isArray(a.weekend)||a.weekend.some(a=>!aS(a,1,7)))throw new j("Invalid week settings");return{firstDay:a.firstDay,minimalDays:a.minimalDays,weekend:Array.from(a.weekend)}}function aS(a,b,c){return aM(a)&&a>=b&&a<=c}function aT(a,b=2){return a<0?"-"+(""+-a).padStart(b,"0"):(""+a).padStart(b,"0")}function aU(a){if(!aK(a)&&null!==a&&""!==a)return parseInt(a,10)}function aV(a){if(!aK(a)&&null!==a&&""!==a)return parseFloat(a)}function aW(a){if(!aK(a)&&null!==a&&""!==a)return Math.floor(1e3*parseFloat("0."+a))}function aX(a,b,c="round"){let d=10**b;switch(c){case"expand":return a>0?Math.ceil(a*d)/d:Math.floor(a*d)/d;case"trunc":return Math.trunc(a*d)/d;case"round":return Math.round(a*d)/d;case"floor":return Math.floor(a*d)/d;case"ceil":return Math.ceil(a*d)/d;default:throw RangeError(`Value rounding ${c} is out of range`)}}function aY(a){return a%4==0&&(a%100!=0||a%400==0)}function aZ(a){return aY(a)?366:365}function a$(a,b){var c;let d=(c=b-1)-12*Math.floor(c/12)+1;return 2===d?aY(a+(b-d)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][d-1]}function a_(a){let b=Date.UTC(a.year,a.month-1,a.day,a.hour,a.minute,a.second,a.millisecond);return a.year<100&&a.year>=0&&(b=new Date(b)).setUTCFullYear(a.year,a.month-1,a.day),+b}function a0(a,b,c){return-aC(aA(a,1,b),c)+b-1}function a1(a,b=4,c=1){let d=a0(a,b,c),e=a0(a+1,b,c);return(aZ(a)-d+e)/7}function a2(a){return a>99?a:a>av.twoDigitCutoffYear?1900+a:2e3+a}function a3(a,b,c,d=null){let e=new Date(a),f={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};d&&(f.timeZone=d);let g={timeZoneName:b,...f},h=new Intl.DateTimeFormat(c,g).formatToParts(e).find(a=>"timezonename"===a.type.toLowerCase());return h?h.value:null}function a4(a,b){let c=parseInt(a,10);Number.isNaN(c)&&(c=0);let d=parseInt(b,10)||0,e=c<0||Object.is(c,-0)?-d:d;return 60*c+e}function a5(a){let b=Number(a);if("boolean"==typeof a||""===a||!Number.isFinite(b))throw new j(`Invalid unit value ${a}`);return b}function a6(a,b){let c={};for(let d in a)if(aQ(a,d)){let e=a[d];if(null==e)continue;c[b(d)]=a5(e)}return c}function a7(a,b){let c=Math.trunc(Math.abs(a/60)),d=Math.trunc(Math.abs(a%60)),e=a>=0?"+":"-";switch(b){case"short":return`${e}${aT(c,2)}:${aT(d,2)}`;case"narrow":return`${e}${c}${d>0?`:${d}`:""}`;case"techie":return`${e}${aT(c,2)}${aT(d,2)}`;default:throw RangeError(`Value format ${b} is out of range for property format`)}}function a8(a){return["hour","minute","second","millisecond"].reduce((b,c)=>(b[c]=a[c],b),{})}let a9=["January","February","March","April","May","June","July","August","September","October","November","December"],ba=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],bb=["J","F","M","A","M","J","J","A","S","O","N","D"];function bc(a){switch(a){case"narrow":return[...bb];case"short":return[...ba];case"long":return[...a9];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}let bd=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],be=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],bf=["M","T","W","T","F","S","S"];function bg(a){switch(a){case"narrow":return[...bf];case"short":return[...be];case"long":return[...bd];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}let bh=["AM","PM"],bi=["Before Christ","Anno Domini"],bj=["BC","AD"],bk=["B","A"];function bl(a){switch(a){case"narrow":return[...bk];case"short":return[...bj];case"long":return[...bi];default:return null}}function bm(a,b){let c="";for(let d of a)d.literal?c+=d.val:c+=b(d.val);return c}let bn={D:o,DD:p,DDD:r,DDDD:s,t:t,tt:u,ttt:v,tttt:w,T:x,TT:y,TTT:z,TTTT:A,f:B,ff:D,fff:G,ffff:I,F:C,FF:E,FFF:H,FFFF:J};class bo{static create(a,b={}){return new bo(a,b)}static parseFormat(a){let b=null,c="",d=!1,e=[];for(let f=0;f0||d)&&e.push({literal:d||/^\s+$/.test(c),val:""===c?"'":c}),b=null,c="",d=!d):d||g===b?c+=g:(c.length>0&&e.push({literal:/^\s+$/.test(c),val:c}),c=g,b=g)}return c.length>0&&e.push({literal:d||/^\s+$/.test(c),val:c}),e}static macroTokenToFormatOpts(a){return bn[a]}constructor(a,b){this.opts=b,this.loc=a,this.systemLoc=null}formatWithSystemDefault(a,b){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(a,{...this.opts,...b}).format()}dtFormatter(a,b={}){return this.loc.dtFormatter(a,{...this.opts,...b})}formatDateTime(a,b){return this.dtFormatter(a,b).format()}formatDateTimeParts(a,b){return this.dtFormatter(a,b).formatToParts()}formatInterval(a,b){return this.dtFormatter(a.start,b).dtf.formatRange(a.start.toJSDate(),a.end.toJSDate())}resolvedOptions(a,b){return this.dtFormatter(a,b).resolvedOptions()}num(a,b=0,c){if(this.opts.forceSimple)return aT(a,b);let d={...this.opts};return b>0&&(d.padTo=b),c&&(d.signDisplay=c),this.loc.numberFormatter(d).format(a)}formatDateTimeFromString(a,b){let c="en"===this.loc.listingMode(),d=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,e=(b,c)=>this.loc.extract(a,b,c),f=b=>a.isOffsetFixed&&0===a.offset&&b.allowZ?"Z":a.isValid?a.zone.formatOffset(a.ts,b.format):"",g=(b,d)=>c?bc(b)[a.month-1]:e(d?{month:b}:{month:b,day:"numeric"},"month"),h=(b,d)=>c?bg(b)[a.weekday-1]:e(d?{weekday:b}:{weekday:b,month:"long",day:"numeric"},"weekday"),i=b=>{let c=bo.macroTokenToFormatOpts(b);return c?this.formatWithSystemDefault(a,c):b},j=b=>c?bl(b)[a.year<0?0:1]:e({era:b},"era"),k=b=>{switch(b){case"S":return this.num(a.millisecond);case"u":case"SSS":return this.num(a.millisecond,3);case"s":return this.num(a.second);case"ss":return this.num(a.second,2);case"uu":return this.num(Math.floor(a.millisecond/10),2);case"uuu":return this.num(Math.floor(a.millisecond/100));case"m":return this.num(a.minute);case"mm":return this.num(a.minute,2);case"h":return this.num(a.hour%12==0?12:a.hour%12);case"hh":return this.num(a.hour%12==0?12:a.hour%12,2);case"H":return this.num(a.hour);case"HH":return this.num(a.hour,2);case"Z":return f({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return f({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return f({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return a.zone.offsetName(a.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return a.zone.offsetName(a.ts,{format:"long",locale:this.loc.locale});case"z":return a.zoneName;case"a":return c?bh[a.hour<12?0:1]:e({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return d?e({day:"numeric"},"day"):this.num(a.day);case"dd":return d?e({day:"2-digit"},"day"):this.num(a.day,2);case"c":case"E":return this.num(a.weekday);case"ccc":return h("short",!0);case"cccc":return h("long",!0);case"ccccc":return h("narrow",!0);case"EEE":return h("short",!1);case"EEEE":return h("long",!1);case"EEEEE":return h("narrow",!1);case"L":return d?e({month:"numeric",day:"numeric"},"month"):this.num(a.month);case"LL":return d?e({month:"2-digit",day:"numeric"},"month"):this.num(a.month,2);case"LLL":return g("short",!0);case"LLLL":return g("long",!0);case"LLLLL":return g("narrow",!0);case"M":return d?e({month:"numeric"},"month"):this.num(a.month);case"MM":return d?e({month:"2-digit"},"month"):this.num(a.month,2);case"MMM":return g("short",!1);case"MMMM":return g("long",!1);case"MMMMM":return g("narrow",!1);case"y":return d?e({year:"numeric"},"year"):this.num(a.year);case"yy":return d?e({year:"2-digit"},"year"):this.num(a.year.toString().slice(-2),2);case"yyyy":return d?e({year:"numeric"},"year"):this.num(a.year,4);case"yyyyyy":return d?e({year:"numeric"},"year"):this.num(a.year,6);case"G":return j("short");case"GG":return j("long");case"GGGGG":return j("narrow");case"kk":return this.num(a.weekYear.toString().slice(-2),2);case"kkkk":return this.num(a.weekYear,4);case"W":return this.num(a.weekNumber);case"WW":return this.num(a.weekNumber,2);case"n":return this.num(a.localWeekNumber);case"nn":return this.num(a.localWeekNumber,2);case"ii":return this.num(a.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(a.localWeekYear,4);case"o":return this.num(a.ordinal);case"ooo":return this.num(a.ordinal,3);case"q":return this.num(a.quarter);case"qq":return this.num(a.quarter,2);case"X":return this.num(Math.floor(a.ts/1e3));case"x":return this.num(a.ts);default:return i(b)}};return bm(bo.parseFormat(b),k)}formatDurationFromString(a,b){let c="negativeLargestOnly"===this.opts.signMode?-1:1,d=a=>{switch(a[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},e=(a,b)=>e=>{let f=d(e);if(!f)return e;{let d,g=b.isNegativeDuration&&f!==b.largestUnit?c:1;return d="negativeLargestOnly"===this.opts.signMode&&f!==b.largestUnit?"never":"all"===this.opts.signMode?"always":"auto",this.num(a.get(f)*g,e.length,d)}},f=bo.parseFormat(b),g=f.reduce((a,{literal:b,val:c})=>b?a:a.concat(c),[]),h=a.shiftTo(...g.map(d).filter(a=>a)),i={isNegativeDuration:h<0,largestUnit:Object.keys(h.values)[0]};return bm(f,e(h,i))}}let bp=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function bq(...a){let b=a.reduce((a,b)=>a+b.source,"");return RegExp(`^${b}$`)}function br(...a){return b=>a.reduce(([a,c,d],e)=>{let[f,g,h]=e(b,d);return[{...a,...f},g||c,h]},[{},null,1]).slice(0,2)}function bs(a,...b){if(null==a)return[null,null];for(let[c,d]of b){let b=c.exec(a);if(b)return d(b)}return[null,null]}function bt(...a){return(b,c)=>{let d,e={};for(d=0;dvoid 0!==a&&(b||a&&k)?-a:a;return[{years:m(aV(c)),months:m(aV(d)),weeks:m(aV(e)),days:m(aV(f)),hours:m(aV(g)),minutes:m(aV(h)),seconds:m(aV(i),"-0"===i),milliseconds:m(aW(j),l)}]}let bK={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function bL(a,b,c,d,e,f,g){let h={year:2===b.length?a2(aU(b)):aU(b),month:ba.indexOf(c)+1,day:aU(d),hour:aU(e),minute:aU(f)};return g&&(h.second=aU(g)),a&&(h.weekday=a.length>3?bd.indexOf(a)+1:be.indexOf(a)+1),h}let bM=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function bN(a){let[,b,c,d,e,f,g,h,i,j,k,l]=a;return[bL(b,e,d,c,f,g,h),new af(i?bK[i]:j?0:a4(k,l))]}let bO=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,bP=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,bQ=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function bR(a){let[,b,c,d,e,f,g,h]=a;return[bL(b,e,d,c,f,g,h),af.utcInstance]}function bS(a){let[,b,c,d,e,f,g,h]=a;return[bL(b,h,c,d,e,f,g),af.utcInstance]}let bT=bq(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,by),bU=bq(/(\d{4})-?W(\d\d)(?:-?(\d))?/,by),bV=bq(/(\d{4})-?(\d{3})/,by),bW=bq(bx),bX=br(function(a,b){return[{year:bD(a,b),month:bD(a,b+1,1),day:bD(a,b+2,1)},null,b+3]},bE,bF,bG),bY=br(bz,bE,bF,bG),bZ=br(bA,bE,bF,bG),b$=br(bE,bF,bG),b_=br(bE),b0=bq(/(\d{4})-(\d\d)-(\d\d)/,bC),b1=bq(bB),b2=br(bE,bF,bG),b3="Invalid Duration",b4={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},b5={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...b4},b6={years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:0x1e18558,milliseconds:31556952e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:7889238,milliseconds:7889238e3},months:{weeks:30.436875/7,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...b4},b7=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],b8=b7.slice(0).reverse();function b9(a,b,c=!1){return new cd({values:c?b.values:{...a.values,...b.values||{}},loc:a.loc.clone(b.loc),conversionAccuracy:b.conversionAccuracy||a.conversionAccuracy,matrix:b.matrix||a.matrix})}function ca(a,b){var c;let d=null!=(c=b.milliseconds)?c:0;for(let c of b8.slice(1))b[c]&&(d+=b[c]*a[c].milliseconds);return d}function cb(a,b){let c=0>ca(a,b)?-1:1;b7.reduceRight((d,e)=>{if(aK(b[e]))return d;if(d){let f=b[d]*c,g=a[e][d],h=Math.floor(f/g);b[e]+=h*c,b[d]-=h*g*c}return e},null),b7.reduce((c,d)=>{if(aK(b[d]))return c;if(c){let e=b[c]%1;b[c]-=e,b[d]+=e*a[c][d]}return d},null)}function cc(a){let b={};for(let[c,d]of Object.entries(a))0!==d&&(b[c]=d);return b}class cd{constructor(a){let b="longterm"===a.conversionAccuracy,c=b?b6:b5;a.matrix&&(c=a.matrix),this.values=a.values,this.loc=a.loc||ad.create(),this.conversionAccuracy=b?"longterm":"casual",this.invalid=a.invalid||null,this.matrix=c,this.isLuxonDuration=!0}static fromMillis(a,b){return cd.fromObject({milliseconds:a},b)}static fromObject(a,b={}){if(null==a||"object"!=typeof a)throw new j(`Duration.fromObject: argument expected to be an object, got ${null===a?"null":typeof a}`);return new cd({values:a6(a,cd.normalizeUnit),loc:ad.fromObject(b),conversionAccuracy:b.conversionAccuracy,matrix:b.matrix})}static fromDurationLike(a){if(aL(a))return cd.fromMillis(a);if(cd.isDuration(a))return a;if("object"==typeof a)return cd.fromObject(a);throw new j(`Unknown duration argument ${a} of type ${typeof a}`)}static fromISO(a,b){let[c]=bs(a,[bI,bJ]);return c?cd.fromObject(c,b):cd.invalid("unparsable",`the input "${a}" can't be parsed as ISO 8601`)}static fromISOTime(a,b){let[c]=bs(a,[bH,b_]);return c?cd.fromObject(c,b):cd.invalid("unparsable",`the input "${a}" can't be parsed as ISO 8601`)}static invalid(a,b=null){if(!a)throw new j("need to specify a reason the Duration is invalid");let c=a instanceof aw?a:new aw(a,b);if(!av.throwOnInvalid)return new cd({invalid:c});throw new g(c)}static normalizeUnit(a){let b={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[a?a.toLowerCase():a];if(!b)throw new i(a);return b}static isDuration(a){return a&&a.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(a,b={}){let c={...b,floor:!1!==b.round&&!1!==b.floor};return this.isValid?bo.create(this.loc,c).formatDurationFromString(this,a):b3}toHuman(a={}){if(!this.isValid)return b3;let b=!1!==a.showZeros,c=b7.map(c=>{let d=this.values[c];return aK(d)||0===d&&!b?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...a,unit:c.slice(0,-1)}).format(d)}).filter(a=>a);return this.loc.listFormatter({type:"conjunction",style:a.listStyle||"narrow",...a}).format(c)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let a="P";return 0!==this.years&&(a+=this.years+"Y"),(0!==this.months||0!==this.quarters)&&(a+=this.months+3*this.quarters+"M"),0!==this.weeks&&(a+=this.weeks+"W"),0!==this.days&&(a+=this.days+"D"),(0!==this.hours||0!==this.minutes||0!==this.seconds||0!==this.milliseconds)&&(a+="T"),0!==this.hours&&(a+=this.hours+"H"),0!==this.minutes&&(a+=this.minutes+"M"),(0!==this.seconds||0!==this.milliseconds)&&(a+=aX(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===a&&(a+="T0S"),a}toISOTime(a={}){if(!this.isValid)return null;let b=this.toMillis();return b<0||b>=864e5?null:(a={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...a,includeOffset:!1},cV.fromMillis(b,{zone:"UTC"}).toISOTime(a))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?ca(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(a){if(!this.isValid)return this;let b=cd.fromDurationLike(a),c={};for(let a of b7)(aQ(b.values,a)||aQ(this.values,a))&&(c[a]=b.get(a)+this.get(a));return b9(this,{values:c},!0)}minus(a){if(!this.isValid)return this;let b=cd.fromDurationLike(a);return this.plus(b.negate())}mapUnits(a){if(!this.isValid)return this;let b={};for(let c of Object.keys(this.values))b[c]=a5(a(this.values[c],c));return b9(this,{values:b},!0)}get(a){return this[cd.normalizeUnit(a)]}set(a){return this.isValid?b9(this,{values:{...this.values,...a6(a,cd.normalizeUnit)}}):this}reconfigure({locale:a,numberingSystem:b,conversionAccuracy:c,matrix:d}={}){return b9(this,{loc:this.loc.clone({locale:a,numberingSystem:b}),matrix:d,conversionAccuracy:c})}as(a){return this.isValid?this.shiftTo(a).get(a):NaN}normalize(){if(!this.isValid)return this;let a=this.toObject();return cb(this.matrix,a),b9(this,{values:a},!0)}rescale(){return this.isValid?b9(this,{values:cc(this.normalize().shiftToAll().toObject())},!0):this}shiftTo(...a){let b;if(!this.isValid||0===a.length)return this;a=a.map(a=>cd.normalizeUnit(a));let c={},d={},e=this.toObject();for(let f of b7)if(a.indexOf(f)>=0){b=f;let a=0;for(let b in d)a+=this.matrix[b][f]*d[b],d[b]=0;aL(e[f])&&(a+=e[f]);let g=Math.trunc(a);c[f]=g,d[f]=(1e3*a-1e3*g)/1e3}else aL(e[f])&&(d[f]=e[f]);for(let a in d)0!==d[a]&&(c[b]+=a===b?d[a]:d[a]/this.matrix[b][a]);return cb(this.matrix,c),b9(this,{values:c},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;let a={};for(let b of Object.keys(this.values))a[b]=0===this.values[b]?0:-this.values[b];return b9(this,{values:a},!0)}removeZeros(){return this.isValid?b9(this,{values:cc(this.values)},!0):this}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(a){if(!this.isValid||!a.isValid||!this.loc.equals(a.loc))return!1;for(let d of b7){var b,c;if(b=this.values[d],c=a.values[d],void 0===b||0===b?void 0!==c&&0!==c:b!==c)return!1}return!0}}let ce="Invalid Interval";class cf{constructor(a){this.s=a.start,this.e=a.end,this.invalid=a.invalid||null,this.isLuxonInterval=!0}static invalid(a,b=null){if(!a)throw new j("need to specify a reason the Interval is invalid");let c=a instanceof aw?a:new aw(a,b);if(!av.throwOnInvalid)return new cf({invalid:c});throw new f(c)}static fromDateTimes(a,b){var c,d;let e=cW(a),f=cW(b),g=(c=e,d=f,c&&c.isValid?d&&d.isValid?da}isBefore(a){return!!this.isValid&&this.e<=a}contains(a){return!!this.isValid&&this.s<=a&&this.e>a}set({start:a,end:b}={}){return this.isValid?cf.fromDateTimes(a||this.s,b||this.e):this}splitAt(...a){if(!this.isValid)return[];let b=a.map(cW).filter(a=>this.contains(a)).sort((a,b)=>a.toMillis()-b.toMillis()),c=[],{s:d}=this,e=0;for(;d+this.e?this.e:a;c.push(cf.fromDateTimes(d,f)),d=f,e+=1}return c}splitBy(a){let b=cd.fromDurationLike(a);if(!this.isValid||!b.isValid||0===b.as("milliseconds"))return[];let{s:c}=this,d=1,e,f=[];for(;ca*d));e=+a>+this.e?this.e:a,f.push(cf.fromDateTimes(c,e)),c=e,d+=1}return f}divideEqually(a){return this.isValid?this.splitBy(this.length()/a).slice(0,a):[]}overlaps(a){return this.e>a.s&&this.s=a.e}equals(a){return!!this.isValid&&!!a.isValid&&this.s.equals(a.s)&&this.e.equals(a.e)}intersection(a){if(!this.isValid)return this;let b=this.s>a.s?this.s:a.s,c=this.e=c?null:cf.fromDateTimes(b,c)}union(a){if(!this.isValid)return this;let b=this.sa.e?this.e:a.e;return cf.fromDateTimes(b,c)}static merge(a){let[b,c]=a.sort((a,b)=>a.s-b.s).reduce(([a,b],c)=>b?b.overlaps(c)||b.abutsStart(c)?[a,b.union(c)]:[a.concat([b]),c]:[a,c],[[],null]);return c&&b.push(c),b}static xor(a){let b=null,c=0,d=[],e=a.map(a=>[{time:a.s,type:"s"},{time:a.e,type:"e"}]);for(let a of Array.prototype.concat(...e).sort((a,b)=>a.time-b.time))1===(c+="s"===a.type?1:-1)?b=a.time:(b&&+b!=+a.time&&d.push(cf.fromDateTimes(b,a.time)),b=null);return cf.merge(d)}difference(...a){return cf.xor([this].concat(a)).map(a=>this.intersection(a)).filter(a=>a&&!a.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:ce}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(a=o,b={}){return this.isValid?bo.create(this.s.loc.clone(b),a).formatInterval(this):ce}toISO(a){return this.isValid?`${this.s.toISO(a)}/${this.e.toISO(a)}`:ce}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:ce}toISOTime(a){return this.isValid?`${this.s.toISOTime(a)}/${this.e.toISOTime(a)}`:ce}toFormat(a,{separator:b=" – "}={}){return this.isValid?`${this.s.toFormat(a)}${b}${this.e.toFormat(a)}`:ce}toDuration(a,b){return this.isValid?this.e.diff(this.s,a,b):cd.invalid(this.invalidReason)}mapEndpoints(a){return cf.fromDateTimes(a(this.s),a(this.e))}}class cg{static hasDST(a=av.defaultZone){let b=cV.now().setZone(a).set({month:12});return!a.isUniversal&&b.offset!==b.set({month:6}).offset}static isValidIANAZone(a){return Q.isValidZone(a)}static normalizeZone(a){return ah(a,av.defaultZone)}static getStartOfWeek({locale:a=null,locObj:b=null}={}){return(b||ad.create(a)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:a=null,locObj:b=null}={}){return(b||ad.create(a)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:a=null,locObj:b=null}={}){return(b||ad.create(a)).getWeekendDays().slice()}static months(a="long",{locale:b=null,numberingSystem:c=null,locObj:d=null,outputCalendar:e="gregory"}={}){return(d||ad.create(b,c,e)).months(a)}static monthsFormat(a="long",{locale:b=null,numberingSystem:c=null,locObj:d=null,outputCalendar:e="gregory"}={}){return(d||ad.create(b,c,e)).months(a,!0)}static weekdays(a="long",{locale:b=null,numberingSystem:c=null,locObj:d=null}={}){return(d||ad.create(b,c,null)).weekdays(a)}static weekdaysFormat(a="long",{locale:b=null,numberingSystem:c=null,locObj:d=null}={}){return(d||ad.create(b,c,null)).weekdays(a,!0)}static meridiems({locale:a=null}={}){return ad.create(a).meridiems()}static eras(a="short",{locale:b=null}={}){return ad.create(b,null,"gregory").eras(a)}static features(){return{relative:aN(),localeWeek:aO()}}}function ch(a,b){let c=a=>a.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),d=c(b)-c(a);return Math.floor(cd.fromMillis(d).as("days"))}function ci(a,b=a=>a){return{regex:a,deser:([a])=>b(function(a){let b=parseInt(a,10);if(!isNaN(b))return b;b="";for(let c=0;c=c&&d<=e&&(b+=d-c)}}return parseInt(b,10)}(a))}}let cj=String.fromCharCode(160),ck=`[ ${cj}]`,cl=RegExp(ck,"g");function cm(a){return a.replace(/\./g,"\\.?").replace(cl,ck)}function cn(a){return a.replace(/\./g,"").replace(cl," ").toLowerCase()}function co(a,b){return null===a?null:{regex:RegExp(a.map(cm).join("|")),deser:([c])=>a.findIndex(a=>cn(c)===cn(a))+b}}function cp(a,b){return{regex:a,deser:([,a,b])=>a4(a,b),groups:b}}function cq(a){return{regex:a,deser:([a])=>a}}let cr={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}},cs=null;function ct(a,b){return Array.prototype.concat(...a.map(a=>(function(a,b){if(a.literal)return a;let c=cw(bo.macroTokenToFormatOpts(a.val),b);return null==c||c.includes(void 0)?a:c})(a,b)))}class cu{constructor(a,b){if(this.locale=a,this.format=b,this.tokens=ct(bo.parseFormat(b),a),this.units=this.tokens.map(b=>(function(a,b){let c=am(b),d=am(b,"{2}"),e=am(b,"{3}"),f=am(b,"{4}"),g=am(b,"{6}"),h=am(b,"{1,2}"),i=am(b,"{1,3}"),j=am(b,"{1,6}"),k=am(b,"{1,9}"),l=am(b,"{2,4}"),m=am(b,"{4,6}"),n=a=>({regex:RegExp(a.val.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")),deser:([a])=>a,literal:!0}),o=(o=>{if(a.literal)return n(o);switch(o.val){case"G":return co(b.eras("short"),0);case"GG":return co(b.eras("long"),0);case"y":return ci(j);case"yy":case"kk":return ci(l,a2);case"yyyy":case"kkkk":return ci(f);case"yyyyy":return ci(m);case"yyyyyy":return ci(g);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return ci(h);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return ci(d);case"MMM":return co(b.months("short",!0),1);case"MMMM":return co(b.months("long",!0),1);case"LLL":return co(b.months("short",!1),1);case"LLLL":return co(b.months("long",!1),1);case"o":case"S":return ci(i);case"ooo":case"SSS":return ci(e);case"u":return cq(k);case"uu":return cq(h);case"uuu":case"E":case"c":return ci(c);case"a":return co(b.meridiems(),0);case"EEE":return co(b.weekdays("short",!1),1);case"EEEE":return co(b.weekdays("long",!1),1);case"ccc":return co(b.weekdays("short",!0),1);case"cccc":return co(b.weekdays("long",!0),1);case"Z":case"ZZ":return cp(RegExp(`([+-]${h.source})(?::(${d.source}))?`),2);case"ZZZ":return cp(RegExp(`([+-]${h.source})(${d.source})?`),2);case"z":return cq(/[a-z_+-/]{1,256}?/i);case" ":return cq(/[^\S\n\r]/);default:return n(o)}})(a)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return o.token=a,o})(b,a)),this.disqualifyingUnit=this.units.find(a=>a.invalidReason),!this.disqualifyingUnit){let[a,b]=function(a){let b=a.map(a=>a.regex).reduce((a,b)=>`${a}(${b.source})`,"");return[`^${b}$`,a]}(this.units);this.regex=RegExp(a,"i"),this.handlers=b}}explainFromTokens(a){if(!this.isValid)return{input:a,tokens:this.tokens,invalidReason:this.invalidReason};{let b,c,[d,e]=function(a,b,c){let d=a.match(b);if(!d)return[d,{}];{let a={},b=1;for(let e in c)if(aQ(c,e)){let f=c[e],g=f.groups?f.groups+1:1;!f.literal&&f.token&&(a[f.token.val[0]]=f.deser(d.slice(b,b+g))),b+=g}return[d,a]}}(a,this.regex,this.handlers),[f,g,i]=e?(c=null,aK(e.z)||(c=Q.create(e.z)),aK(e.Z)||(c||(c=new af(e.Z)),b=e.Z),aK(e.q)||(e.M=(e.q-1)*3+1),aK(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),aK(e.u)||(e.S=aW(e.u)),[Object.keys(e).reduce((a,b)=>{let c=(a=>{switch(a){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(b);return c&&(a[c]=e[b]),a},{}),c,b]):[null,null,void 0];if(aQ(e,"a")&&aQ(e,"H"))throw new h("Can't include meridiem when specifying 24-hour format");return{input:a,tokens:this.tokens,regex:this.regex,rawMatches:d,matches:e,result:f,zone:g,specificOffset:i}}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function cv(a,b,c){return new cu(a,c).explainFromTokens(b)}function cw(a,b){if(!a)return null;let c=bo.create(b,a).dtFormatter((cs||(cs=cV.fromMillis(0x16a2e5618e3)),cs)),d=c.formatToParts(),e=c.resolvedOptions();return d.map(b=>(function(a,b,c){let{type:d,value:e}=a;if("literal"===d){let a=/^\s+$/.test(e);return{literal:!a,val:a?" ":e}}let f=b[d],g=d;"hour"===d&&(g=null!=b.hour12?b.hour12?"hour12":"hour24":null!=b.hourCycle?"h11"===b.hourCycle||"h12"===b.hourCycle?"hour12":"hour24":c.hour12?"hour12":"hour24");let h=cr[g];if("object"==typeof h&&(h=h[f]),h)return{literal:!1,val:h}})(b,a,e))}let cx="Invalid DateTime";function cy(a){return new aw("unsupported zone",`the zone "${a.name}" is not supported`)}function cz(a){return null===a.weekData&&(a.weekData=aD(a.c)),a.weekData}function cA(a){return null===a.localWeekData&&(a.localWeekData=aD(a.c,a.loc.getMinDaysInFirstWeek(),a.loc.getStartOfWeek())),a.localWeekData}function cB(a,b){let c={ts:a.ts,zone:a.zone,c:a.c,o:a.o,loc:a.loc,invalid:a.invalid};return new cV({...c,...b,old:c})}function cC(a,b,c){let d=a-60*b*1e3,e=c.offset(d);if(b===e)return[d,b];d-=(e-b)*6e4;let f=c.offset(d);return e===f?[d,e]:[a-60*Math.min(e,f)*1e3,Math.max(e,f)]}function cD(a,b){let c=new Date(a+=60*b*1e3);return{year:c.getUTCFullYear(),month:c.getUTCMonth()+1,day:c.getUTCDate(),hour:c.getUTCHours(),minute:c.getUTCMinutes(),second:c.getUTCSeconds(),millisecond:c.getUTCMilliseconds()}}function cE(a,b){let c=a.o,d=a.c.year+Math.trunc(b.years),e=a.c.month+Math.trunc(b.months)+3*Math.trunc(b.quarters),f={...a.c,year:d,month:e,day:Math.min(a.c.day,a$(d,e))+Math.trunc(b.days)+7*Math.trunc(b.weeks)},g=cd.fromObject({years:b.years-Math.trunc(b.years),quarters:b.quarters-Math.trunc(b.quarters),months:b.months-Math.trunc(b.months),weeks:b.weeks-Math.trunc(b.weeks),days:b.days-Math.trunc(b.days),hours:b.hours,minutes:b.minutes,seconds:b.seconds,milliseconds:b.milliseconds}).as("milliseconds"),[h,i]=cC(a_(f),c,a.zone);return 0!==g&&(h+=g,i=a.zone.offset(h)),{ts:h,o:i}}function cF(a,b,c,d,e,f){let{setZone:g,zone:h}=c;if((!a||0===Object.keys(a).length)&&!b)return cV.invalid(new aw("unparsable",`the input "${e}" can't be parsed as ${d}`));{let d=cV.fromObject(a,{...c,zone:b||h,specificOffset:f});return g?d:d.setZone(h)}}function cG(a,b,c=!0){return a.isValid?bo.create(ad.create("en-US"),{allowZ:c,forceSimple:!0}).formatDateTimeFromString(a,b):null}function cH(a,b,c){let d=a.c.year>9999||a.c.year<0,e="";if(d&&a.c.year>=0&&(e+="+"),e+=aT(a.c.year,d?6:4),"year"===c)return e;if(b){if(e+="-",e+=aT(a.c.month),"month"===c)return e;e+="-"}else if(e+=aT(a.c.month),"month"===c)return e;return e+aT(a.c.day)}function cI(a,b,c,d,e,f,g){let h=!c||0!==a.c.millisecond||0!==a.c.second,i="";switch(g){case"day":case"month":case"year":break;default:if(i+=aT(a.c.hour),"hour"===g)break;if(b){if(i+=":",i+=aT(a.c.minute),"minute"===g)break;h&&(i+=":",i+=aT(a.c.second))}else{if(i+=aT(a.c.minute),"minute"===g)break;h&&(i+=aT(a.c.second))}if("second"===g)break;h&&(!d||0!==a.c.millisecond)&&(i+=".",i+=aT(a.c.millisecond,3))}return e&&(a.isOffsetFixed&&0===a.offset&&!f?i+="Z":a.o<0?(i+="-",i+=aT(Math.trunc(-a.o/60)),i+=":",i+=aT(Math.trunc(-a.o%60))):(i+="+",i+=aT(Math.trunc(a.o/60)),i+=":",i+=aT(Math.trunc(a.o%60)))),f&&(i+="["+a.zone.ianaName+"]"),i}let cJ={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},cK={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},cL={ordinal:1,hour:0,minute:0,second:0,millisecond:0},cM=["year","month","day","hour","minute","second","millisecond"],cN=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],cO=["year","ordinal","hour","minute","second","millisecond"];function cP(a){let b={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[a.toLowerCase()];if(!b)throw new i(a);return b}function cQ(a){switch(a.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return cP(a)}}function cR(a,b){let d,e,f=ah(b.zone,av.defaultZone);if(!f.isValid)return cV.invalid(cy(f));let g=ad.fromObject(b);if(aK(a.year))d=av.now();else{for(let b of cM)aK(a[b])&&(a[b]=cJ[b]);let b=aI(a)||aJ(a);if(b)return cV.invalid(b);let g=function(a){if(void 0===c&&(c=av.now()),"iana"!==a.type)return a.offset(c);let b=a.name,d=cU.get(b);return void 0===d&&(d=a.offset(c),cU.set(b,d)),d}(f);[d,e]=cC(a_(a),g,f)}return new cV({ts:d,zone:f,loc:g,o:e})}function cS(a,b,c){let d=!!aK(c.round)||c.round,e=aK(c.rounding)?"trunc":c.rounding,f=(a,f)=>(a=aX(a,d||c.calendary?0:2,c.calendary?"round":e),b.loc.clone(c).relFormatter(c).format(a,f)),g=d=>c.calendary?b.hasSame(a,d)?0:b.startOf(d).diff(a.startOf(d),d).get(d):b.diff(a,d).get(d);if(c.unit)return f(g(c.unit),c.unit);for(let a of c.units){let b=g(a);if(Math.abs(b)>=1)return f(b,a)}return f(a>b?-0:0,c.units[c.units.length-1])}function cT(a){let b={},c;return a.length>0&&"object"==typeof a[a.length-1]?(b=a[a.length-1],c=Array.from(a).slice(0,a.length-1)):c=Array.from(a),[b,c]}let cU=new Map;class cV{constructor(a){let b=a.zone||av.defaultZone,c=a.invalid||(Number.isNaN(a.ts)?new aw("invalid input"):null)||(b.isValid?null:cy(b));this.ts=aK(a.ts)?av.now():a.ts;let d=null,e=null;if(!c)if(a.old&&a.old.ts===this.ts&&a.old.zone.equals(b))[d,e]=[a.old.c,a.old.o];else{let f=aL(a.o)&&!a.old?a.o:b.offset(this.ts);d=(c=Number.isNaN((d=cD(this.ts,f)).year)?new aw("invalid input"):null)?null:d,e=c?null:f}this._zone=b,this.loc=a.loc||ad.create(),this.invalid=c,this.weekData=null,this.localWeekData=null,this.c=d,this.o=e,this.isLuxonDateTime=!0}static now(){return new cV({})}static local(){let[a,b]=cT(arguments),[c,d,e,f,g,h,i]=b;return cR({year:c,month:d,day:e,hour:f,minute:g,second:h,millisecond:i},a)}static utc(){let[a,b]=cT(arguments),[c,d,e,f,g,h,i]=b;return a.zone=af.utcInstance,cR({year:c,month:d,day:e,hour:f,minute:g,second:h,millisecond:i},a)}static fromJSDate(a,b={}){let c="[object Date]"===Object.prototype.toString.call(a)?a.valueOf():NaN;if(Number.isNaN(c))return cV.invalid("invalid input");let d=ah(b.zone,av.defaultZone);return d.isValid?new cV({ts:c,zone:d,loc:ad.fromObject(b)}):cV.invalid(cy(d))}static fromMillis(a,b={}){if(aL(a))if(a<-864e13||a>864e13)return cV.invalid("Timestamp out of range");else return new cV({ts:a,zone:ah(b.zone,av.defaultZone),loc:ad.fromObject(b)});throw new j(`fromMillis requires a numerical input, but received a ${typeof a} with value ${a}`)}static fromSeconds(a,b={}){if(aL(a))return new cV({ts:1e3*a,zone:ah(b.zone,av.defaultZone),loc:ad.fromObject(b)});throw new j("fromSeconds requires a numerical input")}static fromObject(a,b={}){var c;a=a||{};let d=ah(b.zone,av.defaultZone);if(!d.isValid)return cV.invalid(cy(d));let e=ad.fromObject(b),f=a6(a,cQ),{minDaysInFirstWeek:g,startOfWeek:i}=aH(f,e),j=av.now(),k=aK(b.specificOffset)?d.offset(j):b.specificOffset,l=!aK(f.ordinal),m=!aK(f.year),n=!aK(f.month)||!aK(f.day),o=m||n,p=f.weekYear||f.weekNumber;if((o||l)&&p)throw new h("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(n&&l)throw new h("Can't mix ordinal dates with month/day");let q=p||f.weekday&&!o,r,s,t=cD(j,k);q?(r=cN,s=cK,t=aD(t,g,i)):l?(r=cO,s=cL,t=aF(t)):(r=cM,s=cJ);let u=!1;for(let a of r)aK(f[a])?u?f[a]=s[a]:f[a]=t[a]:u=!0;let v=(q?function(a,b=4,c=1){let d=aM(a.weekYear),e=aS(a.weekNumber,1,a1(a.weekYear,b,c)),f=aS(a.weekday,1,7);return d?e?!f&&az("weekday",a.weekday):az("week",a.weekNumber):az("weekYear",a.weekYear)}(f,g,i):l?function(a){let b=aM(a.year),c=aS(a.ordinal,1,aZ(a.year));return b?!c&&az("ordinal",a.ordinal):az("year",a.year)}(f):aI(f))||aJ(f);if(v)return cV.invalid(v);let[w,x]=(c=q?aE(f,g,i):l?aG(f):f,cC(a_(c),k,d)),y=new cV({ts:w,zone:d,o:x,loc:e});return f.weekday&&o&&a.weekday!==y.weekday?cV.invalid("mismatched weekday",`you can't specify both a weekday of ${f.weekday} and a date of ${y.toISO()}`):y.isValid?y:cV.invalid(y.invalid)}static fromISO(a,b={}){let[c,d]=bs(a,[bT,bX],[bU,bY],[bV,bZ],[bW,b$]);return cF(c,d,b,"ISO 8601",a)}static fromRFC2822(a,b={}){let[c,d]=bs(a.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim(),[bM,bN]);return cF(c,d,b,"RFC 2822",a)}static fromHTTP(a,b={}){let[c,d]=bs(a,[bO,bR],[bP,bR],[bQ,bS]);return cF(c,d,b,"HTTP",b)}static fromFormat(a,b,c={}){if(aK(a)||aK(b))throw new j("fromFormat requires an input string and a format");let{locale:d=null,numberingSystem:e=null}=c,[f,g,h,i]=function(a,b,c){let{result:d,zone:e,specificOffset:f,invalidReason:g}=cv(a,b,c);return[d,e,f,g]}(ad.fromOpts({locale:d,numberingSystem:e,defaultToEN:!0}),a,b);return i?cV.invalid(i):cF(f,g,c,`format ${b}`,a,h)}static fromString(a,b,c={}){return cV.fromFormat(a,b,c)}static fromSQL(a,b={}){let[c,d]=bs(a,[b0,bX],[b1,b2]);return cF(c,d,b,"SQL",a)}static invalid(a,b=null){if(!a)throw new j("need to specify a reason the DateTime is invalid");let c=a instanceof aw?a:new aw(a,b);if(!av.throwOnInvalid)return new cV({invalid:c});throw new e(c)}static isDateTime(a){return a&&a.isLuxonDateTime||!1}static parseFormatForOpts(a,b={}){let c=cw(a,ad.fromObject(b));return c?c.map(a=>a?a.val:null).join(""):null}static expandFormat(a,b={}){return ct(bo.parseFormat(a),ad.fromObject(b)).map(a=>a.val).join("")}static resetCache(){c=void 0,cU.clear()}get(a){return this[a]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?cz(this).weekYear:NaN}get weekNumber(){return this.isValid?cz(this).weekNumber:NaN}get weekday(){return this.isValid?cz(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?cA(this).weekday:NaN}get localWeekNumber(){return this.isValid?cA(this).weekNumber:NaN}get localWeekYear(){return this.isValid?cA(this).weekYear:NaN}get ordinal(){return this.isValid?aF(this.c).ordinal:NaN}get monthShort(){return this.isValid?cg.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?cg.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?cg.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?cg.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let a=a_(this.c),b=this.zone.offset(a-864e5),c=this.zone.offset(a+864e5),d=this.zone.offset(a-6e4*b),e=this.zone.offset(a-6e4*c);if(d===e)return[this];let f=a-6e4*d,g=a-6e4*e,h=cD(f,d),i=cD(g,e);return h.hour===i.hour&&h.minute===i.minute&&h.second===i.second&&h.millisecond===i.millisecond?[cB(this,{ts:f}),cB(this,{ts:g})]:[this]}get isInLeapYear(){return aY(this.year)}get daysInMonth(){return a$(this.year,this.month)}get daysInYear(){return this.isValid?aZ(this.year):NaN}get weeksInWeekYear(){return this.isValid?a1(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?a1(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(a={}){let{locale:b,numberingSystem:c,calendar:d}=bo.create(this.loc.clone(a),a).resolvedOptions(this);return{locale:b,numberingSystem:c,outputCalendar:d}}toUTC(a=0,b={}){return this.setZone(af.instance(a),b)}toLocal(){return this.setZone(av.defaultZone)}setZone(a,{keepLocalTime:b=!1,keepCalendarTime:c=!1}={}){if((a=ah(a,av.defaultZone)).equals(this.zone))return this;{if(!a.isValid)return cV.invalid(cy(a));let e=this.ts;if(b||c){var d;let b=a.offset(this.ts),c=this.toObject();[e]=(d=a,cC(a_(c),b,d))}return cB(this,{ts:e,zone:a})}}reconfigure({locale:a,numberingSystem:b,outputCalendar:c}={}){return cB(this,{loc:this.loc.clone({locale:a,numberingSystem:b,outputCalendar:c})})}setLocale(a){return this.reconfigure({locale:a})}set(a){var b,c,d;let e;if(!this.isValid)return this;let f=a6(a,cQ),{minDaysInFirstWeek:g,startOfWeek:i}=aH(f,this.loc),j=!aK(f.weekYear)||!aK(f.weekNumber)||!aK(f.weekday),k=!aK(f.ordinal),l=!aK(f.year),m=!aK(f.month)||!aK(f.day),n=f.weekYear||f.weekNumber;if((l||m||k)&&n)throw new h("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(m&&k)throw new h("Can't mix ordinal dates with month/day");j?e=aE({...aD(this.c,g,i),...f},g,i):aK(f.ordinal)?(e={...this.toObject(),...f},aK(f.day)&&(e.day=Math.min(a$(e.year,e.month),e.day))):e=aG({...aF(this.c),...f});let[o,p]=(b=e,c=this.o,d=this.zone,cC(a_(b),c,d));return cB(this,{ts:o,o:p})}plus(a){return this.isValid?cB(this,cE(this,cd.fromDurationLike(a))):this}minus(a){return this.isValid?cB(this,cE(this,cd.fromDurationLike(a).negate())):this}startOf(a,{useLocaleWeeks:b=!1}={}){if(!this.isValid)return this;let c={},d=cd.normalizeUnit(a);switch(d){case"years":c.month=1;case"quarters":case"months":c.day=1;case"weeks":case"days":c.hour=0;case"hours":c.minute=0;case"minutes":c.second=0;case"seconds":c.millisecond=0}if("weeks"===d)if(b){let a=this.loc.getStartOfWeek(),{weekday:b}=this;b=3&&(h+="T"),h+=cI(this,g,b,c,d,e,f)}toISODate({format:a="extended",precision:b="day"}={}){return this.isValid?cH(this,"extended"===a,cP(b)):null}toISOWeekDate(){return cG(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:a=!1,suppressSeconds:b=!1,includeOffset:c=!0,includePrefix:d=!1,extendedZone:e=!1,format:f="extended",precision:g="milliseconds"}={}){return this.isValid?(g=cP(g),(d&&cM.indexOf(g)>=3?"T":"")+cI(this,"extended"===f,b,a,c,e,g)):null}toRFC2822(){return cG(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return cG(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?cH(this,!0):null}toSQLTime({includeOffset:a=!0,includeZone:b=!1,includeOffsetSpace:c=!0}={}){let d="HH:mm:ss.SSS";return(b||a)&&(c&&(d+=" "),b?d+="z":a&&(d+="ZZ")),cG(this,d,!0)}toSQL(a={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(a)}`:null}toString(){return this.isValid?this.toISO():cx}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(a={}){if(!this.isValid)return{};let b={...this.c};return a.includeConfig&&(b.outputCalendar=this.outputCalendar,b.numberingSystem=this.loc.numberingSystem,b.locale=this.loc.locale),b}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(a,b="milliseconds",c={}){if(!this.isValid||!a.isValid)return cd.invalid("created by diffing an invalid DateTime");let d={locale:this.locale,numberingSystem:this.numberingSystem,...c},e=(Array.isArray(b)?b:[b]).map(cd.normalizeUnit),f=a.valueOf()>this.valueOf(),g=function(a,b,c,d){let[e,f,g,h]=function(a,b,c){let d,e,f={},g=a;for(let[h,i]of[["years",(a,b)=>b.year-a.year],["quarters",(a,b)=>b.quarter-a.quarter+(b.year-a.year)*4],["months",(a,b)=>b.month-a.month+(b.year-a.year)*12],["weeks",(a,b)=>{let c=ch(a,b);return(c-c%7)/7}],["days",ch]])c.indexOf(h)>=0&&(d=h,f[h]=i(a,b),(e=g.plus(f))>b?(f[h]--,(a=g.plus(f))>b&&(e=a,f[h]--,a=g.plus(f))):a=e);return[a,f,e,d]}(a,b,c),i=b-e,j=c.filter(a=>["hours","minutes","seconds","milliseconds"].indexOf(a)>=0);0===j.length&&(g0?cd.fromMillis(i,d).shiftTo(...j).plus(k):k}(f?this:a,f?a:this,e,d);return f?g.negate():g}diffNow(a="milliseconds",b={}){return this.diff(cV.now(),a,b)}until(a){return this.isValid?cf.fromDateTimes(this,a):this}hasSame(a,b,c){if(!this.isValid)return!1;let d=a.valueOf(),e=this.setZone(a.zone,{keepLocalTime:!0});return e.startOf(b,c)<=d&&d<=e.endOf(b,c)}equals(a){return this.isValid&&a.isValid&&this.valueOf()===a.valueOf()&&this.zone.equals(a.zone)&&this.loc.equals(a.loc)}toRelative(a={}){if(!this.isValid)return null;let b=a.base||cV.fromObject({},{zone:this.zone}),c=a.padding?thisa.valueOf(),Math.min)}static max(...a){if(!a.every(cV.isDateTime))throw new j("max requires all arguments be DateTimes");return aP(a,a=>a.valueOf(),Math.max)}static fromFormatExplain(a,b,c={}){let{locale:d=null,numberingSystem:e=null}=c;return cv(ad.fromOpts({locale:d,numberingSystem:e,defaultToEN:!0}),a,b)}static fromStringExplain(a,b,c={}){return cV.fromFormatExplain(a,b,c)}static buildFormatParser(a,b={}){let{locale:c=null,numberingSystem:d=null}=b;return new cu(ad.fromOpts({locale:c,numberingSystem:d,defaultToEN:!0}),a)}static fromFormatParser(a,b,c={}){if(aK(a)||aK(b))throw new j("fromFormatParser requires an input string and a format parser");let{locale:d=null,numberingSystem:e=null}=c,f=ad.fromOpts({locale:d,numberingSystem:e,defaultToEN:!0});if(!f.equals(b.locale))throw new j(`fromFormatParser called with a locale of ${f}, but the format parser was created for ${b.locale}`);let{result:g,zone:h,specificOffset:i,invalidReason:k}=b.explainFromTokens(a);return k?cV.invalid(k):cF(g,h,c,`format ${b.format}`,a,i)}static get DATE_SHORT(){return o}static get DATE_MED(){return p}static get DATE_MED_WITH_WEEKDAY(){return q}static get DATE_FULL(){return r}static get DATE_HUGE(){return s}static get TIME_SIMPLE(){return t}static get TIME_WITH_SECONDS(){return u}static get TIME_WITH_SHORT_OFFSET(){return v}static get TIME_WITH_LONG_OFFSET(){return w}static get TIME_24_SIMPLE(){return x}static get TIME_24_WITH_SECONDS(){return y}static get TIME_24_WITH_SHORT_OFFSET(){return z}static get TIME_24_WITH_LONG_OFFSET(){return A}static get DATETIME_SHORT(){return B}static get DATETIME_SHORT_WITH_SECONDS(){return C}static get DATETIME_MED(){return D}static get DATETIME_MED_WITH_SECONDS(){return E}static get DATETIME_MED_WITH_WEEKDAY(){return F}static get DATETIME_FULL(){return G}static get DATETIME_FULL_WITH_SECONDS(){return H}static get DATETIME_HUGE(){return I}static get DATETIME_HUGE_WITH_SECONDS(){return J}}function cW(a){if(cV.isDateTime(a))return a;if(a&&a.valueOf&&aL(a.valueOf()))return cV.fromJSDate(a);if(a&&"object"==typeof a)return cV.fromObject(a);throw new j(`Unknown datetime argument: ${a}, of type ${typeof a}`)}b.DateTime=cV,b.Duration=cd,b.FixedOffsetZone=af,b.IANAZone=Q,b.Info=cg,b.Interval=cf,b.InvalidZone=ag,b.Settings=av,b.SystemZone=M,b.VERSION="3.7.2",b.Zone=K},76442:(a,b,c)=>{var d=c(91893);a.exports=function(a,b,c){var e=d(a);if(1===e.length){var f=e[0],g=f.step;if(1===g&&f.start===b&&f.end===c)return"*";if(1!==g&&f.start===b&&f.end===c-g+1)return"*/"+g}for(var h=[],i=0,j=e.length;ik.end?h=h.concat(Array.from({length:k.end-k.start+1}).map(function(a,b){var c=k.start+b;return(c-k.start)%k.step==0?c:null}).filter(function(a){return null!=a})):k.end===c-k.step+1?h.push(k.start+"/"+k.step):h.push(k.start+"-"+k.end+"/"+k.step)}return h.join(",")}},78204:(a,b,c)=>{c.d(b,{createSiteSchedulerTask:()=>g});var d=c(69049),e=c.n(d);let f=new Set;function g(){return{type:"site-scheduled-functions",execute:i,enabled:!0}}function h(a,b){return e().parseExpression(a,{tz:b,currentDate:new Date}).next().toDate()}async function i(){let{listSiteIds:a}=await c.e(3614).then(c.bind(c,13614));for(let b of a())try{await j(b)}catch(a){console.error(`[Scheduler] Error processing site ${b}:`,a)}}async function j(a){let{getSQLiteAdapter:b}=await c.e(8704).then(c.bind(c,28704)),d=b();await d.init();let e=d.getSiteDatabaseForAnalytics(a);if(e)for(let b of e.listDueScheduledFunctions()){let c=`${a}:${b.id}`;if(f.has(c))continue;let d=e.getFunction(b.functionId);if(!d||!d.enabled){e.updateScheduledFunction(b.id,{nextRunAt:h(b.cronExpression,b.timezone)});continue}f.add(c),k(e,b,d,c).finally(()=>{f.delete(c)})}}async function k(a,b,d,e){try{let e={method:"POST",headers:{"x-trigger":"cron","x-schedule-name":b.name},body:b.config,path:"/_cron/"+b.name,params:{},query:{}},{executeFunction:f}=await c.e(5225).then(c.bind(c,47606)),g=Date.now(),i=await f(d,e,a),j=Date.now()-g;a.logFunctionExecution(d.id,{method:"CRON",path:"/_cron/"+b.name,statusCode:i.response.status,durationMs:j,error:i.error}),a.updateScheduledFunction(b.id,{lastRunAt:new Date,nextRunAt:h(b.cronExpression,b.timezone),lastStatus:i.error?"error":"success",lastError:i.error||void 0,lastDurationMs:j})}catch(d){let c=d instanceof Error?d.message:String(d);console.error(`[Scheduler] Failed to execute ${e}:`,c);try{a.updateScheduledFunction(b.id,{lastRunAt:new Date,nextRunAt:h(b.cronExpression,b.timezone),lastStatus:"error",lastError:c})}catch(a){console.error(`[Scheduler] Failed to update state for ${e}:`,a)}}}},91893:a=>{function b(a){return{start:a,count:1}}function c(a,b){a.end=b,a.step=b-a.start,a.count=2}function d(a,c,d){c&&(2===c.count?(a.push(b(c.start)),a.push(b(c.end))):a.push(c)),d&&a.push(d)}a.exports=function(a){for(var e=[],f=void 0,g=0;g{var d=c(45984),e=c(76442);function f(a,b){this._options=b,this._utc=b.utc||!1,this._tz=this._utc?"UTC":b.tz,this._currentDate=new d(b.currentDate,this._tz),this._startDate=b.startDate?new d(b.startDate,this._tz):null,this._endDate=b.endDate?new d(b.endDate,this._tz):null,this._isIterator=b.iterator||!1,this._hasIterated=!1,this._nthDayOfWeek=b.nthDayOfWeek||0,this.fields=f._freezeFields(a)}f.map=["second","minute","hour","dayOfMonth","month","dayOfWeek"],f.predefined={"@yearly":"0 0 1 1 *","@monthly":"0 0 1 * *","@weekly":"0 0 * * 0","@daily":"0 0 * * *","@hourly":"0 * * * *"},f.constraints=[{min:0,max:59,chars:[]},{min:0,max:59,chars:[]},{min:0,max:23,chars:[]},{min:1,max:31,chars:["L"]},{min:1,max:12,chars:[]},{min:0,max:7,chars:["L"]}],f.daysInMonth=[31,29,31,30,31,30,31,31,30,31,30,31],f.aliases={month:{jan:1,feb:2,mar:3,apr:4,may:5,jun:6,jul:7,aug:8,sep:9,oct:10,nov:11,dec:12},dayOfWeek:{sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6}},f.parseDefaults=["0","*","*","*","*","*"],f.standardValidCharacters=/^[,*\d/-]+$/,f.dayOfWeekValidCharacters=/^[?,*\dL#/-]+$/,f.dayOfMonthValidCharacters=/^[?,*\dL/-]+$/,f.validCharacters={second:f.standardValidCharacters,minute:f.standardValidCharacters,hour:f.standardValidCharacters,dayOfMonth:f.dayOfMonthValidCharacters,month:f.standardValidCharacters,dayOfWeek:f.dayOfWeekValidCharacters},f._isValidConstraintChar=function(a,b){return"string"==typeof b&&a.chars.some(function(a){return b.indexOf(a)>-1})},f._parseField=function(a,b,c){switch(a){case"month":case"dayOfWeek":var d=f.aliases[a];b=b.replace(/[a-z]{3}/gi,function(a){if(void 0!==d[a=a.toLowerCase()])return d[a];throw Error('Validation error, cannot resolve alias "'+a+'"')})}if(!f.validCharacters[a].test(b))throw Error("Invalid characters, got value: "+b);function e(a){var b=a.split("/");if(b.length>2)throw Error("Invalid repeat: "+a);return b.length>1?(b[0]==+b[0]&&(b=[b[0]+"-"+c.max,b[1]]),g(b[0],b[b.length-1])):g(a,1)}function g(b,d){var e=[],f=b.split("-");if(f.length>1){if(f.length<2)return+b;if(!f[0].length){if(!f[1].length)throw Error("Invalid range: "+b);return+b}var g=+f[0],h=+f[1];if(Number.isNaN(g)||Number.isNaN(h)||gc.max)throw Error("Constraint error, got range "+g+"-"+h+" expected range "+c.min+"-"+c.max);if(g>h)throw Error("Invalid range: "+b);var i=+d;if(Number.isNaN(i)||i<=0)throw Error("Constraint error, cannot repeat at every "+i+" time.");"dayOfWeek"===a&&h%7==0&&e.push(0);for(var j=g;j<=h;j++)-1===e.indexOf(j)&&i>0&&i%d==0?(i=1,e.push(j)):i++;return e}return Number.isNaN(+b)?b:+b}return -1!==b.indexOf("*")?b=b.replace(/\*/g,c.min+"-"+c.max):-1!==b.indexOf("?")&&(b=b.replace(/\?/g,c.min+"-"+c.max)),function(b){var d=[];function g(b){if(b instanceof Array)for(var e=0,g=b.length;ec.max)throw Error("Constraint error, got value "+h+" expected range "+c.min+"-"+c.max);d.push(h)}else{if(f._isValidConstraintChar(c,b))return void d.push(b);var i=+b;if(Number.isNaN(i)||ic.max)throw Error("Constraint error, got value "+b+" expected range "+c.min+"-"+c.max);"dayOfWeek"===a&&(i%=7),d.push(i)}}var h=b.split(",");if(!h.every(function(a){return a.length>0}))throw Error("Invalid list value format");if(h.length>1)for(var i=0,j=h.length;ib)throw Error("Invalid explicit day of month definition");return a.dayOfMonth.filter(function(a){return"L"===a||a<=b}).sort(f._sortCompareFn)}},f._freezeFields=function(a){for(var b=0,c=f.map.length;b=a)return b[c]===a;return b[0]===a}function c(a){return a.length>0&&a.some(function(a){return"string"==typeof a&&a.indexOf("L")>=0})}for(var e=(a=a||!1)?"subtract":"add",g=new d(this._currentDate,this._tz),h=this._startDate,i=this._endDate,j=g.getTime(),k=0;k<1e4;){if(k++,a){if(h&&g.getTime()-h.getTime()<0)throw Error("Out of the timespan range")}else if(i&&i.getTime()-g.getTime()<0)throw Error("Out of the timespan range");var l=b(g.getDate(),this.fields.dayOfMonth);c(this.fields.dayOfMonth)&&(l=l||g.isLastDayOfMonth());var m=b(g.getDay(),this.fields.dayOfWeek);c(this.fields.dayOfWeek)&&(m=m||this.fields.dayOfWeek.some(function(a){if(!c([a]))return!1;var b=Number.parseInt(a[0])%7;if(Number.isNaN(b))throw Error("Invalid last weekday of the month expression: "+a);return g.getDay()===b&&g.isLastWeekdayOfMonth()}));var n=this.fields.dayOfMonth.length>=f.daysInMonth[g.getMonth()],o=this.fields.dayOfWeek.length===f.constraints[5].max-f.constraints[5].min+1,p=g.getHours();if(!l&&(!m||o)||!n&&o&&!l||n&&!o&&!m||this._nthDayOfWeek>0&&!function(a,b){if(b<6){if(8>a.getDate()&&1===b)return!0;var c=a.getDate()%7?1:0;return Math.floor((a.getDate()-a.getDate()%7)/7)+c===b}return!1}(g,this._nthDayOfWeek)){this._applyTimezoneShift(g,e,"Day");continue}if(!b(g.getMonth()+1,this.fields.month)){this._applyTimezoneShift(g,e,"Month");continue}if(b(p,this.fields.hour)){if(this._dstEnd===p&&!a){this._dstEnd=null,this._applyTimezoneShift(g,"add","Hour");continue}}else if(this._dstStart!==p){this._dstStart=null,this._applyTimezoneShift(g,e,"Hour");continue}else if(!b(p-1,this.fields.hour)){g[e+"Hour"]();continue}if(!b(g.getMinutes(),this.fields.minute)){this._applyTimezoneShift(g,e,"Minute");continue}if(!b(g.getSeconds(),this.fields.second)){this._applyTimezoneShift(g,e,"Second");continue}if(j===g.getTime()){"add"===e||0===g.getMilliseconds()?this._applyTimezoneShift(g,e,"Second"):g.setMilliseconds(0);continue}break}if(k>=1e4)throw Error("Invalid expression, loop limit exceeded");return this._currentDate=new d(g,this._tz),this._hasIterated=!0,g},f.prototype.next=function(){var a=this._findSchedule();return this._isIterator?{value:a,done:!this.hasNext()}:a},f.prototype.prev=function(){var a=this._findSchedule(!0);return this._isIterator?{value:a,done:!this.hasPrev()}:a},f.prototype.hasNext=function(){var a=this._currentDate,b=this._hasIterated;try{return this._findSchedule(),!0}catch(a){return!1}finally{this._currentDate=a,this._hasIterated=b}},f.prototype.hasPrev=function(){var a=this._currentDate,b=this._hasIterated;try{return this._findSchedule(!0),!0}catch(a){return!1}finally{this._currentDate=a,this._hasIterated=b}},f.prototype.iterate=function(a,b){var c=[];if(a>=0)for(var d=0,e=a;de;d--)try{var f=this.prev();c.push(f),b&&b(f,d)}catch(a){break}return c},f.prototype.reset=function(a){this._currentDate=new d(a||this._options.currentDate)},f.prototype.stringify=function(a){for(var b=[],c=+!a,d=f.map.length;c6)throw Error("Invalid cron expression");for(var h=f.map.length-g.length,i=0,j=f.map.length;ij?i:i-h];if(i1){var d=+c[c.length-1];if(/,/.test(a))throw Error("Constraint error, invalid dayOfWeek `#` and `,` special characters are incompatible");if(/\//.test(a))throw Error("Constraint error, invalid dayOfWeek `#` and `/` special characters are incompatible");if(/-/.test(a))throw Error("Constraint error, invalid dayOfWeek `#` and `-` special characters are incompatible");if(c.length>2||Number.isNaN(d)||d<1||d>5)throw Error("Constraint error, invalid dayOfWeek occurrence number (#)");return b.nthDayOfWeek=d,c[0]}return a}(l):l;e.push(f._parseField(k,m,f.constraints[i]))}}for(var n={},i=0,j=f.map.length;ic.max))throw Error("Constraint error, got value "+g+" expected range "+c.min+"-"+c.max)}}(g,h,f.constraints[d]);for(var i=[],j=-1;++j{var d=c(75806);function e(a,b){var c={zone:b};if(a?a instanceof e?this._date=a._date:a instanceof Date?this._date=d.DateTime.fromJSDate(a,c):"number"==typeof a?this._date=d.DateTime.fromMillis(a,c):"string"==typeof a&&(this._date=d.DateTime.fromISO(a,c),this._date.isValid||(this._date=d.DateTime.fromRFC2822(a,c)),this._date.isValid||(this._date=d.DateTime.fromSQL(a,c)),this._date.isValid||(this._date=d.DateTime.fromFormat(a,"EEE, d MMM yyyy HH:mm:ss",c))):this._date=d.DateTime.local(),!this._date||!this._date.isValid)throw Error("CronDate: unhandled timestamp: "+JSON.stringify(a));b&&b!==this._date.zoneName&&(this._date=this._date.setZone(b))}e.prototype.addYear=function(){this._date=this._date.plus({years:1})},e.prototype.addMonth=function(){this._date=this._date.plus({months:1}).startOf("month")},e.prototype.addDay=function(){this._date=this._date.plus({days:1}).startOf("day")},e.prototype.addHour=function(){var a=this._date;this._date=this._date.plus({hours:1}).startOf("hour"),this._date<=a&&(this._date=this._date.plus({hours:1}))},e.prototype.addMinute=function(){var a=this._date;this._date=this._date.plus({minutes:1}).startOf("minute"),this._date=a&&(this._date=this._date.minus({hours:1}))},e.prototype.subtractMinute=function(){var a=this._date;this._date=this._date.minus({minutes:1}).endOf("minute").startOf("second"),this._date>a&&(this._date=this._date.minus({hours:1}))},e.prototype.subtractSecond=function(){var a=this._date;this._date=this._date.minus({seconds:1}).startOf("second"),this._date>a&&(this._date=this._date.minus({hours:1}))},e.prototype.getDate=function(){return this._date.day},e.prototype.getFullYear=function(){return this._date.year},e.prototype.getDay=function(){var a=this._date.weekday;return 7==a?0:a},e.prototype.getMonth=function(){return this._date.month-1},e.prototype.getHours=function(){return this._date.hour},e.prototype.getMinutes=function(){return this._date.minute},e.prototype.getSeconds=function(){return this._date.second},e.prototype.getMilliseconds=function(){return this._date.millisecond},e.prototype.getTime=function(){return this._date.valueOf()},e.prototype.getUTCDate=function(){return this._getUTC().day},e.prototype.getUTCFullYear=function(){return this._getUTC().year},e.prototype.getUTCDay=function(){var a=this._getUTC().weekday;return 7==a?0:a},e.prototype.getUTCMonth=function(){return this._getUTC().month-1},e.prototype.getUTCHours=function(){return this._getUTC().hour},e.prototype.getUTCMinutes=function(){return this._getUTC().minute},e.prototype.getUTCSeconds=function(){return this._getUTC().second},e.prototype.toISOString=function(){return this._date.toUTC().toISO()},e.prototype.toJSON=function(){return this._date.toJSON()},e.prototype.setDate=function(a){this._date=this._date.set({day:a})},e.prototype.setFullYear=function(a){this._date=this._date.set({year:a})},e.prototype.setDay=function(a){this._date=this._date.set({weekday:a})},e.prototype.setMonth=function(a){this._date=this._date.set({month:a+1})},e.prototype.setHours=function(a){this._date=this._date.set({hour:a})},e.prototype.setMinutes=function(a){this._date=this._date.set({minute:a})},e.prototype.setSeconds=function(a){this._date=this._date.set({second:a})},e.prototype.setMilliseconds=function(a){this._date=this._date.set({millisecond:a})},e.prototype._getUTC=function(){return this._date.toUTC()},e.prototype.toString=function(){return this.toDate().toString()},e.prototype.toDate=function(){return this._date.toJSDate()},e.prototype.isLastDayOfMonth=function(){var a=this._date.plus({days:1}).startOf("day");return this._date.month!==a.month},e.prototype.isLastWeekdayOfMonth=function(){var a=this._date.plus({days:7}).startOf("day");return this._date.month!==a.month},a.exports=e},69049:(a,b,c)=>{var d=c(39018);function e(){}e._parseEntry=function(a){var b=a.split(" ");if(6===b.length)return{interval:d.parse(a)};if(b.length>6)return{interval:d.parse(b.slice(0,6).join(" ")),command:b.slice(6,b.length)};throw Error("Invalid entry: "+a)},e.parseExpression=function(a,b){return d.parse(a,b)},e.fieldsToExpression=function(a,b){return d.fieldsToExpression(a,b)},e.parseString=function(a){for(var b=a.split("\n"),c={variables:{},expressions:[],errors:{}},d=0,f=b.length;d0)if(i.match(/^#/))continue;else if(h=i.match(/^(.*)=(.*)$/))c.variables[h[1]]=h[2];else{var j=null;try{j=e._parseEntry("0 "+i),c.expressions.push(j.interval)}catch(a){c.errors[i]=a}}}return c},e.parseFile=function(a,b){c(29021).readFile(a,function(a,c){return a?void b(a):b(null,e.parseString(c.toString()))})},a.exports=e},75806:(a,b)=>{let c;Object.defineProperty(b,"__esModule",{value:!0});class d extends Error{}class e extends d{constructor(a){super(`Invalid DateTime: ${a.toMessage()}`)}}class f extends d{constructor(a){super(`Invalid Interval: ${a.toMessage()}`)}}class g extends d{constructor(a){super(`Invalid Duration: ${a.toMessage()}`)}}class h extends d{}class i extends d{constructor(a){super(`Invalid unit ${a}`)}}class j extends d{}class k extends d{constructor(){super("Zone is an abstract class")}}let l="numeric",m="short",n="long",o={year:l,month:l,day:l},p={year:l,month:m,day:l},q={year:l,month:m,day:l,weekday:m},r={year:l,month:n,day:l},s={year:l,month:n,day:l,weekday:n},t={hour:l,minute:l},u={hour:l,minute:l,second:l},v={hour:l,minute:l,second:l,timeZoneName:m},w={hour:l,minute:l,second:l,timeZoneName:n},x={hour:l,minute:l,hourCycle:"h23"},y={hour:l,minute:l,second:l,hourCycle:"h23"},z={hour:l,minute:l,second:l,hourCycle:"h23",timeZoneName:m},A={hour:l,minute:l,second:l,hourCycle:"h23",timeZoneName:n},B={year:l,month:l,day:l,hour:l,minute:l},C={year:l,month:l,day:l,hour:l,minute:l,second:l},D={year:l,month:m,day:l,hour:l,minute:l},E={year:l,month:m,day:l,hour:l,minute:l,second:l},F={year:l,month:m,day:l,weekday:m,hour:l,minute:l},G={year:l,month:n,day:l,hour:l,minute:l,timeZoneName:m},H={year:l,month:n,day:l,hour:l,minute:l,second:l,timeZoneName:m},I={year:l,month:n,day:l,weekday:n,hour:l,minute:l,timeZoneName:n},J={year:l,month:n,day:l,weekday:n,hour:l,minute:l,second:l,timeZoneName:n};class K{get type(){throw new k}get name(){throw new k}get ianaName(){return this.name}get isUniversal(){throw new k}offsetName(a,b){throw new k}formatOffset(a,b){throw new k}offset(a){throw new k}equals(a){throw new k}get isValid(){throw new k}}let L=null;class M extends K{static get instance(){return null===L&&(L=new M),L}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(a,{format:b,locale:c}){return a3(a,b,c)}formatOffset(a,b){return a7(this.offset(a),b)}offset(a){return-new Date(a).getTimezoneOffset()}equals(a){return"system"===a.type}get isValid(){return!0}}let N=new Map,O={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6},P=new Map;class Q extends K{static create(a){let b=P.get(a);return void 0===b&&P.set(a,b=new Q(a)),b}static resetCache(){P.clear(),N.clear()}static isValidSpecifier(a){return this.isValidZone(a)}static isValidZone(a){if(!a)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:a}).format(),!0}catch(a){return!1}}constructor(a){super(),this.zoneName=a,this.valid=Q.isValidZone(a)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(a,{format:b,locale:c}){return a3(a,b,c,this.name)}formatOffset(a,b){return a7(this.offset(a),b)}offset(a){var b;let c;if(!this.valid)return NaN;let d=new Date(a);if(isNaN(d))return NaN;let e=(b=this.name,void 0===(c=N.get(b))&&(c=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:b,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),N.set(b,c)),c),[f,g,h,i,j,k,l]=e.formatToParts?function(a,b){let c=a.formatToParts(b),d=[];for(let a=0;a=0?o:1e3+o))/6e4}equals(a){return"iana"===a.type&&a.name===this.name}get isValid(){return this.valid}}let R={},S=new Map;function T(a,b={}){let c=JSON.stringify([a,b]),d=S.get(c);return void 0===d&&(d=new Intl.DateTimeFormat(a,b),S.set(c,d)),d}let U=new Map,V=new Map,W=null,X=new Map;function Y(a){let b=X.get(a);return void 0===b&&(b=new Intl.DateTimeFormat(a).resolvedOptions(),X.set(a,b)),b}let Z=new Map;function $(a,b,c,d){let e=a.listingMode();return"error"===e?null:"en"===e?c(b):d(b)}class _{constructor(a,b,c){this.padTo=c.padTo||0,this.floor=c.floor||!1;let{padTo:d,floor:e,...f}=c;if(!b||Object.keys(f).length>0){let b={useGrouping:!1,...c};c.padTo>0&&(b.minimumIntegerDigits=c.padTo),this.inf=function(a,b={}){let c=JSON.stringify([a,b]),d=U.get(c);return void 0===d&&(d=new Intl.NumberFormat(a,b),U.set(c,d)),d}(a,b)}}format(a){if(!this.inf)return aT(this.floor?Math.floor(a):aX(a,3),this.padTo);{let b=this.floor?Math.floor(a):a;return this.inf.format(b)}}}class aa{constructor(a,b,c){let d;if(this.opts=c,this.originalZone=void 0,this.opts.timeZone)this.dt=a;else if("fixed"===a.zone.type){let b=-1*(a.offset/60),c=b>=0?`Etc/GMT+${b}`:`Etc/GMT${b}`;0!==a.offset&&Q.create(c).valid?(d=c,this.dt=a):(d="UTC",this.dt=0===a.offset?a:a.setZone("UTC").plus({minutes:a.offset}),this.originalZone=a.zone)}else"system"===a.zone.type?this.dt=a:"iana"===a.zone.type?(this.dt=a,d=a.zone.name):(d="UTC",this.dt=a.setZone("UTC").plus({minutes:a.offset}),this.originalZone=a.zone);let e={...this.opts};e.timeZone=e.timeZone||d,this.dtf=T(b,e)}format(){return this.originalZone?this.formatToParts().map(({value:a})=>a).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let a=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?a.map(a=>{if("timeZoneName"!==a.type)return a;{let b=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...a,value:b}}}):a}resolvedOptions(){return this.dtf.resolvedOptions()}}class ab{constructor(a,b,c){this.opts={style:"long",...c},!b&&aN()&&(this.rtf=function(a,b={}){let{base:c,...d}=b,e=JSON.stringify([a,d]),f=V.get(e);return void 0===f&&(f=new Intl.RelativeTimeFormat(a,b),V.set(e,f)),f}(a,c))}format(a,b){return this.rtf?this.rtf.format(a,b):function(a,b,c="always",d=!1){let e={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},f=-1===["hours","minutes","seconds"].indexOf(a);if("auto"===c&&f){let c="days"===a;switch(b){case 1:return c?"tomorrow":`next ${e[a][0]}`;case -1:return c?"yesterday":`last ${e[a][0]}`;case 0:return c?"today":`this ${e[a][0]}`}}let g=Object.is(b,-0)||b<0,h=Math.abs(b),i=1===h,j=e[a],k=d?i?j[1]:j[2]||j[1]:i?e[a][0]:a;return g?`${h} ${k} ago`:`in ${h} ${k}`}(b,a,this.opts.numeric,"long"!==this.opts.style)}formatToParts(a,b){return this.rtf?this.rtf.formatToParts(a,b):[]}}let ac={firstDay:1,minimalDays:4,weekend:[6,7]};class ad{static fromOpts(a){return ad.create(a.locale,a.numberingSystem,a.outputCalendar,a.weekSettings,a.defaultToEN)}static create(a,b,c,d,e=!1){let f=a||av.defaultLocale,g=f||(e?"en-US":W||(W=new Intl.DateTimeFormat().resolvedOptions().locale)),h=b||av.defaultNumberingSystem;return new ad(g,h,c||av.defaultOutputCalendar,aR(d)||av.defaultWeekSettings,f)}static resetCache(){W=null,S.clear(),U.clear(),V.clear(),X.clear(),Z.clear()}static fromObject({locale:a,numberingSystem:b,outputCalendar:c,weekSettings:d}={}){return ad.create(a,b,c,d)}constructor(a,b,c,d,e){let[f,g,h]=function(a){let b=a.indexOf("-x-");-1!==b&&(a=a.substring(0,b));let c=a.indexOf("-u-");if(-1===c)return[a];{let b,d;try{b=T(a).resolvedOptions(),d=a}catch(f){let e=a.substring(0,c);b=T(e).resolvedOptions(),d=e}let{numberingSystem:e,calendar:f}=b;return[d,e,f]}}(a);this.locale=f,this.numberingSystem=b||g||null,this.outputCalendar=c||h||null,this.weekSettings=d,this.intl=function(a,b,c){return(c||b)&&(a.includes("-u-")||(a+="-u"),c&&(a+=`-ca-${c}`),b&&(a+=`-nu-${b}`)),a}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=e,this.fastNumbersCached=null}get fastNumbers(){return null==this.fastNumbersCached&&(this.fastNumbersCached=(!this.numberingSystem||"latn"===this.numberingSystem)&&("latn"===this.numberingSystem||!this.locale||this.locale.startsWith("en")||"latn"===Y(this.locale).numberingSystem)),this.fastNumbersCached}listingMode(){let a=this.isEnglish(),b=(null===this.numberingSystem||"latn"===this.numberingSystem)&&(null===this.outputCalendar||"gregory"===this.outputCalendar);return a&&b?"en":"intl"}clone(a){return a&&0!==Object.getOwnPropertyNames(a).length?ad.create(a.locale||this.specifiedLocale,a.numberingSystem||this.numberingSystem,a.outputCalendar||this.outputCalendar,aR(a.weekSettings)||this.weekSettings,a.defaultToEN||!1):this}redefaultToEN(a={}){return this.clone({...a,defaultToEN:!0})}redefaultToSystem(a={}){return this.clone({...a,defaultToEN:!1})}months(a,b=!1){return $(this,a,bc,()=>{let c="ja"===this.intl||this.intl.startsWith("ja-"),d=(b&=!c)?{month:a,day:"numeric"}:{month:a},e=b?"format":"standalone";if(!this.monthsCache[e][a]){let b=c?a=>this.dtFormatter(a,d).format():a=>this.extract(a,d,"month");this.monthsCache[e][a]=function(a){let b=[];for(let c=1;c<=12;c++){let d=cV.utc(2009,c,1);b.push(a(d))}return b}(b)}return this.monthsCache[e][a]})}weekdays(a,b=!1){return $(this,a,bg,()=>{let c=b?{weekday:a,year:"numeric",month:"long",day:"numeric"}:{weekday:a},d=b?"format":"standalone";return this.weekdaysCache[d][a]||(this.weekdaysCache[d][a]=function(a){let b=[];for(let c=1;c<=7;c++){let d=cV.utc(2016,11,13+c);b.push(a(d))}return b}(a=>this.extract(a,c,"weekday"))),this.weekdaysCache[d][a]})}meridiems(){return $(this,void 0,()=>bh,()=>{if(!this.meridiemCache){let a={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[cV.utc(2016,11,13,9),cV.utc(2016,11,13,19)].map(b=>this.extract(b,a,"dayperiod"))}return this.meridiemCache})}eras(a){return $(this,a,bl,()=>{let b={era:a};return this.eraCache[a]||(this.eraCache[a]=[cV.utc(-40,1,1),cV.utc(2017,1,1)].map(a=>this.extract(a,b,"era"))),this.eraCache[a]})}extract(a,b,c){let d=this.dtFormatter(a,b).formatToParts().find(a=>a.type.toLowerCase()===c);return d?d.value:null}numberFormatter(a={}){return new _(this.intl,a.forceSimple||this.fastNumbers,a)}dtFormatter(a,b={}){return new aa(a,this.intl,b)}relFormatter(a={}){return new ab(this.intl,this.isEnglish(),a)}listFormatter(a={}){return function(a,b={}){let c=JSON.stringify([a,b]),d=R[c];return d||(d=new Intl.ListFormat(a,b),R[c]=d),d}(this.intl,a)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||Y(this.intl).locale.startsWith("en-us")}getWeekSettings(){if(this.weekSettings)return this.weekSettings;if(!aO())return ac;var a=this.locale;let b=Z.get(a);if(!b){let c=new Intl.Locale(a);"minimalDays"in(b="getWeekInfo"in c?c.getWeekInfo():c.weekInfo)||(b={...ac,...b}),Z.set(a,b)}return b}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(a){return this.locale===a.locale&&this.numberingSystem===a.numberingSystem&&this.outputCalendar===a.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let ae=null;class af extends K{static get utcInstance(){return null===ae&&(ae=new af(0)),ae}static instance(a){return 0===a?af.utcInstance:new af(a)}static parseSpecifier(a){if(a){let b=a.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(b)return new af(a4(b[1],b[2]))}return null}constructor(a){super(),this.fixed=a}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${a7(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${a7(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(a,b){return a7(this.fixed,b)}get isUniversal(){return!0}offset(){return this.fixed}equals(a){return"fixed"===a.type&&a.fixed===this.fixed}get isValid(){return!0}}class ag extends K{constructor(a){super(),this.zoneName=a}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function ah(a,b){if(aK(a)||null===a)return b;if(a instanceof K)return a;if("string"==typeof a){let c=a.toLowerCase();return"default"===c?b:"local"===c||"system"===c?M.instance:"utc"===c||"gmt"===c?af.utcInstance:af.parseSpecifier(c)||Q.create(a)}if(aL(a))return af.instance(a);if("object"==typeof a&&"offset"in a&&"function"==typeof a.offset)return a;else return new ag(a)}let ai={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},aj={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},ak=ai.hanidec.replace(/[\[|\]]/g,"").split(""),al=new Map;function am({numberingSystem:a},b=""){let c=a||"latn",d=al.get(c);void 0===d&&(d=new Map,al.set(c,d));let e=d.get(b);return void 0===e&&(e=RegExp(`${ai[c]}${b}`),d.set(b,e)),e}let an=()=>Date.now(),ao="system",ap=null,aq=null,ar=null,as=60,at,au=null;class av{static get now(){return an}static set now(a){an=a}static set defaultZone(a){ao=a}static get defaultZone(){return ah(ao,M.instance)}static get defaultLocale(){return ap}static set defaultLocale(a){ap=a}static get defaultNumberingSystem(){return aq}static set defaultNumberingSystem(a){aq=a}static get defaultOutputCalendar(){return ar}static set defaultOutputCalendar(a){ar=a}static get defaultWeekSettings(){return au}static set defaultWeekSettings(a){au=aR(a)}static get twoDigitCutoffYear(){return as}static set twoDigitCutoffYear(a){as=a%100}static get throwOnInvalid(){return at}static set throwOnInvalid(a){at=a}static resetCaches(){ad.resetCache(),Q.resetCache(),cV.resetCache(),al.clear()}}class aw{constructor(a,b){this.reason=a,this.explanation=b}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}let ax=[0,31,59,90,120,151,181,212,243,273,304,334],ay=[0,31,60,91,121,152,182,213,244,274,305,335];function az(a,b){return new aw("unit out of range",`you specified ${b} (of type ${typeof b}) as a ${a}, which is invalid`)}function aA(a,b,c){let d=new Date(Date.UTC(a,b-1,c));a<100&&a>=0&&d.setUTCFullYear(d.getUTCFullYear()-1900);let e=d.getUTCDay();return 0===e?7:e}function aB(a,b){let c=aY(a)?ay:ax,d=c.findIndex(a=>aa1(d,b,c)?(j=d+1,i=1):j=d,{weekYear:j,weekNumber:i,weekday:h,...a8(a)}}function aE(a,b=4,c=1){let{weekYear:d,weekNumber:e,weekday:f}=a,g=aC(aA(d,1,b),c),h=aZ(d),i=7*e+f-g-7+b,j;i<1?i+=aZ(j=d-1):i>h?(j=d+1,i-=aZ(d)):j=d;let{month:k,day:l}=aB(j,i);return{year:j,month:k,day:l,...a8(a)}}function aF(a){let{year:b,month:c,day:d}=a,e=d+(aY(b)?ay:ax)[c-1];return{year:b,ordinal:e,...a8(a)}}function aG(a){let{year:b,ordinal:c}=a,{month:d,day:e}=aB(b,c);return{year:b,month:d,day:e,...a8(a)}}function aH(a,b){if(!(!aK(a.localWeekday)||!aK(a.localWeekNumber)||!aK(a.localWeekYear)))return{minDaysInFirstWeek:4,startOfWeek:1};if(!aK(a.weekday)||!aK(a.weekNumber)||!aK(a.weekYear))throw new h("Cannot mix locale-based week fields with ISO-based week fields");return aK(a.localWeekday)||(a.weekday=a.localWeekday),aK(a.localWeekNumber)||(a.weekNumber=a.localWeekNumber),aK(a.localWeekYear)||(a.weekYear=a.localWeekYear),delete a.localWeekday,delete a.localWeekNumber,delete a.localWeekYear,{minDaysInFirstWeek:b.getMinDaysInFirstWeek(),startOfWeek:b.getStartOfWeek()}}function aI(a){let b=aM(a.year),c=aS(a.month,1,12),d=aS(a.day,1,a$(a.year,a.month));return b?c?!d&&az("day",a.day):az("month",a.month):az("year",a.year)}function aJ(a){let{hour:b,minute:c,second:d,millisecond:e}=a,f=aS(b,0,23)||24===b&&0===c&&0===d&&0===e,g=aS(c,0,59),h=aS(d,0,59),i=aS(e,0,999);return f?g?h?!i&&az("millisecond",e):az("second",d):az("minute",c):az("hour",b)}function aK(a){return void 0===a}function aL(a){return"number"==typeof a}function aM(a){return"number"==typeof a&&a%1==0}function aN(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(a){return!1}}function aO(){try{return"undefined"!=typeof Intl&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(a){return!1}}function aP(a,b,c){if(0!==a.length)return a.reduce((a,d)=>{let e=[b(d),d];return a&&c(a[0],e[0])===a[0]?a:e},null)[1]}function aQ(a,b){return Object.prototype.hasOwnProperty.call(a,b)}function aR(a){if(null==a)return null;if("object"!=typeof a)throw new j("Week settings must be an object");if(!aS(a.firstDay,1,7)||!aS(a.minimalDays,1,7)||!Array.isArray(a.weekend)||a.weekend.some(a=>!aS(a,1,7)))throw new j("Invalid week settings");return{firstDay:a.firstDay,minimalDays:a.minimalDays,weekend:Array.from(a.weekend)}}function aS(a,b,c){return aM(a)&&a>=b&&a<=c}function aT(a,b=2){return a<0?"-"+(""+-a).padStart(b,"0"):(""+a).padStart(b,"0")}function aU(a){if(!aK(a)&&null!==a&&""!==a)return parseInt(a,10)}function aV(a){if(!aK(a)&&null!==a&&""!==a)return parseFloat(a)}function aW(a){if(!aK(a)&&null!==a&&""!==a)return Math.floor(1e3*parseFloat("0."+a))}function aX(a,b,c="round"){let d=10**b;switch(c){case"expand":return a>0?Math.ceil(a*d)/d:Math.floor(a*d)/d;case"trunc":return Math.trunc(a*d)/d;case"round":return Math.round(a*d)/d;case"floor":return Math.floor(a*d)/d;case"ceil":return Math.ceil(a*d)/d;default:throw RangeError(`Value rounding ${c} is out of range`)}}function aY(a){return a%4==0&&(a%100!=0||a%400==0)}function aZ(a){return aY(a)?366:365}function a$(a,b){var c;let d=(c=b-1)-12*Math.floor(c/12)+1;return 2===d?aY(a+(b-d)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][d-1]}function a_(a){let b=Date.UTC(a.year,a.month-1,a.day,a.hour,a.minute,a.second,a.millisecond);return a.year<100&&a.year>=0&&(b=new Date(b)).setUTCFullYear(a.year,a.month-1,a.day),+b}function a0(a,b,c){return-aC(aA(a,1,b),c)+b-1}function a1(a,b=4,c=1){let d=a0(a,b,c),e=a0(a+1,b,c);return(aZ(a)-d+e)/7}function a2(a){return a>99?a:a>av.twoDigitCutoffYear?1900+a:2e3+a}function a3(a,b,c,d=null){let e=new Date(a),f={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};d&&(f.timeZone=d);let g={timeZoneName:b,...f},h=new Intl.DateTimeFormat(c,g).formatToParts(e).find(a=>"timezonename"===a.type.toLowerCase());return h?h.value:null}function a4(a,b){let c=parseInt(a,10);Number.isNaN(c)&&(c=0);let d=parseInt(b,10)||0,e=c<0||Object.is(c,-0)?-d:d;return 60*c+e}function a5(a){let b=Number(a);if("boolean"==typeof a||""===a||!Number.isFinite(b))throw new j(`Invalid unit value ${a}`);return b}function a6(a,b){let c={};for(let d in a)if(aQ(a,d)){let e=a[d];if(null==e)continue;c[b(d)]=a5(e)}return c}function a7(a,b){let c=Math.trunc(Math.abs(a/60)),d=Math.trunc(Math.abs(a%60)),e=a>=0?"+":"-";switch(b){case"short":return`${e}${aT(c,2)}:${aT(d,2)}`;case"narrow":return`${e}${c}${d>0?`:${d}`:""}`;case"techie":return`${e}${aT(c,2)}${aT(d,2)}`;default:throw RangeError(`Value format ${b} is out of range for property format`)}}function a8(a){return["hour","minute","second","millisecond"].reduce((b,c)=>(b[c]=a[c],b),{})}let a9=["January","February","March","April","May","June","July","August","September","October","November","December"],ba=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],bb=["J","F","M","A","M","J","J","A","S","O","N","D"];function bc(a){switch(a){case"narrow":return[...bb];case"short":return[...ba];case"long":return[...a9];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}let bd=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],be=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],bf=["M","T","W","T","F","S","S"];function bg(a){switch(a){case"narrow":return[...bf];case"short":return[...be];case"long":return[...bd];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}let bh=["AM","PM"],bi=["Before Christ","Anno Domini"],bj=["BC","AD"],bk=["B","A"];function bl(a){switch(a){case"narrow":return[...bk];case"short":return[...bj];case"long":return[...bi];default:return null}}function bm(a,b){let c="";for(let d of a)d.literal?c+=d.val:c+=b(d.val);return c}let bn={D:o,DD:p,DDD:r,DDDD:s,t:t,tt:u,ttt:v,tttt:w,T:x,TT:y,TTT:z,TTTT:A,f:B,ff:D,fff:G,ffff:I,F:C,FF:E,FFF:H,FFFF:J};class bo{static create(a,b={}){return new bo(a,b)}static parseFormat(a){let b=null,c="",d=!1,e=[];for(let f=0;f0||d)&&e.push({literal:d||/^\s+$/.test(c),val:""===c?"'":c}),b=null,c="",d=!d):d||g===b?c+=g:(c.length>0&&e.push({literal:/^\s+$/.test(c),val:c}),c=g,b=g)}return c.length>0&&e.push({literal:d||/^\s+$/.test(c),val:c}),e}static macroTokenToFormatOpts(a){return bn[a]}constructor(a,b){this.opts=b,this.loc=a,this.systemLoc=null}formatWithSystemDefault(a,b){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(a,{...this.opts,...b}).format()}dtFormatter(a,b={}){return this.loc.dtFormatter(a,{...this.opts,...b})}formatDateTime(a,b){return this.dtFormatter(a,b).format()}formatDateTimeParts(a,b){return this.dtFormatter(a,b).formatToParts()}formatInterval(a,b){return this.dtFormatter(a.start,b).dtf.formatRange(a.start.toJSDate(),a.end.toJSDate())}resolvedOptions(a,b){return this.dtFormatter(a,b).resolvedOptions()}num(a,b=0,c){if(this.opts.forceSimple)return aT(a,b);let d={...this.opts};return b>0&&(d.padTo=b),c&&(d.signDisplay=c),this.loc.numberFormatter(d).format(a)}formatDateTimeFromString(a,b){let c="en"===this.loc.listingMode(),d=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,e=(b,c)=>this.loc.extract(a,b,c),f=b=>a.isOffsetFixed&&0===a.offset&&b.allowZ?"Z":a.isValid?a.zone.formatOffset(a.ts,b.format):"",g=(b,d)=>c?bc(b)[a.month-1]:e(d?{month:b}:{month:b,day:"numeric"},"month"),h=(b,d)=>c?bg(b)[a.weekday-1]:e(d?{weekday:b}:{weekday:b,month:"long",day:"numeric"},"weekday"),i=b=>{let c=bo.macroTokenToFormatOpts(b);return c?this.formatWithSystemDefault(a,c):b},j=b=>c?bl(b)[a.year<0?0:1]:e({era:b},"era"),k=b=>{switch(b){case"S":return this.num(a.millisecond);case"u":case"SSS":return this.num(a.millisecond,3);case"s":return this.num(a.second);case"ss":return this.num(a.second,2);case"uu":return this.num(Math.floor(a.millisecond/10),2);case"uuu":return this.num(Math.floor(a.millisecond/100));case"m":return this.num(a.minute);case"mm":return this.num(a.minute,2);case"h":return this.num(a.hour%12==0?12:a.hour%12);case"hh":return this.num(a.hour%12==0?12:a.hour%12,2);case"H":return this.num(a.hour);case"HH":return this.num(a.hour,2);case"Z":return f({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return f({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return f({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return a.zone.offsetName(a.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return a.zone.offsetName(a.ts,{format:"long",locale:this.loc.locale});case"z":return a.zoneName;case"a":return c?bh[a.hour<12?0:1]:e({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return d?e({day:"numeric"},"day"):this.num(a.day);case"dd":return d?e({day:"2-digit"},"day"):this.num(a.day,2);case"c":case"E":return this.num(a.weekday);case"ccc":return h("short",!0);case"cccc":return h("long",!0);case"ccccc":return h("narrow",!0);case"EEE":return h("short",!1);case"EEEE":return h("long",!1);case"EEEEE":return h("narrow",!1);case"L":return d?e({month:"numeric",day:"numeric"},"month"):this.num(a.month);case"LL":return d?e({month:"2-digit",day:"numeric"},"month"):this.num(a.month,2);case"LLL":return g("short",!0);case"LLLL":return g("long",!0);case"LLLLL":return g("narrow",!0);case"M":return d?e({month:"numeric"},"month"):this.num(a.month);case"MM":return d?e({month:"2-digit"},"month"):this.num(a.month,2);case"MMM":return g("short",!1);case"MMMM":return g("long",!1);case"MMMMM":return g("narrow",!1);case"y":return d?e({year:"numeric"},"year"):this.num(a.year);case"yy":return d?e({year:"2-digit"},"year"):this.num(a.year.toString().slice(-2),2);case"yyyy":return d?e({year:"numeric"},"year"):this.num(a.year,4);case"yyyyyy":return d?e({year:"numeric"},"year"):this.num(a.year,6);case"G":return j("short");case"GG":return j("long");case"GGGGG":return j("narrow");case"kk":return this.num(a.weekYear.toString().slice(-2),2);case"kkkk":return this.num(a.weekYear,4);case"W":return this.num(a.weekNumber);case"WW":return this.num(a.weekNumber,2);case"n":return this.num(a.localWeekNumber);case"nn":return this.num(a.localWeekNumber,2);case"ii":return this.num(a.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(a.localWeekYear,4);case"o":return this.num(a.ordinal);case"ooo":return this.num(a.ordinal,3);case"q":return this.num(a.quarter);case"qq":return this.num(a.quarter,2);case"X":return this.num(Math.floor(a.ts/1e3));case"x":return this.num(a.ts);default:return i(b)}};return bm(bo.parseFormat(b),k)}formatDurationFromString(a,b){let c="negativeLargestOnly"===this.opts.signMode?-1:1,d=a=>{switch(a[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},e=(a,b)=>e=>{let f=d(e);if(!f)return e;{let d,g=b.isNegativeDuration&&f!==b.largestUnit?c:1;return d="negativeLargestOnly"===this.opts.signMode&&f!==b.largestUnit?"never":"all"===this.opts.signMode?"always":"auto",this.num(a.get(f)*g,e.length,d)}},f=bo.parseFormat(b),g=f.reduce((a,{literal:b,val:c})=>b?a:a.concat(c),[]),h=a.shiftTo(...g.map(d).filter(a=>a)),i={isNegativeDuration:h<0,largestUnit:Object.keys(h.values)[0]};return bm(f,e(h,i))}}let bp=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function bq(...a){let b=a.reduce((a,b)=>a+b.source,"");return RegExp(`^${b}$`)}function br(...a){return b=>a.reduce(([a,c,d],e)=>{let[f,g,h]=e(b,d);return[{...a,...f},g||c,h]},[{},null,1]).slice(0,2)}function bs(a,...b){if(null==a)return[null,null];for(let[c,d]of b){let b=c.exec(a);if(b)return d(b)}return[null,null]}function bt(...a){return(b,c)=>{let d,e={};for(d=0;dvoid 0!==a&&(b||a&&k)?-a:a;return[{years:m(aV(c)),months:m(aV(d)),weeks:m(aV(e)),days:m(aV(f)),hours:m(aV(g)),minutes:m(aV(h)),seconds:m(aV(i),"-0"===i),milliseconds:m(aW(j),l)}]}let bK={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function bL(a,b,c,d,e,f,g){let h={year:2===b.length?a2(aU(b)):aU(b),month:ba.indexOf(c)+1,day:aU(d),hour:aU(e),minute:aU(f)};return g&&(h.second=aU(g)),a&&(h.weekday=a.length>3?bd.indexOf(a)+1:be.indexOf(a)+1),h}let bM=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function bN(a){let[,b,c,d,e,f,g,h,i,j,k,l]=a;return[bL(b,e,d,c,f,g,h),new af(i?bK[i]:j?0:a4(k,l))]}let bO=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,bP=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,bQ=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function bR(a){let[,b,c,d,e,f,g,h]=a;return[bL(b,e,d,c,f,g,h),af.utcInstance]}function bS(a){let[,b,c,d,e,f,g,h]=a;return[bL(b,h,c,d,e,f,g),af.utcInstance]}let bT=bq(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,by),bU=bq(/(\d{4})-?W(\d\d)(?:-?(\d))?/,by),bV=bq(/(\d{4})-?(\d{3})/,by),bW=bq(bx),bX=br(function(a,b){return[{year:bD(a,b),month:bD(a,b+1,1),day:bD(a,b+2,1)},null,b+3]},bE,bF,bG),bY=br(bz,bE,bF,bG),bZ=br(bA,bE,bF,bG),b$=br(bE,bF,bG),b_=br(bE),b0=bq(/(\d{4})-(\d\d)-(\d\d)/,bC),b1=bq(bB),b2=br(bE,bF,bG),b3="Invalid Duration",b4={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},b5={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...b4},b6={years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:0x1e18558,milliseconds:31556952e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:7889238,milliseconds:7889238e3},months:{weeks:30.436875/7,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...b4},b7=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],b8=b7.slice(0).reverse();function b9(a,b,c=!1){return new cd({values:c?b.values:{...a.values,...b.values||{}},loc:a.loc.clone(b.loc),conversionAccuracy:b.conversionAccuracy||a.conversionAccuracy,matrix:b.matrix||a.matrix})}function ca(a,b){var c;let d=null!=(c=b.milliseconds)?c:0;for(let c of b8.slice(1))b[c]&&(d+=b[c]*a[c].milliseconds);return d}function cb(a,b){let c=0>ca(a,b)?-1:1;b7.reduceRight((d,e)=>{if(aK(b[e]))return d;if(d){let f=b[d]*c,g=a[e][d],h=Math.floor(f/g);b[e]+=h*c,b[d]-=h*g*c}return e},null),b7.reduce((c,d)=>{if(aK(b[d]))return c;if(c){let e=b[c]%1;b[c]-=e,b[d]+=e*a[c][d]}return d},null)}function cc(a){let b={};for(let[c,d]of Object.entries(a))0!==d&&(b[c]=d);return b}class cd{constructor(a){let b="longterm"===a.conversionAccuracy,c=b?b6:b5;a.matrix&&(c=a.matrix),this.values=a.values,this.loc=a.loc||ad.create(),this.conversionAccuracy=b?"longterm":"casual",this.invalid=a.invalid||null,this.matrix=c,this.isLuxonDuration=!0}static fromMillis(a,b){return cd.fromObject({milliseconds:a},b)}static fromObject(a,b={}){if(null==a||"object"!=typeof a)throw new j(`Duration.fromObject: argument expected to be an object, got ${null===a?"null":typeof a}`);return new cd({values:a6(a,cd.normalizeUnit),loc:ad.fromObject(b),conversionAccuracy:b.conversionAccuracy,matrix:b.matrix})}static fromDurationLike(a){if(aL(a))return cd.fromMillis(a);if(cd.isDuration(a))return a;if("object"==typeof a)return cd.fromObject(a);throw new j(`Unknown duration argument ${a} of type ${typeof a}`)}static fromISO(a,b){let[c]=bs(a,[bI,bJ]);return c?cd.fromObject(c,b):cd.invalid("unparsable",`the input "${a}" can't be parsed as ISO 8601`)}static fromISOTime(a,b){let[c]=bs(a,[bH,b_]);return c?cd.fromObject(c,b):cd.invalid("unparsable",`the input "${a}" can't be parsed as ISO 8601`)}static invalid(a,b=null){if(!a)throw new j("need to specify a reason the Duration is invalid");let c=a instanceof aw?a:new aw(a,b);if(!av.throwOnInvalid)return new cd({invalid:c});throw new g(c)}static normalizeUnit(a){let b={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[a?a.toLowerCase():a];if(!b)throw new i(a);return b}static isDuration(a){return a&&a.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(a,b={}){let c={...b,floor:!1!==b.round&&!1!==b.floor};return this.isValid?bo.create(this.loc,c).formatDurationFromString(this,a):b3}toHuman(a={}){if(!this.isValid)return b3;let b=!1!==a.showZeros,c=b7.map(c=>{let d=this.values[c];return aK(d)||0===d&&!b?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...a,unit:c.slice(0,-1)}).format(d)}).filter(a=>a);return this.loc.listFormatter({type:"conjunction",style:a.listStyle||"narrow",...a}).format(c)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let a="P";return 0!==this.years&&(a+=this.years+"Y"),(0!==this.months||0!==this.quarters)&&(a+=this.months+3*this.quarters+"M"),0!==this.weeks&&(a+=this.weeks+"W"),0!==this.days&&(a+=this.days+"D"),(0!==this.hours||0!==this.minutes||0!==this.seconds||0!==this.milliseconds)&&(a+="T"),0!==this.hours&&(a+=this.hours+"H"),0!==this.minutes&&(a+=this.minutes+"M"),(0!==this.seconds||0!==this.milliseconds)&&(a+=aX(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===a&&(a+="T0S"),a}toISOTime(a={}){if(!this.isValid)return null;let b=this.toMillis();return b<0||b>=864e5?null:(a={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...a,includeOffset:!1},cV.fromMillis(b,{zone:"UTC"}).toISOTime(a))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?ca(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(a){if(!this.isValid)return this;let b=cd.fromDurationLike(a),c={};for(let a of b7)(aQ(b.values,a)||aQ(this.values,a))&&(c[a]=b.get(a)+this.get(a));return b9(this,{values:c},!0)}minus(a){if(!this.isValid)return this;let b=cd.fromDurationLike(a);return this.plus(b.negate())}mapUnits(a){if(!this.isValid)return this;let b={};for(let c of Object.keys(this.values))b[c]=a5(a(this.values[c],c));return b9(this,{values:b},!0)}get(a){return this[cd.normalizeUnit(a)]}set(a){return this.isValid?b9(this,{values:{...this.values,...a6(a,cd.normalizeUnit)}}):this}reconfigure({locale:a,numberingSystem:b,conversionAccuracy:c,matrix:d}={}){return b9(this,{loc:this.loc.clone({locale:a,numberingSystem:b}),matrix:d,conversionAccuracy:c})}as(a){return this.isValid?this.shiftTo(a).get(a):NaN}normalize(){if(!this.isValid)return this;let a=this.toObject();return cb(this.matrix,a),b9(this,{values:a},!0)}rescale(){return this.isValid?b9(this,{values:cc(this.normalize().shiftToAll().toObject())},!0):this}shiftTo(...a){let b;if(!this.isValid||0===a.length)return this;a=a.map(a=>cd.normalizeUnit(a));let c={},d={},e=this.toObject();for(let f of b7)if(a.indexOf(f)>=0){b=f;let a=0;for(let b in d)a+=this.matrix[b][f]*d[b],d[b]=0;aL(e[f])&&(a+=e[f]);let g=Math.trunc(a);c[f]=g,d[f]=(1e3*a-1e3*g)/1e3}else aL(e[f])&&(d[f]=e[f]);for(let a in d)0!==d[a]&&(c[b]+=a===b?d[a]:d[a]/this.matrix[b][a]);return cb(this.matrix,c),b9(this,{values:c},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;let a={};for(let b of Object.keys(this.values))a[b]=0===this.values[b]?0:-this.values[b];return b9(this,{values:a},!0)}removeZeros(){return this.isValid?b9(this,{values:cc(this.values)},!0):this}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(a){if(!this.isValid||!a.isValid||!this.loc.equals(a.loc))return!1;for(let d of b7){var b,c;if(b=this.values[d],c=a.values[d],void 0===b||0===b?void 0!==c&&0!==c:b!==c)return!1}return!0}}let ce="Invalid Interval";class cf{constructor(a){this.s=a.start,this.e=a.end,this.invalid=a.invalid||null,this.isLuxonInterval=!0}static invalid(a,b=null){if(!a)throw new j("need to specify a reason the Interval is invalid");let c=a instanceof aw?a:new aw(a,b);if(!av.throwOnInvalid)return new cf({invalid:c});throw new f(c)}static fromDateTimes(a,b){var c,d;let e=cW(a),f=cW(b),g=(c=e,d=f,c&&c.isValid?d&&d.isValid?da}isBefore(a){return!!this.isValid&&this.e<=a}contains(a){return!!this.isValid&&this.s<=a&&this.e>a}set({start:a,end:b}={}){return this.isValid?cf.fromDateTimes(a||this.s,b||this.e):this}splitAt(...a){if(!this.isValid)return[];let b=a.map(cW).filter(a=>this.contains(a)).sort((a,b)=>a.toMillis()-b.toMillis()),c=[],{s:d}=this,e=0;for(;d+this.e?this.e:a;c.push(cf.fromDateTimes(d,f)),d=f,e+=1}return c}splitBy(a){let b=cd.fromDurationLike(a);if(!this.isValid||!b.isValid||0===b.as("milliseconds"))return[];let{s:c}=this,d=1,e,f=[];for(;ca*d));e=+a>+this.e?this.e:a,f.push(cf.fromDateTimes(c,e)),c=e,d+=1}return f}divideEqually(a){return this.isValid?this.splitBy(this.length()/a).slice(0,a):[]}overlaps(a){return this.e>a.s&&this.s=a.e}equals(a){return!!this.isValid&&!!a.isValid&&this.s.equals(a.s)&&this.e.equals(a.e)}intersection(a){if(!this.isValid)return this;let b=this.s>a.s?this.s:a.s,c=this.e=c?null:cf.fromDateTimes(b,c)}union(a){if(!this.isValid)return this;let b=this.sa.e?this.e:a.e;return cf.fromDateTimes(b,c)}static merge(a){let[b,c]=a.sort((a,b)=>a.s-b.s).reduce(([a,b],c)=>b?b.overlaps(c)||b.abutsStart(c)?[a,b.union(c)]:[a.concat([b]),c]:[a,c],[[],null]);return c&&b.push(c),b}static xor(a){let b=null,c=0,d=[],e=a.map(a=>[{time:a.s,type:"s"},{time:a.e,type:"e"}]);for(let a of Array.prototype.concat(...e).sort((a,b)=>a.time-b.time))1===(c+="s"===a.type?1:-1)?b=a.time:(b&&+b!=+a.time&&d.push(cf.fromDateTimes(b,a.time)),b=null);return cf.merge(d)}difference(...a){return cf.xor([this].concat(a)).map(a=>this.intersection(a)).filter(a=>a&&!a.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:ce}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(a=o,b={}){return this.isValid?bo.create(this.s.loc.clone(b),a).formatInterval(this):ce}toISO(a){return this.isValid?`${this.s.toISO(a)}/${this.e.toISO(a)}`:ce}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:ce}toISOTime(a){return this.isValid?`${this.s.toISOTime(a)}/${this.e.toISOTime(a)}`:ce}toFormat(a,{separator:b=" – "}={}){return this.isValid?`${this.s.toFormat(a)}${b}${this.e.toFormat(a)}`:ce}toDuration(a,b){return this.isValid?this.e.diff(this.s,a,b):cd.invalid(this.invalidReason)}mapEndpoints(a){return cf.fromDateTimes(a(this.s),a(this.e))}}class cg{static hasDST(a=av.defaultZone){let b=cV.now().setZone(a).set({month:12});return!a.isUniversal&&b.offset!==b.set({month:6}).offset}static isValidIANAZone(a){return Q.isValidZone(a)}static normalizeZone(a){return ah(a,av.defaultZone)}static getStartOfWeek({locale:a=null,locObj:b=null}={}){return(b||ad.create(a)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:a=null,locObj:b=null}={}){return(b||ad.create(a)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:a=null,locObj:b=null}={}){return(b||ad.create(a)).getWeekendDays().slice()}static months(a="long",{locale:b=null,numberingSystem:c=null,locObj:d=null,outputCalendar:e="gregory"}={}){return(d||ad.create(b,c,e)).months(a)}static monthsFormat(a="long",{locale:b=null,numberingSystem:c=null,locObj:d=null,outputCalendar:e="gregory"}={}){return(d||ad.create(b,c,e)).months(a,!0)}static weekdays(a="long",{locale:b=null,numberingSystem:c=null,locObj:d=null}={}){return(d||ad.create(b,c,null)).weekdays(a)}static weekdaysFormat(a="long",{locale:b=null,numberingSystem:c=null,locObj:d=null}={}){return(d||ad.create(b,c,null)).weekdays(a,!0)}static meridiems({locale:a=null}={}){return ad.create(a).meridiems()}static eras(a="short",{locale:b=null}={}){return ad.create(b,null,"gregory").eras(a)}static features(){return{relative:aN(),localeWeek:aO()}}}function ch(a,b){let c=a=>a.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),d=c(b)-c(a);return Math.floor(cd.fromMillis(d).as("days"))}function ci(a,b=a=>a){return{regex:a,deser:([a])=>b(function(a){let b=parseInt(a,10);if(!isNaN(b))return b;b="";for(let c=0;c=c&&d<=e&&(b+=d-c)}}return parseInt(b,10)}(a))}}let cj=String.fromCharCode(160),ck=`[ ${cj}]`,cl=RegExp(ck,"g");function cm(a){return a.replace(/\./g,"\\.?").replace(cl,ck)}function cn(a){return a.replace(/\./g,"").replace(cl," ").toLowerCase()}function co(a,b){return null===a?null:{regex:RegExp(a.map(cm).join("|")),deser:([c])=>a.findIndex(a=>cn(c)===cn(a))+b}}function cp(a,b){return{regex:a,deser:([,a,b])=>a4(a,b),groups:b}}function cq(a){return{regex:a,deser:([a])=>a}}let cr={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}},cs=null;function ct(a,b){return Array.prototype.concat(...a.map(a=>(function(a,b){if(a.literal)return a;let c=cw(bo.macroTokenToFormatOpts(a.val),b);return null==c||c.includes(void 0)?a:c})(a,b)))}class cu{constructor(a,b){if(this.locale=a,this.format=b,this.tokens=ct(bo.parseFormat(b),a),this.units=this.tokens.map(b=>(function(a,b){let c=am(b),d=am(b,"{2}"),e=am(b,"{3}"),f=am(b,"{4}"),g=am(b,"{6}"),h=am(b,"{1,2}"),i=am(b,"{1,3}"),j=am(b,"{1,6}"),k=am(b,"{1,9}"),l=am(b,"{2,4}"),m=am(b,"{4,6}"),n=a=>({regex:RegExp(a.val.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")),deser:([a])=>a,literal:!0}),o=(o=>{if(a.literal)return n(o);switch(o.val){case"G":return co(b.eras("short"),0);case"GG":return co(b.eras("long"),0);case"y":return ci(j);case"yy":case"kk":return ci(l,a2);case"yyyy":case"kkkk":return ci(f);case"yyyyy":return ci(m);case"yyyyyy":return ci(g);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return ci(h);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return ci(d);case"MMM":return co(b.months("short",!0),1);case"MMMM":return co(b.months("long",!0),1);case"LLL":return co(b.months("short",!1),1);case"LLLL":return co(b.months("long",!1),1);case"o":case"S":return ci(i);case"ooo":case"SSS":return ci(e);case"u":return cq(k);case"uu":return cq(h);case"uuu":case"E":case"c":return ci(c);case"a":return co(b.meridiems(),0);case"EEE":return co(b.weekdays("short",!1),1);case"EEEE":return co(b.weekdays("long",!1),1);case"ccc":return co(b.weekdays("short",!0),1);case"cccc":return co(b.weekdays("long",!0),1);case"Z":case"ZZ":return cp(RegExp(`([+-]${h.source})(?::(${d.source}))?`),2);case"ZZZ":return cp(RegExp(`([+-]${h.source})(${d.source})?`),2);case"z":return cq(/[a-z_+-/]{1,256}?/i);case" ":return cq(/[^\S\n\r]/);default:return n(o)}})(a)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return o.token=a,o})(b,a)),this.disqualifyingUnit=this.units.find(a=>a.invalidReason),!this.disqualifyingUnit){let[a,b]=function(a){let b=a.map(a=>a.regex).reduce((a,b)=>`${a}(${b.source})`,"");return[`^${b}$`,a]}(this.units);this.regex=RegExp(a,"i"),this.handlers=b}}explainFromTokens(a){if(!this.isValid)return{input:a,tokens:this.tokens,invalidReason:this.invalidReason};{let b,c,[d,e]=function(a,b,c){let d=a.match(b);if(!d)return[d,{}];{let a={},b=1;for(let e in c)if(aQ(c,e)){let f=c[e],g=f.groups?f.groups+1:1;!f.literal&&f.token&&(a[f.token.val[0]]=f.deser(d.slice(b,b+g))),b+=g}return[d,a]}}(a,this.regex,this.handlers),[f,g,i]=e?(c=null,aK(e.z)||(c=Q.create(e.z)),aK(e.Z)||(c||(c=new af(e.Z)),b=e.Z),aK(e.q)||(e.M=(e.q-1)*3+1),aK(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),aK(e.u)||(e.S=aW(e.u)),[Object.keys(e).reduce((a,b)=>{let c=(a=>{switch(a){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(b);return c&&(a[c]=e[b]),a},{}),c,b]):[null,null,void 0];if(aQ(e,"a")&&aQ(e,"H"))throw new h("Can't include meridiem when specifying 24-hour format");return{input:a,tokens:this.tokens,regex:this.regex,rawMatches:d,matches:e,result:f,zone:g,specificOffset:i}}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function cv(a,b,c){return new cu(a,c).explainFromTokens(b)}function cw(a,b){if(!a)return null;let c=bo.create(b,a).dtFormatter((cs||(cs=cV.fromMillis(0x16a2e5618e3)),cs)),d=c.formatToParts(),e=c.resolvedOptions();return d.map(b=>(function(a,b,c){let{type:d,value:e}=a;if("literal"===d){let a=/^\s+$/.test(e);return{literal:!a,val:a?" ":e}}let f=b[d],g=d;"hour"===d&&(g=null!=b.hour12?b.hour12?"hour12":"hour24":null!=b.hourCycle?"h11"===b.hourCycle||"h12"===b.hourCycle?"hour12":"hour24":c.hour12?"hour12":"hour24");let h=cr[g];if("object"==typeof h&&(h=h[f]),h)return{literal:!1,val:h}})(b,a,e))}let cx="Invalid DateTime";function cy(a){return new aw("unsupported zone",`the zone "${a.name}" is not supported`)}function cz(a){return null===a.weekData&&(a.weekData=aD(a.c)),a.weekData}function cA(a){return null===a.localWeekData&&(a.localWeekData=aD(a.c,a.loc.getMinDaysInFirstWeek(),a.loc.getStartOfWeek())),a.localWeekData}function cB(a,b){let c={ts:a.ts,zone:a.zone,c:a.c,o:a.o,loc:a.loc,invalid:a.invalid};return new cV({...c,...b,old:c})}function cC(a,b,c){let d=a-60*b*1e3,e=c.offset(d);if(b===e)return[d,b];d-=(e-b)*6e4;let f=c.offset(d);return e===f?[d,e]:[a-60*Math.min(e,f)*1e3,Math.max(e,f)]}function cD(a,b){let c=new Date(a+=60*b*1e3);return{year:c.getUTCFullYear(),month:c.getUTCMonth()+1,day:c.getUTCDate(),hour:c.getUTCHours(),minute:c.getUTCMinutes(),second:c.getUTCSeconds(),millisecond:c.getUTCMilliseconds()}}function cE(a,b){let c=a.o,d=a.c.year+Math.trunc(b.years),e=a.c.month+Math.trunc(b.months)+3*Math.trunc(b.quarters),f={...a.c,year:d,month:e,day:Math.min(a.c.day,a$(d,e))+Math.trunc(b.days)+7*Math.trunc(b.weeks)},g=cd.fromObject({years:b.years-Math.trunc(b.years),quarters:b.quarters-Math.trunc(b.quarters),months:b.months-Math.trunc(b.months),weeks:b.weeks-Math.trunc(b.weeks),days:b.days-Math.trunc(b.days),hours:b.hours,minutes:b.minutes,seconds:b.seconds,milliseconds:b.milliseconds}).as("milliseconds"),[h,i]=cC(a_(f),c,a.zone);return 0!==g&&(h+=g,i=a.zone.offset(h)),{ts:h,o:i}}function cF(a,b,c,d,e,f){let{setZone:g,zone:h}=c;if((!a||0===Object.keys(a).length)&&!b)return cV.invalid(new aw("unparsable",`the input "${e}" can't be parsed as ${d}`));{let d=cV.fromObject(a,{...c,zone:b||h,specificOffset:f});return g?d:d.setZone(h)}}function cG(a,b,c=!0){return a.isValid?bo.create(ad.create("en-US"),{allowZ:c,forceSimple:!0}).formatDateTimeFromString(a,b):null}function cH(a,b,c){let d=a.c.year>9999||a.c.year<0,e="";if(d&&a.c.year>=0&&(e+="+"),e+=aT(a.c.year,d?6:4),"year"===c)return e;if(b){if(e+="-",e+=aT(a.c.month),"month"===c)return e;e+="-"}else if(e+=aT(a.c.month),"month"===c)return e;return e+aT(a.c.day)}function cI(a,b,c,d,e,f,g){let h=!c||0!==a.c.millisecond||0!==a.c.second,i="";switch(g){case"day":case"month":case"year":break;default:if(i+=aT(a.c.hour),"hour"===g)break;if(b){if(i+=":",i+=aT(a.c.minute),"minute"===g)break;h&&(i+=":",i+=aT(a.c.second))}else{if(i+=aT(a.c.minute),"minute"===g)break;h&&(i+=aT(a.c.second))}if("second"===g)break;h&&(!d||0!==a.c.millisecond)&&(i+=".",i+=aT(a.c.millisecond,3))}return e&&(a.isOffsetFixed&&0===a.offset&&!f?i+="Z":a.o<0?(i+="-",i+=aT(Math.trunc(-a.o/60)),i+=":",i+=aT(Math.trunc(-a.o%60))):(i+="+",i+=aT(Math.trunc(a.o/60)),i+=":",i+=aT(Math.trunc(a.o%60)))),f&&(i+="["+a.zone.ianaName+"]"),i}let cJ={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},cK={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},cL={ordinal:1,hour:0,minute:0,second:0,millisecond:0},cM=["year","month","day","hour","minute","second","millisecond"],cN=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],cO=["year","ordinal","hour","minute","second","millisecond"];function cP(a){let b={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[a.toLowerCase()];if(!b)throw new i(a);return b}function cQ(a){switch(a.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return cP(a)}}function cR(a,b){let d,e,f=ah(b.zone,av.defaultZone);if(!f.isValid)return cV.invalid(cy(f));let g=ad.fromObject(b);if(aK(a.year))d=av.now();else{for(let b of cM)aK(a[b])&&(a[b]=cJ[b]);let b=aI(a)||aJ(a);if(b)return cV.invalid(b);let g=function(a){if(void 0===c&&(c=av.now()),"iana"!==a.type)return a.offset(c);let b=a.name,d=cU.get(b);return void 0===d&&(d=a.offset(c),cU.set(b,d)),d}(f);[d,e]=cC(a_(a),g,f)}return new cV({ts:d,zone:f,loc:g,o:e})}function cS(a,b,c){let d=!!aK(c.round)||c.round,e=aK(c.rounding)?"trunc":c.rounding,f=(a,f)=>(a=aX(a,d||c.calendary?0:2,c.calendary?"round":e),b.loc.clone(c).relFormatter(c).format(a,f)),g=d=>c.calendary?b.hasSame(a,d)?0:b.startOf(d).diff(a.startOf(d),d).get(d):b.diff(a,d).get(d);if(c.unit)return f(g(c.unit),c.unit);for(let a of c.units){let b=g(a);if(Math.abs(b)>=1)return f(b,a)}return f(a>b?-0:0,c.units[c.units.length-1])}function cT(a){let b={},c;return a.length>0&&"object"==typeof a[a.length-1]?(b=a[a.length-1],c=Array.from(a).slice(0,a.length-1)):c=Array.from(a),[b,c]}let cU=new Map;class cV{constructor(a){let b=a.zone||av.defaultZone,c=a.invalid||(Number.isNaN(a.ts)?new aw("invalid input"):null)||(b.isValid?null:cy(b));this.ts=aK(a.ts)?av.now():a.ts;let d=null,e=null;if(!c)if(a.old&&a.old.ts===this.ts&&a.old.zone.equals(b))[d,e]=[a.old.c,a.old.o];else{let f=aL(a.o)&&!a.old?a.o:b.offset(this.ts);d=(c=Number.isNaN((d=cD(this.ts,f)).year)?new aw("invalid input"):null)?null:d,e=c?null:f}this._zone=b,this.loc=a.loc||ad.create(),this.invalid=c,this.weekData=null,this.localWeekData=null,this.c=d,this.o=e,this.isLuxonDateTime=!0}static now(){return new cV({})}static local(){let[a,b]=cT(arguments),[c,d,e,f,g,h,i]=b;return cR({year:c,month:d,day:e,hour:f,minute:g,second:h,millisecond:i},a)}static utc(){let[a,b]=cT(arguments),[c,d,e,f,g,h,i]=b;return a.zone=af.utcInstance,cR({year:c,month:d,day:e,hour:f,minute:g,second:h,millisecond:i},a)}static fromJSDate(a,b={}){let c="[object Date]"===Object.prototype.toString.call(a)?a.valueOf():NaN;if(Number.isNaN(c))return cV.invalid("invalid input");let d=ah(b.zone,av.defaultZone);return d.isValid?new cV({ts:c,zone:d,loc:ad.fromObject(b)}):cV.invalid(cy(d))}static fromMillis(a,b={}){if(aL(a))if(a<-864e13||a>864e13)return cV.invalid("Timestamp out of range");else return new cV({ts:a,zone:ah(b.zone,av.defaultZone),loc:ad.fromObject(b)});throw new j(`fromMillis requires a numerical input, but received a ${typeof a} with value ${a}`)}static fromSeconds(a,b={}){if(aL(a))return new cV({ts:1e3*a,zone:ah(b.zone,av.defaultZone),loc:ad.fromObject(b)});throw new j("fromSeconds requires a numerical input")}static fromObject(a,b={}){var c;a=a||{};let d=ah(b.zone,av.defaultZone);if(!d.isValid)return cV.invalid(cy(d));let e=ad.fromObject(b),f=a6(a,cQ),{minDaysInFirstWeek:g,startOfWeek:i}=aH(f,e),j=av.now(),k=aK(b.specificOffset)?d.offset(j):b.specificOffset,l=!aK(f.ordinal),m=!aK(f.year),n=!aK(f.month)||!aK(f.day),o=m||n,p=f.weekYear||f.weekNumber;if((o||l)&&p)throw new h("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(n&&l)throw new h("Can't mix ordinal dates with month/day");let q=p||f.weekday&&!o,r,s,t=cD(j,k);q?(r=cN,s=cK,t=aD(t,g,i)):l?(r=cO,s=cL,t=aF(t)):(r=cM,s=cJ);let u=!1;for(let a of r)aK(f[a])?u?f[a]=s[a]:f[a]=t[a]:u=!0;let v=(q?function(a,b=4,c=1){let d=aM(a.weekYear),e=aS(a.weekNumber,1,a1(a.weekYear,b,c)),f=aS(a.weekday,1,7);return d?e?!f&&az("weekday",a.weekday):az("week",a.weekNumber):az("weekYear",a.weekYear)}(f,g,i):l?function(a){let b=aM(a.year),c=aS(a.ordinal,1,aZ(a.year));return b?!c&&az("ordinal",a.ordinal):az("year",a.year)}(f):aI(f))||aJ(f);if(v)return cV.invalid(v);let[w,x]=(c=q?aE(f,g,i):l?aG(f):f,cC(a_(c),k,d)),y=new cV({ts:w,zone:d,o:x,loc:e});return f.weekday&&o&&a.weekday!==y.weekday?cV.invalid("mismatched weekday",`you can't specify both a weekday of ${f.weekday} and a date of ${y.toISO()}`):y.isValid?y:cV.invalid(y.invalid)}static fromISO(a,b={}){let[c,d]=bs(a,[bT,bX],[bU,bY],[bV,bZ],[bW,b$]);return cF(c,d,b,"ISO 8601",a)}static fromRFC2822(a,b={}){let[c,d]=bs(a.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim(),[bM,bN]);return cF(c,d,b,"RFC 2822",a)}static fromHTTP(a,b={}){let[c,d]=bs(a,[bO,bR],[bP,bR],[bQ,bS]);return cF(c,d,b,"HTTP",b)}static fromFormat(a,b,c={}){if(aK(a)||aK(b))throw new j("fromFormat requires an input string and a format");let{locale:d=null,numberingSystem:e=null}=c,[f,g,h,i]=function(a,b,c){let{result:d,zone:e,specificOffset:f,invalidReason:g}=cv(a,b,c);return[d,e,f,g]}(ad.fromOpts({locale:d,numberingSystem:e,defaultToEN:!0}),a,b);return i?cV.invalid(i):cF(f,g,c,`format ${b}`,a,h)}static fromString(a,b,c={}){return cV.fromFormat(a,b,c)}static fromSQL(a,b={}){let[c,d]=bs(a,[b0,bX],[b1,b2]);return cF(c,d,b,"SQL",a)}static invalid(a,b=null){if(!a)throw new j("need to specify a reason the DateTime is invalid");let c=a instanceof aw?a:new aw(a,b);if(!av.throwOnInvalid)return new cV({invalid:c});throw new e(c)}static isDateTime(a){return a&&a.isLuxonDateTime||!1}static parseFormatForOpts(a,b={}){let c=cw(a,ad.fromObject(b));return c?c.map(a=>a?a.val:null).join(""):null}static expandFormat(a,b={}){return ct(bo.parseFormat(a),ad.fromObject(b)).map(a=>a.val).join("")}static resetCache(){c=void 0,cU.clear()}get(a){return this[a]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?cz(this).weekYear:NaN}get weekNumber(){return this.isValid?cz(this).weekNumber:NaN}get weekday(){return this.isValid?cz(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?cA(this).weekday:NaN}get localWeekNumber(){return this.isValid?cA(this).weekNumber:NaN}get localWeekYear(){return this.isValid?cA(this).weekYear:NaN}get ordinal(){return this.isValid?aF(this.c).ordinal:NaN}get monthShort(){return this.isValid?cg.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?cg.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?cg.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?cg.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let a=a_(this.c),b=this.zone.offset(a-864e5),c=this.zone.offset(a+864e5),d=this.zone.offset(a-6e4*b),e=this.zone.offset(a-6e4*c);if(d===e)return[this];let f=a-6e4*d,g=a-6e4*e,h=cD(f,d),i=cD(g,e);return h.hour===i.hour&&h.minute===i.minute&&h.second===i.second&&h.millisecond===i.millisecond?[cB(this,{ts:f}),cB(this,{ts:g})]:[this]}get isInLeapYear(){return aY(this.year)}get daysInMonth(){return a$(this.year,this.month)}get daysInYear(){return this.isValid?aZ(this.year):NaN}get weeksInWeekYear(){return this.isValid?a1(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?a1(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(a={}){let{locale:b,numberingSystem:c,calendar:d}=bo.create(this.loc.clone(a),a).resolvedOptions(this);return{locale:b,numberingSystem:c,outputCalendar:d}}toUTC(a=0,b={}){return this.setZone(af.instance(a),b)}toLocal(){return this.setZone(av.defaultZone)}setZone(a,{keepLocalTime:b=!1,keepCalendarTime:c=!1}={}){if((a=ah(a,av.defaultZone)).equals(this.zone))return this;{if(!a.isValid)return cV.invalid(cy(a));let e=this.ts;if(b||c){var d;let b=a.offset(this.ts),c=this.toObject();[e]=(d=a,cC(a_(c),b,d))}return cB(this,{ts:e,zone:a})}}reconfigure({locale:a,numberingSystem:b,outputCalendar:c}={}){return cB(this,{loc:this.loc.clone({locale:a,numberingSystem:b,outputCalendar:c})})}setLocale(a){return this.reconfigure({locale:a})}set(a){var b,c,d;let e;if(!this.isValid)return this;let f=a6(a,cQ),{minDaysInFirstWeek:g,startOfWeek:i}=aH(f,this.loc),j=!aK(f.weekYear)||!aK(f.weekNumber)||!aK(f.weekday),k=!aK(f.ordinal),l=!aK(f.year),m=!aK(f.month)||!aK(f.day),n=f.weekYear||f.weekNumber;if((l||m||k)&&n)throw new h("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(m&&k)throw new h("Can't mix ordinal dates with month/day");j?e=aE({...aD(this.c,g,i),...f},g,i):aK(f.ordinal)?(e={...this.toObject(),...f},aK(f.day)&&(e.day=Math.min(a$(e.year,e.month),e.day))):e=aG({...aF(this.c),...f});let[o,p]=(b=e,c=this.o,d=this.zone,cC(a_(b),c,d));return cB(this,{ts:o,o:p})}plus(a){return this.isValid?cB(this,cE(this,cd.fromDurationLike(a))):this}minus(a){return this.isValid?cB(this,cE(this,cd.fromDurationLike(a).negate())):this}startOf(a,{useLocaleWeeks:b=!1}={}){if(!this.isValid)return this;let c={},d=cd.normalizeUnit(a);switch(d){case"years":c.month=1;case"quarters":case"months":c.day=1;case"weeks":case"days":c.hour=0;case"hours":c.minute=0;case"minutes":c.second=0;case"seconds":c.millisecond=0}if("weeks"===d)if(b){let a=this.loc.getStartOfWeek(),{weekday:b}=this;b=3&&(h+="T"),h+=cI(this,g,b,c,d,e,f)}toISODate({format:a="extended",precision:b="day"}={}){return this.isValid?cH(this,"extended"===a,cP(b)):null}toISOWeekDate(){return cG(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:a=!1,suppressSeconds:b=!1,includeOffset:c=!0,includePrefix:d=!1,extendedZone:e=!1,format:f="extended",precision:g="milliseconds"}={}){return this.isValid?(g=cP(g),(d&&cM.indexOf(g)>=3?"T":"")+cI(this,"extended"===f,b,a,c,e,g)):null}toRFC2822(){return cG(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return cG(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?cH(this,!0):null}toSQLTime({includeOffset:a=!0,includeZone:b=!1,includeOffsetSpace:c=!0}={}){let d="HH:mm:ss.SSS";return(b||a)&&(c&&(d+=" "),b?d+="z":a&&(d+="ZZ")),cG(this,d,!0)}toSQL(a={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(a)}`:null}toString(){return this.isValid?this.toISO():cx}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(a={}){if(!this.isValid)return{};let b={...this.c};return a.includeConfig&&(b.outputCalendar=this.outputCalendar,b.numberingSystem=this.loc.numberingSystem,b.locale=this.loc.locale),b}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(a,b="milliseconds",c={}){if(!this.isValid||!a.isValid)return cd.invalid("created by diffing an invalid DateTime");let d={locale:this.locale,numberingSystem:this.numberingSystem,...c},e=(Array.isArray(b)?b:[b]).map(cd.normalizeUnit),f=a.valueOf()>this.valueOf(),g=function(a,b,c,d){let[e,f,g,h]=function(a,b,c){let d,e,f={},g=a;for(let[h,i]of[["years",(a,b)=>b.year-a.year],["quarters",(a,b)=>b.quarter-a.quarter+(b.year-a.year)*4],["months",(a,b)=>b.month-a.month+(b.year-a.year)*12],["weeks",(a,b)=>{let c=ch(a,b);return(c-c%7)/7}],["days",ch]])c.indexOf(h)>=0&&(d=h,f[h]=i(a,b),(e=g.plus(f))>b?(f[h]--,(a=g.plus(f))>b&&(e=a,f[h]--,a=g.plus(f))):a=e);return[a,f,e,d]}(a,b,c),i=b-e,j=c.filter(a=>["hours","minutes","seconds","milliseconds"].indexOf(a)>=0);0===j.length&&(g0?cd.fromMillis(i,d).shiftTo(...j).plus(k):k}(f?this:a,f?a:this,e,d);return f?g.negate():g}diffNow(a="milliseconds",b={}){return this.diff(cV.now(),a,b)}until(a){return this.isValid?cf.fromDateTimes(this,a):this}hasSame(a,b,c){if(!this.isValid)return!1;let d=a.valueOf(),e=this.setZone(a.zone,{keepLocalTime:!0});return e.startOf(b,c)<=d&&d<=e.endOf(b,c)}equals(a){return this.isValid&&a.isValid&&this.valueOf()===a.valueOf()&&this.zone.equals(a.zone)&&this.loc.equals(a.loc)}toRelative(a={}){if(!this.isValid)return null;let b=a.base||cV.fromObject({},{zone:this.zone}),c=a.padding?thisa.valueOf(),Math.min)}static max(...a){if(!a.every(cV.isDateTime))throw new j("max requires all arguments be DateTimes");return aP(a,a=>a.valueOf(),Math.max)}static fromFormatExplain(a,b,c={}){let{locale:d=null,numberingSystem:e=null}=c;return cv(ad.fromOpts({locale:d,numberingSystem:e,defaultToEN:!0}),a,b)}static fromStringExplain(a,b,c={}){return cV.fromFormatExplain(a,b,c)}static buildFormatParser(a,b={}){let{locale:c=null,numberingSystem:d=null}=b;return new cu(ad.fromOpts({locale:c,numberingSystem:d,defaultToEN:!0}),a)}static fromFormatParser(a,b,c={}){if(aK(a)||aK(b))throw new j("fromFormatParser requires an input string and a format parser");let{locale:d=null,numberingSystem:e=null}=c,f=ad.fromOpts({locale:d,numberingSystem:e,defaultToEN:!0});if(!f.equals(b.locale))throw new j(`fromFormatParser called with a locale of ${f}, but the format parser was created for ${b.locale}`);let{result:g,zone:h,specificOffset:i,invalidReason:k}=b.explainFromTokens(a);return k?cV.invalid(k):cF(g,h,c,`format ${b.format}`,a,i)}static get DATE_SHORT(){return o}static get DATE_MED(){return p}static get DATE_MED_WITH_WEEKDAY(){return q}static get DATE_FULL(){return r}static get DATE_HUGE(){return s}static get TIME_SIMPLE(){return t}static get TIME_WITH_SECONDS(){return u}static get TIME_WITH_SHORT_OFFSET(){return v}static get TIME_WITH_LONG_OFFSET(){return w}static get TIME_24_SIMPLE(){return x}static get TIME_24_WITH_SECONDS(){return y}static get TIME_24_WITH_SHORT_OFFSET(){return z}static get TIME_24_WITH_LONG_OFFSET(){return A}static get DATETIME_SHORT(){return B}static get DATETIME_SHORT_WITH_SECONDS(){return C}static get DATETIME_MED(){return D}static get DATETIME_MED_WITH_SECONDS(){return E}static get DATETIME_MED_WITH_WEEKDAY(){return F}static get DATETIME_FULL(){return G}static get DATETIME_FULL_WITH_SECONDS(){return H}static get DATETIME_HUGE(){return I}static get DATETIME_HUGE_WITH_SECONDS(){return J}}function cW(a){if(cV.isDateTime(a))return a;if(a&&a.valueOf&&aL(a.valueOf()))return cV.fromJSDate(a);if(a&&"object"==typeof a)return cV.fromObject(a);throw new j(`Unknown datetime argument: ${a}, of type ${typeof a}`)}b.DateTime=cV,b.Duration=cd,b.FixedOffsetZone=af,b.IANAZone=Q,b.Info=cg,b.Interval=cf,b.InvalidZone=ag,b.Settings=av,b.SystemZone=M,b.VERSION="3.7.2",b.Zone=K},76442:(a,b,c)=>{var d=c(91893);a.exports=function(a,b,c){var e=d(a);if(1===e.length){var f=e[0],g=f.step;if(1===g&&f.start===b&&f.end===c)return"*";if(1!==g&&f.start===b&&f.end===c-g+1)return"*/"+g}for(var h=[],i=0,j=e.length;ik.end?h=h.concat(Array.from({length:k.end-k.start+1}).map(function(a,b){var c=k.start+b;return(c-k.start)%k.step==0?c:null}).filter(function(a){return null!=a})):k.end===c-k.step+1?h.push(k.start+"/"+k.step):h.push(k.start+"-"+k.end+"/"+k.step)}return h.join(",")}},91893:a=>{function b(a){return{start:a,count:1}}function c(a,b){a.end=b,a.step=b-a.start,a.count=2}function d(a,c,d){c&&(2===c.count?(a.push(b(c.start)),a.push(b(c.end))):a.push(c)),d&&a.push(d)}a.exports=function(a){for(var e=[],f=void 0,g=0;g{c.d(b,{createDeploymentSchedulerTask:()=>g});var d=c(69049),e=c.n(d);let f=new Set;function g(){return{type:"deployment-scheduled-functions",execute:i,enabled:!0}}function h(a,b){return e().parseExpression(a,{tz:b,currentDate:new Date}).next().toDate()}async function i(){let{listDeploymentIds:a}=await c.e(3614).then(c.bind(c,13614));for(let b of a())try{await j(b)}catch(a){console.error(`[Scheduler] Error processing deployment ${b}:`,a)}}async function j(a){let{getSQLiteAdapter:b}=await c.e(70).then(c.bind(c,40070)),d=b();await d.init();let e=d.getDeploymentDatabaseForAnalytics(a);if(e)for(let b of e.listDueScheduledFunctions()){let c=`${a}:${b.id}`;if(f.has(c))continue;let d=e.getFunction(b.functionId);if(!d||!d.enabled){e.updateScheduledFunction(b.id,{nextRunAt:h(b.cronExpression,b.timezone)});continue}f.add(c),k(e,b,d,c).finally(()=>{f.delete(c)})}}async function k(a,b,d,e){try{let e={method:"POST",headers:{"x-trigger":"cron","x-schedule-name":b.name},body:b.config,path:"/_cron/"+b.name,params:{},query:{}},{executeFunction:f}=await c.e(5225).then(c.bind(c,47606)),g=Date.now(),i=await f(d,e,a),j=Date.now()-g;a.logFunctionExecution(d.id,{method:"CRON",path:"/_cron/"+b.name,statusCode:i.response.status,durationMs:j,error:i.error}),a.updateScheduledFunction(b.id,{lastRunAt:new Date,nextRunAt:h(b.cronExpression,b.timezone),lastStatus:i.error?"error":"success",lastError:i.error||void 0,lastDurationMs:j})}catch(d){let c=d instanceof Error?d.message:String(d);console.error(`[Scheduler] Failed to execute ${e}:`,c);try{a.updateScheduledFunction(b.id,{lastRunAt:new Date,nextRunAt:h(b.cronExpression,b.timezone),lastStatus:"error",lastError:c})}catch(a){console.error(`[Scheduler] Failed to update state for ${e}:`,a)}}}}}; \ No newline at end of file diff --git a/.next/server/chunks/9815.js b/.next/server/chunks/9815.js new file mode 100644 index 0000000000000000000000000000000000000000..d870d4ca55e416dfdd2643892996727f9072cde9 --- /dev/null +++ b/.next/server/chunks/9815.js @@ -0,0 +1,4902 @@ +"use strict";exports.id=9815,exports.ids=[740,9815],exports.modules={6027:(a,b,c)=>{c.d(b,{A:()=>e});var d=c(21124);c(38301);let e=[{id:"welcome",title:"Welcome to Open Source Web Studio",body:(0,d.jsxs)("div",{className:"space-y-2 text-sm text-muted-foreground",children:[(0,d.jsx)("p",{children:"Let's take a guided tour of the workspace so you can see how projects, agents, and saves all fit together."}),(0,d.jsx)("p",{children:"The tour takes under two minutes and you can skip at any time."})]}),location:"project-manager",primaryLabel:"Start tour",secondaryLabel:"Skip"},{id:"projects-overview",title:"Projects at a Glance",body:(0,d.jsxs)("div",{className:"space-y-2 text-sm text-muted-foreground",children:[(0,d.jsx)("p",{children:"This is your project gallery. Recent work appears here with quick actions for opening, duplicating, or exporting."}),(0,d.jsx)("p",{children:"I've loaded a demo project so you can explore without setting anything up."})]}),location:"project-manager",target:'[data-tour-id="projects-list"]',showBack:!0,primaryLabel:"Next",secondaryLabel:"Skip"},{id:"create-project",title:"Creating a Project",body:(0,d.jsx)("div",{className:"space-y-2 text-sm text-muted-foreground",children:(0,d.jsx)("p",{children:"Use the New Project button to start fresh. The dialog lets you name the project and add an optional description."})}),location:"project-manager",target:'[data-tour-id="new-project-button"]',showBack:!0,primaryLabel:"Next",secondaryLabel:"Skip"},{id:"project-controls",title:"Exporting a Project",body:(0,d.jsxs)("div",{className:"space-y-2 text-sm text-muted-foreground",children:[(0,d.jsx)("p",{children:"Click the dropdown menu on any project card to access export options. You can export as a ZIP for deployment or JSON for backup."}),(0,d.jsx)("p",{children:"Projects can also be duplicated or deleted from this menu."})]}),location:"project-manager",target:'[data-tour-id="project-export-json"]',showBack:!0,primaryLabel:"Next",secondaryLabel:"Skip"},{id:"edit-project",title:"Editing a Project",body:(0,d.jsxs)("div",{className:"space-y-2 text-sm text-muted-foreground",children:[(0,d.jsx)("p",{children:"To get to the workspace and start editing, simply click on the project card. This will open the full development environment."}),(0,d.jsx)("p",{children:"Click Next to enter the workspace and continue the tour."})]}),location:"project-manager",target:'[data-tour-id="project-card"]',showBack:!0,primaryLabel:"Next",secondaryLabel:"Skip"},{id:"workspace-overview",title:"Workspace Layout",body:(0,d.jsxs)("div",{className:"space-y-2 text-sm text-muted-foreground",children:[(0,d.jsx)("p",{children:"The workspace has four main areas: the assistant conversation, the virtual file explorer, your editor tabs, and the live preview."}),(0,d.jsx)("p",{children:"The VFS works like a project file tree—add HTML, CSS, JS, or assets and the agent can edit them just like local files."})]}),location:"workspace",target:'[data-tour-id="workspace-panels"]',showBack:!0,primaryLabel:"Next",secondaryLabel:"Skip"},{id:"workspace-edit",title:"See the Agent in Action",body:(0,d.jsxs)("div",{className:"space-y-2 text-sm text-muted-foreground",children:[(0,d.jsx)("p",{children:'I\'ll request the agent to change the color of "Our Services" button to a green accent and the agent performs the task.'}),(0,d.jsx)("p",{children:"This mimics what you will see when asking the agent to perform tasks."})]}),location:"workspace",target:'[data-tour-id="assistant-panel"]',showBack:!0,primaryLabel:"Next",secondaryLabel:"Skip"},{id:"workspace-focus",title:"Element Focus Tool",body:(0,d.jsxs)("div",{className:"space-y-2 text-sm text-muted-foreground",children:[(0,d.jsx)("p",{children:"The crosshair tool in the preview panel lets you select and focus on specific elements in your design."}),(0,d.jsx)("p",{children:"Click it to activate element selection mode, then click any element in the preview to highlight it."})]}),location:"workspace",target:'[data-tour-id="focus-crosshair-button"]',showBack:!0,primaryLabel:"Next",secondaryLabel:"Skip"},{id:"workspace-checkpoint",title:"Checkpoints & Manual Saves",body:(0,d.jsxs)("div",{className:"space-y-2 text-sm text-muted-foreground",children:[(0,d.jsx)("p",{children:'The "Discard Changes" button restores to the original saved point, letting you revert any changes back to your last manual save.'}),(0,d.jsx)("p",{children:"If you like the result, use the Save button to lock it in as your manual checkpoint."})]}),location:"workspace",target:'[data-tour-id="discard-changes-button"]',showBack:!0,primaryLabel:"Next",secondaryLabel:"Skip"},{id:"clear-conversation",title:"Clear Conversation",body:(0,d.jsxs)("div",{className:"space-y-2 text-sm text-muted-foreground",children:[(0,d.jsx)("p",{children:"The agent will have the last tasks and responses in memory. You can clear it with the trashcan button to start fresh."}),(0,d.jsx)("p",{children:"This removes the conversation history but keeps your project files intact."})]}),location:"workspace",target:'[data-tour-id="clear-chat-button"]',showBack:!0,primaryLabel:"Next",secondaryLabel:"Skip"},{id:"provider-settings",title:"Connect Your Provider",body:(0,d.jsxs)("div",{className:"space-y-2 text-sm text-muted-foreground",children:[(0,d.jsxs)("p",{children:["Set your API key under Settings → Provider. I recommend trying OpenRouter with the ",(0,d.jsx)("code",{children:"gpt-oss-120b"})," model, but you can use any supported provider."]}),(0,d.jsx)("p",{children:"You can return here anytime from the header menu."}),(0,d.jsx)("p",{className:"text-xs text-orange-500/90",children:"Privacy note: Remote LLM providers (OpenAI, Anthropic, etc.) will receive your code when generating. For complete privacy, use local models with Ollama or LM Studio."})]}),location:"workspace",target:'[data-tour-id="provider-settings-trigger"]',showBack:!0,primaryLabel:"Next",secondaryLabel:"Skip"},{id:"wrap-up",title:"You're Ready!",body:(0,d.jsxs)("div",{className:"space-y-2 text-sm text-muted-foreground",children:[(0,d.jsx)("p",{children:"That's the basics—prompt the agent, preview updates, and save when you're happy. You can replay this tour from the Help menu anytime."}),(0,d.jsx)("p",{children:"Have fun building! Let me know what you ship."})]}),location:"workspace",showBack:!0,primaryLabel:"Finish",secondaryLabel:"Skip"}]},9188:(a,b,c)=>{c.d(b,{SQ:()=>i,_2:()=>j,mB:()=>k,rI:()=>g,ty:()=>h});var d=c(21124);c(38301);var e=c(66848),f=c(15514);function g({...a}){return(0,d.jsx)(e.bL,{"data-slot":"dropdown-menu",...a})}function h({...a}){return(0,d.jsx)(e.l9,{"data-slot":"dropdown-menu-trigger",...a})}function i({className:a,sideOffset:b=4,...c}){return(0,d.jsx)(e.ZL,{children:(0,d.jsx)(e.UC,{"data-slot":"dropdown-menu-content",sideOffset:b,className:(0,f.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-[100] max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-lg",a),...c})})}function j({className:a,inset:b,variant:c="default",...g}){return(0,d.jsx)(e.q7,{"data-slot":"dropdown-menu-item","data-inset":b,"data-variant":c,className:(0,f.cn)("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",a),...g})}function k({className:a,...b}){return(0,d.jsx)(e.wv,{"data-slot":"dropdown-menu-separator",className:(0,f.cn)("bg-border -mx-1 my-1 h-px",a),...b})}},9284:(a,b,c)=>{c.d(b,{X:()=>A});var d=c(21124),e=c(38301),f=c.n(e),g=c(13531),h=c(11482),i=c(19217),j=c(3368),k=c(47089),l=c(25345),m=c(8294),n=c(59405),o=c(78733),p=c(80101),q=c(14263),r=c(36734),s=c(92714),t=c(50337),u=c(34487),v=c(28241),w=c(15514),x=c(50485);let y={mobile:{width:"375px",height:"100%",maxHeight:"667px"},tablet:{width:"768px",height:"100%",maxHeight:"1024px"},desktop:{width:"100%",height:"100%",maxHeight:"900px",maxWidth:"1440px"},responsive:{width:"100%",height:"100%"}},z=(0,e.forwardRef)(({projectId:a,refreshTrigger:b,onFocusSelection:c,hasFocusTarget:f=!1,onClose:z,deploymentId:A,onCaptureScreenshot:B},C)=>{let[D,E]=(0,e.useState)(null),[F,G]=(0,e.useState)("/"),[H,I]=(0,e.useState)(!0),[J,K]=(0,e.useState)(null),[L,M]=(0,e.useState)("tablet"),[N,O]=(0,e.useState)(["/"]),[P,Q]=(0,e.useState)(0),[R,S]=(0,e.useState)(!1),[T,U]=(0,e.useState)(!1),[V,W]=(0,e.useState)(!1),X=(0,e.useCallback)(async()=>{if(Z.current&&R&&B){W(!0);try{let a=await (0,x.captureIframeScreenshot)(Z.current,void 0,void 0,void 0,void 0,void 0,void 0,!1,1500);a&&B(a)}finally{W(!1)}}},[R,B]),Y=(0,e.useMemo)(()=>T?{backgroundColor:"var(--button-preview-active)",color:"white"}:f?{backgroundColor:"rgba(99, 102, 241, 0.12)",color:"var(--button-preview-active)"}:{},[T,f]),Z=(0,e.useRef)(null),$=(0,e.useRef)(null),_=(0,e.useRef)(null),aa=(0,e.useRef)("/"),ab=(0,e.useRef)(null),ac=(0,e.useRef)(!1);(0,e.useImperativeHandle)(C,()=>({captureScreenshot:async a=>Z.current&&R?await (0,x.captureIframeScreenshot)(Z.current,void 0,void 0,void 0,void 0,void 0,void 0,a??!1,1500):(w.v.warn("Cannot capture screenshot: iframe not ready"),null)}),[R]);let ad=(0,e.useCallback)(a=>{if(Z.current&&Z.current.contentWindow)try{Z.current.contentWindow.postMessage(a,"*")}catch(a){w.v.warn("Failed to communicate with preview iframe",a)}},[]),ae=(0,e.useRef)(!1),af=(0,e.useRef)(null),ag=(0,e.useRef)(null),ah=(0,e.useRef)(null),ai=()=>(0,d.jsxs)("div",{className:"p-3 border-b bg-muted/70 flex items-center gap-2",children:[(0,d.jsx)(j.A,{className:"h-4 w-4 md:hidden",style:{color:"var(--button-preview-active)"}}),z?(0,d.jsxs)("button",{type:"button",onClick:z,"aria-label":"Hide preview",className:"relative hidden h-6 w-6 items-center justify-center rounded-sm text-muted-foreground transition-colors hover:text-destructive md:flex group",children:[(0,d.jsx)(j.A,{className:"h-4 w-4 transition-opacity group-hover:opacity-0",style:{color:"var(--button-preview-active)"}}),(0,d.jsx)(k.A,{className:"absolute h-3 w-3 opacity-0 transition-opacity group-hover:opacity-100"})]}):(0,d.jsx)(j.A,{className:"hidden h-4 w-4 md:inline-flex",style:{color:"var(--button-preview-active)"}}),(0,d.jsx)("h3",{className:"text-sm font-medium",children:"Live Preview"})]});(0,e.useEffect)(()=>{_.current=D},[D]),(0,e.useEffect)(()=>{ac.current=T,R&&ad({type:"selector-toggle",active:T})},[T,R,ad]),(0,e.useEffect)(()=>{let a=Z.current;if(!a)return;let b=()=>{ad({type:"selector-toggle",active:ac.current})};return a.addEventListener("load",b),()=>{a.removeEventListener("load",b)}},[R,ad]),(0,e.useEffect)(()=>{aa.current=F},[F]),(0,e.useEffect)(()=>{if(R&&ab.current&&_.current){let a=ab.current;ab.current=null,am(a,_.current)}},[R]),(0,e.useEffect)(()=>()=>{ag.current&&window.clearTimeout(ag.current)},[]);let aj=(0,e.useCallback)(async(b=!1,c=!0)=>{c&&I(!0),K(null);try{await h.vfs.init();let c=b?aa.current:null;$.current&&$.current.cleanupBlobUrls();let d=new g.B(h.vfs,a,void 0,A||void 0);$.current=d;let e=await d.compileProject();E(e),_.current=e;let f=c;f||(f=e.blobUrls.has("/index.html")?"/":e.entryPoint||(e.routes.length>0?e.routes[0].path:"/")),am(f,e)}catch(a){K(a instanceof Error?a.message:"Failed to compile project"),w.v.error("Compilation error:",a)}finally{c&&I(!1)}},[a,A]),ak=(0,e.useCallback)((a=!1,b=!0)=>{if(ae.current){let c=af.current;af.current={preserve:(c?.preserve??!1)||a,showLoading:(c?.showLoading??!1)||b};return}(async(a,b)=>{ae.current=!0;try{await aj(a,b)}finally{ae.current=!1;let a=af.current;af.current=null,a&&ak(a.preserve,a.showLoading)}})(a,b)},[aj]),al=(0,e.useCallback)((a=!1,b=!1)=>{let c=ah.current;ah.current={preserve:(c?.preserve??!1)||a,showLoading:(c?.showLoading??!1)||b},ag.current&&window.clearTimeout(ag.current),ag.current=window.setTimeout(()=>{let a=ah.current;ah.current=null,ag.current=null,a&&ak(a.preserve,a.showLoading)},150)},[ak]);(0,e.useEffect)(()=>{ak()},[a,b,ak]),(0,e.useEffect)(()=>{let b=()=>{al(!0)},c=b=>{b.detail&&b.detail.projectId!==a||al(!0)};return window.addEventListener("filesChanged",b),window.addEventListener("fileContentChanged",c),()=>{window.removeEventListener("filesChanged",b),window.removeEventListener("fileContentChanged",c)}},[a,al]);let am=(a,b)=>{let c,d=b||_.current||D;if(!d)return void w.v.warn("No compiled project available");if(ac.current?U(!1):ad({type:"selector-toggle",active:!1}),!Z.current||!R){ab.current=a;return}let e=a;e.startsWith("/")||(e="/"+e);let f=d.routes.find(a=>a.path===e);c=f?f.file:"/"===e?"/index.html":e.endsWith("/")?e+"index.html":e+".html";let g=d.files.find(a=>a.path===c);if(!g&&!e.endsWith("/")){let a=e+"/index.html";(g=d.files.find(b=>b.path===a))&&(c=a)}if(!g){K(`Page not found: ${a}`),d.files.find(a=>"/index.html"===a.path||"index.html"===a.path)&&"/"!==a&&am("/",b);return}let h="string"==typeof g.content?g.content:new TextDecoder().decode(g.content);h=(h=(h=h.replace(/href="([^"]+)"/g,(a,b)=>{if(!b.endsWith(".css")||b.startsWith("http")||b.startsWith("//"))return a;let c=b.startsWith("/")?b:"/"+b,e=d.blobUrls.get(c);return e?`href="${e}"`:a})).replace(/src="([^"]+)"/g,(a,b)=>{if(!b.endsWith(".js")||b.startsWith("http")||b.startsWith("//"))return a;let c=b.startsWith("/")?b:"/"+b,e=d.blobUrls.get(c);return e?`src="${e}"`:a})).replace(/src="([^"]+\.(png|jpg|jpeg|gif|svg|webp))"/gi,(a,b)=>{let c=b.startsWith("/")?b:"/"+b,e=d.blobUrls.get(c);return e?`src="${e}"`:a});let i=` + + `;h.includes("")?h=h.replace("",i+""):h+=i,Z.current.srcdoc=h,G(e),aa.current=e,Q(a=>(O(b=>[...b.slice(0,a+1),e]),a+1))},an=(0,e.useCallback)(a=>{am(a)},[D]),ao=()=>{if(P>0){let a=P-1;Q(a),am(N[a])}},ap=()=>{if(P{am("/")},ar=()=>{ak(!0,!1)};return((0,e.useEffect)(()=>{let a=a=>{let b=a.data;if(b&&"object"==typeof b){if("navigate"===b.type&&b.path)return void an(b.path);if("selector-selection"===b.type&&b.payload){U(!1),c?.(b.payload);return}"selector-cancelled"===b.type&&U(!1)}};return window.addEventListener("message",a),()=>{window.removeEventListener("message",a)}},[an,c]),(0,e.useEffect)(()=>()=>{$.current&&$.current.cleanupBlobUrls()},[]),H)?(0,d.jsxs)("div",{className:"h-full flex flex-col",children:[(0,d.jsx)(ai,{}),(0,d.jsx)("div",{className:"flex-1 flex items-center justify-center",children:(0,d.jsxs)("div",{className:"text-center space-y-2",children:[(0,d.jsx)(l.A,{className:"w-8 h-8 animate-spin mx-auto text-primary"}),(0,d.jsx)("p",{className:"text-muted-foreground",children:"Compiling project..."})]})})]}):J?(0,d.jsxs)("div",{className:"h-full flex flex-col",children:[(0,d.jsx)(ai,{}),(0,d.jsx)("div",{className:"flex-1 flex items-center justify-center",children:(0,d.jsxs)("div",{className:"text-center text-destructive space-y-2",children:[(0,d.jsx)("p",{className:"font-medium",children:"Error"}),(0,d.jsx)("p",{className:"text-sm mt-2",children:J}),(0,d.jsx)(i.$,{onClick:ar,className:"mt-4",children:"Try Again"})]})})]}):(0,d.jsxs)("div",{className:"h-full flex flex-col",children:[(0,d.jsx)(ai,{}),(0,d.jsxs)("div",{className:"border-b p-2 flex items-center gap-2 md:hidden",children:[(0,d.jsxs)("div",{className:"flex items-center gap-1",children:[(0,d.jsx)(i.$,{size:"icon",variant:"ghost",className:"h-5 w-5",onClick:ao,disabled:0===P,children:(0,d.jsx)(m.A,{className:"h-3 w-3"})}),(0,d.jsx)(i.$,{size:"icon",variant:"ghost",className:"h-5 w-5",onClick:ap,disabled:P>=N.length-1,children:(0,d.jsx)(n.A,{className:"h-3 w-3"})}),(0,d.jsx)(i.$,{size:"icon",variant:"ghost",className:"h-5 w-5",onClick:aq,children:(0,d.jsx)(o.A,{className:"h-3 w-3"})}),(0,d.jsx)(i.$,{size:"icon",variant:"ghost",className:"h-5 w-5",onClick:ar,children:(0,d.jsx)(l.A,{className:"h-3 w-3"})}),(0,d.jsx)(i.$,{size:"icon",variant:"ghost",className:"h-5 w-5",onClick:()=>U(a=>!a),disabled:!R,style:Y,title:T?"Cancel element selection":f?"Replace focused element":"Select element","data-tour-id":"focus-crosshair-button",children:(0,d.jsx)(p.A,{className:"h-3 w-3"})}),B&&(0,d.jsx)(i.$,{size:"icon",variant:"ghost",className:"h-5 w-5",onClick:X,disabled:!R||V,title:"Capture screenshot as thumbnail",children:V?(0,d.jsx)(q.A,{className:"h-3 w-3 animate-spin"}):(0,d.jsx)(r.A,{className:"h-3 w-3"})})]}),D&&D.routes.length>1&&(0,d.jsxs)(v.l6,{value:F,onValueChange:an,children:[(0,d.jsx)(v.bq,{className:"flex-1 h-8 min-w-0 max-w-full",children:(0,d.jsx)(v.yv,{className:"truncate"})}),(0,d.jsx)(v.gC,{children:D.routes.map(a=>(0,d.jsx)(v.eb,{value:a.path,children:a.title||a.path},a.path))})]})]}),(0,d.jsxs)("div",{className:"border-b p-2 hidden md:flex items-center gap-2",children:[(0,d.jsxs)("div",{className:"flex items-center gap-1",children:[(0,d.jsx)(i.$,{size:"icon",variant:"ghost",className:"h-5 w-5",onClick:ao,disabled:0===P,children:(0,d.jsx)(m.A,{className:"h-3 w-3"})}),(0,d.jsx)(i.$,{size:"icon",variant:"ghost",className:"h-5 w-5",onClick:ap,disabled:P>=N.length-1,children:(0,d.jsx)(n.A,{className:"h-3 w-3"})}),(0,d.jsx)(i.$,{size:"icon",variant:"ghost",className:"h-5 w-5",onClick:aq,children:(0,d.jsx)(o.A,{className:"h-3 w-3"})}),(0,d.jsx)(i.$,{size:"icon",variant:"ghost",className:"h-5 w-5",onClick:ar,children:(0,d.jsx)(l.A,{className:"h-3 w-3"})}),(0,d.jsx)(i.$,{size:"icon",variant:"ghost",className:"h-5 w-5",onClick:()=>U(a=>!a),disabled:!R,style:{backgroundColor:T?"var(--button-preview-active)":void 0,color:T?"white":void 0},title:T?"Cancel element focus":"Select element","data-tour-id":"focus-crosshair-button",children:(0,d.jsx)(p.A,{className:"h-3 w-3"})}),B&&(0,d.jsx)(i.$,{size:"icon",variant:"ghost",className:"h-5 w-5",onClick:X,disabled:!R||V,title:"Capture screenshot as thumbnail",children:V?(0,d.jsx)(q.A,{className:"h-3 w-3 animate-spin"}):(0,d.jsx)(r.A,{className:"h-3 w-3"})})]}),(0,d.jsx)("div",{className:"flex-1 px-3 py-1 bg-muted rounded text-sm",children:F}),D&&D.routes.length>1&&(0,d.jsxs)(v.l6,{value:F,onValueChange:an,children:[(0,d.jsx)(v.bq,{className:"w-[200px] h-8",children:(0,d.jsx)(v.yv,{})}),(0,d.jsx)(v.gC,{children:D.routes.map(a=>(0,d.jsx)(v.eb,{value:a.path,children:a.title||a.path},a.path))})]}),(0,d.jsxs)("div",{className:"flex items-center gap-1 border-l pl-2",children:[(0,d.jsx)(i.$,{size:"icon",variant:"ghost",className:"h-5 w-5 rounded-sm",style:{backgroundColor:"mobile"===L?"var(--button-preview-active)":void 0,color:"mobile"===L?"white":void 0},onClick:()=>M("mobile"),children:(0,d.jsx)(s.A,{className:"h-3 w-3"})}),(0,d.jsx)(i.$,{size:"icon",variant:"ghost",className:"h-5 w-5 rounded-sm",style:{backgroundColor:"tablet"===L?"var(--button-preview-active)":void 0,color:"tablet"===L?"white":void 0},onClick:()=>M("tablet"),children:(0,d.jsx)(t.A,{className:"h-3 w-3"})}),(0,d.jsx)(i.$,{size:"icon",variant:"ghost",className:"h-5 w-5 rounded-sm",style:{backgroundColor:"desktop"===L?"var(--button-preview-active)":void 0,color:"desktop"===L?"white":void 0},onClick:()=>M("desktop"),children:(0,d.jsx)(u.A,{className:"h-3 w-3"})})]})]}),(0,d.jsx)("div",{className:"flex-1 bg-muted/20 dark:bg-muted/10 p-4 overflow-auto min-h-0",children:(0,d.jsx)("div",{className:(0,w.cn)("bg-white mx-auto shadow-2xl transition-all duration-300","responsive"!==L&&"rounded-lg"),style:{width:y[L].width||"100%",height:y[L].height||"100%",maxHeight:y[L].maxHeight||"100%",maxWidth:y[L].maxWidth||"100%"},children:(0,d.jsx)("iframe",{ref:a=>{Z.current=a,a&&!R?setTimeout(()=>{S(!0)},0):!a&&R&&S(!1)},className:"w-full h-full rounded-lg",sandbox:"allow-scripts allow-same-origin allow-forms",title:"Preview"})})})]})});z.displayName="MultipagePreview";let A=f().memo(z)},11610:(a,b,c)=>{c.d(b,{M:()=>am});var d=c(21124),e=c(38301),f=c(11482);c(70740);var g=c(19217),h=c(49308),i=c(77850),j=c(15350),k=c(80196),l=c(2510),m=c(75234),n=c(74097),o=c(94684),p=c(71117),q=c(91044),r=c(97950),s=c(84220),t=c(19710),u=c(8294),v=c(59405),w=c(85351),x=c(87251),y=c(97518),z=c(15514),A=c(42378),B=c(30758);let C=[{id:"dashboard",label:"Dashboard",icon:i.A,path:"dashboard"},{id:"projects",label:"Projects",icon:j.A,path:"projects",hasRecentProjects:!0},{id:"deployments",label:"Deployments",icon:k.A,path:"deployments",serverModeOnly:!0},{id:"templates",label:"Templates",icon:l.A,path:"templates"},{id:"skills",label:"Skills",icon:m.A,path:"skills"},{id:"docs",label:"Docs",icon:n.A,path:"docs",subItems:y.P.map(a=>({id:a.id,label:a.title,icon:a.icon,file:a.file}))},{id:"settings",label:"Settings",icon:o.A,path:"settings",subItems:[{id:"application",label:"Application",icon:o.A},{id:"model",label:"Provider & Model",icon:m.A}]},{id:"tour",label:"Guided Tour",icon:p.A,action:"start-tour"},{id:"tester",label:"Model Tester",icon:q.A,path:"/test-generation"},{id:"about",label:"About",icon:p.A,action:"open-about"},{id:"discord",label:"Discord",icon:x.E,href:"https://discord.gg/mAJ8Ss4u"},{id:"github",label:"GitHub",icon:r.A,href:"https://github.com/o-stahl/osw-studio"}];function D({currentView:a,onNavigate:b,onProjectSelect:c,onStartTour:f,onOpenAbout:i,onOpenSettings:k,onServerSync:l,onLogoClick:m,onPinnedChange:n,onHoverChange:o,onCollapsedChange:p,mobileOpen:q=!1,onMobileOpenChange:r}){let s=(0,A.useRouter)(),t=(0,A.useSearchParams)(),x=t.get("doc"),y=t.get("settings"),[D,E]=(0,e.useState)(!0),[F,G]=(0,e.useState)(!1),[H,I]=(0,e.useState)([]),[J,K]=(0,e.useState)(!0),[L,M]=(0,e.useState)(null),[N,O]=(0,e.useState)(()=>{let b=new Set;return"docs"===a&&b.add("docs"),"projects"===a&&b.add("projects"),"settings"===a&&b.add("settings"),b}),[P,Q]=(0,e.useState)(!1),[R,S]=(0,e.useState)(!1),T=!R&&!D&&!F,U=()=>{let a=!D;E(a),localStorage.setItem("osw-admin-sidebar-pinned",String(a)),n?.(a)},V=C.filter(a=>!a.serverModeOnly),W=async a=>{if(r?.(!1),a.href)window.open(a.href,"_blank","noopener,noreferrer");else if(a.path)a.path.startsWith("/")?s.push(a.path):(s.push("/"),b(a.id));else if("start-tour"===a.action&&f)f();else if("open-about"===a.action&&i)i();else if("open-settings"===a.action&&k)k();else if("server-sync"===a.action&&l)l();else if("logout"===a.action)try{(await fetch("/api/auth/logout",{method:"POST"})).ok&&s.push("/admin/login")}catch(a){console.error("Logout failed:",a)}};return(0,d.jsxs)(d.Fragment,{children:[q&&(0,d.jsx)("div",{className:"md:hidden fixed inset-0 bg-black/50 z-40",onClick:()=>r?.(!1)}),(0,d.jsxs)("div",{className:(0,z.cn)("flex flex-col h-screen bg-card transition-all duration-300","border-l md:border-l-0 md:border-r","md:relative md:left-0",D?"md:relative":"md:absolute md:left-0 md:top-0 md:z-40 md:shadow-lg","fixed right-0 top-0 z-50 w-60",T?"":"md:w-60",q?"translate-x-0":"translate-x-full md:translate-x-0"),style:{width:T?"56px":void 0},onMouseEnter:()=>{R||D||(G(!0),o?.(!0))},onMouseLeave:()=>{R||D||(G(!1),o?.(!1))},children:[(0,d.jsxs)("button",{onClick:()=>{R?q&&r?.(!1):U()},onMouseEnter:()=>!R&&Q(!0),onMouseLeave:()=>!R&&Q(!1),className:(0,z.cn)("p-3 border-b flex items-center gap-3 h-[54px] overflow-hidden w-full","hover:bg-accent/50 transition-colors cursor-pointer",T&&"justify-center"),children:[(0,d.jsxs)("div",{className:"relative w-6 h-6 flex items-center justify-center flex-shrink-0",children:[(0,d.jsx)(h.g,{width:24,height:24,className:(0,z.cn)("transition-opacity absolute",P&&"opacity-0")}),D?(0,d.jsx)(u.A,{className:(0,z.cn)("hidden md:block h-6 w-6 transition-opacity absolute",P?"opacity-100":"opacity-0 pointer-events-none")}):(0,d.jsx)(v.A,{className:(0,z.cn)("hidden md:block h-6 w-6 transition-opacity absolute",P?"opacity-100":"opacity-0 pointer-events-none")})]}),!T&&(0,d.jsxs)("div",{className:"flex flex-col",children:[(0,d.jsx)("span",{className:"text-sm font-semibold whitespace-nowrap leading-none",children:P&&!D?"Pin":"Open\xa0Source Web\xa0Studio"}),!(P&&!D)&&(0,d.jsx)("span",{className:"text-[10px] leading-[10px] text-muted-foreground text-left mt-0.5",children:`v${B.rE}`})]})]}),(0,d.jsx)("nav",{className:"flex-1 p-2 space-y-1 overflow-y-auto",children:V.map(e=>{let f=e.icon,h=a===e.id,i=e.subItems&&e.subItems.length>0||e.hasRecentProjects,k=N.has(e.id);return(0,d.jsx)("div",{children:(0,d.jsxs)("div",{className:(0,z.cn)("p-1",k&&i&&"bg-muted rounded-2xl"),children:[(0,d.jsxs)("div",{className:"relative",children:[(0,d.jsxs)(g.$,{variant:h&&!i?"default":"ghost",className:(0,z.cn)("w-full",T?"justify-center px-2":"justify-start",!T&&i&&"pr-8"),onClick:()=>{i&&a===e.id||W(e)},title:T?e.label:void 0,children:[(0,d.jsx)(f,{className:(0,z.cn)("h-4 w-4",!T&&"mr-2")}),!T&&e.label]}),!T&&i&&(0,d.jsx)("button",{className:(0,z.cn)("absolute right-2 top-1/2 -translate-y-1/2","p-1 rounded hover:bg-accent transition-colors"),onClick:a=>{var b;a.preventDefault(),a.stopPropagation(),b=e.id,O(a=>{let c=new Set(a);return c.has(b)?c.delete(b):c.add(b),c})},children:(0,d.jsx)(w.A,{className:(0,z.cn)("h-4 w-4 transition-transform",k&&"rotate-180")})})]}),e.hasRecentProjects&&k&&(0,d.jsx)("div",{className:(0,z.cn)("mt-1 space-y-1",T?"flex flex-col items-center":"ml-4"),children:J?(0,d.jsx)(d.Fragment,{children:[1,2,3].map(a=>(0,d.jsxs)("div",{className:(0,z.cn)("flex items-center gap-2",T?"justify-center p-1":"h-8 px-2"),children:[(0,d.jsx)("div",{className:"h-3 w-3 bg-muted-foreground/20 rounded animate-pulse"}),!T&&(0,d.jsx)("div",{className:"h-3 flex-1 bg-muted-foreground/20 rounded animate-pulse"})]},a))}):H.length>0?H.map(a=>(0,d.jsxs)(g.$,{variant:"ghost",size:"sm",className:(0,z.cn)(T?"w-8 h-8 p-0 justify-center":"w-full justify-start text-xs"),onClick:()=>{r?.(!1),c(a)},title:a.name,children:[(0,d.jsx)(j.A,{className:(0,z.cn)("h-3 w-3 flex-shrink-0",!T&&"mr-2")}),!T&&(0,d.jsx)("span",{className:"truncate",children:a.name})]},a.id)):!T&&(0,d.jsx)("div",{className:"px-2 py-1 text-xs text-muted-foreground",children:"No recent projects"})}),e.subItems&&k&&(0,d.jsx)("div",{className:(0,z.cn)("mt-1 space-y-1",T?"flex flex-col items-center":"ml-4"),children:e.subItems.map(a=>{let c=a.icon,f=a.file?x===a.id:"settings"===e.id&&y===a.id;return(0,d.jsxs)(g.$,{variant:f?"default":"ghost",size:"sm",className:(0,z.cn)(T?"w-8 h-8 p-0 justify-center":"w-full justify-start text-xs"),onClick:()=>{r?.(!1),a.file?s.push(`/?doc=${a.id}`):"settings"===e.id?s.push(`/?settings=${a.id}`):s.push("/"),b(e.id)},title:T?a.label:void 0,children:[(0,d.jsx)(c,{className:(0,z.cn)("h-3 w-3",!T&&"mr-2")}),!T&&a.label]},a.id)})})]})},e.id)})}),!1,(0,d.jsx)("div",{className:"hidden md:block border-t p-2",children:(0,d.jsx)(g.$,{variant:"ghost",size:"sm",className:(0,z.cn)("w-full",T?"justify-center px-2":"justify-start"),onClick:U,title:T?D?"Unpin sidebar":"Pin sidebar":void 0,children:D?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(u.A,{className:(0,z.cn)("h-4 w-4",!T&&"mr-2")}),!T&&"Unpin"]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(v.A,{className:(0,z.cn)("h-4 w-4",!T&&"mr-2")}),!T&&"Pin"]})})})]})]})}function E(a){return(0,d.jsx)(e.Suspense,{fallback:(0,d.jsx)("div",{className:"w-full h-full bg-card"}),children:(0,d.jsx)(D,{...a})})}s.A,t.A;var F=c(91032),G=c(16945),H=c(65828),I=c(33305),J=c(1776),K=c(25345),L=c(53256),M=c(70584),N=c(24417),O=c(68877);function P({items:a}){let b=a.filter(a=>"synced"===a.status).length,c=a.filter(a=>"local-newer"===a.status).length,e=a.filter(a=>"server-newer"===a.status).length,f=a.filter(a=>"conflict"===a.status).length,g=a.filter(a=>"local-only"===a.status).length,h=a.filter(a=>"server-only"===a.status).length,i=[];return b>0&&i.push(`${b} synced`),c>0&&i.push(`${c} local newer`),e>0&&i.push(`${e} server newer`),f>0&&i.push(`${f} conflicts`),g>0&&i.push(`${g} local only`),h>0&&i.push(`${h} server only`),(0,d.jsx)("div",{className:"text-sm text-muted-foreground",children:i.join(", ")})}var Q=c(36736),R=c(75219),S=c(66041),T=c(91292);let U={synced:{label:"Synced",description:"Local and server are in sync. No action needed.",icon:R.A,colorClass:"text-green-600 dark:text-green-400",bgClass:"bg-green-500/10"},"local-newer":{label:"Local newer",description:"You have local changes not yet on the server. Push to sync.",icon:M.A,colorClass:"text-blue-600 dark:text-blue-400",bgClass:"bg-blue-500/10"},"server-newer":{label:"Server newer",description:"Server has updates you don't have locally. Pull to get latest.",icon:N.A,colorClass:"text-orange-600 dark:text-orange-400",bgClass:"bg-orange-500/10"},conflict:{label:"Conflict",description:"Both local and server have changes. Push to overwrite server, or pull to discard local changes.",icon:G.A,colorClass:"text-red-600 dark:text-red-400",bgClass:"bg-red-500/10"},"local-only":{label:"Local only",description:"Only exists in your browser. Push to save to server.",icon:S.A,colorClass:"text-gray-600 dark:text-gray-400",bgClass:"bg-gray-500/10"},"server-only":{label:"Server only",description:"Only exists on server. Pull to download locally.",icon:s.A,colorClass:"text-purple-600 dark:text-purple-400",bgClass:"bg-purple-500/10"},syncing:{label:"Syncing...",description:"Currently syncing with server.",icon:K.A,colorClass:"text-blue-600 dark:text-blue-400",bgClass:"bg-blue-500/10"},error:{label:"Error",description:"Sync failed. Try again.",icon:T.A,colorClass:"text-red-600 dark:text-red-400",bgClass:"bg-red-500/10"}};function V({status:a,showLabel:b=!0,size:c="sm",className:e}){let f=U[a],g=f.icon,h=(0,d.jsxs)("span",{className:(0,z.cn)("inline-flex items-center gap-1 rounded-full font-medium cursor-help","sm"===c?"px-1.5 py-0.5":"px-2 py-1",f.bgClass,f.colorClass,"sm"===c?"text-xs":"text-sm",e),children:[(0,d.jsx)(g,{className:(0,z.cn)("sm"===c?"w-3.5 h-3.5":"w-4 h-4","syncing"===a&&"animate-spin")}),b&&(0,d.jsx)("span",{children:f.label})]});return(0,d.jsx)(Q.Bc,{delayDuration:300,children:(0,d.jsxs)(Q.m_,{children:[(0,d.jsx)(Q.k$,{asChild:!0,children:h}),(0,d.jsx)(Q.ZI,{side:"top",className:"max-w-xs",children:(0,d.jsx)("p",{className:"text-sm",children:f.description})})]})})}var W=c(89339),X=c(71613);let Y=e.forwardRef(({className:a,...b},c)=>(0,d.jsx)(W.bL,{ref:c,className:(0,z.cn)("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",a),...b,children:(0,d.jsx)(W.C1,{className:(0,z.cn)("flex items-center justify-center text-current"),children:(0,d.jsx)(X.A,{className:"h-4 w-4"})})}));function Z({item:a,selected:b,onSelectChange:c,onPush:e,onPull:f,onResolve:h,disabled:i=!1,syncing:j=!1}){let k=["local-newer","local-only","conflict"].includes(a.status),l=["server-newer","server-only","conflict"].includes(a.status),m="conflict"===a.status;return(0,d.jsxs)("div",{className:(0,z.cn)("flex items-center gap-3 p-2 rounded-md hover:bg-muted/50 transition-colors",b&&"bg-muted/30"),children:[(0,d.jsx)(Y,{checked:b,onCheckedChange:a=>c(!0===a),disabled:i||j||"synced"===a.status||"server-only"===a.status,"aria-label":`Select ${a.name}`}),(0,d.jsx)("div",{className:"flex-1 min-w-0",children:(0,d.jsx)("span",{className:"text-sm font-medium truncate block",children:a.name})}),(0,d.jsx)(V,{status:j?"syncing":a.status,showLabel:!0,size:"sm"}),(0,d.jsx)("div",{className:"flex items-center gap-1",children:m&&h?(0,d.jsx)(g.$,{variant:"outline",size:"sm",onClick:h,disabled:i||j,className:"h-7 text-xs",children:"Resolve"}):(0,d.jsxs)(d.Fragment,{children:[k&&e&&(0,d.jsx)(g.$,{variant:"ghost",size:"icon",onClick:e,disabled:i||j,className:"h-7 w-7",title:"Push to server",children:j?(0,d.jsx)(K.A,{className:"h-3.5 w-3.5 animate-spin"}):(0,d.jsx)(M.A,{className:"h-3.5 w-3.5"})}),l&&f&&(0,d.jsx)(g.$,{variant:"ghost",size:"icon",onClick:f,disabled:i||j,className:"h-7 w-7",title:"Pull from server",children:j?(0,d.jsx)(K.A,{className:"h-3.5 w-3.5 animate-spin"}):(0,d.jsx)(N.A,{className:"h-3.5 w-3.5"})})]})})]})}Y.displayName=W.bL.displayName;var $=c(30824),_=c(42830);function aa({items:a,selectedIds:b,syncingIds:c,onSelectedIdsChange:g,onSyncingIdsChange:h,onRefresh:i,onSyncComplete:j,onRegisterPushSelected:k,onRegisterPullSelected:l}){let m=(0,$.j)();(0,e.useRef)(b);let n=(0,e.useRef)(c);(0,e.useRef)(a);let o=async a=>{h(new Set(n.current).add(a.id));try{let b=await f.vfs.getProject(a.id);if(!b)return void _.oR.error(`Project "${a.name}" not found`);let c=await f.vfs.listFiles(a.id),d=await m.pushSingleProject(a.id,b,c);if(d.success){if(d.project){let a=d.project.updatedAt?new Date(d.project.updatedAt):new Date;b.lastSyncedAt=new Date,b.serverUpdatedAt=a,await f.vfs.updateProject(b,{preserveUpdatedAt:!0})}_.oR.success(`Pushed "${a.name}" to server`),i(),j()}else _.oR.error(d.error||"Failed to push project")}catch(a){z.v.error("Push error:",a),_.oR.error("Failed to push project")}finally{let b=new Set(n.current);b.delete(a.id),h(b)}},p=async a=>{h(new Set(n.current).add(a.id));try{let b=await m.pullSingleProject(a.id);if(!b.success||!b.project)return void _.oR.error(b.error||"Failed to pull project");let c=null;try{c=await f.vfs.getProject(a.id)}catch{}if(c)for(let b of(await f.vfs.listFiles(a.id)))await f.vfs.deleteFile(a.id,b.path);else await f.vfs.createProject(b.project.name,b.project.description||"",a.id);for(let c of b.files||[])await f.vfs.createFile(a.id,c.path,c.content||"");let d=null;try{d=await f.vfs.getProject(a.id)}catch{}if(d){let a=b.project.updatedAt?new Date(b.project.updatedAt):new Date;d.name=b.project.name,d.description=b.project.description,d.updatedAt=a,d.lastSyncedAt=new Date,d.serverUpdatedAt=a,await f.vfs.updateProject(d,{preserveUpdatedAt:!0})}_.oR.success(`Pulled "${a.name}" from server`),i(),j()}catch(a){z.v.error("Pull error:",a),_.oR.error("Failed to pull project")}finally{let b=new Set(n.current);b.delete(a.id),h(b)}};return 0===a.length?(0,d.jsx)("div",{className:"text-center py-8 text-muted-foreground",children:"No projects to sync"}):(0,d.jsxs)("div",{children:[(0,d.jsx)(P,{items:a}),(0,d.jsx)("div",{className:"mt-3 border rounded-lg divide-y overflow-y-auto max-h-64",children:a.map(a=>(0,d.jsx)(Z,{item:a,selected:b.has(a.id),onSelectChange:c=>((a,c)=>{let d=new Set(b);c?d.add(a):d.delete(a),g(d)})(a.id,c),onPush:()=>o(a),onPull:()=>p(a),syncing:c.has(a.id),disabled:c.size>0},a.id))})]})}var ab=c(7143);function ac({items:a,selectedIds:b,syncingIds:c,onSelectedIdsChange:f,onSyncingIdsChange:g,onRefresh:h,onSyncComplete:i,onRegisterPushSelected:j,onRegisterPullSelected:k}){let l=(0,$.j)();(0,e.useRef)(b);let m=(0,e.useRef)(c);(0,e.useRef)(a);let n=async a=>{g(new Set(m.current).add(a.id));try{let b=await ab._.getSkill(a.id);if(!b)return void _.oR.error(`Skill "${a.name}" not found`);let c=await l.pushSkill(b);c.success?(c.skill&&await ab._.updateSyncMetadata(a.id,new Date,new Date(c.skill.updatedAt)),_.oR.success(`Pushed "${a.name}" to server`),h(),i()):_.oR.error(c.error||"Failed to push skill")}catch(a){z.v.error("Push skill error:",a),_.oR.error("Failed to push skill")}finally{let b=new Set(m.current);b.delete(a.id),g(b)}},o=async a=>{g(new Set(m.current).add(a.id));try{let b=await l.pullSkill(a.id);if(!b.success||!b.skill)return void _.oR.error(b.error||"Failed to pull skill");await ab._.importFromServer(b.skill),_.oR.success(`Pulled "${a.name}" from server`),h(),i()}catch(a){z.v.error("Pull skill error:",a),_.oR.error("Failed to pull skill")}finally{let b=new Set(m.current);b.delete(a.id),g(b)}};return 0===a.length?(0,d.jsx)("div",{className:"text-center py-8 text-muted-foreground",children:"No custom skills to sync"}):(0,d.jsxs)("div",{children:[(0,d.jsx)(P,{items:a}),(0,d.jsx)("div",{className:"mt-3 border rounded-lg divide-y overflow-y-auto max-h-64",children:a.map(a=>(0,d.jsx)(Z,{item:a,selected:b.has(a.id),onSelectChange:c=>((a,c)=>{let d=new Set(b);c?d.add(a):d.delete(a),f(d)})(a.id,c),onPush:()=>n(a),onPull:()=>o(a),syncing:c.has(a.id),disabled:c.size>0},a.id))})]})}function ad({items:a,selectedIds:b,syncingIds:c,onSelectedIdsChange:g,onSyncingIdsChange:h,onRefresh:i,onSyncComplete:j,onRegisterPushSelected:k,onRegisterPullSelected:l}){let m=(0,$.j)();(0,e.useRef)(b);let n=(0,e.useRef)(c);(0,e.useRef)(a);let o=async a=>{h(new Set(n.current).add(a.id));try{await f.vfs.init();let b=await f.vfs.getStorageAdapter().getCustomTemplate(a.id);if(!b)return void _.oR.error(`Template "${a.name}" not found`);let c=await m.pushTemplate(b);c.success?(_.oR.success(`Pushed "${a.name}" to server`),i(),j()):_.oR.error(c.error||"Failed to push template")}catch(a){z.v.error("Push template error:",a),_.oR.error("Failed to push template")}finally{let b=new Set(n.current);b.delete(a.id),h(b)}},p=async a=>{h(new Set(n.current).add(a.id));try{let b=await m.pullTemplate(a.id);if(!b.success||!b.template)return void _.oR.error(b.error||"Failed to pull template");await f.vfs.init();let c={...b.template,importedAt:new Date(b.template.importedAt),updatedAt:b.template.updatedAt?new Date(b.template.updatedAt):new Date};await f.vfs.getStorageAdapter().saveCustomTemplate(c),_.oR.success(`Pulled "${a.name}" from server`),i(),j()}catch(a){z.v.error("Pull template error:",a),_.oR.error("Failed to pull template")}finally{let b=new Set(n.current);b.delete(a.id),h(b)}};return 0===a.length?(0,d.jsx)("div",{className:"text-center py-8 text-muted-foreground",children:"No custom templates to sync"}):(0,d.jsxs)("div",{children:[(0,d.jsx)(P,{items:a}),(0,d.jsx)("div",{className:"mt-3 border rounded-lg divide-y overflow-y-auto max-h-64",children:a.map(a=>(0,d.jsx)(Z,{item:a,selected:b.has(a.id),onSelectChange:c=>((a,c)=>{let d=new Set(b);c?d.add(a):d.delete(a),g(d)})(a.id,c),onPush:()=>o(a),onPull:()=>p(a),syncing:c.has(a.id),disabled:c.size>0},a.id))})]})}var ae=c(50987),af=c(21296);function ag({syncStatus:a,onRefresh:b,onSyncComplete:c,onBulkActionStateChange:f}){let[g,h]=(0,e.useState)("projects"),[i,j]=(0,e.useState)(new Set),[k,l]=(0,e.useState)(new Set),[m,o]=(0,e.useState)(new Set),[p,q]=(0,e.useState)(new Set),[r,s]=(0,e.useState)(new Set),[t,u]=(0,e.useState)(new Set),v=(0,e.useRef)(null),w=(0,e.useRef)(null),x=a.projects.items.length,y=a.skills.items.length,z=a.templates.items.length,A=(0,e.useCallback)(a=>a.filter(a=>"synced"!==a.status&&"server-only"!==a.status),[]);(0,e.useCallback)((a,b)=>a.filter(a=>b.has(a.id)&&["local-newer","local-only","conflict"].includes(a.status)),[]),(0,e.useCallback)((a,b)=>a.filter(a=>b.has(a.id)&&["server-newer","server-only","conflict"].includes(a.status)),[]);let B=(0,e.useCallback)(()=>{switch(g){case"projects":return{items:a.projects.items,selectedIds:i,setSelectedIds:j,syncingIds:p};case"skills":return{items:a.skills.items,selectedIds:k,setSelectedIds:l,syncingIds:r};case"templates":return{items:a.templates.items,selectedIds:m,setSelectedIds:o,syncingIds:t}}},[g,a,i,k,m,p,r,t]);(0,e.useCallback)(()=>{let{items:a,selectedIds:b,setSelectedIds:c}=B(),d=A(a);c(b.size===d.length&&d.length>0?new Set:new Set(d.map(a=>a.id)))},[B,A]),(0,e.useCallback)(async()=>{v.current&&await v.current()},[]),(0,e.useCallback)(async()=>{w.current&&await w.current()},[]);let C=(0,e.useCallback)(a=>{v.current=a},[]),D=(0,e.useCallback)(a=>{w.current=a},[]);return(0,d.jsxs)(O.tU,{value:g,onValueChange:a=>h(a),children:[(0,d.jsxs)(O.j7,{className:"grid w-full grid-cols-3",children:[(0,d.jsxs)(O.Xi,{value:"projects",className:"flex items-center gap-1.5",children:[(0,d.jsx)(ae.A,{className:"h-3.5 w-3.5"}),(0,d.jsx)("span",{children:"Projects"}),(0,d.jsxs)("span",{className:"text-xs text-muted-foreground",children:["(",x,")"]})]}),(0,d.jsxs)(O.Xi,{value:"skills",className:"flex items-center gap-1.5",children:[(0,d.jsx)(n.A,{className:"h-3.5 w-3.5"}),(0,d.jsx)("span",{children:"Skills"}),(0,d.jsxs)("span",{className:"text-xs text-muted-foreground",children:["(",y,")"]})]}),(0,d.jsxs)(O.Xi,{value:"templates",className:"flex items-center gap-1.5",children:[(0,d.jsx)(af.A,{className:"h-3.5 w-3.5"}),(0,d.jsx)("span",{children:"Templates"}),(0,d.jsxs)("span",{className:"text-xs text-muted-foreground",children:["(",z,")"]})]})]}),(0,d.jsx)(O.av,{value:"projects",className:"mt-4",children:(0,d.jsx)(aa,{items:a.projects.items,selectedIds:i,syncingIds:p,onSelectedIdsChange:j,onSyncingIdsChange:q,onRefresh:b,onSyncComplete:c,onRegisterPushSelected:C,onRegisterPullSelected:D})}),(0,d.jsx)(O.av,{value:"skills",className:"mt-4",children:(0,d.jsx)(ac,{items:a.skills.items,selectedIds:k,syncingIds:r,onSelectedIdsChange:l,onSyncingIdsChange:s,onRefresh:b,onSyncComplete:c,onRegisterPushSelected:C,onRegisterPullSelected:D})}),(0,d.jsx)(O.av,{value:"templates",className:"mt-4",children:(0,d.jsx)(ad,{items:a.templates.items,selectedIds:m,syncingIds:t,onSelectedIdsChange:o,onSyncingIdsChange:u,onRefresh:b,onSyncComplete:c,onRegisterPushSelected:C,onRegisterPullSelected:D})})]})}function ah(a){return{syncedCount:a.filter(a=>"synced"===a.status).length,localNewerCount:a.filter(a=>"local-newer"===a.status).length,serverNewerCount:a.filter(a=>"server-newer"===a.status).length,conflictCount:a.filter(a=>"conflict"===a.status).length,localOnlyCount:a.filter(a=>"local-only"===a.status).length,serverOnlyCount:a.filter(a=>"server-only"===a.status).length}}function ai(a,b,c){if(!a)return b?"server-only":"synced";if(!b)return"local-only";if(!c)return a>b?"local-newer":b>a?"server-newer":"synced";let d=a>c,e=b>c;return d&&e?"conflict":d?"local-newer":e?"server-newer":"synced"}let aj={items:[],syncedCount:0,localNewerCount:0,serverNewerCount:0,conflictCount:0,localOnlyCount:0,serverOnlyCount:0},ak={projects:aj,skills:aj,templates:aj,loading:!0,error:null};function al({open:a,onOpenChange:b,onSyncComplete:c}){let[h,i]=(0,e.useState)(!1),[j,k]=(0,e.useState)(!0),{status:l,refresh:m,loading:n,error:o}=function(){let[a,b]=(0,e.useState)(ak),c=(0,$.j)();return{status:a,refresh:(0,e.useCallback)(async()=>{b(a=>({...a,loading:!0,error:null}));try{let a=await c.getEnhancedSyncStatus();if(!a.success||!a.data)return void b(b=>({...b,loading:!1,error:a.error||"Failed to fetch server status"}));let d=a.data,e=new Map(d.projects.map(a=>[a.id,{name:a.name,updatedAt:new Date(a.updatedAt)}])),g=new Map(d.skills.map(a=>[a.id,{name:a.name,updatedAt:new Date(a.updatedAt)}])),h=new Map(d.templates.map(a=>[a.id,{name:a.name,updatedAt:new Date(a.updatedAt)}]));await f.vfs.init();let i=await f.vfs.listProjects(),j=await ab._.getCustomSkills(),k=await f.vfs.getStorageAdapter().getAllCustomTemplates(),l=[],m=new Set;for(let a of i){m.add(a.id);let b=e.get(a.id),c=ai(a.updatedAt,b?.updatedAt||null,a.lastSyncedAt||null);l.push({id:a.id,name:a.name,type:"project",localUpdatedAt:a.updatedAt,serverUpdatedAt:b?.updatedAt||null,lastSyncedAt:a.lastSyncedAt||null,status:c})}for(let[a,b]of e)m.has(a)||l.push({id:a,name:b.name,type:"project",localUpdatedAt:null,serverUpdatedAt:b.updatedAt,lastSyncedAt:null,status:"server-only"});let n=[],o=new Set;for(let a of j){o.add(a.id);let b=g.get(a.id),c=ai(a.updatedAt,b?.updatedAt||null,a.lastSyncedAt||null);n.push({id:a.id,name:a.name,type:"skill",localUpdatedAt:a.updatedAt,serverUpdatedAt:b?.updatedAt||null,lastSyncedAt:a.lastSyncedAt||null,status:c})}for(let[a,b]of g)o.has(a)||n.push({id:a,name:b.name,type:"skill",localUpdatedAt:null,serverUpdatedAt:b.updatedAt,lastSyncedAt:null,status:"server-only"});let p=[],q=new Set;for(let a of k){q.add(a.id);let b=h.get(a.id),c=a.updatedAt||a.importedAt,d=ai(c,b?.updatedAt||null,null);p.push({id:a.id,name:a.name,type:"template",localUpdatedAt:c,serverUpdatedAt:b?.updatedAt||null,lastSyncedAt:null,status:d})}for(let[a,b]of h)q.has(a)||p.push({id:a,name:b.name,type:"template",localUpdatedAt:null,serverUpdatedAt:b.updatedAt,lastSyncedAt:null,status:"server-only"});let r=ah(l),s=ah(n),t=ah(p);b({projects:{items:l,...r},skills:{items:n,...s},templates:{items:p,...t},loading:!1,error:null})}catch(a){z.v.error("[useSyncStatus] Error fetching sync status:",a),b(b=>({...b,loading:!1,error:a instanceof Error?a.message:"Failed to fetch sync status"}))}},[c]),loading:a.loading,error:a.error}}(),[p,q]=(0,e.useState)(null),r="sm:max-w-2xl";return j?(0,d.jsx)(I.lG,{open:a,onOpenChange:b,children:(0,d.jsx)(I.Cf,{className:r,children:(0,d.jsxs)(I.c7,{children:[(0,d.jsx)(I.L3,{children:"Server Sync"}),(0,d.jsx)(I.rr,{children:"Checking authentication status..."})]})})}):h?(0,d.jsx)(I.lG,{open:a,onOpenChange:b,children:(0,d.jsxs)(I.Cf,{className:r,children:[(0,d.jsxs)(I.c7,{children:[(0,d.jsxs)(I.L3,{className:"flex items-center gap-2",children:[(0,d.jsx)(s.A,{className:"w-5 h-5"}),"Server Sync"]}),(0,d.jsx)(I.rr,{children:"Synchronize projects, skills, and templates between your browser and the server."})]}),(0,d.jsxs)("div",{children:[o&&(0,d.jsxs)("div",{className:"flex items-start gap-3 p-3 bg-red-500/10 border border-red-500/30 rounded-lg",children:[(0,d.jsx)(G.A,{className:"w-5 h-5 text-red-500 flex-shrink-0 mt-0.5"}),(0,d.jsxs)("div",{className:"text-sm",children:[(0,d.jsx)("p",{className:"font-medium text-red-600 dark:text-red-400",children:"Error loading sync status"}),(0,d.jsx)("p",{className:"text-muted-foreground mt-1",children:o})]})]}),n&&(0,d.jsxs)("div",{className:"flex items-center justify-center py-8",children:[(0,d.jsx)(K.A,{className:"w-6 h-6 animate-spin text-muted-foreground"}),(0,d.jsx)("span",{className:"ml-2 text-muted-foreground",children:"Loading sync status..."})]}),!n&&!o&&(0,d.jsx)(ag,{syncStatus:l,onRefresh:m,onSyncComplete:()=>{m(),c?.()},onBulkActionStateChange:q})]}),(0,d.jsxs)(I.Es,{className:"flex flex-col sm:flex-row items-stretch sm:items-center gap-2",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 flex-wrap flex-1",children:[p&&p.selectableCount>0&&(0,d.jsxs)(g.$,{variant:"outline",size:"sm",onClick:p.onSelectAll,disabled:p.isSyncing,children:[(0,d.jsx)(L.A,{className:"h-3.5 w-3.5 mr-1.5"}),p.selectedCount===p.selectableCount?"Deselect":"Select All"]}),p&&p.pushableCount>0&&(0,d.jsxs)(g.$,{variant:"outline",size:"sm",onClick:p.onPushSelected,disabled:p.isSyncing,children:[(0,d.jsx)(M.A,{className:"h-3.5 w-3.5 mr-1.5"}),"Push (",p.pushableCount,")"]}),p&&p.pullableCount>0&&(0,d.jsxs)(g.$,{variant:"outline",size:"sm",onClick:p.onPullSelected,disabled:p.isSyncing,children:[(0,d.jsx)(N.A,{className:"h-3.5 w-3.5 mr-1.5"}),"Pull (",p.pullableCount,")"]})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsxs)(g.$,{variant:"outline",size:"sm",onClick:m,disabled:n,children:[(0,d.jsx)(K.A,{className:`w-4 h-4 mr-2 ${n?"animate-spin":""}`}),"Refresh"]}),(0,d.jsx)(g.$,{variant:"outline",onClick:()=>b(!1),children:"Close"})]})]})]})}):(0,d.jsx)(I.lG,{open:a,onOpenChange:b,children:(0,d.jsxs)(I.Cf,{className:r,children:[(0,d.jsxs)(I.c7,{children:[(0,d.jsxs)(I.L3,{className:"flex items-center gap-2",children:[(0,d.jsx)(J.A,{className:"w-5 h-5"}),"Not Authenticated"]}),(0,d.jsx)(I.rr,{children:"You need to login to sync projects, skills, and templates with the server."})]}),(0,d.jsxs)(I.Es,{children:[(0,d.jsx)(g.$,{variant:"outline",onClick:()=>b(!1),children:"Cancel"}),(0,d.jsx)(g.$,{onClick:()=>window.location.href="/admin/login",children:"Go to Login"})]})]})})}function am({children:a,currentView:b,onNavigate:c,onProjectSelect:f,onStartTour:h,onOpenAbout:i,onOpenSettings:j,showSidebar:k=!0}){let l=(0,A.useRouter)(),[m,n]=(0,e.useState)(!0),[o,p]=(0,e.useState)(!1),[,q]=(0,e.useState)(!1),[r,t]=(0,e.useState)(!1),[u,v]=(0,e.useState)(!1),[w,x]=(0,e.useState)(!1),[y,B]=(0,e.useState)(0);return k?(0,d.jsxs)("div",{className:"relative flex h-screen overflow-hidden",children:[(0,d.jsx)(E,{currentView:b,onNavigate:c,onProjectSelect:f,onStartTour:h,onOpenAbout:i,onOpenSettings:j,onServerSync:()=>t(!0),onLogoClick:()=>l.push("/admin"),onPinnedChange:n,onHoverChange:p,onCollapsedChange:q,mobileOpen:u,onMobileOpenChange:v}),!m&&o&&(0,d.jsx)("div",{className:"absolute inset-0 bg-black/20 z-30"}),(0,d.jsxs)("div",{className:(0,z.cn)("flex-1 flex flex-col overflow-hidden transition-all duration-300",!m&&"md:ml-[56px]"),children:[(0,d.jsx)(F.j,{hideLogo:!0,showMobileMenu:!0,onMobileMenuClick:()=>v(!0),hideActionsOnMobile:!0,pageName:b.charAt(0).toUpperCase()+b.slice(1),className:"md:hidden"}),(0,d.jsx)("div",{className:"flex-1 overflow-hidden",children:a})]}),(0,d.jsx)(al,{open:r,onOpenChange:t}),(0,d.jsx)(I.lG,{open:w,onOpenChange:x,children:(0,d.jsxs)(I.Cf,{className:"sm:max-w-md",children:[(0,d.jsxs)(I.c7,{children:[(0,d.jsxs)(I.L3,{className:"flex items-center gap-2",children:[(0,d.jsx)(G.A,{className:"w-5 h-5 text-orange-500"}),"Server Database Not Initialized"]}),(0,d.jsxs)(I.rr,{children:["Your server database is empty, but you have ",y," project",1!==y?"s":""," stored locally."]})]}),(0,d.jsxs)("div",{className:"space-y-4 py-4",children:[(0,d.jsxs)("div",{className:"flex items-start gap-3 p-3 bg-muted rounded-lg",children:[(0,d.jsx)(H.A,{className:"w-5 h-5 text-muted-foreground flex-shrink-0 mt-0.5"}),(0,d.jsxs)("div",{className:"text-sm",children:[(0,d.jsx)("p",{className:"font-medium",children:"Why does this matter?"}),(0,d.jsxs)("p",{className:"text-muted-foreground mt-1",children:["The ",(0,d.jsx)("strong",{children:"Deployments"})," feature requires projects to be synced to the server database. Until you push your local projects, the Deployments view won't show any projects to publish."]})]})]}),(0,d.jsxs)("div",{className:"text-sm text-muted-foreground",children:["Click ",(0,d.jsx)("strong",{children:"Open Sync"})," to push your local projects to the server, or dismiss this message to configure it later."]})]}),(0,d.jsxs)(I.Es,{className:"flex-col sm:flex-row gap-2",children:[(0,d.jsx)(g.$,{variant:"outline",onClick:()=>{localStorage.setItem("osw-server-init-dismissed","true"),x(!1)},children:"Dismiss"}),(0,d.jsxs)(g.$,{onClick:()=>{x(!1),t(!0)},children:[(0,d.jsx)(s.A,{className:"w-4 h-4 mr-2"}),"Open Sync"]})]})]})})]}):(0,d.jsx)(d.Fragment,{children:a})}},14258:(a,b,c)=>{c.d(b,{V:()=>j});var d=c(21124),e=c(38301),f=c(95919),g=c(19217),h=c(14263),i=c(6027);function j({location:a}){let{state:b,next:c,previous:j,skip:k}=(0,f.C)(),{status:l,currentStep:m,stepKey:n,isBusy:o,stepIndex:p}=b,[q,r]=(0,e.useState)(null),s=i.A.length,t=(0,e.useMemo)(()=>!!m&&!!o&&("workspace-edit"===m.id||"workspace-focus"===m.id||"workspace-checkpoint"===m.id),[m,o]);if("running"!==l||!m||m.location!==a)return null;let u=m.primaryLabel??"Next",v=m.secondaryLabel??"Skip";return(0,d.jsxs)("div",{className:"fixed inset-0 z-[2000] pointer-events-auto",children:[(0,d.jsx)("div",{className:"absolute inset-0 bg-background/30"}),q&&(0,d.jsx)("div",{className:"pointer-events-none fixed rounded-xl border-2 border-primary ring-4 ring-primary/30 transition-all animate-ring-opacity",style:{top:q.top,left:q.left,width:q.width,height:q.height}}),(0,d.jsx)("div",{className:"absolute bottom-10 left-1/2 flex w-full max-w-xl -translate-x-1/2 flex-col gap-4 px-4",children:(0,d.jsxs)("div",{className:"pointer-events-auto rounded-2xl border bg-background/95 p-6 shadow-2xl",children:[(0,d.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,d.jsxs)("div",{className:"flex-1",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,d.jsx)("h3",{className:"text-lg font-semibold text-foreground",children:m.title}),(0,d.jsxs)("span",{className:"text-sm text-muted-foreground font-medium",children:[p+1,"/",s]})]}),(0,d.jsx)("div",{className:"mt-2 text-sm leading-relaxed text-muted-foreground",children:m.body})]}),o&&(0,d.jsx)(h.A,{className:"h-5 w-5 animate-spin text-primary"})]}),(0,d.jsxs)("div",{className:"mt-6 flex items-center justify-between",children:[m.showBack?(0,d.jsx)(g.$,{variant:"ghost",onClick:j,disabled:o,children:"Back"}):(0,d.jsx)("div",{}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(g.$,{variant:"ghost",onClick:k,children:v}),(0,d.jsx)(g.$,{onClick:c,disabled:t,children:u})]})]})]})})]})}},15649:(a,b,c)=>{c.d(b,{T:()=>m});var d=c(21124),e=c(38301),f=c.n(e),g=c(45798),h=c(23415),i=c(15514),j=c(78583),k=c(42378);function l(a){return a.toString().toLowerCase().trim().replace(/\s+/g,"-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}function m({content:a,className:b,skipNormalization:c=!1}){let e=(0,k.useRouter)(),m=c?a:function(a){if(!a||"string"!=typeof a)return"";let b=a.split("\n"),c=[],d=!1,e=0,f=a=>{let b=a.trim();return/^```/.test(b)},g=a=>{let b=a.trim();return/^[-*+]\s/.test(b)||/^\d+\.\s/.test(b)},h=a=>/^\s*>/.test(a),i=a=>{let b=a.trim();return!!b&&!(b.length<3)&&[/^(const|let|var|function|class|import|export|return|if|for|while)\s/,/^[a-zA-Z_$][a-zA-Z0-9_$]*\s*[=:({]/,/[{};()[\]]/,/^\/\//,/^#/].some(a=>a.test(b))};for(let a=0;a=4&&!i(j)||k>=2&&k<4){c.push(j.trim());continue}c.push(j)}return c.join("\n").trim()}(a),n=f().useMemo(()=>{let a=m.split("\n"),b=[],c=0;for(let d of a){let a=d.match(/^(#{2,4})\s+(.+)$/);a&&b.push({level:a[1].length,text:a[2].trim(),index:c++})}return b},[m]),o=f().useMemo(()=>{let a=new Map;return n.forEach(b=>{let c=`${b.level}-${b.text}`;a.has(c)||a.set(c,b.index)}),a},[n]);return(0,d.jsx)("div",{className:(0,i.cn)("prose prose-sm dark:prose-invert max-w-none",b),children:(0,d.jsx)(g.oz,{remarkPlugins:[h.A],components:{h1:({children:a})=>{let b=l(a?.toString()||"");return(0,d.jsx)("h1",{id:b,className:"text-3xl font-bold mb-4 mt-8 first:mt-0",children:a})},h2:({children:a})=>{let b=a?.toString()||"",c=l(b),e=`2-${b}`,f=o.get(e);return(0,d.jsx)("h2",{id:c,"data-heading-index":f,className:"text-2xl font-bold mb-3 mt-8 pb-2 border-b border-border/50 first:mt-0",children:a})},h3:({children:a})=>{let b=a?.toString()||"",c=l(b),e=`3-${b}`,f=o.get(e);return(0,d.jsx)("h3",{id:c,"data-heading-index":f,className:"text-xl font-semibold mb-2 mt-6",children:a})},h4:({children:a})=>{let b=a?.toString()||"",c=l(b),e=`4-${b}`,f=o.get(e);return(0,d.jsx)("h4",{id:c,"data-heading-index":f,className:"text-lg font-semibold mb-2 mt-4",children:a})},p:({children:a})=>(0,d.jsx)("p",{className:"mb-4 leading-relaxed last:mb-0",children:a}),ul:({children:a})=>(0,d.jsx)("ul",{className:"list-disc pl-6 mb-4 space-y-2",children:a}),ol:({children:a})=>(0,d.jsx)("ol",{className:"list-decimal pl-6 mb-4 space-y-2",children:a}),li:({children:a})=>(0,d.jsx)("li",{className:"text-sm leading-relaxed",children:a}),pre:({children:a,...b})=>{let c=f().Children.toArray(a).find(a=>f().isValidElement(a)&&"code"===a.type),e=c?.props?.className||"",g=/language-(\w+)/.exec(e),h=g?g[1]:null;return(0,d.jsxs)("div",{className:"relative mb-4 group",children:[h&&(0,d.jsx)("div",{className:"absolute top-2 right-2 px-2 py-1 text-xs font-medium text-muted-foreground bg-background/80 rounded border border-border/50 backdrop-blur-sm",children:h}),(0,d.jsx)("pre",{className:"p-4 rounded-lg bg-muted/50 border border-border/50 overflow-x-auto",...b,children:a})]})},code:({className:a,children:b,...c})=>/language-(\w+)/.exec(a||"")?(0,d.jsx)("code",{className:"font-mono text-xs block",...c,children:b}):(0,d.jsx)("code",{className:"px-1.5 py-0.5 rounded bg-muted/70 border border-border/30 font-mono text-xs",...c,children:b}),blockquote:({children:a})=>(0,d.jsx)("blockquote",{className:"border-l-4 border-primary/30 bg-muted/30 pl-4 pr-4 py-3 mb-4 italic text-muted-foreground rounded-r",children:a}),a:({href:a,children:b})=>{if(!a)return(0,d.jsx)("a",{children:b});let c=a.startsWith("?doc="),f=a.startsWith("?nav=");a.startsWith("#");let g=a.startsWith("http://")||a.startsWith("https://");return(0,d.jsxs)("a",{href:a,onClick:b=>{if(c)b.preventDefault(),e.push(`/${a}`);else if(f){b.preventDefault();let c=a.replace("?nav=","");window.dispatchEvent(new CustomEvent("nav-to-view",{detail:{view:c}})),e.push("/")}},className:(0,i.cn)("text-primary hover:underline cursor-pointer",g&&"inline-flex items-center gap-1"),target:g?"_blank":void 0,rel:g?"noopener noreferrer":void 0,children:[b,g&&(0,d.jsx)(j.A,{className:"h-3 w-3 inline"})]})},strong:({children:a})=>(0,d.jsx)("strong",{className:"font-semibold",children:a}),em:({children:a})=>(0,d.jsx)("em",{className:"italic",children:a}),hr:()=>(0,d.jsx)("hr",{className:"my-8 border-border"}),table:({children:a})=>(0,d.jsx)("div",{className:"overflow-x-auto mb-6 rounded-lg border border-border",children:(0,d.jsx)("table",{className:"min-w-full divide-y divide-border",children:a})}),thead:({children:a})=>(0,d.jsx)("thead",{className:"bg-muted/50",children:a}),tbody:({children:a})=>(0,d.jsx)("tbody",{className:"divide-y divide-border bg-background",children:a}),tr:({children:a})=>(0,d.jsx)("tr",{className:"hover:bg-muted/30 transition-colors",children:a}),th:({children:a})=>(0,d.jsx)("th",{className:"px-4 py-3 text-left text-xs font-semibold tracking-wide",children:a}),td:({children:a})=>(0,d.jsx)("td",{className:"px-4 py-3 text-sm",children:a})},children:m})})}},24780:(a,b,c)=>{c.d(b,{s:()=>y});var d=c(21124),e=c(38301),f=c(14263),g=c(18310),h=c(8849),i=c(15303),j=c(34941),k=c(78460),l=c(90771),m=c(52426),n=c(40284),o=c(19217),p=c(9188),q=c(33305),r=c(7629),s=c(53199),t=c(33847),u=c(28241),v=c(71117);function w({scheduledFunction:a,edgeFunctions:b,isOpen:c,onClose:h,onSave:i}){let[j,k]=(0,e.useState)(a?.name||""),[l,m]=(0,e.useState)(a?.functionId||""),[n,p]=(0,e.useState)(a?.cronExpression||""),[w,x]=(0,e.useState)(a?.timezone||"UTC"),[y,z]=(0,e.useState)(a?.description||""),[A,B]=(0,e.useState)(a?.config?JSON.stringify(a.config,null,2):"{}"),[C,D]=(0,e.useState)(!1),[E,F]=(0,e.useState)(null),G=async()=>{if(F(null),!j.trim())return void F("Name is required");if(!/^[a-z0-9][a-z0-9-]*[a-z0-9]$|^[a-z0-9]$/.test(j))return void F("Name must be lowercase letters, numbers, and hyphens only");if(!l)return void F("Edge function selection is required");if(!n.trim())return void F("Cron expression is required");let b={};if(A.trim())try{let a=JSON.parse(A);if("object"!=typeof a||null===a||Array.isArray(a))return void F("Config must be a JSON object");b=a}catch{F("Config must be valid JSON");return}D(!0);try{await i({name:j.trim(),functionId:l,cronExpression:n.trim(),timezone:w.trim()||"UTC",description:y.trim()||void 0,config:b,enabled:a?.enabled??!0})}catch(a){F(a instanceof Error?a.message:"Failed to save scheduled function")}finally{D(!1)}};return(0,d.jsx)(q.lG,{open:c,onOpenChange:h,children:(0,d.jsxs)(q.Cf,{className:"sm:max-w-lg max-h-[85vh] flex flex-col",children:[(0,d.jsxs)(q.c7,{children:[(0,d.jsx)(q.L3,{children:a?"Edit Schedule":"Create Schedule"}),(0,d.jsx)(q.rr,{children:"Run an edge function on a cron schedule."})]}),(0,d.jsxs)("div",{className:"flex-1 overflow-auto space-y-4",children:[(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)(s.J,{htmlFor:"sched-name",children:"Name"}),(0,d.jsx)(r.p,{id:"sched-name",value:j,onChange:a=>k(a.target.value.toLowerCase()),placeholder:"daily-report",disabled:!!a})]}),(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)(s.J,{htmlFor:"sched-function",children:"Edge Function"}),(0,d.jsxs)(u.l6,{value:l,onValueChange:m,children:[(0,d.jsx)(u.bq,{children:(0,d.jsx)(u.yv,{placeholder:"Select a function..."})}),(0,d.jsx)(u.gC,{children:b.map(a=>(0,d.jsx)(u.eb,{value:a.id,children:a.name},a.id))})]}),0===b.length&&(0,d.jsx)("p",{className:"text-xs text-muted-foreground",children:"No edge functions available. Create one in the Functions tab first."})]}),(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)(s.J,{htmlFor:"sched-cron",children:"Cron Expression"}),(0,d.jsx)(r.p,{id:"sched-cron",value:n,onChange:a=>p(a.target.value),placeholder:"0 8 * * *",className:"font-mono"})]}),(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)(s.J,{htmlFor:"sched-tz",children:"Timezone"}),(0,d.jsx)(r.p,{id:"sched-tz",value:w,onChange:a=>x(a.target.value),placeholder:"UTC"}),(0,d.jsx)("p",{className:"text-xs text-muted-foreground",children:"e.g. UTC, America/New_York, Europe/London"})]}),(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)(s.J,{htmlFor:"sched-desc",children:"Description (optional)"}),(0,d.jsx)(r.p,{id:"sched-desc",value:y,onChange:a=>z(a.target.value),placeholder:"What does this schedule do?"})]}),(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)(s.J,{htmlFor:"sched-config",children:"Config JSON (optional)"}),(0,d.jsx)(t.T,{id:"sched-config",value:A,onChange:a=>B(a.target.value),placeholder:"{}",className:"font-mono text-sm h-20"}),(0,d.jsx)("p",{className:"text-xs text-muted-foreground",children:"Custom data passed as the request body to the edge function."})]}),(0,d.jsxs)("div",{className:"bg-muted/30 border rounded-lg p-4 space-y-2",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 text-sm font-medium",children:[(0,d.jsx)(v.A,{className:"h-4 w-4"}),"Cron Patterns ",(0,d.jsx)("span",{className:"font-normal text-muted-foreground",children:"(minimum 5 min interval)"})]}),(0,d.jsxs)("div",{className:"grid gap-1 text-xs font-mono",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("span",{className:"text-muted-foreground",children:"*/5 * * * *"})," Every 5 minutes"]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("span",{className:"text-muted-foreground",children:"0 * * * *"})," Every hour"]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("span",{className:"text-muted-foreground",children:"0 8 * * *"})," Daily at 8am"]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("span",{className:"text-muted-foreground",children:"0 0 * * 1"})," Every Monday at midnight"]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("span",{className:"text-muted-foreground",children:"0 0 1 * *"})," First of every month"]})]})]}),E&&(0,d.jsxs)("div",{className:"flex items-center gap-2 text-sm text-destructive bg-destructive/10 p-3 rounded-lg",children:[(0,d.jsx)(g.A,{className:"h-4 w-4 shrink-0"}),E]})]}),(0,d.jsxs)("div",{className:"flex items-center justify-end gap-2 pt-4 border-t",children:[(0,d.jsx)(o.$,{variant:"outline",onClick:h,disabled:C,children:"Cancel"}),(0,d.jsx)(o.$,{onClick:G,disabled:C,children:C?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(f.A,{className:"h-4 w-4 mr-2 animate-spin"}),"Saving..."]}):a?"Save Changes":"Create Schedule"})]})]})})}var x=c(15514);function y({deploymentId:a,dataProvider:b}){let[c,q]=(0,e.useState)([]),[r,s]=(0,e.useState)([]),[t,u]=(0,e.useState)(!0),[v,y]=(0,e.useState)(null),[z,A]=(0,e.useState)(null),[B,C]=(0,e.useState)(!1),D=async()=>{try{if(u(!0),y(null),b){let[a,c]=await Promise.all([b.listScheduled(),b.listEdgeFunctions()]);q(a),s(c)}else if(a){let[b,c]=await Promise.all([fetch(`/api/admin/deployments/${a}/scheduled-functions`),fetch(`/api/admin/deployments/${a}/functions`)]);if(!b.ok){let a=await b.json();throw Error(a.error||"Failed to load scheduled functions")}if(!c.ok){let a=await c.json();throw Error(a.error||"Failed to load edge functions")}let d=await b.json(),e=await c.json();q(d.scheduledFunctions),s(e.functions)}}catch(a){y(a instanceof Error?a.message:"Failed to load scheduled functions")}finally{u(!1)}},E=async c=>{try{if(b)await b.toggle(c.id,!c.enabled);else if(!a)return;else if(!(await fetch(`/api/admin/deployments/${a}/scheduled-functions/${c.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({enabled:!c.enabled})})).ok)throw Error("Failed to update scheduled function");await D()}catch(a){console.error("Failed to toggle scheduled function:",a)}},F=async c=>{if(confirm(`Delete scheduled function "${c.name}"? This cannot be undone.`))try{if(b)await b.remove(c.id);else if(!a)return;else if(!(await fetch(`/api/admin/deployments/${a}/scheduled-functions/${c.id}`,{method:"DELETE"})).ok)throw Error("Failed to delete scheduled function");await D()}catch(a){console.error("Failed to delete scheduled function:",a)}},G=async c=>{try{if(b)await b.save(z?.id||null,c);else if(a)if(z){let b=await fetch(`/api/admin/deployments/${a}/scheduled-functions/${z.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(c)});if(!b.ok){let a=await b.json();throw Error(a.error||"Failed to update scheduled function")}}else{let b=await fetch(`/api/admin/deployments/${a}/scheduled-functions`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(c)});if(!b.ok){let a=await b.json();throw Error(a.error||"Failed to create scheduled function")}}else throw Error("No deployment ID available");A(null),C(!1),await D()}catch(a){throw a}},H=a=>a?("string"==typeof a?new Date(a):a).toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}):"N/A";return t?(0,d.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,d.jsx)(f.A,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):v?(0,d.jsxs)("div",{className:"flex flex-col items-center justify-center h-full gap-4",children:[(0,d.jsx)(g.A,{className:"h-8 w-8 text-destructive"}),(0,d.jsx)("p",{className:"text-sm text-muted-foreground",children:v}),(0,d.jsx)(o.$,{variant:"outline",onClick:D,children:"Retry"})]}):(0,d.jsxs)("div",{className:"h-full flex flex-col",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,d.jsx)("h3",{className:"text-sm font-medium",children:"Scheduled Functions"}),(0,d.jsxs)(o.$,{size:"sm",onClick:()=>C(!0),children:[(0,d.jsx)(h.A,{className:"h-4 w-4 mr-1"}),"New Schedule"]})]}),(0,d.jsx)("div",{className:"flex-1 overflow-auto",children:0===c.length?(0,d.jsxs)("div",{className:"flex flex-col items-center justify-center h-full p-8 text-center border rounded-lg",children:[(0,d.jsx)(i.A,{className:"h-8 w-8 text-muted-foreground mb-2"}),(0,d.jsx)("p",{className:"text-sm text-muted-foreground",children:"No scheduled functions yet"}),(0,d.jsx)("p",{className:"text-xs text-muted-foreground mt-1 mb-4",children:"Run edge functions on a cron schedule"}),(0,d.jsxs)(o.$,{size:"sm",onClick:()=>C(!0),children:[(0,d.jsx)(h.A,{className:"h-4 w-4 mr-1"}),"Create Schedule"]})]}):(0,d.jsx)("div",{className:"grid gap-3",children:c.map(a=>(0,d.jsx)("div",{className:(0,x.cn)("border rounded-lg p-4 transition-colors",!a.enabled&&"opacity-60 bg-muted/30"),children:(0,d.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,d.jsxs)("div",{className:"flex-1 min-w-0 overflow-hidden",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,d.jsx)(i.A,{className:"h-4 w-4 text-orange-500 shrink-0"}),(0,d.jsx)("span",{className:"font-mono font-medium truncate",children:a.name}),(0,d.jsx)("span",{className:"text-xs px-1.5 py-0.5 rounded bg-orange-500/20 text-orange-600 shrink-0",children:a.cronExpression}),!a.enabled&&(0,d.jsx)("span",{className:"text-xs bg-muted px-1.5 py-0.5 rounded shrink-0",children:"disabled"})]}),a.description&&(0,d.jsx)("p",{className:"text-sm text-muted-foreground mt-1 truncate",children:a.description}),(0,d.jsxs)("div",{className:"flex items-center gap-4 mt-2 text-xs text-muted-foreground flex-wrap",children:[(0,d.jsxs)("span",{className:"shrink-0",children:["Function: ",(0,d.jsx)("span",{className:"font-mono",children:(a=>{let b=r.find(b=>b.id===a);return b?.name||"Unknown"})(a.functionId)})]}),(0,d.jsxs)("span",{className:"shrink-0",children:["Next: ",H(a.nextRunAt)]}),a.lastStatus&&(0,d.jsxs)("span",{className:(0,x.cn)("shrink-0","success"===a.lastStatus?"text-green-600":"text-red-600"),children:["Last: ",a.lastStatus,a.lastRunAt&&` (${H(a.lastRunAt)})`]})]})]}),(0,d.jsxs)(p.rI,{children:[(0,d.jsx)(p.ty,{asChild:!0,children:(0,d.jsx)(o.$,{variant:"ghost",size:"sm",children:(0,d.jsx)(j.A,{className:"h-4 w-4"})})}),(0,d.jsxs)(p.SQ,{align:"end",children:[(0,d.jsxs)(p._2,{onClick:()=>A(a),children:[(0,d.jsx)(k.A,{className:"h-4 w-4 mr-2"}),"Edit"]}),(0,d.jsx)(p._2,{onClick:()=>E(a),children:a.enabled?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(l.A,{className:"h-4 w-4 mr-2"}),"Disable"]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(m.A,{className:"h-4 w-4 mr-2"}),"Enable"]})}),(0,d.jsxs)(p._2,{onClick:()=>F(a),className:"text-destructive",children:[(0,d.jsx)(n.A,{className:"h-4 w-4 mr-2"}),"Delete"]})]})]})]})},a.id))})}),(B||z)&&(0,d.jsx)(w,{scheduledFunction:z,edgeFunctions:r,isOpen:!0,onClose:()=>{C(!1),A(null)},onSave:G})]})}},24886:(a,b,c)=>{c.d(b,{m:()=>n});var d=c(21124),e=c(38301),f=c(21564),g=c(14263),h=c(30887),i=c(11861),j=c(59268),k=c(18310),l=c(19217),m=c(45523);function n({deploymentId:a,queryEndpoint:b}){let[c,n]=(0,e.useState)("SELECT * FROM "),[o,p]=(0,e.useState)(!1),[q,r]=(0,e.useState)(null),[s,t]=(0,e.useState)([]),[u,v]=(0,e.useState)(!1),{resolvedTheme:w}=(0,m.D)(),[x,y]=(0,e.useState)(!1),z=(0,e.useCallback)(a=>{t(b=>{let c=[a,...b.filter(b=>b!==a)].slice(0,20);return localStorage.setItem("osw-sql-history",JSON.stringify(c)),c})},[]),A=(0,e.useCallback)(async()=>{if(!c.trim())return;p(!0),r(null);let d=Date.now();try{let e=b||`/api/admin/deployments/${a}/database/query`,f=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sql:c.trim()})}),g=await f.json(),h=Date.now()-d;f.ok?(r({success:!0,columns:g.columns,rows:g.rows,rowsAffected:g.rowsAffected,executionTime:h}),z(c.trim())):r({success:!1,error:g.error||"Query failed",executionTime:h})}catch(a){r({success:!1,error:a instanceof Error?a.message:"Query failed",executionTime:Date.now()-d})}finally{p(!1)}},[c,a,z]),B=(0,e.useCallback)(a=>{a.addCommand(2051,()=>{A()})},[A]);return x?(0,d.jsxs)("div",{className:"h-full flex flex-col gap-4",children:[(0,d.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsxs)(l.$,{onClick:A,disabled:o||!c.trim(),size:"sm",children:[o?(0,d.jsx)(g.A,{className:"h-4 w-4 animate-spin mr-1"}):(0,d.jsx)(h.A,{className:"h-4 w-4 mr-1"}),"Execute"]}),(0,d.jsx)("span",{className:"text-xs text-muted-foreground",children:"Ctrl/Cmd + Enter"})]}),(0,d.jsxs)(l.$,{variant:"ghost",size:"sm",onClick:()=>v(!u),children:[(0,d.jsx)(i.A,{className:"h-4 w-4 mr-1"}),"History"]})]}),u&&s.length>0&&(0,d.jsx)("div",{className:"border rounded-lg bg-background shadow-lg max-h-40 overflow-auto",children:s.map((a,b)=>(0,d.jsx)("button",{onClick:()=>{n(a),v(!1)},className:"w-full text-left px-3 py-2 text-sm font-mono hover:bg-muted border-b last:border-0 truncate",children:a},b))}),(0,d.jsx)("div",{className:"h-32 border rounded-lg overflow-hidden",children:(0,d.jsx)(f.Ay,{language:"sql",theme:"dark"===w?"vs-dark":"light",value:c,onChange:a=>n(a||""),onMount:B,options:{minimap:{enabled:!1},fontSize:13,lineNumbers:"off",folding:!1,scrollBeyondLastLine:!1,wordWrap:"on",automaticLayout:!0}})})]}),(0,d.jsx)("div",{className:"flex-1 overflow-hidden border rounded-lg",children:null===q?(0,d.jsx)("div",{className:"h-full flex items-center justify-center text-muted-foreground text-sm",children:"Execute a query to see results"}):q.success?(0,d.jsxs)("div",{className:"h-full flex flex-col",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 bg-muted/30 border-b text-sm",children:[(0,d.jsx)(j.A,{className:"h-4 w-4 text-green-500"}),q.rows&&q.rows.length>0?(0,d.jsxs)("span",{children:[q.rows.length," row",1!==q.rows.length?"s":""]}):void 0!==q.rowsAffected&&q.rowsAffected>0?(0,d.jsxs)("span",{children:[q.rowsAffected," row",1!==q.rowsAffected?"s":""," affected"]}):(0,d.jsx)("span",{children:"Query executed successfully"}),(0,d.jsxs)("span",{className:"text-muted-foreground",children:["(",q.executionTime,"ms)"]})]}),q.columns&&q.columns.length>0&&q.rows?(0,d.jsx)("div",{className:"flex-1 overflow-auto",children:(0,d.jsxs)("table",{className:"w-full text-sm",children:[(0,d.jsx)("thead",{className:"sticky top-0 bg-muted",children:(0,d.jsx)("tr",{children:q.columns.map((a,b)=>(0,d.jsx)("th",{className:"text-left p-2 font-medium border-r last:border-0",children:a},b))})}),(0,d.jsx)("tbody",{children:q.rows.map((a,b)=>(0,d.jsx)("tr",{className:"border-t hover:bg-muted/30",children:a.map((a,b)=>(0,d.jsx)("td",{className:"p-2 font-mono text-xs border-r last:border-0 max-w-xs truncate",children:null===a?(0,d.jsx)("span",{className:"text-muted-foreground italic",children:"NULL"}):"object"==typeof a?JSON.stringify(a):String(a)},b))},b))})]})}):null]}):(0,d.jsxs)("div",{className:"h-full flex flex-col items-center justify-center gap-2 p-4",children:[(0,d.jsx)(k.A,{className:"h-6 w-6 text-destructive"}),(0,d.jsx)("p",{className:"text-sm text-destructive font-medium",children:"Query Error"}),(0,d.jsx)("p",{className:"text-sm text-muted-foreground text-center max-w-md",children:q.error})]})})]}):(0,d.jsx)("div",{className:"h-full flex items-center justify-center",children:(0,d.jsx)(g.A,{className:"h-6 w-6 animate-spin"})})}},30758:a=>{a.exports={rE:"1.34.0"}},30824:(a,b,c)=>{function d(a){if(a.content instanceof ArrayBuffer){let b=new Uint8Array(a.content),c="";for(let a=0;ah});class f{constructor(a=""){this.baseUrl=a}async pushProject(a){try{let b=await fetch(`${this.baseUrl}/api/sync/projects`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({project:a})});if(!b.ok){let a=await b.json();return{success:!1,error:a.error||`HTTP ${b.status}`}}let c=await b.json();return{success:!0,project:c.project}}catch(a){return{success:!1,error:a instanceof Error?a.message:"Network error"}}}async pullProjects(){try{let a=await fetch(`${this.baseUrl}/api/sync/projects`,{method:"GET"});if(!a.ok){let b=await a.json();return{success:!1,error:b.error||`HTTP ${a.status}`}}let b=await a.json();return{success:!0,projects:b.projects}}catch(a){return{success:!1,error:a instanceof Error?a.message:"Network error"}}}async pushFiles(a,b){try{let c=b.map(d),e=await fetch(`${this.baseUrl}/api/sync/files`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({projectId:a,files:c})});if(!e.ok){let a=await e.json();return{success:!1,error:a.error||`HTTP ${e.status}`}}let f=await e.json();return{success:!0,count:f.count}}catch(a){return{success:!1,error:a instanceof Error?a.message:"Network error"}}}async pullFiles(a){try{let b=await fetch(`${this.baseUrl}/api/sync/files?projectId=${encodeURIComponent(a)}`,{method:"GET"});if(!b.ok){let a=await b.json();return{success:!1,error:a.error||`HTTP ${b.status}`}}let c=await b.json();return{success:!0,files:(c.files||[]).map(e)}}catch(a){return{success:!1,error:a instanceof Error?a.message:"Network error"}}}async pushProjectWithFiles(a,b){let c=await this.pushProject(a);if(!c.success)return c;let d=await this.pushFiles(a.id,b);return d.success?{success:!0}:d}async pullProjectWithFiles(a){let b=await this.pullProjects();if(!b.success||!b.projects)return{success:!1,error:b.error||"Failed to pull projects"};let c=b.projects.find(b=>b.id===a);if(!c)return{success:!1,error:`Project ${a} not found on server`};let d=await this.pullFiles(a);return d.success?{success:!0,project:c,files:d.files||[]}:{success:!1,error:d.error||"Failed to pull files"}}async pushSingleProject(a,b,c){try{let e=c.map(d),f=await fetch(`${this.baseUrl}/api/sync/projects/${a}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({project:b,files:e})});if(!f.ok){let a=await f.json();return{success:!1,error:a.error||`HTTP ${f.status}`}}let g=await f.json();return{success:!0,project:g.project}}catch(a){return{success:!1,error:a instanceof Error?a.message:"Network error"}}}async pullSingleProject(a){try{let b=await fetch(`${this.baseUrl}/api/sync/projects/${a}`,{method:"GET"});if(!b.ok){let a=await b.json();return{success:!1,error:a.error||`HTTP ${b.status}`}}let c=await b.json();return{success:!0,project:c.project,files:(c.files||[]).map(e)}}catch(a){return{success:!1,error:a instanceof Error?a.message:"Network error"}}}async getSyncStatus(){try{let a=await fetch(`${this.baseUrl}/api/sync/status`,{method:"GET"});if(!a.ok){let b=await a.json();return{success:!1,error:b.error||`HTTP ${a.status}`}}let b=await a.json();return{success:!0,projects:b.projects||[]}}catch(a){return{success:!1,error:a instanceof Error?a.message:"Network error"}}}async pullSkills(){try{let a=await fetch(`${this.baseUrl}/api/sync/skills`,{method:"GET"});if(!a.ok){let b=await a.json();return{success:!1,error:b.error||`HTTP ${a.status}`}}let b=await a.json();return{success:!0,skills:b.skills||[]}}catch(a){return{success:!1,error:a instanceof Error?a.message:"Network error"}}}async pushSkills(a){try{let b=await fetch(`${this.baseUrl}/api/sync/skills`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({skills:a})});if(!b.ok){let a=await b.json();return{success:!1,error:a.error||`HTTP ${b.status}`}}let c=await b.json();return{success:c.success,created:c.created,updated:c.updated,error:c.errors?.join(", ")}}catch(a){return{success:!1,error:a instanceof Error?a.message:"Network error"}}}async pullSkill(a){try{let b=await fetch(`${this.baseUrl}/api/sync/skills/${encodeURIComponent(a)}`,{method:"GET"});if(!b.ok){let a=await b.json();return{success:!1,error:a.error||`HTTP ${b.status}`}}let c=await b.json();return{success:!0,skill:c.skill}}catch(a){return{success:!1,error:a instanceof Error?a.message:"Network error"}}}async pushSkill(a){try{let b=await fetch(`${this.baseUrl}/api/sync/skills/${encodeURIComponent(a.id)}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({skill:a})});if(!b.ok){let a=await b.json();return{success:!1,error:a.error||`HTTP ${b.status}`}}let c=await b.json();return{success:!0,skill:c.skill,action:c.action}}catch(a){return{success:!1,error:a instanceof Error?a.message:"Network error"}}}async deleteSkillFromServer(a){try{let b=await fetch(`${this.baseUrl}/api/sync/skills/${encodeURIComponent(a)}`,{method:"DELETE"});if(!b.ok){let a=await b.json();return{success:!1,error:a.error||`HTTP ${b.status}`}}return{success:!0}}catch(a){return{success:!1,error:a instanceof Error?a.message:"Network error"}}}async pullTemplates(){try{let a=await fetch(`${this.baseUrl}/api/sync/templates`,{method:"GET"});if(!a.ok){let b=await a.json();return{success:!1,error:b.error||`HTTP ${a.status}`}}let b=await a.json();return{success:!0,templates:b.templates||[]}}catch(a){return{success:!1,error:a instanceof Error?a.message:"Network error"}}}async pushTemplates(a){try{let b=await fetch(`${this.baseUrl}/api/sync/templates`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({templates:a})});if(!b.ok){let a=await b.json();return{success:!1,error:a.error||`HTTP ${b.status}`}}let c=await b.json();return{success:c.success,created:c.created,updated:c.updated,error:c.errors?.join(", ")}}catch(a){return{success:!1,error:a instanceof Error?a.message:"Network error"}}}async pullTemplate(a){try{let b=await fetch(`${this.baseUrl}/api/sync/templates/${encodeURIComponent(a)}`,{method:"GET"});if(!b.ok){let a=await b.json();return{success:!1,error:a.error||`HTTP ${b.status}`}}let c=await b.json();return{success:!0,template:c.template}}catch(a){return{success:!1,error:a instanceof Error?a.message:"Network error"}}}async pushTemplate(a){try{let b=await fetch(`${this.baseUrl}/api/sync/templates/${encodeURIComponent(a.id)}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({template:a})});if(!b.ok){let a=await b.json();return{success:!1,error:a.error||`HTTP ${b.status}`}}let c=await b.json();return{success:!0,template:c.template,action:c.action}}catch(a){return{success:!1,error:a instanceof Error?a.message:"Network error"}}}async deleteTemplateFromServer(a){try{let b=await fetch(`${this.baseUrl}/api/sync/templates/${encodeURIComponent(a)}`,{method:"DELETE"});if(!b.ok){let a=await b.json();return{success:!1,error:a.error||`HTTP ${b.status}`}}return{success:!0}}catch(a){return{success:!1,error:a instanceof Error?a.message:"Network error"}}}async pushBackendFeatures(a,b){try{let c=await fetch(`${this.baseUrl}/api/sync/backend-features/${a}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(b||{edgeFunctions:[],serverFunctions:[],secrets:[],scheduledFunctions:[]})});if(!c.ok){let a=await c.json().catch(()=>({}));return{success:!1,error:a.error||`HTTP ${c.status}`}}return{success:!0}}catch(a){return{success:!1,error:a instanceof Error?a.message:"Network error"}}}async pullBackendFeatures(a){try{let b=await fetch(`${this.baseUrl}/api/sync/backend-features/${a}`,{method:"GET"});if(!b.ok){let a=await b.json().catch(()=>({}));return{success:!1,error:a.error||`HTTP ${b.status}`}}let d=await b.json();try{let{vfs:b}=await Promise.resolve().then(c.bind(c,11482)),e=b.getStorageAdapter();if(e.listEdgeFunctions&&e.deleteEdgeFunction&&e.createEdgeFunction){for(let b of(await e.listEdgeFunctions(a)))await e.deleteEdgeFunction(b.id);for(let b of d.edgeFunctions||[])await e.createEdgeFunction({...b,projectId:a})}if(e.listServerFunctions&&e.deleteServerFunction&&e.createServerFunction){for(let b of(await e.listServerFunctions(a)))await e.deleteServerFunction(b.id);for(let b of d.serverFunctions||[])await e.createServerFunction({...b,projectId:a})}if(e.listSecrets&&e.deleteSecret&&e.createSecret){for(let b of(await e.listSecrets(a)))await e.deleteSecret(b.id);for(let b of d.secrets||[])await e.createSecret({...b,projectId:a})}if(e.listScheduledFunctions&&e.deleteScheduledFunction&&e.createScheduledFunction){for(let b of(await e.listScheduledFunctions(a)))await e.deleteScheduledFunction(b.id);for(let b of d.scheduledFunctions||[])await e.createScheduledFunction({...b,projectId:a})}}catch(a){return console.error("[SyncManager] Failed to write pulled backend features to IndexedDB:",a),{success:!1,error:a instanceof Error?a.message:"Failed to write to IndexedDB"}}return{success:!0}}catch(a){return{success:!1,error:a instanceof Error?a.message:"Network error"}}}async getEnhancedSyncStatus(){try{let a=await fetch(`${this.baseUrl}/api/sync/status`,{method:"GET"});if(!a.ok){let b=await a.json();return{success:!1,error:b.error||`HTTP ${a.status}`}}let b=await a.json();return{success:!0,data:b}}catch(a){return{success:!1,error:a instanceof Error?a.message:"Network error"}}}}let g=null;function h(){return g||(g=new f),g}},33305:(a,b,c)=>{c.d(b,{Cf:()=>k,Es:()=>m,L3:()=>n,c7:()=>l,lG:()=>h,rr:()=>o});var d=c(21124);c(38301);var e=c(39641),f=c(47089),g=c(15514);function h({...a}){return(0,d.jsx)(e.bL,{"data-slot":"dialog",...a})}function i({...a}){return(0,d.jsx)(e.ZL,{"data-slot":"dialog-portal",...a})}function j({className:a,...b}){return(0,d.jsx)(e.hJ,{"data-slot":"dialog-overlay",className:(0,g.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 backdrop-blur-sm",a),...b})}function k({className:a,children:b,showCloseButton:c=!0,...h}){return(0,d.jsxs)(i,{"data-slot":"dialog-portal",children:[(0,d.jsx)(j,{}),(0,d.jsxs)(e.UC,{"data-slot":"dialog-content",className:(0,g.cn)("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-2xl duration-200",a),...h,children:[b,c&&(0,d.jsxs)(e.bm,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[(0,d.jsx)(f.A,{}),(0,d.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function l({className:a,...b}){return(0,d.jsx)("div",{"data-slot":"dialog-header",className:(0,g.cn)("flex flex-col gap-2 text-center sm:text-left",a),...b})}function m({className:a,...b}){return(0,d.jsx)("div",{"data-slot":"dialog-footer",className:(0,g.cn)("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",a),...b})}function n({className:a,...b}){return(0,d.jsx)(e.hE,{"data-slot":"dialog-title",className:(0,g.cn)("text-lg leading-none font-semibold",a),...b})}function o({className:a,...b}){return(0,d.jsx)(e.VY,{"data-slot":"dialog-description",className:(0,g.cn)("text-muted-foreground text-sm",a),...b})}},33847:(a,b,c)=>{c.d(b,{T:()=>g});var d=c(21124),e=c(38301),f=c(15514);let g=e.forwardRef(({className:a,...b},c)=>(0,d.jsx)("textarea",{className:(0,f.cn)("flex min-h-[84px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",a),ref:c,...b}));g.displayName="Textarea"},36736:(a,b,c)=>{c.d(b,{Bc:()=>g,ZI:()=>j,k$:()=>i,m_:()=>h});var d=c(21124);c(38301);var e=c(16992),f=c(15514);function g({delayDuration:a=0,...b}){return(0,d.jsx)(e.Kq,{"data-slot":"tooltip-provider",delayDuration:a,...b})}function h({...a}){return(0,d.jsx)(g,{children:(0,d.jsx)(e.bL,{"data-slot":"tooltip",...a})})}function i({...a}){return(0,d.jsx)(e.l9,{"data-slot":"tooltip-trigger",...a})}function j({className:a,sideOffset:b=0,children:c,arrowStyle:g,...h}){return(0,d.jsx)(e.ZL,{children:(0,d.jsxs)(e.UC,{"data-slot":"tooltip-content",sideOffset:b,className:(0,f.cn)("bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",a),...h,children:[c,(0,d.jsx)(e.i3,{className:"bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]",style:g})]})})}},37905:(a,b,c)=>{c.d(b,{V:()=>l});var d=c(21124),e=c(38301),f=c(11482),g=(c(68877),c(79588),c(51932),c(66641),c(24780),c(22842)),h=(c(33464),c(98688),c(43718),c(15303),c(65828),c(23780),c(11082)),i=c(17585),j=c(33305);function k({projectId:a,enabled:b,onToggleEnabled:c}){let[h,i]=(0,e.useState)("functions");return(0,e.useMemo)(()=>({async list(){let b=f.vfs.getStorageAdapter();return b.listEdgeFunctions?await b.listEdgeFunctions(a):[]},async save(b,c){let d=f.vfs.getStorageAdapter(),e=new Date;if(b&&d.getEdgeFunction&&d.updateEdgeFunction){let a=await d.getEdgeFunction(b);a&&await d.updateEdgeFunction({...a,...c,updatedAt:e})}else d.createEdgeFunction&&await d.createEdgeFunction({id:crypto.randomUUID(),projectId:a,name:c.name||"",method:c.method||"GET",code:c.code||"",description:c.description||"",enabled:c.enabled??!0,timeoutMs:c.timeoutMs??1e4,createdAt:e,updatedAt:e})},async remove(a){let b=f.vfs.getStorageAdapter();b.deleteEdgeFunction&&await b.deleteEdgeFunction(a)},async toggle(a,b){let c=f.vfs.getStorageAdapter();if(c.getEdgeFunction&&c.updateEdgeFunction){let d=await c.getEdgeFunction(a);d&&await c.updateEdgeFunction({...d,enabled:b,updatedAt:new Date})}}}),[a]),(0,e.useMemo)(()=>({async list(){let b=f.vfs.getStorageAdapter();return b.listServerFunctions?await b.listServerFunctions(a):[]},async save(b,c){let d=f.vfs.getStorageAdapter(),e=new Date;if(b&&d.getServerFunction&&d.updateServerFunction){let a=await d.getServerFunction(b);a&&await d.updateServerFunction({...a,...c,updatedAt:e})}else d.createServerFunction&&await d.createServerFunction({id:crypto.randomUUID(),projectId:a,name:c.name||"",code:c.code||"",description:c.description||"",enabled:c.enabled??!0,createdAt:e,updatedAt:e})},async remove(a){let b=f.vfs.getStorageAdapter();b.deleteServerFunction&&await b.deleteServerFunction(a)},async toggle(a,b){let c=f.vfs.getStorageAdapter();if(c.getServerFunction&&c.updateServerFunction){let d=await c.getServerFunction(a);d&&await c.updateServerFunction({...d,enabled:b,updatedAt:new Date})}}}),[a]),(0,e.useMemo)(()=>({async list(){let b=f.vfs.getStorageAdapter();return{secrets:b.listSecrets?await b.listSecrets(a):[],encryptionConfigured:!0}},async save(b,c){let d=f.vfs.getStorageAdapter(),e=new Date;if(b&&d.getSecret&&d.updateSecret){let a=await d.getSecret(b);a&&await d.updateSecret({...a,...c,hasValue:!!c.value||a.hasValue,updatedAt:e})}else d.createSecret&&await d.createSecret({id:crypto.randomUUID(),projectId:a,name:c.name,description:c.description||"",hasValue:!!c.value,value:c.value,createdAt:e,updatedAt:e})},async remove(a){let b=f.vfs.getStorageAdapter();b.deleteSecret&&await b.deleteSecret(a)}}),[a]),(0,e.useMemo)(()=>({async listScheduled(){let b=f.vfs.getStorageAdapter();return b.listScheduledFunctions?await b.listScheduledFunctions(a):[]},async listEdgeFunctions(){let b=f.vfs.getStorageAdapter();return b.listEdgeFunctions?await b.listEdgeFunctions(a):[]},async save(b,c){let d=f.vfs.getStorageAdapter(),e=new Date;if(b&&d.getScheduledFunction&&d.updateScheduledFunction){let a=await d.getScheduledFunction(b);a&&await d.updateScheduledFunction({...a,...c,updatedAt:e})}else d.createScheduledFunction&&await d.createScheduledFunction({id:crypto.randomUUID(),projectId:a,name:c.name||"",description:c.description||"",functionId:c.functionId||"",cronExpression:c.cronExpression||"",timezone:c.timezone||"UTC",config:c.config||{},enabled:c.enabled??!0,createdAt:e,updatedAt:e})},async remove(a){let b=f.vfs.getStorageAdapter();b.deleteScheduledFunction&&await b.deleteScheduledFunction(a)},async toggle(a,b){let c=f.vfs.getStorageAdapter();if(c.getScheduledFunction&&c.updateScheduledFunction){let d=await c.getScheduledFunction(a);d&&await c.updateScheduledFunction({...d,enabled:b,updatedAt:new Date})}}}),[a]),(0,d.jsx)("div",{className:"h-full flex flex-col",children:(0,d.jsx)("div",{className:"flex-1 flex items-center justify-center p-8",children:(0,d.jsxs)("div",{className:"text-center max-w-sm",children:[(0,d.jsx)(g.A,{className:"h-10 w-10 text-muted-foreground mx-auto mb-3"}),(0,d.jsx)("h4",{className:"font-medium mb-2",children:"Server Mode Required"}),(0,d.jsx)("p",{className:"text-sm text-muted-foreground mb-4",children:"Backend features require Server Mode. Deploy to a self-hosted instance to use edge functions, secrets, and database features."}),(0,d.jsx)("a",{href:"https://github.com/o-stahl/osw-studio",target:"_blank",rel:"noopener noreferrer",className:"text-sm text-primary hover:underline",children:"View setup guide"})]})})})}function l({projectId:a,projectName:b,isOpen:c,onClose:e,enabled:f,onToggleEnabled:g}){return(0,d.jsx)(j.lG,{open:c,onOpenChange:a=>!a&&e(),children:(0,d.jsxs)(j.Cf,{className:"sm:max-w-3xl h-[70vh] flex flex-col",children:[(0,d.jsx)(j.c7,{children:(0,d.jsxs)("div",{className:"flex items-center justify-between pr-6",children:[(0,d.jsxs)("div",{children:[(0,d.jsxs)(j.L3,{className:"flex items-center gap-2",children:[(0,d.jsx)(h.A,{className:"h-4 w-4"}),"Backend"]}),(0,d.jsx)("p",{className:"text-sm text-muted-foreground mt-1",children:b})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"text-xs text-muted-foreground",children:f?"Enabled":"Disabled"}),(0,d.jsx)(i.d,{checked:f,onCheckedChange:g})]})]})}),(0,d.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,d.jsx)(k,{projectId:a,enabled:f,onToggleEnabled:g})})]})})}c(71652)},44215:(a,b,c)=>{c.d(b,{a:()=>a0});var d=c(21124),e=c(38301),f=c.n(e),g=c(11482),h=c(15514),i=c(96352),j=c(11082),k=c(74097),l=c(15350),m=c(15917),n=c(85351),o=c(59405),p=c(46148),q=c(87278),r=c(57759),s=c(43700),t=c(3368),u=c(42674),v=c(47089),w=c(72380),x=c(19217),y=c(15044),z=c(71613),A=c(90133);let B=y.bL,C=y.l9;y.YJ,y.ZL,y.Pb,y.z6,e.forwardRef(({className:a,inset:b,children:c,...e},f)=>(0,d.jsxs)(y.ZP,{ref:f,className:(0,h.cn)("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",b&&"pl-8",a),...e,children:[c,(0,d.jsx)(o.A,{className:"ml-auto h-4 w-4"})]})).displayName=y.ZP.displayName,e.forwardRef(({className:a,...b},c)=>(0,d.jsx)(y.G5,{ref:c,className:(0,h.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...b})).displayName=y.G5.displayName;let D=e.forwardRef(({className:a,...b},c)=>(0,d.jsx)(y.ZL,{children:(0,d.jsx)(y.UC,{ref:c,className:(0,h.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...b})}));D.displayName=y.UC.displayName;let E=e.forwardRef(({className:a,inset:b,...c},e)=>(0,d.jsx)(y.q7,{ref:e,className:(0,h.cn)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",b&&"pl-8",a),...c}));E.displayName=y.q7.displayName,e.forwardRef(({className:a,children:b,checked:c,...e},f)=>(0,d.jsxs)(y.H_,{ref:f,className:(0,h.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),checked:c,...e,children:[(0,d.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,d.jsx)(y.VF,{children:(0,d.jsx)(z.A,{className:"h-4 w-4"})})}),b]})).displayName=y.H_.displayName,e.forwardRef(({className:a,children:b,...c},e)=>(0,d.jsxs)(y.hN,{ref:e,className:(0,h.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...c,children:[(0,d.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,d.jsx)(y.VF,{children:(0,d.jsx)(A.A,{className:"h-2 w-2 fill-current"})})}),b]})).displayName=y.hN.displayName,e.forwardRef(({className:a,inset:b,...c},e)=>(0,d.jsx)(y.JU,{ref:e,className:(0,h.cn)("px-2 py-1.5 text-sm font-semibold text-foreground",b&&"pl-8",a),...c})).displayName=y.JU.displayName,e.forwardRef(({className:a,...b},c)=>(0,d.jsx)(y.wv,{ref:c,className:(0,h.cn)("-mx-1 my-1 h-px bg-border",a),...b})).displayName=y.wv.displayName;var F=c(7629),G=c(42830);function H({projectId:a,onFileSelect:b,selectedPath:f,onClose:y}){let[z,A]=(0,e.useState)([]),[H,I]=(0,e.useState)([]),[J,K]=(0,e.useState)(new Set(["/"])),[L,M]=(0,e.useState)(null),[N,O]=(0,e.useState)(""),[P,Q]=(0,e.useState)(!1),[R,S]=(0,e.useState)(null),[T,U]=(0,e.useState)(null),[V,W]=(0,e.useState)(!1),X=(0,e.useRef)(null),Y=(0,e.useRef)(0),Z=(0,e.useCallback)(async()=>{let b=++Y.current;try{await g.vfs.init();let d=await g.vfs.getAllFilesAndDirectories(a);if(V){let b=(await g.vfs.listDirectory(a,"/",{includeTransient:!0})).filter(a=>a.path.startsWith("/.")),{skillsService:e}=await Promise.resolve().then(c.bind(c,6636)),f=await e.getEnabledSkills(),h=new Set(f.map(a=>`/.skills/${a.id}.md`)),i=b.filter(a=>!a.path.startsWith("/.skills/")||h.has(a.path));d.push(...i)}if(b!==Y.current)return;let e=d.filter(a=>"directory"!==a.type);A(e),I($(d,V))}catch(a){h.v.error("Failed to load files:",a)}},[a,V]),$=(a,b)=>{let c=b?a:a.filter(a=>!a.path.startsWith("/.")),d=[],e=new Map;c.forEach(a=>{if("directory"===a.type){let b=a.path.split("/").filter(Boolean),c={path:a.path,name:a.name||b[b.length-1]||"unnamed",type:"directory",children:[]};e.set(a.path,c)}}),c.forEach(a=>{if("directory"!==a.type){let b=a.path.split("/").filter(Boolean),c="";for(let a=0;a{let c=b.split("/").filter(Boolean);if(1===c.length)d.push(a);else{let b="/"+c.slice(0,-1).join("/"),d=e.get(b);d&&d.children&&d.children.push(a)}}),a.forEach(a=>{if("directory"!==a.type){let b=a.path.split("/").filter(Boolean),c={path:a.path,name:a.name,type:"file"};if(1===b.length)d.push(c);else{let a="/"+b.slice(0,-1).join("/"),d=e.get(a);d&&d.children?.push(c)}}});let f=a=>{a.sort((a,b)=>a.type===b.type?a.name.localeCompare(b.name):"directory"===a.type?-1:1),a.forEach(a=>{a.children&&f(a.children)})};return f(d),d},_=async a=>{if("directory"===a.type){var c;c=a.path,K(a=>{let b=new Set(a);return b.has(c)?b.delete(c):b.add(c),b})}else{let c=z.find(b=>b.path===a.path);c&&b&&b(c)}},aa=async(b="/")=>{let c=prompt("Enter file name:");if(!c)return;let d="/"===b?`/${c}`:`${b}/${c}`;try{await g.vfs.createFile(a,d,""),await Z()}catch(a){h.v.error("Failed to create file:",a)}},ab=async(b="/")=>{let c=prompt("Enter directory name:");if(!c)return;let d="/"===b?`/${c}`:`${b}/${c}`;try{await g.vfs.createDirectory(a,d),await Z()}catch(a){h.v.error("Failed to create directory:",a)}},ac=async(b,c)=>{if(confirm(`Delete ${c} "${b}"?`))try{"file"===c?await g.vfs.deleteFile(a,b):await g.vfs.deleteDirectory(a,b),await Z()}catch(a){h.v.error(`Failed to delete ${c}:`,a)}},ad=async(b,c)=>{if(!N)return;let d=b.split("/");d[d.length-1]=N;let e=d.join("/");try{"directory"===c?await g.vfs.renameDirectory(a,b,e):await g.vfs.renameFile(a,b,e),await Z(),M(null),O("")}catch(a){h.v.error(`Failed to rename ${c}:`,a)}},ae=async a=>{for(let b of(a.preventDefault(),a.stopPropagation(),Q(!1),Array.from(a.dataTransfer.items)))if("file"===b.kind){let a=b.getAsFile();a&&await af(a,"/")}},af=async(b,c)=>{if(!(0,i.fu)(b.name))return void G.oR.error(`File type not supported: ${b.name}`);let d=(0,i.Gr)(b.name),e=i.Q6[d];if(b.size>e)return void G.oR.error(`File too large: ${b.name}. Maximum size is ${Math.round(e/1024/1024)}MB`);let f="/"===c?`/${b.name}`:`${c}/${b.name}`;try{let c;c="image"===d||"video"===d||"binary"===d?await b.arrayBuffer():await b.text(),await g.vfs.createFile(a,f,c),await Z(),G.oR.success(`Uploaded ${b.name}`)}catch(d){if(d.message?.includes("already exists")){if(confirm(`File "${b.name}" already exists. Overwrite?`))try{await g.vfs.deleteFile(a,f),await af(b,c)}catch(a){h.v.error("Failed to overwrite file:",a),G.oR.error("Failed to overwrite file")}}else h.v.error("Failed to upload file:",d),G.oR.error(`Failed to upload ${b.name}: ${d.message}`)}},ag=()=>{S(null),U(null)},ah=async(b,c)=>{if(b.preventDefault(),b.stopPropagation(),!R||c&&R.path===c.path)return void U(null);let d=c&&"directory"===c.type?c.path:"/";if("directory"===R.type){let a=R.path.endsWith("/")?R.path:R.path+"/";if((d.endsWith("/")?d:d+"/").startsWith(a)){G.oR.error("Cannot move a folder into itself"),U(null);return}}let e=R.name,f="/"===d?`/${e}`:`${d}/${e}`;try{"directory"===R.type?await g.vfs.moveDirectory(a,R.path,f):await g.vfs.moveFile(a,R.path,f),await Z(),G.oR.success(`Moved ${R.name} to ${"/"===d?"root":d}`)}catch(a){h.v.error("Failed to move item:",a),G.oR.error(`Failed to move: ${a.message}`)}U(null)},ai=(a,b=0)=>{let c,e,g,u=J.has(a.path),v=f===a.path,w=L===a.path,x=T===a.path,y=(c=a.path).startsWith("/.skills/")||c.startsWith("/.server/")||"/.skills"===c||"/.server"===c,z=(e=a.path).startsWith("/.server/")||"/.server"===e,A=(g=a.path).startsWith("/.skills/")||"/.skills"===g;return(0,d.jsxs)("div",{draggable:!w&&!y,onDragStart:b=>!y&&void(b.stopPropagation(),S(a),b.dataTransfer.effectAllowed="move"),onDragEnd:ag,onDragOver:b=>{var c;return"directory"===a.type&&!y&&(c=a.path,void(b.preventDefault(),b.stopPropagation(),R&&c!==R.path&&(b.dataTransfer.dropEffect="move",U(c))))},onDrop:b=>"directory"===a.type&&!y&&ah(b,a),children:[(0,d.jsxs)(B,{children:[(0,d.jsx)(C,{children:(0,d.jsxs)("div",{className:(0,h.cn)("flex items-center gap-2 px-2 py-1.5 hover:bg-accent hover:text-accent-foreground cursor-pointer rounded-md transition-colors",v&&"bg-accent text-accent-foreground",x&&"directory"===a.type&&"bg-blue-500/20 border border-blue-500",R?.path===a.path&&"opacity-50",y&&"opacity-75","group"),style:{paddingLeft:`${16*b+8}px`},onClick:()=>_(a),children:["directory"===a.type?(0,d.jsxs)(d.Fragment,{children:[u?(0,d.jsx)(n.A,{className:"w-4 h-4 text-muted-foreground"}):(0,d.jsx)(o.A,{className:"w-4 h-4 text-muted-foreground"}),z?(0,d.jsx)(j.A,{className:"w-4 h-4 text-orange-500"}):A?(0,d.jsx)(k.A,{className:"w-4 h-4 text-purple-500"}):u?(0,d.jsx)(l.A,{className:"w-4 h-4 text-blue-500"}):(0,d.jsx)(m.A,{className:"w-4 h-4 text-blue-500"})]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("span",{className:"w-4"}),(()=>{let b=(0,i.Gr)(a.path);return"image"===b?(0,d.jsx)(p.A,{className:"w-4 h-4 text-green-500"}):"video"===b?(0,d.jsx)(q.A,{className:"w-4 h-4 text-purple-500"}):(0,d.jsx)(r.A,{className:"w-4 h-4 text-muted-foreground"})})()]}),w?(0,d.jsx)(F.p,{value:N,onChange:a=>O(a.target.value),onBlur:()=>ad(a.path,a.type),onKeyDown:b=>{"Enter"===b.key?ad(a.path,a.type):"Escape"===b.key&&(M(null),O(""))},className:"h-5 text-sm",autoFocus:!0,onClick:a=>a.stopPropagation()}):(0,d.jsxs)("span",{className:(0,h.cn)("text-sm flex-1",y&&"italic"),children:[a.name,y&&(0,d.jsx)("span",{className:"text-xs text-muted-foreground ml-1",children:"(read-only)"})]})]})}),(0,d.jsxs)(D,{children:[!y&&(0,d.jsxs)(d.Fragment,{children:["directory"===a.type&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(E,{onClick:()=>aa(a.path),children:[(0,d.jsx)(r.A,{className:"mr-2 h-4 w-4"}),"New File"]}),(0,d.jsxs)(E,{onClick:()=>ab(a.path),children:[(0,d.jsx)(m.A,{className:"mr-2 h-4 w-4"}),"New Folder"]}),(0,d.jsxs)(E,{onClick:()=>X.current?.click(),children:[(0,d.jsx)(s.A,{className:"mr-2 h-4 w-4"}),"Upload Files"]})]}),(0,d.jsx)(E,{onClick:()=>{M(a.path),O(a.name)},children:"Rename"}),(0,d.jsx)(E,{onClick:()=>ac(a.path,a.type),className:"text-destructive",children:"Delete"})]}),y&&(0,d.jsxs)(E,{disabled:!0,children:[(0,d.jsx)(t.A,{className:"mr-2 h-4 w-4"}),"Read-only ",z?"server context":"skill"]})]})]}),"directory"===a.type&&u&&a.children&&(0,d.jsx)("div",{children:a.children.map(a=>ai(a,b+1))})]},a.path)};return(0,d.jsxs)("div",{className:"h-full flex flex-col",onDrop:ae,onDragOver:a=>{a.preventDefault(),a.stopPropagation(),Q(!0)},onDragLeave:a=>{a.preventDefault(),a.stopPropagation();let b=a.currentTarget.getBoundingClientRect(),c=a.clientX,d=a.clientY;(c=b.right||d=b.bottom)&&Q(!1)},children:[(0,d.jsx)("input",{ref:X,type:"file",multiple:!0,className:"hidden",onChange:async a=>{for(let b of Array.from(a.target.files||[]))await af(b,"/");X.current&&(X.current.value="")}}),(0,d.jsxs)("div",{className:"p-3 border-b bg-muted/70 flex items-center justify-between",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(u.A,{className:"h-4 w-4 md:hidden",style:{color:"var(--button-files-active)"}}),y?(0,d.jsxs)("button",{type:"button",onClick:y,"aria-label":"Hide file explorer",className:"relative hidden h-6 w-6 items-center justify-center rounded-sm text-muted-foreground transition-colors hover:text-destructive md:flex group",children:[(0,d.jsx)(u.A,{className:"h-4 w-4 transition-opacity group-hover:opacity-0",style:{color:"var(--button-files-active)"}}),(0,d.jsx)(v.A,{className:"absolute h-3 w-3 opacity-0 transition-opacity group-hover:opacity-100"})]}):(0,d.jsx)(u.A,{className:"hidden h-4 w-4 md:inline-flex",style:{color:"var(--button-files-active)"}}),(0,d.jsx)("h3",{className:"text-sm font-medium",children:"File Explorer"})]}),(0,d.jsxs)("div",{className:"flex gap-1",children:[(0,d.jsx)(x.$,{size:"icon",variant:"ghost",className:"h-5 w-5",onClick:()=>X.current?.click(),title:"Upload files",children:(0,d.jsx)(s.A,{className:"h-3 w-3"})}),(0,d.jsx)(x.$,{size:"icon",variant:"ghost",className:"h-5 w-5",onClick:()=>aa("/"),title:"New file",children:(0,d.jsx)(r.A,{className:"h-3 w-3"})}),(0,d.jsx)(x.$,{size:"icon",variant:"ghost",className:"h-5 w-5",onClick:()=>ab("/"),title:"New folder",children:(0,d.jsx)(m.A,{className:"h-3 w-3"})})]})]}),(0,d.jsxs)(B,{children:[(0,d.jsx)(C,{asChild:!0,children:(0,d.jsxs)("div",{className:(0,h.cn)("flex-1 overflow-y-auto p-3 space-y-0.5 relative",P&&"bg-blue-500/10"),onDragOver:a=>{R&&(a.preventDefault(),a.stopPropagation(),U("/"))},onDrop:a=>{R&&ah(a,null)},children:[P&&(0,d.jsx)("div",{className:"absolute inset-0 flex items-center justify-center pointer-events-none",children:(0,d.jsxs)("div",{className:"bg-blue-500/20 border-2 border-dashed border-blue-500 rounded-lg p-8",children:[(0,d.jsx)(s.A,{className:"h-12 w-12 text-blue-500 mx-auto mb-2"}),(0,d.jsx)("p",{className:"text-sm text-blue-600",children:"Drop files here to upload"})]})}),0===H.length?(0,d.jsx)("div",{className:"flex-1 flex items-center justify-center py-8",children:(0,d.jsxs)("div",{className:"text-center space-y-3",children:[(0,d.jsx)(m.A,{className:"h-12 w-12 mx-auto opacity-50 text-muted-foreground"}),(0,d.jsxs)("div",{className:"space-y-1",children:[(0,d.jsx)("p",{className:"text-base font-medium text-foreground",children:"No files yet"}),(0,d.jsx)("p",{className:"text-sm text-muted-foreground",children:"Create your first file to get started"})]})]})}):(0,d.jsx)("div",{className:"contents",children:H.map(a=>ai(a))})]})}),(0,d.jsxs)(D,{children:[(0,d.jsxs)(E,{onClick:()=>aa("/"),children:[(0,d.jsx)(r.A,{className:"mr-2 h-4 w-4"}),"New File"]}),(0,d.jsxs)(E,{onClick:()=>ab("/"),children:[(0,d.jsx)(m.A,{className:"mr-2 h-4 w-4"}),"New Folder"]}),(0,d.jsxs)(E,{onClick:()=>X.current?.click(),children:[(0,d.jsx)(s.A,{className:"mr-2 h-4 w-4"}),"Upload Files"]}),(0,d.jsxs)(E,{onClick:()=>W(!V),children:[V?(0,d.jsx)(w.A,{className:"mr-2 h-4 w-4"}):(0,d.jsx)(t.A,{className:"mr-2 h-4 w-4"}),V?"Hide Hidden Files":"Show Hidden Files"]})]})]})]})}var I=c(21564),J=c(33464),K=c(81100),L=c(88205),M=c(18310),N=c(45523);function O({projectId:a,onFilesChange:b,onClose:c}){let[i,j]=(0,e.useState)(new Map),[k,l]=(0,e.useState)(null),{resolvedTheme:m}=(0,N.D)(),[n,o]=(0,e.useState)(!1),q=f().useRef(new Set),r=(0,e.useCallback)((a,b)=>{void 0!==a&&"text"===t(b).type&&j(c=>{let d=new Map(c),e=d.get(b);if(e){let c=e.content!==a;d.set(b,{...e,content:a,modified:c})}return d})},[]),s=(0,e.useCallback)(async b=>{let c=i.get(b);if(c&&c.modified){q.current.add(b);try{await g.vfs.init();let d=await g.vfs.updateFile(a,b,c.content);j(a=>{let e=new Map(a);return e.set(b,{file:d,content:c.content,modified:!1}),e})}catch(a){h.v.error("Failed to save file:",a)}finally{setTimeout(()=>{q.current.delete(b)},100)}}},[i,a]);(0,e.useCallback)(a=>{(a.metaKey||a.ctrlKey)&&"s"===a.key&&(a.preventDefault(),k&&s(k))},[k,s]);let t=a=>{let b=a.split(".").pop()?.toLowerCase();if(["png","jpg","jpeg","gif","bmp","svg","webp"].includes(b||""))return{type:"image",language:"plaintext"};let c={js:"javascript",mjs:"javascript",ts:"typescript",tsx:"typescript",html:"html",htm:"html",css:"css",json:"json",md:"markdown",txt:"plaintext",xml:"xml",yaml:"yaml",yml:"yaml"};return c[b||""]?{type:"text",language:c[b||""]}:["zip","tar","gz","exe","bin","pdf","doc","docx","xls","xlsx","ppt","pptx"].includes(b||"")?{type:"unsupported",language:"plaintext"}:{type:"text",language:"plaintext"}},u=k?i.get(k):null;return(0,d.jsxs)("div",{className:"h-full flex flex-col",children:[(0,d.jsxs)("div",{className:"p-3 border-b bg-muted/70 flex items-center justify-between",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(J.A,{className:"h-4 w-4 md:hidden",style:{color:"var(--button-editor-active)"}}),c?(0,d.jsxs)("button",{type:"button",onClick:c,"aria-label":"Hide code editor",className:"relative hidden h-6 w-6 items-center justify-center rounded-sm text-muted-foreground transition-colors hover:text-destructive md:flex group",children:[(0,d.jsx)(J.A,{className:"h-4 w-4 transition-opacity group-hover:opacity-0",style:{color:"var(--button-editor-active)"}}),(0,d.jsx)(v.A,{className:"absolute h-3 w-3 opacity-0 transition-opacity group-hover:opacity-100"})]}):(0,d.jsx)(J.A,{className:"hidden h-4 w-4 md:inline-flex",style:{color:"var(--button-editor-active)"}}),(0,d.jsx)("h3",{className:"text-sm font-medium",children:"Code Editor"})]}),u?.modified&&"text"===t(u.file.path).type&&(0,d.jsxs)(x.$,{size:"sm",variant:"ghost",className:"h-5 px-2 gap-1.5",onClick:()=>s(k),children:[(0,d.jsx)(K.A,{className:"h-3 w-3"}),(0,d.jsx)("span",{className:"text-xs",children:"Save"})]})]}),0===i.size?(0,d.jsx)("div",{className:"flex-1 flex items-center justify-center text-muted-foreground",children:(0,d.jsxs)("div",{className:"text-center space-y-3",children:[(0,d.jsx)(L.A,{className:"h-12 w-12 mx-auto opacity-50"}),(0,d.jsxs)("div",{className:"space-y-1",children:[(0,d.jsx)("p",{className:"text-base font-medium",children:"No files open"}),(0,d.jsx)("p",{className:"text-sm",children:"Select a file from the explorer to edit"})]})]})}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{className:"border-b bg-muted/70",children:(0,d.jsx)("div",{className:"flex items-center overflow-x-auto scrollbar-thin",children:Array.from(i.entries()).map(([a,b])=>(0,d.jsxs)("div",{className:(0,h.cn)("flex items-center gap-2 px-4 py-2.5 border-r cursor-pointer transition-all relative group",k===a?"bg-background border-b-2 border-b-primary shadow-sm":"hover:bg-muted/50 border-b-2 border-b-transparent"),onClick:()=>l(a),children:[(0,d.jsxs)("span",{className:"text-sm",children:[b.file.name,b.modified&&(0,d.jsx)("span",{className:"text-orange-500 ml-1",children:"●"})]}),(0,d.jsx)(x.$,{size:"icon",variant:"ghost",className:"h-4 w-4 p-0 opacity-0 group-hover:opacity-100 transition-opacity",onClick:b=>((a,b)=>{b&&b.stopPropagation();let c=i.get(a);if((!c?.modified||confirm(`Close ${c.file.name} without saving?`))&&(j(b=>{let c=new Map(b);return c.delete(a),c}),k===a)){let b=Array.from(i.keys()).filter(b=>b!==a);l(b.length>0?b[b.length-1]:null)}})(a,b),children:(0,d.jsx)(v.A,{className:"h-3 w-3 hover:text-destructive"})})]},a))})}),u&&(0,d.jsx)("div",{className:"flex-1 border-t",children:(()=>{let a=t(u.file.path);return"image"===a.type?(0,d.jsx)("div",{className:"h-full flex items-center justify-center bg-background p-8",children:(0,d.jsxs)("div",{className:"text-center space-y-4 max-w-2xl",children:[(0,d.jsx)(p.A,{className:"h-12 w-12 mx-auto text-muted-foreground"}),(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)("h3",{className:"text-lg font-medium",children:"Image Preview"}),(0,d.jsx)("p",{className:"text-sm text-muted-foreground",children:u.file.name})]}),(0,d.jsx)("div",{className:"border rounded-lg p-4 bg-muted/30 max-h-96 overflow-auto",children:(0,d.jsx)("img",{src:`data:image/${u.file.path.split(".").pop()};base64,${u.content}`,alt:u.file.name,className:"max-w-full h-auto rounded shadow-sm",onError:a=>{let b=a.target;if(b.style.display="none",!b.parentElement?.querySelector(".error-msg")){let a=document.createElement("div");a.className="error-msg text-sm text-muted-foreground flex items-center gap-2",a.innerHTML='Unable to display image',b.parentElement?.appendChild(a)}}})}),(0,d.jsx)("p",{className:"text-xs text-muted-foreground",children:"Image files cannot be edited in the text editor"})]})}):"unsupported"===a.type?(0,d.jsx)("div",{className:"h-full flex items-center justify-center bg-background p-8",children:(0,d.jsxs)("div",{className:"text-center space-y-4",children:[(0,d.jsx)(M.A,{className:"h-12 w-12 mx-auto text-muted-foreground"}),(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)("h3",{className:"text-lg font-medium",children:"Unsupported File Type"}),(0,d.jsx)("p",{className:"text-sm text-muted-foreground",children:u.file.name}),(0,d.jsx)("p",{className:"text-sm text-muted-foreground max-w-md",children:"This file type is not supported for editing in the text editor. Binary files and certain document formats cannot be displayed here."})]})]})}):(0,d.jsx)(I.Ay,{height:"100%",language:t(u.file.path).language,value:u.content,onChange:a=>r(a,u.file.path),theme:n?"dark"===m?"vs-dark":"light":"vs-dark",options:{minimap:{enabled:!1},fontSize:14,lineNumbers:"on",roundedSelection:!1,scrollBeyondLastLine:!1,automaticLayout:!0,tabSize:2,wordWrap:"on",wrappingIndent:"indent"}})})()})]})]})}function P(a){window.dispatchEvent(new CustomEvent("openFile",{detail:a}))}var Q=c(9284),R=c(79944),S=c(9212),T=c(94684),U=c(44688),V=c(11861),W=c(38547),X=c(91032),Y=c(77030),Z=c(47247),$=c(57771);let _=new Set(["assistant_delta","tool_param_delta","reasoning_delta"]);class aa{async initDB(){if(this.isInitialized)return;let{vfs:a}=await Promise.resolve().then(c.bind(c,11482));await a.init(),this.isInitialized=!0}async getDB(){let{vfs:a}=await Promise.resolve().then(c.bind(c,11482));return a.getDatabase()}getDebugEventsId(a){return`debug_events_${a}`}async loadEvents(a){await this.initDB();let b=await this.getDB(),c=this.getDebugEventsId(a);return new Promise((d,e)=>{let f=b.transaction([this.storeName],"readonly").objectStore(this.storeName).get(c);f.onsuccess=()=>{let b=f.result;b&&b.events?(this.eventsCache.set(a,b.events),d(b.events)):d([])},f.onerror=()=>{h.v.error("Failed to load debug events from DB"),e(f.error)}})}async saveEvents(a,b){await this.initDB();let c=await this.getDB(),d={id:this.getDebugEventsId(a),projectId:a,events:b,lastUpdated:new Date().toISOString()};return new Promise((e,f)=>{let g=c.transaction([this.storeName],"readwrite").objectStore(this.storeName).put(d);g.onsuccess=()=>{this.eventsCache.set(a,b),e()},g.onerror=()=>{h.v.error("Failed to save debug events to DB"),f(g.error)}})}async appendEvent(a,b){let c=this.eventsCache.get(a);c||(c=await this.loadEvents(a)),c.push(b),this.eventsCache.set(a,c),_.has(b.event)||await this.saveEvents(a,c)}async clearEvents(a){this.eventsCache.delete(a),await this.saveEvents(a,[]),h.v.debug(`[DebugEventsState] Cleared debug events for project ${a}`)}async truncateEvents(a,b){this.eventsCache.set(a,b),await this.saveEvents(a,b),h.v.debug(`[DebugEventsState] Truncated debug events for project ${a} to ${b.length} events`)}async getEvents(a){let b=this.eventsCache.get(a);return b||(b=await this.loadEvents(a)),b}async deleteProject(a){await this.initDB();let b=await this.getDB(),c=this.getDebugEventsId(a);return new Promise((d,e)=>{let f=b.transaction([this.storeName],"readwrite").objectStore(this.storeName).delete(c);f.onsuccess=()=>{this.eventsCache.delete(a),d()},f.onerror=()=>{h.v.error("Failed to delete debug events from DB"),e(f.error)}})}unloadProject(a){let b=this.eventsCache.has(a);this.eventsCache.delete(a),b&&h.v.debug(`[DebugEventsState] Unloaded debug events cache for project ${a}`)}constructor(){this.eventsCache=new Map,this.storeName="debugEvents",this.isInitialized=!1}}let ab=new aa;var ac=c(10596),ad=c(94122);let ae=({className:a,...b})=>(0,d.jsx)(ad.YZ,{className:(0,h.cn)("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",a),...b}),af=ad.Zk,ag=({withHandle:a,className:b,...c})=>(0,d.jsx)(ad.TW,{className:(0,h.cn)("group relative flex w-2 mx-1 items-center justify-center bg-transparent hover:bg-border/50 transition-colors after:absolute after:inset-y-0 after:left-1/2 after:w-4 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-2 data-[panel-group-direction=vertical]:my-1 data-[panel-group-direction=vertical]:mx-0 data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-4 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90 cursor-col-resize data-[panel-group-direction=vertical]:cursor-row-resize",b),...c,children:a&&(0,d.jsx)("div",{className:"z-10 flex h-12 w-1 items-center justify-center rounded-full bg-border/30 hover:bg-border/50 transition-colors opacity-0 group-hover:opacity-100",children:(0,d.jsx)(ac.A,{className:"h-3 w-3 text-muted-foreground/50"})})});var ah=c(36736),ai=c(98763),aj=c(49186),ak=c(61010),al=c(85986),am=c(14258),an=c(95919),ao=c(93554),ap=c(62949),aq=c(40284),ar=c(77917),as=c(82042),at=c(37240);function au(){let[a,b]=(0,e.useState)(null),[c,f]=(0,e.useState)(!1);return c&&a?(0,d.jsxs)("div",{className:`text-xs font-mono ${a.percent>80?"text-red-500":a.percent>60?"text-yellow-500":"text-muted-foreground"} flex items-center gap-1`,title:`JS Heap: ${a.usedMB}MB used / ${a.totalMB}MB limit (${a.percent}%)`,children:[(0,d.jsx)("span",{className:"opacity-60",children:"MEM:"}),(0,d.jsxs)("span",{children:[a.usedMB,"MB"]}),a.percent>60&&(0,d.jsxs)("span",{className:"opacity-60",children:["(",a.percent,"%)"]})]}):null}function av({events:a,onClear:b,onClose:c,projectId:f}){let[g,h]=(0,e.useState)(""),[i,j]=(0,e.useState)(!0),k=(0,e.useRef)(null),[l,m]=(0,e.useState)(!0),[n,o]=(0,e.useState)(""),[p,q]=(0,e.useState)([]),[r,s]=(0,e.useState)(!1),t=(0,e.useRef)(null),u=(0,e.useMemo)(()=>{let b=[],c=null,d=new Set(["assistant_delta","tool_param_delta","reasoning_delta"]);for(let e of a)d.has(e.event)?c&&c.event===e.event?c.count=(c.count||1)+1:(c&&b.push(c),c={...e,count:1}):(c&&(b.push(c),c=null),b.push(e));return c&&b.push(c),b},[a]),w=async()=>{if(!n.trim()||!f||r)return;let a=n.trim();o(""),s(!0);try{let b=a.split(/\s+/),c=await at._.execute(f,b),d=c.success?c.stdout||"(no output)":c.stderr||"Command failed";q(b=>[...b,{cmd:a,output:d,isError:!c.success}])}catch(b){q(c=>[...c,{cmd:a,output:`Error: ${b instanceof Error?b.message:"Unknown error"}`,isError:!0}])}finally{s(!1),setTimeout(()=>{t.current?.scrollTo({top:t.current.scrollHeight,behavior:"smooth"})},50)}},y=g?u.filter(a=>a.event.toLowerCase().includes(g.toLowerCase())):u,z=a.reduce((a,b)=>(a[b.event]=(a[b.event]||0)+1,a),{});return(0,d.jsxs)("div",{className:"h-full flex flex-col bg-card border border-border rounded-lg overflow-hidden",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between p-3 border-b border-border bg-muted/30 shrink-0",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(W.A,{className:"h-4 w-4 md:hidden"}),c?(0,d.jsxs)("button",{type:"button",onClick:c,"aria-label":"Hide debug panel",className:"relative hidden h-6 w-6 items-center justify-center rounded-sm text-muted-foreground transition-colors hover:text-destructive md:flex group",children:[(0,d.jsx)(W.A,{className:"h-4 w-4 transition-opacity group-hover:opacity-0"}),(0,d.jsx)(v.A,{className:"absolute h-3 w-3 opacity-0 transition-opacity group-hover:opacity-100"})]}):(0,d.jsx)(W.A,{className:"hidden h-4 w-4 md:inline-flex"}),(0,d.jsx)("span",{className:"font-semibold text-sm",children:"Debug Events"}),(0,d.jsxs)("span",{className:"text-xs text-muted-foreground",children:["(",y.length,"/",a.length,")"]}),(0,d.jsx)(au,{})]}),(0,d.jsxs)("div",{className:"flex items-center gap-1",children:[(0,d.jsx)(x.$,{variant:"ghost",size:"sm",onClick:()=>{b?.()},className:"h-7 px-2 hover:bg-muted",title:"Clear all events",children:(0,d.jsx)(aq.A,{className:"h-3 w-3"})}),(0,d.jsx)(x.$,{variant:"ghost",size:"sm",onClick:()=>{let b=new Blob([JSON.stringify(a,null,2)],{type:"application/json"}),c=URL.createObjectURL(b),d=document.createElement("a");d.href=c,d.download=`debug-events-${Date.now()}.json`,d.click(),URL.revokeObjectURL(c)},className:"h-7 px-2 text-xs hover:bg-muted",title:"Export to JSON",children:"Export"})]})]}),(0,d.jsx)("div",{className:"p-2 border-b border-border bg-muted/20 text-xs",children:(0,d.jsx)("div",{className:"flex flex-wrap gap-2",children:Object.entries(z).map(([a,b])=>(0,d.jsxs)("button",{onClick:()=>h(g===a?"":a),className:`px-2 py-1 rounded ${g===a?"bg-primary text-primary-foreground":"bg-muted hover:bg-muted/80"}`,children:[a," (",b,")"]},a))})}),(0,d.jsx)("div",{className:"p-2 border-b border-border",children:(0,d.jsx)("input",{type:"text",placeholder:"Filter events...",value:g,onChange:a=>h(a.target.value),className:"w-full px-2 py-1 text-xs rounded bg-background border border-border"})}),(0,d.jsx)("div",{className:"p-2 border-b border-border flex items-center gap-2",children:(0,d.jsxs)("label",{className:"text-xs flex items-center gap-1 cursor-pointer",children:[(0,d.jsx)("input",{type:"checkbox",checked:l,onChange:a=>m(a.target.checked),className:"rounded"}),"Auto-scroll"]})}),(0,d.jsxs)("div",{className:"flex-1 overflow-y-auto p-2 space-y-1",children:[0===y.length?(0,d.jsx)("div",{className:"text-xs text-muted-foreground text-center p-4",children:"No events yet. Events will appear here as they occur."}):y.map(a=>(0,d.jsx)(aw,{event:a},a.id)),(0,d.jsx)("div",{ref:k})]}),f&&(0,d.jsxs)("div",{className:"border-t border-border shrink-0",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 px-3 py-1.5 bg-muted/30 border-b border-border",children:[(0,d.jsx)(ar.A,{className:"h-3 w-3 text-muted-foreground"}),(0,d.jsx)("span",{className:"text-xs font-medium",children:"VFS Shell"}),p.length>0&&(0,d.jsx)("button",{onClick:()=>q([]),className:"ml-auto text-xs text-muted-foreground hover:text-foreground",children:"Clear"})]}),p.length>0&&(0,d.jsx)("div",{ref:t,className:"max-h-32 overflow-y-auto p-2 bg-zinc-950 font-mono text-xs",children:p.map((a,b)=>(0,d.jsxs)("div",{className:"mb-2",children:[(0,d.jsxs)("div",{className:"text-emerald-400",children:["$ ",a.cmd]}),(0,d.jsx)("pre",{className:`whitespace-pre-wrap ${a.isError?"text-red-400":"text-zinc-300"}`,children:a.output})]},b))}),(0,d.jsxs)("div",{className:"flex items-center gap-2 p-2 bg-zinc-950",children:[(0,d.jsx)("span",{className:"text-emerald-400 font-mono text-xs",children:"$"}),(0,d.jsx)("input",{type:"text",value:n,onChange:a=>o(a.target.value),onKeyDown:a=>"Enter"===a.key&&w(),placeholder:"ls -la /.skills/",disabled:r,className:"flex-1 bg-transparent border-none outline-none text-xs font-mono text-zinc-100 placeholder:text-zinc-600"}),(0,d.jsx)(x.$,{variant:"ghost",size:"sm",onClick:w,disabled:r||!n.trim(),className:"h-6 px-2 text-xs text-zinc-400 hover:text-zinc-100 hover:bg-zinc-800",children:r?"...":"Run"})]})]})]})}function aw({event:a}){var b;let[c,f]=(0,e.useState)(!1),g=new Date(a.timestamp).toLocaleTimeString();return(0,d.jsxs)(ap.Nt,{open:c,onOpenChange:f,children:[(0,d.jsx)(ap.R6,{className:"w-full text-left",children:(0,d.jsxs)("div",{className:"flex items-center gap-2 p-1.5 rounded hover:bg-muted/50 text-xs",children:[c?(0,d.jsx)(as.A,{className:"h-3 w-3"}):(0,d.jsx)(n.A,{className:"h-3 w-3"}),(0,d.jsx)("span",{className:"text-muted-foreground font-mono",children:g}),(0,d.jsx)("span",{className:`font-semibold ${(b=a.event).includes("error")||b.includes("failed")?"text-red-500":b.includes("retry")?"text-yellow-500":b.includes("completed")||b.includes("success")?"text-green-500":b.includes("tool")?"text-blue-500":b.includes("agent")?"text-purple-500":b.includes("plan")?"text-orange-500":"text-foreground"}`,children:a.event}),a.count&&a.count>1&&(0,d.jsxs)("span",{className:"text-muted-foreground font-mono",children:["(",a.count,")"]})]})}),(0,d.jsx)(ap.Ke,{children:(0,d.jsx)("div",{className:"ml-6 p-2 bg-muted/30 rounded text-xs font-mono overflow-x-auto",children:(0,d.jsx)("pre",{children:JSON.stringify(a.data,null,2)})})})]})}var ax=c(14263),ay=c(75219),az=c(91292),aA=c(71563),aB=c(33204),aC=c(25345),aD=c(60073),aE=c(94104),aF=c(55056),aG=c(15649),aH=c(33847),aI=c(46435),aJ=c(26946);function aK({content:a}){if("string"==typeof a)return(0,d.jsx)("div",{className:"whitespace-pre-wrap",children:a});let b=a.filter(a=>"text"===a.type),c=a.filter(a=>"image_url"===a.type);return(0,d.jsxs)("div",{className:"space-y-2",children:[b.map((a,b)=>(0,d.jsx)("div",{className:"whitespace-pre-wrap",children:"text"===a.type&&a.text},`text-${b}`)),c.length>0&&(0,d.jsx)("div",{className:"flex flex-wrap gap-2 p-1 rounded-md bg-muted/50",children:c.map((a,b)=>"image_url"===a.type&&(0,d.jsx)("img",{src:a.image_url.url,alt:"Attached image",className:"h-[60px] w-auto rounded border border-border object-cover"},`img-${b}`))})]})}let aL={shell:(0,d.jsx)(o.A,{className:"h-3 w-3 text-blue-500"}),json_patch:(0,d.jsx)(L.A,{className:"h-3 w-3 text-orange-500"})},aM={pending:(0,d.jsx)(ax.A,{className:"h-3 w-3 animate-spin text-gray-400"}),executing:(0,d.jsx)(ax.A,{className:"h-3 w-3 animate-spin text-blue-500"}),completed:(0,d.jsx)(ay.A,{className:"h-3 w-3 text-green-500"}),failed:(0,d.jsx)(az.A,{className:"h-3 w-3 text-red-500"})};function aN({events:a,onRestore:b,onRetry:c,prompt:f,setPrompt:g,generating:h,onGenerate:i,onStop:j,focusContext:k,setFocusContext:l,focusPreviewSnippet:m,chatMode:o,setChatMode:q,currentModel:r,setCurrentModel:s,getModelDisplayName:t,isTourLockingInput:u=!1,onClearChat:w,onClose:y,supportsVision:z=!1,providerReady:A=!0}){let B=(0,e.useRef)(null),[C,D]=(0,e.useState)(!0),[E,F]=(0,e.useState)(!1),[G,H]=(0,e.useState)(new Set);(0,e.useRef)(!1);let[I,J]=(0,e.useState)([]),[K,L]=(0,e.useState)(!1),M=(0,e.useCallback)(a=>{if(a.preventDefault(),L(!1),z)for(let b of Array.from(a.dataTransfer.files).filter(a=>a.type.startsWith("image/"))){let a=new FileReader;a.onload=()=>{let b=a.result,[c,d]=b.split(","),e=c.match(/data:([^;]+)/)?.[1]||"image/png";J(a=>[...a,{id:`img-${Date.now()}-${Math.random().toString(36).slice(2,11)}`,data:d,mediaType:e,preview:b}])},a.readAsDataURL(b)}},[z]),N=(0,e.useCallback)(a=>{a.preventDefault(),z&&L(!0)},[z]),O=(0,e.useCallback)(a=>{a.preventDefault(),L(!1)},[]),P=(0,e.useCallback)(a=>{if(!z)return;let b=a.clipboardData?.items;if(b){for(let a of Array.from(b))if(a.type.startsWith("image/")){let b=a.getAsFile();if(b){let a=new FileReader;a.onload=()=>{let b=a.result,[c,d]=b.split(","),e=c.match(/data:([^;]+)/)?.[1]||"image/png";J(a=>[...a,{id:`img-${Date.now()}-${Math.random().toString(36).slice(2,11)}`,data:d,mediaType:e,preview:b}])},a.readAsDataURL(b)}}}},[z]),Q=(0,e.useCallback)(a=>{J(b=>b.filter(b=>b.id!==a))},[]),R=(0,e.useCallback)(()=>{I.length>0?(i(I),J([])):i()},[i,I]),S=(0,e.useRef)(0),T=(0,e.useRef)(new Map),V=(0,e.useRef)({result:[],currentTurn:{id:`turn-${Date.now()}`,items:[]},currentIterationTools:[],itemIdCounter:0}),W=(0,e.useMemo)(()=>{let b,c=V.current,d=a.length-S.current;if(0===a.length||S.current>a.length)return S.current=0,T.current=new Map,V.current={result:[],currentTurn:{id:`turn-${Date.now()}`,items:[]},currentIterationTools:[],itemIdCounter:0},[];let e=a[a.length-1],f=e&&("assistant_delta"===e.event||"tool_param_delta"===e.event||"reasoning_delta"===e.event),g=T.current.get(e?.id||""),h=f&&e.version&&g!==e.version;if(0===d&&!h)return[...c.result,...c.currentTurn.items.length>0?[c.currentTurn]:[]];for(let d of(h?(b=[e],T.current.set(e.id,e.version)):b=a.slice(S.current),b))switch(d.event){case"waiting":c.currentTurn.items.push({id:`item-${c.itemIdCounter++}`,type:"waiting",timestamp:d.timestamp,data:null});break;case"reasoning_start":case"stopped":c.currentTurn.items=c.currentTurn.items.filter(a=>"waiting"!==a.type);break;case"reasoning_delta":let a=(d.data?.all||[d.data]).map(a=>a?.text||"").join("");if(!a.trim()){c.currentTurn.items=c.currentTurn.items.filter(a=>"waiting"!==a.type);break}let b=c.currentTurn.items.find(a=>"reasoning"===a.type&&a.eventId===d.id);if(b)b.data=a;else{let b={id:`item-${c.itemIdCounter++}`,type:"reasoning",timestamp:d.timestamp,data:a,eventId:d.id};c.currentTurn.items.push(b)}c.currentTurn.items=c.currentTurn.items.filter(a=>"waiting"!==a.type);break;case"reasoning_complete":c.currentTurn.items=c.currentTurn.items.filter(a=>"waiting"!==a.type);break;case"toolCalls":let e=d.data?.toolCalls||[];for(let a=0;a"waiting"!==a.type);break;case"tool_status":let{toolIndex:f,status:g,result:h,error:i}=d.data||{},j=c.currentIterationTools[f];if(j&&(j.status=g,h&&(j.result=h),i&&(j.error=i),"executing"===g&&j.parameters?._raw&&"string"==typeof j.parameters._raw))try{j.parameters=JSON.parse(j.parameters._raw)}catch{}break;case"tool_result":let k=c.currentIterationTools[d.data?.toolIndex];k&&d.data?.result&&(k.result=d.data.result);break;case"tool_param_delta":for(let a of d.data?.all||[d.data]){let{toolId:b,partialArguments:d}=a||{};if(!b)continue;let e=c.currentTurn.items.find(a=>"tool"===a.type&&a.data?.id===b);if(e){let a=e.data;try{a.parameters=JSON.parse(d)}catch{a.parameters={_raw:d}}}}break;case"assistant_delta":let l=d.data?.all||[d.data],m=c.currentTurn.items.find(a=>"text"===a.type&&a.eventId===d.id),n=l.map(a=>a?.text||"").join("");if(n)if(m)m.data=n;else{let a={id:`item-${c.itemIdCounter++}`,type:"text",timestamp:d.timestamp,data:n,eventId:d.id};c.currentTurn.items.push(a)}c.currentTurn.items=c.currentTurn.items.filter(a=>"waiting"!==a.type);break;case"plan_message":c.currentTurn.items.push({id:`item-${c.itemIdCounter++}`,type:"plan",timestamp:d.timestamp,data:d.data?.content||""});break;case"agent_message":c.currentTurn.items.push({id:`item-${c.itemIdCounter++}`,type:"agent",timestamp:d.timestamp,data:d.data?.content||""});break;case"task_progress":c.currentTurn.items.push({id:`item-${c.itemIdCounter++}`,type:"progress",timestamp:d.timestamp,data:d.data?.content||""});break;case"conversation_message":let o=d.data?.message;if(o?.role==="user"){if(o.content?.includes("Before finishing, you must call the evaluation tool"))break;let a=o.ui_metadata?.isSyntheticError===!0;c.currentTurn.items.push({id:`item-${c.itemIdCounter++}`,type:a?"synthetic_error":"user",timestamp:d.timestamp,data:o.content||""})}break;case"user_message":c.currentTurn.items.push({id:`item-${c.itemIdCounter++}`,type:"user",timestamp:d.timestamp,data:d.data?.content||""});break;case"error":c.currentTurn.items.push({id:`item-${c.itemIdCounter++}`,type:"error",timestamp:d.timestamp,data:d.data}),c.currentTurn.items=c.currentTurn.items.filter(a=>"waiting"!==a.type);break;case"usage":c.currentTurn.usage=d.data,c.currentTurn.items=c.currentTurn.items.filter(a=>"waiting"!==a.type);break;case"checkpoint_created":c.currentTurn.checkpointId=d.data?.checkpointId;break;case"iteration":c.currentTurn.iteration=d.data?.iteration,c.currentTurn.items.length>0&&(c.result.push(c.currentTurn),c.currentTurn={id:`turn-${Date.now()}-${c.result.length}`,items:[]}),c.currentIterationTools=[]}return h||(S.current=a.length),[...c.result,...c.currentTurn.items.length>0?[c.currentTurn]:[]]},[a]),X=a=>{H(b=>{let c=new Set(b);return c.has(a)?c.delete(a):c.add(a),c})},Y=m?.trim()??"",Z=k?(0,d.jsxs)("div",{id:"focus-context-hint",className:"rounded-md border border-dashed border-primary/40 bg-primary/5 px-3 py-2 text-xs text-muted-foreground shadow-sm",children:[(0,d.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2 text-foreground",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"font-medium text-xs uppercase tracking-wide text-primary",children:"context"}),(0,d.jsx)("span",{className:"text-[10px] uppercase tracking-wide text-muted-foreground",children:"included in next message"})]}),(0,d.jsx)(x.$,{size:"sm",variant:"ghost",className:"h-6 px-2 text-xs",onClick:()=>l(null),title:"Clear focus context",children:"Clear"})]}),(0,d.jsxs)("div",{className:"mt-2 space-y-2",children:[k.domPath&&(0,d.jsx)("div",{className:"text-[11px] font-mono text-muted-foreground/80 break-all leading-snug",children:k.domPath}),Y&&(0,d.jsx)("pre",{className:"max-h-24 overflow-auto rounded border border-border/50 bg-background/90 px-2 py-1 text-[11px] text-foreground leading-relaxed",children:(0,d.jsx)("code",{children:Y})})]})]}):null;return(0,d.jsxs)("div",{className:"h-full flex flex-col bg-card border border-border rounded-lg overflow-hidden","data-tour-id":"assistant-panel",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between p-3 border-b border-border bg-muted/30 shrink-0",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(U.A,{className:"h-4 w-4 md:hidden",style:{color:"var(--button-assistant-active)"}}),y?(0,d.jsxs)("button",{type:"button",onClick:y,"aria-label":"Hide chat panel",className:"relative hidden h-6 w-6 items-center justify-center rounded-sm text-muted-foreground transition-colors hover:text-destructive md:flex group",children:[(0,d.jsx)(U.A,{className:"h-4 w-4 transition-opacity group-hover:opacity-0",style:{color:"var(--button-assistant-active)"}}),(0,d.jsx)(v.A,{className:"absolute h-3 w-3 opacity-0 transition-opacity group-hover:opacity-100"})]}):(0,d.jsx)(U.A,{className:"hidden h-4 w-4 md:inline-flex",style:{color:"var(--button-assistant-active)"}}),(0,d.jsx)("span",{className:"font-semibold text-sm",children:"Chat"})]}),(0,d.jsx)("div",{className:"flex items-center gap-1",children:w&&(0,d.jsx)(x.$,{variant:"ghost",size:"sm",onClick:w,className:"h-7 px-2 hover:bg-muted",title:"Clear chat","data-tour-id":"clear-chat-button",children:(0,d.jsx)(aq.A,{className:"h-3 w-3"})})})]}),(0,d.jsx)("div",{ref:B,className:"flex-1 overflow-y-auto p-4 space-y-4",children:0===W.length?(0,d.jsx)("div",{className:"text-xs text-muted-foreground text-center p-4",children:"No messages yet. Start a conversation to see it here."}):W.map(a=>(0,d.jsx)(aO,{turn:a,onRestore:b,onRetry:c,expandedItems:G,onToggleExpanded:X},a.id))}),(0,d.jsxs)("div",{className:"p-3 space-y-2",children:[Z,(0,d.jsxs)("div",{className:`bg-card border rounded-lg shadow-sm overflow-hidden transition-all ${K?"border-primary border-2 bg-primary/5":"border-border"}`,onDrop:M,onDragOver:N,onDragLeave:O,children:[I.length>0&&(0,d.jsxs)("div",{className:"px-3 pt-2 flex flex-wrap gap-2",children:[I.map(a=>(0,d.jsxs)("div",{className:"relative group",children:[(0,d.jsx)("img",{src:a.preview,alt:"Pending upload",className:"h-12 w-12 object-cover rounded border border-border"}),(0,d.jsx)("button",{onClick:()=>Q(a.id),className:"absolute -top-1 -right-1 h-4 w-4 bg-destructive text-destructive-foreground rounded-full flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity",title:"Remove image",children:(0,d.jsx)(v.A,{className:"h-3 w-3"})})]},a.id)),(0,d.jsxs)("span",{className:"text-xs text-muted-foreground self-end pb-1",children:[I.length," image",1!==I.length?"s":""," attached"]})]}),K&&z&&(0,d.jsx)("div",{className:"absolute inset-0 flex items-center justify-center bg-primary/10 z-10 pointer-events-none",children:(0,d.jsxs)("div",{className:"text-primary font-medium flex items-center gap-2",children:[(0,d.jsx)(p.A,{className:"h-5 w-5"}),"Drop image here"]})}),(0,d.jsxs)("div",{className:"relative flex bg-card rounded-lg transition-all",children:[(0,d.jsx)(aH.T,{value:f,onChange:a=>g(a.target.value),onKeyDown:a=>{!u&&"Enter"===a.key&&(a.ctrlKey||a.metaKey)&&(a.preventDefault(),R())},onPaste:P,placeholder:A?z?"Describe what you want to build... (paste or drop images)":"Describe what you want to build...":"Select a provider to start...",className:"flex-1 px-3 py-2 bg-transparent border-0 resize-none focus:outline-none text-sm placeholder:text-muted-foreground text-foreground",rows:3,disabled:h||u||!A}),(0,d.jsx)("div",{className:"flex flex-col p-2 gap-2",children:(0,d.jsx)(x.$,{onClick:h?j:R,disabled:u?!h:!h&&(!f.trim()&&0===I.length||!A),size:"sm",className:"flex items-center gap-2",children:h?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(ax.A,{className:"h-4 w-4 animate-spin"}),"Stop"]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(aA.A,{className:"h-4 w-4"}),"Send"]})})})]}),(0,d.jsx)("div",{className:"border-t border-border bg-muted/50 px-2 py-2",children:(0,d.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,d.jsxs)(ak.AM,{open:E,onOpenChange:F,children:[(0,d.jsx)(ak.Wv,{asChild:!0,children:(0,d.jsxs)(x.$,{variant:"outline",size:"sm",className:`h-7 text-xs ${!A?"ring-2 ring-primary/70 animate-ring-opacity border-primary":""}`,"data-tour-id":"provider-settings-trigger",children:[(0,d.jsx)("span",{children:A?t(r):"Select provider"}),E?(0,d.jsx)(n.A,{className:"h-3 w-3 ml-1"}):(0,d.jsx)(as.A,{className:"h-3 w-3 ml-1"})]})}),(0,d.jsx)(ak.hl,{className:"w-[460px] max-w-[calc(100vw-2rem)] max-h-[min(680px,calc(100vh-5rem))] overflow-hidden flex flex-col",align:"start","data-tour-id":"provider-settings-popup",children:(0,d.jsx)(aJ.t,{onClose:()=>F(!1),onModelChange:a=>s(a)})})]}),(0,d.jsxs)(aI.OY,{type:"single",value:o?"chat":"code",onValueChange:a=>{a&&q("chat"===a)},className:"gap-1",children:[(0,d.jsxs)(aI.dz,{value:"chat",className:"h-7 text-xs px-2",children:[(0,d.jsx)(U.A,{className:"h-3 w-3 mr-1"}),"Chat"]}),(0,d.jsxs)(aI.dz,{value:"code",className:"h-7 text-xs px-2",children:[(0,d.jsx)(aB.A,{className:"h-3 w-3 mr-1"}),"Code"]})]})]})})]})]})]})}function aO({turn:a,onRestore:b,onRetry:c,expandedItems:e,onToggleExpanded:f}){return(0,d.jsxs)("div",{className:"space-y-2",...a.checkpointId?{"data-checkpoint-id":a.checkpointId}:{},children:[a.items.map(a=>{switch(a.type){case"waiting":return(0,d.jsx)("div",{className:"bg-muted/30 rounded-md p-2 opacity-70",children:(0,d.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,d.jsx)(ax.A,{className:"h-3 w-3 animate-spin text-blue-400"}),(0,d.jsx)("span",{className:"text-xs text-muted-foreground",children:"Waiting for response..."})]})},a.id);case"reasoning":return(0,d.jsx)(aR,{itemId:a.id,content:a.data,isExpanded:e.has(a.id),onToggle:()=>f(a.id)},a.id);case"plan":return(0,d.jsx)(aS,{itemId:a.id,content:a.data,isExpanded:e.has(a.id),onToggle:()=>f(a.id)},a.id);case"agent":return(0,d.jsx)(aT,{itemId:a.id,content:a.data,isExpanded:e.has(a.id),onToggle:()=>f(a.id)},a.id);case"progress":return(0,d.jsx)(aU,{itemId:a.id,content:a.data,isExpanded:e.has(a.id),onToggle:()=>f(a.id)},a.id);case"tool":return(0,d.jsx)(aP,{itemId:a.id,tool:a.data,isExpanded:e.has(a.id),onToggle:()=>f(a.id)},a.id);case"text":return(0,d.jsx)("div",{className:"text-sm text-foreground/90 bg-muted/20 px-3 py-2 rounded",children:(0,d.jsx)(aG.T,{content:a.data})},a.id);case"user":return(0,d.jsxs)("div",{className:"text-sm text-foreground bg-primary/10 px-3 py-2 rounded border border-primary/20",children:[(0,d.jsx)("div",{className:"font-semibold text-primary mb-1 text-xs",children:"User"}),(0,d.jsx)(aK,{content:a.data})]},a.id);case"synthetic_error":return(0,d.jsx)(aQ,{itemId:a.id,content:a.data,isExpanded:e.has(a.id),onToggle:()=>f(a.id)},a.id);case"error":return(0,d.jsx)("div",{className:"text-sm bg-destructive/10 border border-destructive/20 px-3 py-2 rounded",children:(0,d.jsxs)("div",{className:"flex items-start gap-2",children:[(0,d.jsx)(az.A,{className:"h-4 w-4 text-destructive mt-0.5 shrink-0"}),(0,d.jsxs)("div",{className:"flex-1",children:[(0,d.jsx)("div",{className:"font-semibold text-destructive mb-1",children:"Error"}),(0,d.jsx)("div",{className:"text-destructive/90 whitespace-pre-wrap font-mono text-xs",children:a.data?.message||JSON.stringify(a.data,null,2)}),a.data?.stack&&(0,d.jsxs)("details",{className:"mt-2",children:[(0,d.jsx)("summary",{className:"text-xs text-destructive/70 cursor-pointer hover:text-destructive",children:"Stack trace"}),(0,d.jsx)("pre",{className:"text-[10px] text-destructive/60 mt-1 overflow-x-auto",children:a.data.stack})]})]})]})},a.id);default:return null}}),(a.usage||a.checkpointId)&&(0,d.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[a.usage&&(0,d.jsxs)("div",{className:"text-xs text-muted-foreground",children:["Tokens: ",(a.usage.usage?.totalTokens||a.usage.totalTokens)?.toLocaleString()||"N/A",(void 0!==a.usage.totalCost||void 0!==a.usage.cost)&&` • Cost: $${((a.usage.totalCost??a.usage.cost)||0).toFixed(4)}`]}),a.checkpointId&&(0,d.jsxs)("div",{className:"flex items-center gap-1",children:[b&&(0,d.jsxs)(x.$,{size:"sm",variant:"ghost",onClick:()=>b(a.checkpointId),className:"h-6 px-2 text-xs",title:"Restore to this checkpoint",children:[(0,d.jsx)(S.A,{className:"h-3 w-3 mr-1"}),"Restore"]}),c&&(0,d.jsxs)(x.$,{size:"sm",variant:"ghost",onClick:()=>c(a.checkpointId),className:"h-6 px-2 text-xs",title:"Restore files and retry from this checkpoint",children:[(0,d.jsx)(aC.A,{className:"h-3 w-3 mr-1"}),"Retry"]})]})]})]})}function aP({itemId:a,tool:b,isExpanded:c,onToggle:e}){return(0,d.jsxs)("div",{className:`bg-muted/30 rounded-md transition-all ${"executing"===b.status?"ring-2 ring-blue-500/20 animate-pulse":""} ${c?"p-2":"p-1.5"}`,children:[(0,d.jsxs)("button",{onClick:e,className:"flex items-center gap-2 w-full text-left hover:bg-muted/50 rounded px-1",children:[(0,d.jsxs)("div",{className:"flex items-center gap-1.5",children:[aL[b.name]||(0,d.jsx)(o.A,{className:"h-3 w-3"}),(0,d.jsx)("span",{className:"text-xs font-mono",children:b.name})]}),"shell"===b.name&&b.parameters?.cmd&&(0,d.jsx)("code",{className:"text-xs text-muted-foreground",children:Array.isArray(b.parameters.cmd)?b.parameters.cmd.slice(1).join(" ").substring(0,50):String(b.parameters.cmd).substring(0,50)}),(b.parameters?.path||b.parameters?.file_path)&&(0,d.jsx)("code",{className:"text-xs text-muted-foreground",children:b.parameters.path||b.parameters.file_path}),(0,d.jsx)("div",{className:"ml-auto",children:aM[b.status||"completed"]})]}),c&&(0,d.jsxs)("div",{className:"mt-2 space-y-2",children:[b.parameters&&Object.keys(b.parameters).length>0&&(0,d.jsxs)("div",{className:"px-2",children:[(0,d.jsx)("div",{className:"text-[10px] uppercase tracking-wider text-muted-foreground mb-1",children:"Parameters"}),(0,d.jsx)("pre",{className:"text-xs bg-muted/50 p-2 rounded overflow-x-auto",children:JSON.stringify(b.parameters,null,2)})]}),b.result&&(0,d.jsxs)("div",{className:"px-2",children:[(0,d.jsx)("div",{className:"text-[10px] uppercase tracking-wider text-muted-foreground mb-1",children:"Result"}),(0,d.jsx)("pre",{className:"text-xs bg-muted/50 p-2 rounded overflow-x-auto max-h-40 overflow-y-auto",children:"string"==typeof b.result?b.result:JSON.stringify(b.result,null,2)})]}),b.error&&(0,d.jsxs)("div",{className:"px-2",children:[(0,d.jsx)("div",{className:"text-[10px] uppercase tracking-wider text-destructive mb-1",children:"Error"}),(0,d.jsx)("pre",{className:"text-xs bg-destructive/10 text-destructive p-2 rounded overflow-x-auto",children:b.error})]})]})]})}function aQ({itemId:a,content:b,isExpanded:c,onToggle:e}){return(0,d.jsxs)("div",{className:`bg-amber-500/10 rounded-md transition-all ${c?"p-2":"p-1.5"}`,children:[(0,d.jsxs)("button",{onClick:e,className:"flex items-center gap-2 w-full text-left hover:bg-amber-500/20 rounded px-1",children:[(0,d.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,d.jsx)(aC.A,{className:"h-3 w-3 text-amber-600"}),(0,d.jsx)("span",{className:"text-xs font-mono",children:"Auto-correction"})]}),(0,d.jsx)("div",{className:"ml-auto",children:(0,d.jsx)(ay.A,{className:"h-3 w-3 text-amber-600"})})]}),c&&(0,d.jsx)("div",{className:"mt-2 px-2",children:(0,d.jsx)("pre",{className:"text-xs bg-muted/50 p-2 rounded overflow-x-auto whitespace-pre-wrap",children:b})})]})}function aR({itemId:a,content:b,isExpanded:c,onToggle:e}){let f=(b||"").split("\n").filter(a=>a.trim()),g=f[0]?.substring(0,60)||"Reasoning...",h=!b||b.length<20;return(0,d.jsxs)("div",{className:"bg-violet-500/10 rounded-md transition-all p-1.5 border border-violet-500/20",children:[(0,d.jsxs)("button",{onClick:e,className:"flex items-center gap-2 w-full text-left hover:bg-violet-500/20 rounded px-1",children:[(0,d.jsxs)("div",{className:"flex items-center gap-1.5",children:[h?(0,d.jsx)(ax.A,{className:"h-3 w-3 animate-spin text-violet-500"}):(0,d.jsx)(aD.A,{className:"h-3 w-3 text-violet-500"}),(0,d.jsx)("span",{className:"text-xs font-mono",children:"reasoning"})]}),(0,d.jsx)("code",{className:"text-xs text-muted-foreground truncate flex-1",children:h?"Thinking...":g}),(0,d.jsx)("div",{className:"ml-auto",children:(0,d.jsx)(o.A,{className:`h-3 w-3 transition-transform ${c?"rotate-90":""}`})})]}),c&&(0,d.jsx)("div",{className:"mt-2 px-2",children:(0,d.jsx)("div",{className:"text-xs bg-muted/50 p-2 rounded overflow-x-auto max-h-64 overflow-y-auto",children:(0,d.jsx)(aG.T,{content:b||"Thinking..."})})})]})}function aS({itemId:a,content:b,isExpanded:c,onToggle:e}){let f=b.split("\n"),g=f[0]?.replace(/^\*\*|\*\*$/g,"").substring(0,50)||"Plan";return(0,d.jsxs)("div",{className:"bg-muted/30 rounded-md transition-all p-1.5",children:[(0,d.jsxs)("button",{onClick:e,className:"flex items-center gap-2 w-full text-left hover:bg-muted/50 rounded px-1",children:[(0,d.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,d.jsx)(aE.A,{className:"h-3 w-3 text-orange-500"}),(0,d.jsx)("span",{className:"text-xs font-mono",children:"plan"})]}),(0,d.jsx)("code",{className:"text-xs text-muted-foreground truncate flex-1",children:g}),(0,d.jsx)("div",{className:"ml-auto",children:(0,d.jsx)(o.A,{className:`h-3 w-3 transition-transform ${c?"rotate-90":""}`})})]}),c&&(0,d.jsx)("div",{className:"mt-2 px-2",children:(0,d.jsx)("pre",{className:"text-xs bg-muted/50 p-2 rounded overflow-x-auto whitespace-pre-wrap",children:b})})]})}function aT({itemId:a,content:b,isExpanded:c,onToggle:e}){let f=b.split("\n"),g=f[0]?.replace(/^\*\*|\*\*$/g,"").replace(/^🤖\s*/,"").substring(0,50)||"Agent";return(0,d.jsxs)("div",{className:"bg-muted/30 rounded-md transition-all p-1.5",children:[(0,d.jsxs)("button",{onClick:e,className:"flex items-center gap-2 w-full text-left hover:bg-muted/50 rounded px-1",children:[(0,d.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,d.jsx)(aF.A,{className:"h-3 w-3 text-purple-500"}),(0,d.jsx)("span",{className:"text-xs font-mono",children:"agent"})]}),(0,d.jsx)("code",{className:"text-xs text-muted-foreground truncate flex-1",children:g}),(0,d.jsx)("div",{className:"ml-auto",children:(0,d.jsx)(o.A,{className:`h-3 w-3 transition-transform ${c?"rotate-90":""}`})})]}),c&&(0,d.jsx)("div",{className:"mt-2 px-2",children:(0,d.jsx)("pre",{className:"text-xs bg-muted/50 p-2 rounded overflow-x-auto whitespace-pre-wrap",children:b})})]})}function aU({itemId:a,content:b,isExpanded:c,onToggle:e}){let f=b.includes("✅"),g=b.replace(/^[✅🔄]\s*/,"").substring(0,50);return(0,d.jsxs)("div",{className:"bg-muted/30 rounded-md transition-all p-1.5",children:[(0,d.jsxs)("button",{onClick:e,className:"flex items-center gap-2 w-full text-left hover:bg-muted/50 rounded px-1",children:[(0,d.jsxs)("div",{className:"flex items-center gap-1.5",children:[f?(0,d.jsx)(ay.A,{className:"h-3 w-3 text-green-500"}):(0,d.jsx)(ax.A,{className:"h-3 w-3 animate-spin text-blue-500"}),(0,d.jsx)("span",{className:"text-xs font-mono",children:"progress"})]}),(0,d.jsx)("code",{className:"text-xs text-muted-foreground truncate flex-1",children:g}),(0,d.jsx)("div",{className:"ml-auto",children:(0,d.jsx)(o.A,{className:`h-3 w-3 transition-transform ${c?"rotate-90":""}`})})]}),c&&(0,d.jsx)("div",{className:"mt-2 px-2",children:(0,d.jsx)("pre",{className:"text-xs bg-muted/50 p-2 rounded overflow-x-auto whitespace-pre-wrap",children:b})})]})}function aV({projectId:a,selectedDeploymentId:b,onDeploymentChange:c,className:d}){let[f,g]=(0,e.useState)([]),[h,i]=(0,e.useState)(!0),[j,k]=(0,e.useState)(null);return null}c(65828),c(28241);var aW=c(22544),aX=c(1949),aY=c(75535),aZ=c(51855);function a$({projectId:a,events:b,currentCheckpointId:c,onRestore:f,onScrollToTurn:g,onClose:h,refreshKey:i}){let[j,k]=(0,e.useState)([]),l=(0,e.useMemo)(()=>{let a=new Set;for(let c of b)"checkpoint_created"===c.event&&c.data?.checkpointId&&a.add(c.data.checkpointId);return a},[b]);return(0,d.jsxs)("div",{className:"h-full border border-border rounded-lg shadow-sm overflow-hidden flex flex-col",style:{background:"linear-gradient(0deg, rgba(var(--panel-checkpoint-rgb), 0.01), rgba(var(--panel-checkpoint-rgb), 0.01)), var(--card)",minWidth:"240px"},children:[(0,d.jsxs)("div",{className:"flex items-center justify-between px-3 py-2 border-b border-border shrink-0",style:{background:"linear-gradient(0deg, rgba(var(--panel-checkpoint-rgb), 0.03), rgba(var(--panel-checkpoint-rgb), 0.05))"},children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(V.A,{className:"h-3.5 w-3.5",style:{color:"var(--button-checkpoint-active)"}}),(0,d.jsx)("span",{className:"text-xs font-medium",children:"Checkpoints"}),j.length>0&&(0,d.jsxs)("span",{className:"text-[10px] text-muted-foreground",children:["(",j.length,")"]})]}),h&&(0,d.jsx)(x.$,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0",onClick:h,children:(0,d.jsx)(v.A,{className:"h-3.5 w-3.5"})})]}),(0,d.jsx)("div",{className:"flex-1 overflow-y-auto",children:0===j.length?(0,d.jsxs)("div",{className:"flex flex-col items-center justify-center h-full text-muted-foreground gap-2 p-4",children:[(0,d.jsx)(aX.A,{className:"h-8 w-8 opacity-40"}),(0,d.jsx)("span",{className:"text-xs text-center",children:"No checkpoints yet. Checkpoints are created automatically when the AI makes changes."})]}):(0,d.jsx)("div",{className:"p-2 space-y-1.5",children:j.map(a=>{let b=a.id===c,e=l.has(a.id);return(0,d.jsxs)("div",{className:`rounded-md border px-2.5 py-2 text-xs transition-colors ${b?"border-primary/40 bg-primary/5":"border-border/60 bg-card hover:bg-muted/30"}`,children:[(0,d.jsxs)("div",{className:"flex items-center gap-1.5 mb-1",children:[(0,d.jsx)(aW.E,{variant:"manual"===a.kind?"default":"secondary",className:"text-[9px] px-1.5 py-0 h-4 leading-none",children:"manual"===a.kind?"save":a.kind}),(0,d.jsx)("span",{className:"text-[10px] text-muted-foreground ml-auto whitespace-nowrap",children:(0,aZ.m)(new Date(a.timestamp),{addSuffix:!0})})]}),(0,d.jsxs)(ah.m_,{children:[(0,d.jsx)(ah.k$,{asChild:!0,children:(0,d.jsx)("p",{className:"text-[11px] text-foreground/80 truncate leading-snug mb-1.5",children:a.description})}),(0,d.jsx)(ah.ZI,{side:"bottom",className:"max-w-[300px]",children:(0,d.jsx)("p",{className:"text-xs",children:a.description})})]}),(0,d.jsxs)("div",{className:"flex items-center gap-1",children:[e&&(0,d.jsxs)(x.$,{variant:"ghost",size:"sm",className:"h-5 px-1.5 text-[10px] text-muted-foreground hover:text-foreground",onClick:()=>g(a.id),children:[(0,d.jsx)(aY.A,{className:"h-3 w-3 mr-0.5"}),"Jump"]}),(0,d.jsxs)(x.$,{variant:"ghost",size:"sm",className:"h-5 px-1.5 text-[10px] text-muted-foreground hover:text-foreground ml-auto",onClick:()=>f(a.id,a.description),children:[(0,d.jsx)(S.A,{className:"h-3 w-3 mr-0.5"}),"Restore"]})]})]},a.id)})})})]})}var a_=c(37905);function a0({project:a,onBack:b}){let[c,f]=(0,e.useState)(0),[i,k]=(0,e.useState)(""),[l,m]=(0,e.useState)(!1),[n,o]=(0,e.useState)(null),[p,q]=(0,e.useState)(null),[r,s]=(0,e.useState)("preview"),[v,w]=(0,e.useState)(!1),[y,z]=(0,e.useState)(!1),[A,B]=(0,e.useState)(a.lastSavedAt??null),[C,D]=(0,e.useState)(null),[E,F]=(0,e.useState)(()=>!1),I=(0,e.useRef)(null),L=(0,e.useRef)(null),M=(0,e.useRef)(!1),[N,_]=(0,e.useState)(null),[aa,ac]=(0,e.useState)(0),[ad,ap]=(0,e.useState)(Z.s.getDefaultModel()),[aq,ar]=(0,e.useState)(!1),[as,at]=(0,e.useState)(!1),[au,aw]=(0,e.useState)(0),{state:ax,start:ay,setWorkspaceHandler:az}=(0,an.C)(),aA=ax.currentStep?.id,aB="running"===ax.status&&"wrap-up"!==aA,{shouldShowCosts:aC}=function(){let[a,b]=(0,e.useState)(()=>Z.s.getCostSettings()),c=!1!==a.showCosts;return{costSettings:a,shouldShowCosts:c}}(),aD=(0,e.useMemo)(()=>{let a=Z.s.getSelectedProvider(),b=ad||Z.s.getDefaultModel();return(0,$.Uw)(a,b)},[ad]),aE=(0,e.useMemo)(()=>{let a=Z.s.getSelectedProvider(),b=(0,$.sO)(a);return!!b.isLocal||!b.apiKeyRequired&&!b.usesOAuth||!!Z.s.getProviderApiKey(a)},[ad]),[aF,aG]=(0,e.useState)(!0),[aH,aI]=(0,e.useState)(!0),[aJ,aK]=(0,e.useState)(!1),[aL,aM]=(0,e.useState)(!0),[aO,aP]=(0,e.useState)(!1),[aQ,aR]=(0,e.useState)(!1),[aS,aT]=(0,e.useState)(!1),[aU,aW]=(0,e.useState)(()=>(0,Z.D)(a.id)),[aX,aY]=(0,e.useState)(null),[aZ,a0]=(0,e.useState)(null),[a1,a2]=(0,e.useState)([]),a3=(0,e.useRef)(0),a4=(0,e.useRef)(null),a5=(0,e.useCallback)(b=>{a4.current&&clearTimeout(a4.current),a4.current=setTimeout(()=>{ab.saveEvents(a.id,b).catch(a=>{h.v.error("Failed to persist debug events:",a)})},500)},[a.id]),a6=(0,e.useCallback)(async(a,b)=>{a2(c=>{let d;if(("assistant_delta"===a||"tool_param_delta"===a||"reasoning_delta"===a)&&c.length>0){let e=Math.max(0,c.length-4);for(let f=c.length-1;f>=e;f--)if(c[f].event===a){let a=c[f],e={...a,timestamp:Date.now(),version:(a.version||1)+1,count:(a.count||1)+1,data:{all:a.data.all?[...a.data.all,b]:[a.data,b]}};return a5(d=[...c.slice(0,f),e,...c.slice(f+1)]),d}}return(d=[...c,{id:`${Date.now()}-${a3.current++}`,timestamp:Date.now(),event:a,data:b,count:1,version:1}]).length>500&&(d=d.slice(-500)),a5(d),d})},[a.id,a5,500]),a7=(0,e.useCallback)(async()=>{a2([]),await ab.clearEvents(a.id),await ai.Y.clearAutoCheckpoints(a.id),q(null)},[a.id]),a8=(()=>{let a=[aF,aH,aJ,aL,aO,aQ].filter(Boolean).length;return a>=5?{chat:18,files:13,editor:22,preview:18,checkpoints:14,debug:15}:4===a?{chat:25,files:15,editor:35,preview:25,checkpoints:15,debug:15}:3===a?{chat:33,files:33,editor:33,preview:33,checkpoints:33,debug:33}:2===a?{chat:50,files:50,editor:50,preview:50,checkpoints:50,debug:50}:{chat:100,files:100,editor:100,preview:100,checkpoints:100,debug:100}})(),a9=a=>{if(!a)return"Select Model";let b=a.split("/");return b[b.length-1].split("-").map(a=>a.charAt(0).toUpperCase()+a.slice(1)).join(" ")},ba=(0,e.useCallback)((a,b=1200)=>{if(!a)return"";if(a.length<=b)return a;let c=Math.max(0,Math.floor(.6*b)),d=Math.max(0,Math.floor(.3*b)),e=a.slice(0,c),f=d>0?a.slice(-d):"";return`${e} + (...truncated...) +${f}`},[]),bb=(0,e.useCallback)(a=>{let b=Object.entries(a.attributes||{}).slice(0,6);if(0===b.length)return`<${a.tagName}>`;let c=b.map(([a,b])=>{let c=b.length>40?`${b.slice(0,37)}…`:b;return`${a}="${c}"`}).join(" ");return`<${a.tagName} ${c}>`},[]),bc=(0,e.useCallback)(a=>{let b=bb(a),c=ba(a.outerHTML,1200),d=a.domPath||"(unknown path)";return["Focus context:",`- Target: ${b}`,`- DOM path: ${d}`,"- HTML snippet:\n```html",c,"```"].join("\n")},[bb,ba]),bd=(0,e.useCallback)(a=>{if(!a){D(null),I.current=null;return}let b=`${a.domPath||""}::${a.tagName||""}::${a.outerHTML?a.outerHTML.length:0}`,c=Date.now();if(I.current&&I.current.signature===b&&c-I.current.timestamp<400)return;let d={...a,timestamp:c};D(d),G.oR.info("Focus context set",{description:bb(d)}),I.current={signature:b,timestamp:c}},[bb]),be=(0,e.useCallback)(()=>{aM(!1)},[]);C&&bb(C);let bf=C?ba(C.outerHTML,240):"";bf?.trim(),C&&(x.$,C.domPath&&C.domPath);let bg=(0,e.useCallback)(async(a,b)=>{aY(a),a0(b),q(null),a&&b?(await g.vfs.mountDeploymentRuntimeContext(a),h.v.info(`[Workspace] Connected deployment runtime: ${b}`)):(g.vfs.unmountDeploymentRuntimeContext(),h.v.info("[Workspace] Disconnected deployment runtime")),f(a=>a+1)},[]),bh=(0,e.useCallback)(b=>{aW(b),localStorage.setItem(`osw-backend-${a.id}`,String(b))},[a.id]),bi=(0,e.useCallback)(a=>{window.innerWidth<768?(s("editor"),setTimeout(()=>{P(a)},0)):aJ?P(a):(aK(!0),setTimeout(()=>{P(a)},0))},[aJ]),bj=(0,e.useCallback)(()=>{f(a=>a+1),window.dispatchEvent(new CustomEvent("filesChanged"))},[]),bk=(0,e.useCallback)(async()=>{if(!y){z(!0);try{let b=await aj.$.save(a.id),c=await g.vfs.getProject(a.id);B(c.lastSavedAt??new Date(b.timestamp)),ac(a=>a+1),G.oR.success("Project saved")}catch(a){h.v.error("Failed to save project",a),G.oR.error("Failed to save project")}finally{z(!1)}}},[a.id,y]),bl=(0,e.useCallback)(async b=>{try{let c=await g.vfs.getProject(a.id);c.previewImage=b,c.previewUpdatedAt=new Date,await g.vfs.updateProject(c),G.oR.success("Thumbnail updated")}catch(a){h.v.error("Failed to save screenshot:",a),G.oR.error("Failed to save thumbnail")}},[a.id]),bm=(0,e.useCallback)(async(b,c)=>{try{if(!await ai.Y.checkpointExists(b)){G.oR.error("Checkpoint no longer exists - it may have been cleaned up"),h.v.warn(`[Workspace] Checkpoint ${b} no longer exists`);return}if(await aj.$.runWithSuppressedDirty(a.id,()=>ai.Y.restoreCheckpoint(b))){G.oR.success(`Restored to: ${c||"checkpoint"}`),bj();let d=aj.$.getSavedCheckpointId(a.id);if(d&&d===b){aj.$.markClean(a.id);let b=await g.vfs.getProject(a.id);B(b.lastSavedAt??null)}else aj.$.markDirty(a.id)}else G.oR.error("Failed to restore checkpoint")}catch(a){h.v.error("Error restoring checkpoint:",a),G.oR.error("Failed to restore checkpoint")}},[bj,a.id]),bn=(0,e.useCallback)(a=>{aF||aG(!0),requestAnimationFrame(()=>{let b=document.querySelector(`[data-checkpoint-id="${a}"]`);b&&(b.scrollIntoView({behavior:"smooth",block:"center"}),b.classList.add("ring-2","ring-primary/50"),setTimeout(()=>b.classList.remove("ring-2","ring-primary/50"),2e3))})},[aF]),bo=(0,e.useCallback)(async b=>{try{if(!await ai.Y.checkpointExists(b)){G.oR.error("Checkpoint no longer exists - cannot retry"),h.v.warn(`[Workspace] Checkpoint ${b} no longer exists`);return}let c=null,d=a1.findIndex(a=>"checkpoint_created"===a.event&&a.data?.checkpointId===b);if(d>=0){for(let a=d-1;a>=0;a--)if("conversation_message"===a1[a].event&&a1[a].data?.message?.role==="user"){c=a1[a].data.message.content;break}}if(!c){G.oR.error("Cannot find original user message to retry"),h.v.warn("[Workspace] No user message found before checkpoint");return}let e=-1;for(let a=d-1;a>=0;a--)if("conversation_message"===a1[a].event&&a1[a].data?.message?.role==="user"&&a1[a].data.message.content===c){e=a;break}if(-1===e){G.oR.error("Cannot find user message event to truncate"),h.v.warn("[Workspace] User message event not found in debug events");return}if(!await aj.$.runWithSuppressedDirty(a.id,()=>ai.Y.restoreCheckpoint(b)))return void G.oR.error("Failed to restore checkpoint");let f=aj.$.getSavedCheckpointId(a.id);if(f&&f===b){aj.$.markClean(a.id);let b=await g.vfs.getProject(a.id);B(b.lastSavedAt??null)}else aj.$.markDirty(a.id);let i=a1.slice(0,e);a2(i),await ab.truncateEvents(a.id,i),q(null),G.oR.success("Restored checkpoint and retrying..."),bj(),k(c),M.current=!0}catch(a){h.v.error("Error during retry:",a),G.oR.error("Failed to retry")}},[bj,a.id,a1,k]),bp=async b=>{if(aB)return;let c=i.trim();if(!c&&(!b||0===b.length))return void G.oR.error("Please enter a prompt");let d=Z.s.getSelectedProvider(),e=(0,$.sO)(d),f=Z.s.getApiKey();if(e.apiKeyRequired&&!f)return void G.oR.error(`Please set your ${e.name} API key in settings`);if(e.isLocal&&!Z.s.getProviderModel(d))return void G.oR.error(`No model selected for ${e.name}. Please select a model in settings.`);let j=Z.s.getProviderModel(d)||Z.s.getDefaultModel();if(!j)return void G.oR.error(`No model selected for ${E?"chat":"code"} mode. Please select a model in settings.`);m(!0),(0,ao.u4)("task_started",{provider:d,model:j});let l=Date.now(),n=C?`${bc(C)} + +${c}`:c;try{let c=p;if(!c){c=new Y.t(a.id,"orchestrator",a6,{chatMode:E,model:j});let b=a1.filter(a=>"conversation_message"===a.event).map(a=>a.data.message);b.length>0&&(c.importConversation(b),h.v.debug(`[Workspace] Restored ${b.length} conversation messages from debug events`)),q(c)}o(c);let e=b?.map(a=>({data:a.data,mediaType:a.mediaType})),f=await c.execute(n,e?.length?{images:e}:void 0);h.v.debug("[Workspace] Orchestrator result:",{success:f.success,summary:f.summary,totalCost:f.totalCost}),f.success?(bj(),g.vfs.hasServerContext()&&await g.vfs.refreshServerContext(),(0,ao.u4)("task_complete",{provider:d,model:j,duration_ms:Date.now()-l}),G.oR.success("Task completed")):((0,ao.u4)("task_fail",{provider:d,model:j,reason:"error",duration_ms:Date.now()-l}),G.oR.error(f.summary||"Generation failed",{duration:5e3,position:"bottom-center"})),k(""),C&&D(null)}catch(b){h.v.error("Generation error:",b);let a=b instanceof Error?b.message:"Failed to generate";(0,ao.u4)("task_fail",{provider:d,model:j,reason:"error",duration_ms:Date.now()-l}),a6("error",{message:a}),G.oR.error(a,{duration:5e3,position:"bottom-center"})}finally{m(!1),o(null)}},bq=(0,e.useCallback)(()=>{n&&(n.stop(),(0,ao.u4)("task_fail",{provider:Z.s.getSelectedProvider(),model:Z.s.getDefaultModel(),reason:"stopped"}),G.oR.info("Generation stopped"))},[n]),br=[{id:"back",label:"Back to projects",icon:R.A,onClick:b,variant:"outline"}];br.push({id:"save",label:y?"Saving…":v?"Save":"Saved",icon:K.A,onClick:bk,variant:v?"default":"outline",disabled:!v||y}),N&&br.push({id:"discard",label:"Discard Changes",icon:S.A,onClick:()=>bm(N,"Last saved state"),variant:"outline",disabled:y||!v,dataTourId:"discard-changes-button"});let bs=(0,d.jsxs)("div",{className:"flex items-center gap-3",children:[(0,d.jsx)(aV,{projectId:a.id,selectedDeploymentId:aX,onDeploymentChange:bg}),(0,d.jsxs)(x.$,{variant:"outline",size:"sm",className:`h-8 px-3 flex items-center gap-2 ${aU?"border-primary/50 bg-primary/10":""}`,onClick:()=>aT(!0),title:"Backend",children:[(0,d.jsx)(j.A,{className:"h-4 w-4"}),(0,d.jsx)("span",{className:"text-sm hidden lg:inline",children:"Backend"})]}),(0,d.jsxs)(ak.AM,{children:[(0,d.jsx)(ak.Wv,{asChild:!0,children:(0,d.jsxs)(x.$,{variant:"outline",size:"sm",className:"h-8 px-3 flex items-center gap-2",title:"Project cost and settings",children:[aC&&(0,d.jsxs)("span",{className:"text-sm font-medium",children:["$",au.toFixed(3)]}),(0,d.jsx)(T.A,{className:"h-4 w-4"})]})}),(0,d.jsx)(ak.hl,{className:"w-[460px] max-h-[min(720px,calc(100vh-5rem))] overflow-hidden flex flex-col",align:"end",children:(0,d.jsx)(al.O,{})})]})]}),bt=(0,d.jsxs)("div",{className:"space-y-2",children:[aC&&(0,d.jsx)("div",{className:"pb-2 border-b border-border/50",children:(0,d.jsxs)("span",{className:"text-sm font-medium",children:["Project cost: $",au.toFixed(au>=10?2:3)]})}),(0,d.jsxs)(x.$,{variant:"outline",size:"sm",className:"w-full justify-start",onClick:()=>aT(!0),children:[(0,d.jsx)(j.A,{className:"h-4 w-4 mr-2"}),"Backend"]}),(0,d.jsxs)(ak.AM,{children:[(0,d.jsx)(ak.Wv,{asChild:!0,children:(0,d.jsxs)(x.$,{variant:"outline",size:"sm",className:"w-full justify-start",children:[(0,d.jsx)(T.A,{className:"h-4 w-4 mr-2"}),"Settings"]})}),(0,d.jsx)(ak.hl,{className:"w-[460px] max-w-[calc(100vw-2rem)] max-h-[min(720px,calc(100vh-5rem))] overflow-hidden flex flex-col",align:"start",children:(0,d.jsx)(al.O,{})})]})]});return(0,d.jsxs)(ah.Bc,{children:[(0,d.jsxs)("div",{className:"h-screen flex flex-col",children:[(0,d.jsx)(X.j,{leftText:a.name,onLogoClick:b,actions:br,mobileMenuContent:bt,desktopOnlyContent:bs,mobileVisibleActions:v?["save"]:[]}),(0,d.jsxs)("div",{className:"hidden md:flex flex-1 overflow-hidden bg-background",children:[(0,d.jsxs)("div",{className:"w-10 bg-muted/70 border-r border-border flex flex-col items-center py-3 gap-1.5",children:[(0,d.jsxs)(ah.m_,{children:[(0,d.jsx)(ah.k$,{asChild:!0,children:(0,d.jsx)("button",{className:`h-5 w-5 px-1 rounded-sm flex items-center justify-center transition-all ${aF?"shadow-sm":"bg-transparent text-muted-foreground hover:bg-muted/80 hover:text-foreground"}`,style:{backgroundColor:aF?"var(--button-assistant-active)":void 0,color:aF?"white":void 0},onClick:()=>aG(!aF),children:(0,d.jsx)(U.A,{className:"h-3.5 w-3.5"})})}),(0,d.jsx)(ah.ZI,{side:"right",className:"border-0",style:{backgroundColor:"var(--button-assistant-active)",color:"white"},arrowStyle:{backgroundColor:"var(--button-assistant-active)",fill:"var(--button-assistant-active)"},children:(0,d.jsx)("p",{children:"Chat"})})]}),(0,d.jsxs)(ah.m_,{children:[(0,d.jsx)(ah.k$,{asChild:!0,children:(0,d.jsx)("button",{className:`h-5 w-5 px-1 rounded-sm flex items-center justify-center transition-all ${aH?"shadow-sm":"bg-transparent text-muted-foreground hover:bg-muted/80 hover:text-foreground"}`,style:{backgroundColor:aH?"var(--button-files-active)":void 0,color:aH?"white":void 0},onClick:()=>aI(!aH),children:(0,d.jsx)(u.A,{className:"h-3.5 w-3.5"})})}),(0,d.jsx)(ah.ZI,{side:"right",className:"border-0",style:{backgroundColor:"var(--button-files-active)",color:"white"},arrowStyle:{backgroundColor:"var(--button-files-active)",fill:"var(--button-files-active)"},children:(0,d.jsx)("p",{children:"File Explorer"})})]}),(0,d.jsxs)(ah.m_,{children:[(0,d.jsx)(ah.k$,{asChild:!0,children:(0,d.jsx)("button",{className:`h-5 w-5 px-1 rounded-sm flex items-center justify-center transition-all ${aJ?"shadow-sm":"bg-transparent text-muted-foreground hover:bg-muted/80 hover:text-foreground"}`,style:{backgroundColor:aJ?"var(--button-editor-active)":void 0,color:aJ?"white":void 0},onClick:()=>aK(!aJ),children:(0,d.jsx)(J.A,{className:"h-3.5 w-3.5"})})}),(0,d.jsx)(ah.ZI,{side:"right",className:"border-0",style:{backgroundColor:"var(--button-editor-active)",color:"white"},arrowStyle:{backgroundColor:"var(--button-editor-active)",fill:"var(--button-editor-active)"},children:(0,d.jsx)("p",{children:"Code Editor"})})]}),(0,d.jsxs)(ah.m_,{children:[(0,d.jsx)(ah.k$,{asChild:!0,children:(0,d.jsx)("button",{className:`h-5 w-5 mx-1 rounded-sm flex items-center justify-center transition-all ${aL?"shadow-sm":"bg-transparent text-muted-foreground hover:bg-muted/80 hover:text-foreground"}`,style:{backgroundColor:aL?"var(--button-preview-active)":void 0,color:aL?"white":void 0},onClick:()=>aM(!aL),children:(0,d.jsx)(t.A,{className:"h-3.5 w-3.5"})})}),(0,d.jsx)(ah.ZI,{side:"right",className:"border-0",style:{backgroundColor:"var(--button-preview-active)",color:"white"},arrowStyle:{backgroundColor:"var(--button-preview-active)",fill:"var(--button-preview-active)"},children:(0,d.jsx)("p",{children:"Preview"})})]}),(0,d.jsxs)(ah.m_,{children:[(0,d.jsx)(ah.k$,{asChild:!0,children:(0,d.jsx)("button",{className:`h-5 w-5 px-1 rounded-sm flex items-center justify-center transition-all ${aO?"shadow-sm":"bg-transparent text-muted-foreground hover:bg-muted/80 hover:text-foreground"}`,style:{backgroundColor:aO?"var(--button-checkpoint-active)":void 0,color:aO?"white":void 0},onClick:()=>aP(!aO),children:(0,d.jsx)(V.A,{className:"h-3.5 w-3.5"})})}),(0,d.jsx)(ah.ZI,{side:"right",className:"border-0",style:{backgroundColor:"var(--button-checkpoint-active)",color:"white"},arrowStyle:{backgroundColor:"var(--button-checkpoint-active)",fill:"var(--button-checkpoint-active)"},children:(0,d.jsx)("p",{children:"Checkpoints"})})]}),(0,d.jsxs)(ah.m_,{children:[(0,d.jsx)(ah.k$,{asChild:!0,children:(0,d.jsx)("button",{className:`h-5 w-5 px-1 rounded-sm flex items-center justify-center transition-all ${aQ?"bg-foreground shadow-sm":"bg-transparent text-muted-foreground hover:bg-muted/80 hover:text-foreground"}`,style:{color:aQ?"var(--background)":void 0},onClick:()=>aR(!aQ),children:(0,d.jsx)(W.A,{className:"h-3.5 w-3.5"})})}),(0,d.jsx)(ah.ZI,{side:"right",className:"border-0 bg-foreground text-background",arrowStyle:{backgroundColor:"var(--foreground)",fill:"var(--foreground)"},children:(0,d.jsx)("p",{children:"Debug Events"})})]})]}),(0,d.jsx)("div",{className:"flex-1 p-2 overflow-hidden","data-tour-id":"workspace-panels",children:(0,d.jsxs)(ae,{direction:"horizontal",autoSaveId:"workspace-layout",children:[aF&&(0,d.jsx)(af,{id:"chat",order:1,defaultSize:a8.chat,minSize:15,children:(0,d.jsx)(aN,{events:a1,onRestore:bm,onRetry:bo,prompt:i,setPrompt:k,generating:l,onGenerate:bp,onStop:bq,focusContext:C,setFocusContext:D,focusPreviewSnippet:bf,chatMode:E,setChatMode:F,currentModel:ad,setCurrentModel:ap,getModelDisplayName:a9,isTourLockingInput:aB,onClearChat:a7,onClose:()=>aG(!1),supportsVision:aD,providerReady:aE})}),aF&&(aH||aJ||aL||aO||aQ)&&(0,d.jsx)(ag,{withHandle:!0}),aH&&(0,d.jsx)(af,{id:"files",order:2,defaultSize:a8.files,minSize:14,children:(0,d.jsx)("div",{className:"h-full border border-border rounded-lg shadow-sm overflow-hidden relative",style:{background:"linear-gradient(0deg, rgba(var(--panel-files-rgb), 0.01), rgba(var(--panel-files-rgb), 0.01)), var(--card)",minWidth:"240px"},children:(0,d.jsx)(H,{projectId:a.id,onFileSelect:bi,onClose:()=>aI(!1)})})}),aH&&(aJ||aL||aO||aQ)&&(0,d.jsx)(ag,{withHandle:!0}),aJ&&(0,d.jsx)(af,{id:"editor",order:3,defaultSize:a8.editor,minSize:20,children:(0,d.jsx)("div",{className:"h-full border border-border rounded-lg shadow-sm overflow-hidden relative",style:{background:"linear-gradient(0deg, rgba(var(--panel-editor-rgb), 0.01), rgba(var(--panel-editor-rgb), 0.01)), var(--card)",minWidth:"240px"},children:(0,d.jsx)(O,{projectId:a.id,onFilesChange:bj,onClose:()=>aK(!1)})})}),aJ&&(aL||aO||aQ)&&(0,d.jsx)(ag,{withHandle:!0}),aL&&(0,d.jsx)(af,{id:"preview",order:4,defaultSize:a8.preview,minSize:20,children:(0,d.jsx)("div",{className:"h-full border border-border rounded-lg shadow-sm overflow-hidden relative",style:{background:"linear-gradient(0deg, rgba(var(--panel-preview-rgb), 0.01), rgba(var(--panel-preview-rgb), 0.01)), var(--card)",minWidth:"240px"},children:(0,d.jsx)(Q.X,{ref:L,projectId:a.id,refreshTrigger:c,onFocusSelection:bd,hasFocusTarget:!!C,onClose:be,deploymentId:aX,onCaptureScreenshot:bl})})}),aL&&(aO||aQ)&&(0,d.jsx)(ag,{withHandle:!0}),aO&&(0,d.jsx)(af,{id:"checkpoints",order:5,defaultSize:a8.checkpoints,minSize:12,children:(0,d.jsx)(a$,{projectId:a.id,events:a1,currentCheckpointId:ai.Y.getCurrentCheckpoint()?.id,onRestore:bm,onScrollToTurn:bn,onClose:()=>aP(!1),refreshKey:aa})}),aO&&aQ&&(0,d.jsx)(ag,{withHandle:!0}),aQ&&(0,d.jsx)(af,{id:"debug",order:6,defaultSize:a8.debug,minSize:15,children:(0,d.jsx)(av,{events:a1,onClear:a7,onClose:()=>aR(!1),projectId:a.id})})]})})]}),(0,d.jsxs)("div",{className:"flex md:hidden flex-1 overflow-hidden bg-background flex-col",children:[(0,d.jsxs)("div",{className:"flex-1 p-2 pb-16 overflow-hidden",children:["chat"===r&&(0,d.jsx)(aN,{events:a1,onRestore:bm,onRetry:bo,prompt:i,setPrompt:k,generating:l,onGenerate:bp,onStop:bq,focusContext:C,setFocusContext:D,focusPreviewSnippet:bf,chatMode:E,setChatMode:F,currentModel:ad,setCurrentModel:ap,getModelDisplayName:a9,isTourLockingInput:aB,onClearChat:a7,supportsVision:aD,providerReady:aE}),"files"===r&&(0,d.jsx)("div",{className:"h-full border border-border rounded-lg shadow-sm overflow-hidden relative",style:{background:"linear-gradient(0deg, rgba(var(--panel-files-rgb), 0.01), rgba(var(--panel-files-rgb), 0.01)), var(--card)"},children:(0,d.jsx)(H,{projectId:a.id,onFileSelect:bi,onClose:()=>aI(!1)})}),"editor"===r&&(0,d.jsx)("div",{className:"h-full border border-border rounded-lg shadow-sm overflow-hidden relative",style:{background:"linear-gradient(0deg, rgba(var(--panel-editor-rgb), 0.01), rgba(var(--panel-editor-rgb), 0.01)), var(--card)"},children:(0,d.jsx)(O,{projectId:a.id,onFilesChange:bj,onClose:()=>aK(!1)})}),"preview"===r&&(0,d.jsx)("div",{className:"h-full border border-border rounded-lg shadow-sm overflow-hidden relative",style:{background:"linear-gradient(0deg, rgba(var(--panel-preview-rgb), 0.01), rgba(var(--panel-preview-rgb), 0.01)), var(--card)"},children:(0,d.jsx)(Q.X,{ref:L,projectId:a.id,refreshTrigger:c,onFocusSelection:bd,hasFocusTarget:!!C,onClose:be,deploymentId:aX,onCaptureScreenshot:bl})})]}),(0,d.jsx)("div",{className:"fixed bottom-0 left-0 right-0 bg-card border-t border-border",children:(0,d.jsxs)("div",{className:"flex justify-center items-center p-2 gap-2",children:[(0,d.jsx)("button",{className:`flex items-center justify-center py-2 px-2 rounded-lg transition-all shadow-sm ${"chat"===r?"text-white":"bg-transparent text-muted-foreground hover:bg-muted/80 hover:text-foreground"}`,style:{backgroundColor:"chat"===r?"var(--button-assistant-active)":void 0},onClick:()=>s("chat"),children:(0,d.jsx)(U.A,{className:"h-4 w-4"})}),(0,d.jsx)("button",{className:`flex items-center justify-center py-2 px-2 rounded-lg transition-all shadow-sm ${"files"===r?"text-white":"bg-transparent text-muted-foreground hover:bg-muted/80 hover:text-foreground"}`,style:{backgroundColor:"files"===r?"var(--button-files-active)":void 0},onClick:()=>s("files"),children:(0,d.jsx)(u.A,{className:"h-4 w-4"})}),(0,d.jsx)("button",{className:`flex items-center justify-center py-2 px-2 rounded-lg transition-all shadow-sm ${"editor"===r?"text-white":"bg-transparent text-muted-foreground hover:bg-muted/80 hover:text-foreground"}`,style:{backgroundColor:"editor"===r?"var(--button-editor-active)":void 0},onClick:()=>s("editor"),children:(0,d.jsx)(J.A,{className:"h-4 w-4"})}),(0,d.jsx)("button",{className:`flex items-center justify-center py-2 px-2 rounded-lg transition-all shadow-sm ${"preview"===r?"text-white":"bg-transparent text-muted-foreground hover:bg-muted/80 hover:text-foreground"}`,style:{backgroundColor:"preview"===r?"var(--button-preview-active)":void 0},onClick:()=>s("preview"),children:(0,d.jsx)(t.A,{className:"h-4 w-4"})})]})})]})]}),(0,d.jsx)(am.V,{location:"workspace"}),(0,d.jsx)(am.V,{location:"settings"}),(0,d.jsx)(a_.V,{projectId:a.id,projectName:a.name,isOpen:aS,onClose:()=>aT(!1),enabled:aU,onToggleEnabled:bh})]})}},45914:(a,b,c)=>{c.d(b,{V:()=>m});var d=c(21124);c(38301);var e=c(30758),f=c(33305),g=c(19217),h=c(49308),i=c(22544),j=c(78583),k=c(97950),l=c(87251);function m({open:a,onOpenChange:b}){return(0,d.jsx)(f.lG,{open:a,onOpenChange:b,children:(0,d.jsxs)(f.Cf,{className:"max-w-3xl max-h-[90vh]",children:[(0,d.jsx)(f.c7,{children:(0,d.jsxs)("div",{className:"flex items-center gap-4 mb-2",children:[(0,d.jsx)(h.g,{width:64,height:64}),(0,d.jsxs)("div",{children:[(0,d.jsx)(f.L3,{className:"text-2xl",children:"Open Source Web Studio"}),(0,d.jsx)(f.rr,{className:"text-base",children:"Browser-based Website Builder"})]})]})}),(0,d.jsxs)("div",{className:"space-y-6 overflow-y-auto max-h-[60vh] pr-4",children:[(0,d.jsx)("section",{children:(0,d.jsxs)("div",{className:"text-sm text-gray-600 dark:text-gray-300 leading-relaxed space-y-3",children:[(0,d.jsx)("p",{children:"OSW Studio is a BYOK (Bring Your Own Key) agentic browser-based website builder where you describe what you want and an agent writes the code. Originally forked from @enzostvs and @victor's DeepSite v2, it has evolved into a full-featured development environment."}),(0,d.jsx)("p",{children:"This is a solo project and there isn't a huge corpo behind it. I'll do my best to fix issues and possibly keep the project improving, but it's just me doing this for fun so please be patient. All feedback and contributions are more than welcome."}),(0,d.jsx)("p",{children:"If you make something with the app I would be thrilled if you could share what you've made."})]})}),(0,d.jsxs)("section",{children:[(0,d.jsx)("h3",{className:"font-semibold text-lg mb-3",children:"Links & Community"}),(0,d.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,d.jsxs)("a",{href:"https://discord.gg/mAJ8Ss4u",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-sm text-blue-600 dark:text-blue-400 hover:underline",children:[(0,d.jsx)(l.E,{className:"h-4 w-4"}),"Discord Community",(0,d.jsx)(j.A,{className:"h-3 w-3"})]}),(0,d.jsxs)("a",{href:"https://github.com/o-stahl/osw-studio",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-sm text-blue-600 dark:text-blue-400 hover:underline",children:[(0,d.jsx)(k.A,{className:"h-4 w-4"}),"GitHub repo",(0,d.jsx)(j.A,{className:"h-3 w-3"})]}),(0,d.jsxs)("a",{href:"https://huggingface.co/spaces/otst/oswstudio",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-sm text-blue-600 dark:text-blue-400 hover:underline",children:[(0,d.jsxs)("svg",{fill:"currentColor",fillRule:"evenodd",height:"1em",style:{flex:"none",lineHeight:1},viewBox:"0 0 24 24",width:"1em",xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4",children:[(0,d.jsx)("title",{children:"HuggingFace"}),(0,d.jsx)("path",{d:"M16.781 3.277c2.997 1.704 4.844 4.851 4.844 8.258 0 .995-.155 1.955-.443 2.857a1.332 1.332 0 011.125.4 1.41 1.41 0 01.2 1.723c.204.165.352.385.428.632l.017.062c.06.222.12.69-.2 1.166.244.37.279.836.093 1.236-.255.57-.893 1.018-2.128 1.5l-.202.078-.131.048c-.478.173-.89.295-1.061.345l-.086.024c-.89.243-1.808.375-2.732.394-1.32 0-2.3-.36-2.923-1.067a9.852 9.852 0 01-3.18.018C9.778 21.647 8.802 22 7.494 22a11.249 11.249 0 01-2.541-.343l-.221-.06-.273-.08a16.574 16.574 0 01-1.175-.405c-1.237-.483-1.875-.93-2.13-1.501-.186-.4-.151-.867.093-1.236a1.42 1.42 0 01-.2-1.166c.069-.273.226-.516.447-.694a1.41 1.41 0 01.2-1.722c.233-.248.557-.391.917-.407l.078-.001a9.385 9.385 0 01-.44-2.85c0-3.407 1.847-6.554 4.844-8.258a9.822 9.822 0 019.687 0zM4.188 14.758c.125.687 2.357 2.35 2.14 2.707-.19.315-.796-.239-.948-.386l-.041-.04-.168-.147c-.561-.479-2.304-1.9-2.74-1.432-.43.46.119.859 1.055 1.42l.784.467.136.083c1.045.643 1.12.84.95 1.113-.188.295-3.07-2.1-3.34-1.083-.27 1.011 2.942 1.304 2.744 2.006-.2.7-2.265-1.324-2.685-.537-.425.79 2.913 1.718 2.94 1.725l.16.04.175.042c1.227.284 3.565.65 4.435-.604.673-.973.64-1.709-.248-2.61l-.057-.057c-.945-.928-1.495-2.288-1.495-2.288l-.017-.058-.025-.072c-.082-.22-.284-.639-.63-.584-.46.073-.798 1.21.12 1.933l.05.038c.977.721-.195 1.21-.573.534l-.058-.104-.143-.25c-.463-.799-1.282-2.111-1.739-2.397-.532-.332-.907-.148-.782.541zm14.842-.541c-.533.335-1.563 2.074-1.94 2.751a.613.613 0 01-.687.302.436.436 0 01-.176-.098.303.303 0 01-.049-.06l-.014-.028-.008-.02-.007-.019-.003-.013-.003-.017a.289.289 0 01-.004-.048c0-.12.071-.266.25-.427.026-.024.054-.047.084-.07l.047-.036c.022-.016.043-.032.063-.049.883-.71.573-1.81.131-1.917l-.031-.006-.056-.004a.368.368 0 00-.062.006l-.028.005-.042.014-.039.017-.028.015-.028.019-.036.027-.023.02c-.173.158-.273.428-.31.542l-.016.054s-.53 1.309-1.439 2.234l-.054.054c-.365.358-.596.69-.702 1.018-.143.437-.066.868.21 1.353.055.097.117.195.187.296.882 1.275 3.282.876 4.494.59l.286-.07.25-.074c.276-.084.736-.233 1.2-.42l.188-.077.065-.028.064-.028.124-.056.081-.038c.529-.252.964-.543.994-.827l.001-.036a.299.299 0 00-.037-.139c-.094-.176-.271-.212-.491-.168l-.045.01c-.044.01-.09.024-.136.04l-.097.035-.054.022c-.559.23-1.238.705-1.607.745h.006a.452.452 0 01-.05.003h-.024l-.024-.003-.023-.005c-.068-.016-.116-.06-.14-.142a.22.22 0 01-.005-.1c.062-.345.958-.595 1.713-.91l.066-.028c.528-.224.97-.483.985-.832v-.04a.47.47 0 00-.016-.098c-.048-.18-.175-.251-.36-.251-.785 0-2.55 1.36-2.92 1.36-.025 0-.048-.007-.058-.024a.6.6 0 01-.046-.088c-.1-.238.068-.462 1.06-1.066l.209-.126c.538-.32 1.01-.588 1.341-.831.29-.212.475-.406.503-.6l.003-.028c.008-.113-.038-.227-.147-.344a.266.266 0 00-.07-.054l-.034-.015-.013-.005a.403.403 0 00-.13-.02c-.162 0-.369.07-.595.18-.637.313-1.431.952-1.826 1.285l-.249.215-.033.033c-.08.078-.288.27-.493.386l-.071.037-.041.019a.535.535 0 01-.122.036h.005a.346.346 0 01-.031.003l.01-.001-.013.001c-.079.005-.145-.021-.19-.095a.113.113 0 01-.014-.065c.027-.465 2.034-1.991 2.152-2.642l.009-.048c.1-.65-.271-.817-.791-.493zM11.938 2.984c-4.798 0-8.688 3.829-8.688 8.55 0 .692.083 1.364.24 2.008l.008-.009c.252-.298.612-.46 1.017-.46.355.008.699.117.993.312.22.14.465.384.715.694.261-.372.69-.598 1.15-.605.852 0 1.367.728 1.562 1.383l.047.105.06.127c.192.396.595 1.139 1.143 1.68 1.06 1.04 1.324 2.115.8 3.266a8.865 8.865 0 002.024-.014c-.505-1.12-.26-2.17.74-3.186l.066-.066c.695-.684 1.157-1.69 1.252-1.912.195-.655.708-1.383 1.56-1.383.46.007.889.233 1.15.605.25-.31.495-.553.718-.694a1.87 1.87 0 01.99-.312c.357 0 .682.126.925.36.14-.61.215-1.245.215-1.898 0-4.722-3.89-8.55-8.687-8.55zm1.857 8.926l.439-.212c.553-.264.89-.383.89.152 0 1.093-.771 3.208-3.155 3.262h-.184c-2.325-.052-3.116-2.06-3.156-3.175l-.001-.087c0-1.107 1.452.586 3.25.586.716 0 1.379-.272 1.917-.526zm4.017-3.143c.45 0 .813.358.813.8 0 .441-.364.8-.813.8a.806.806 0 01-.812-.8c0-.442.364-.8.812-.8zm-11.624 0c.448 0 .812.358.812.8 0 .441-.364.8-.812.8a.806.806 0 01-.813-.8c0-.442.364-.8.813-.8zm7.79-.841c.32-.384.846-.54 1.33-.394.483.146.83.564.878 1.06.048.495-.212.97-.659 1.203-.322.168-.447-.477-.767-.585l.002-.003c-.287-.098-.772.362-.925.079a1.215 1.215 0 01.14-1.36zm-4.323 0c.322.384.377.92.14 1.36-.152.283-.64-.177-.925-.079l.003.003c-.108.036-.194.134-.273.24l-.118.165c-.11.15-.22.262-.377.18a1.226 1.226 0 01-.658-1.204c.048-.495.395-.913.878-1.059a1.262 1.262 0 011.33.394z"})]}),"Live Demo (HuggingFace)",(0,d.jsx)(j.A,{className:"h-3 w-3"})]}),(0,d.jsx)("a",{href:"https://www.buymeacoffee.com/otst",target:"_blank",rel:"noopener noreferrer",children:(0,d.jsx)("img",{src:"https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png",alt:"Buy Me A Coffee",style:{height:"30px",width:"109px"}})})]})]})]}),(0,d.jsxs)("div",{className:"flex justify-between items-center pt-4 border-t",children:[(0,d.jsxs)(i.E,{variant:"secondary",className:"text-xs",children:["v",process.env.NEXT_PUBLIC_APP_VERSION||e.rE]}),(0,d.jsx)(g.$,{onClick:()=>b(!1),children:"Close"})]})]})})}},46435:(a,b,c)=>{c.d(b,{OY:()=>j,dz:()=>k});var d=c(21124),e=c(38301),f=c(78092),g=c(26691),h=c(15514);let i=(0,g.F)("inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-3",sm:"h-8 px-2",lg:"h-10 px-3"}},defaultVariants:{variant:"default",size:"default"}}),j=e.forwardRef(({className:a,...b},c)=>(0,d.jsx)(f.bL,{ref:c,className:(0,h.cn)("inline-flex items-center justify-center gap-1 rounded-md bg-muted p-1",a),...b}));j.displayName=f.bL.displayName;let k=e.forwardRef(({className:a,variant:b,size:c,...e},g)=>(0,d.jsx)(f.q7,{ref:g,className:(0,h.cn)(i({variant:b,size:c}),a),...e}));k.displayName=f.q7.displayName},50485:(a,b,c)=>{c.d(b,{captureIframeScreenshot:()=>h,i:()=>f});var d=c(15215),e=c(15514);async function f(a,b=2e3,c=8e3){let d=a.defaultView,e=[new Promise(a=>setTimeout(a,b))];a.fonts?.ready&&e.push(a.fonts.ready.catch(()=>{})),a.querySelectorAll("img").forEach(a=>{a.complete||e.push(new Promise(b=>{a.addEventListener("load",()=>b(),{once:!0}),a.addEventListener("error",()=>b(),{once:!0})}))}),d&&e.push(new Promise(a=>{"requestIdleCallback"in d?d.requestIdleCallback(()=>a(),{timeout:500}):setTimeout(a,500)})),await Promise.race([Promise.all(e),new Promise(a=>setTimeout(a,c))])}async function g(a,b,c,f){let g;return f?(g=Math.max(a.body.scrollHeight,a.body.offsetHeight,a.documentElement.clientHeight,a.documentElement.scrollHeight,a.documentElement.offsetHeight),e.v.debug("[Screenshot] Full-page mode: document height =",g)):(g=c,e.v.debug("[Screenshot] Viewport-only mode: using height =",g)),e.v.debug("[Screenshot] Capture dimensions:",b,"x",g),Promise.race([(0,d.A)(a.body,{width:b,height:g,scale:1,useCORS:!0,allowTaint:!0,logging:!1,windowWidth:b,windowHeight:g,scrollX:0,scrollY:0,imageTimeout:3e3,backgroundColor:"#ffffff",removeContainer:!0,onclone:a=>{a.querySelectorAll('link[rel="stylesheet"]').forEach(a=>{let b=a.getAttribute("href");b&&(b.startsWith("http://")||b.startsWith("https://"))&&a.remove()});let b=a.querySelectorAll("*"),c=a.defaultView;c&&b.forEach(a=>{let b=c.getComputedStyle(a),d=b.backgroundImage;if(d&&(d.includes("gradient")||d.includes("linear-gradient")||d.includes("radial-gradient"))){let c=b.backgroundColor;a.style.backgroundImage="none",c&&"rgba(0, 0, 0, 0)"!==c&&"transparent"!==c?a.style.backgroundColor=c:a.style.backgroundColor="#64748b"}})}}),new Promise((a,b)=>setTimeout(()=>b(Error("html2canvas timeout after 4 seconds")),4e3))])}async function h(a,b=1280,c=720,d=640,i=360,j=.8,k=!0,l=!1,m=1500){try{let h,i=a.contentDocument||a.contentWindow?.document;if(!i||!i.body)return e.v.warn("Cannot access iframe document"),null;if(l)try{await f(i,m)}catch{await new Promise(a=>setTimeout(a,m))}try{h=await g(i,b,c,k)}catch(d){let a=String(d);if(a.includes("non-finite")||a.includes("addColorStop")||a.includes("CanvasGradient"))await new Promise(a=>setTimeout(a,500)),h=await g(i,b,c,k);else throw d}let n=h.height/h.width,o=Math.round(d*n),p=document.createElement("canvas");p.width=d,p.height=o;let q=p.getContext("2d");if(!q)return e.v.error("Failed to get canvas context"),null;q.drawImage(h,0,0,d,o);let r=p.toDataURL("image/jpeg",j),s=Math.ceil(3*r.length/4)/1024;if(s>250){e.v.warn(`Screenshot too large: ${s.toFixed(0)}KB, trying with lower quality`);let a=p.toDataURL("image/jpeg",.6),b=Math.ceil(3*a.length/4)/1024;return b>250&&e.v.warn(`Screenshot still too large: ${b.toFixed(0)}KB`),a}return r}catch(a){return e.v.error("Failed to capture screenshot:",a),null}}},51932:(a,b,c)=>{c.d(b,{i:()=>z});var d=c(21124),e=c(38301),f=c(14263),g=c(18310),h=c(8849),i=c(98688),j=c(34941),k=c(78460),l=c(90771),m=c(52426),n=c(40284),o=c(19217),p=c(9188),q=c(21564),r=c(33305),s=c(7629),t=c(53199),u=c(71117),v=c(45523);let w=`// Server functions receive arguments via the 'args' array +// and have access to 'db' and 'fetch' + +// Example: Validate an API key +const [apiKey] = args; +if (!apiKey) { + return { valid: false, error: 'No API key provided' }; +} + +const users = db.query( + 'SELECT id, name FROM users WHERE api_key = ?', + [apiKey] +); + +if (users.length === 0) { + return { valid: false, error: 'Invalid API key' }; +} + +return { valid: true, user: users[0] }; +`;function x({function:a,isOpen:b,onClose:c,onSave:h}){let[i,j]=(0,e.useState)(a?.name||""),[k,l]=(0,e.useState)(a?.description||""),[m,n]=(0,e.useState)(a?.code||w),[p,x]=(0,e.useState)(!1),[y,z]=(0,e.useState)(null),{resolvedTheme:A}=(0,v.D)(),[B,C]=(0,e.useState)(!1),D=async()=>{if(z(null),!i.trim())return void z("Function name is required");if(!/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(i))return void z("Name must be a valid identifier (letters, numbers, underscores; cannot start with number)");if(["db","fetch","console","args","request","Response","server"].includes(i))return void z(`"${i}" is reserved and cannot be used`);if(!m.trim())return void z("Function code is required");x(!0);try{await h({name:i.trim(),description:k.trim()||void 0,code:m,enabled:a?.enabled??!0})}catch(a){z(a instanceof Error?a.message:"Failed to save server function")}finally{x(!1)}};return B?(0,d.jsx)(r.lG,{open:b,onOpenChange:c,children:(0,d.jsxs)(r.Cf,{className:"sm:max-w-3xl h-[85vh] flex flex-col",children:[(0,d.jsxs)(r.c7,{children:[(0,d.jsx)(r.L3,{children:a?"Edit Server Function":"Create Server Function"}),(0,d.jsxs)(r.rr,{children:["Define a reusable helper function that edge functions can call via server.",i||"name","(args)."]})]}),(0,d.jsxs)("div",{className:"flex-1 overflow-auto space-y-4",children:[(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)(t.J,{htmlFor:"name",children:"Function Name"}),(0,d.jsx)(s.p,{id:"name",value:i,onChange:a=>j(a.target.value.replace(/[^a-zA-Z0-9_]/g,"")),placeholder:"validateAuth",disabled:!!a}),(0,d.jsxs)("p",{className:"text-xs text-muted-foreground",children:["Usage in edge functions: ",(0,d.jsxs)("span",{className:"font-mono",children:["server.",i||"name","(arg1, arg2, ...)"]})]})]}),(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)(t.J,{htmlFor:"description",children:"Description (optional)"}),(0,d.jsx)(s.p,{id:"description",value:k,onChange:a=>l(a.target.value),placeholder:"What does this helper do?"})]}),(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)(t.J,{children:"Function Code"}),(0,d.jsx)("div",{className:"h-64 border rounded-lg overflow-hidden",children:(0,d.jsx)(q.Ay,{language:"javascript",theme:"dark"===A?"vs-dark":"light",value:m,onChange:a=>n(a||""),options:{minimap:{enabled:!1},fontSize:13,scrollBeyondLastLine:!1,automaticLayout:!0,tabSize:2}})})]}),(0,d.jsxs)("div",{className:"bg-muted/30 border rounded-lg p-4 space-y-2",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 text-sm font-medium",children:[(0,d.jsx)(u.A,{className:"h-4 w-4"}),"Available in Server Functions"]}),(0,d.jsxs)("div",{className:"grid gap-2 text-xs font-mono",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("span",{className:"text-orange-500",children:"args"})," - Array of arguments passed from edge function"]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("span",{className:"text-green-500",children:"db"}),".query(sql, params), .run(sql, params), .all(sql, params)"]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("span",{className:"text-yellow-500",children:"fetch"}),"(url, options) - External HTTP requests"]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("span",{className:"text-blue-500",children:"console"}),".log(), .error(), .warn() - Logging"]})]}),(0,d.jsx)("div",{className:"mt-3 pt-3 border-t",children:(0,d.jsxs)("p",{className:"text-xs text-muted-foreground",children:[(0,d.jsx)("strong",{children:"Note:"})," Return a value to send data back to the calling edge function. Server functions are synchronous and share the timeout with the parent edge function."]})})]}),(0,d.jsxs)("div",{className:"bg-muted/30 border rounded-lg p-4 space-y-2",children:[(0,d.jsx)("div",{className:"text-sm font-medium",children:"Example: Using in Edge Function"}),(0,d.jsx)("pre",{className:"text-xs font-mono bg-background p-2 rounded overflow-x-auto",children:`// Edge function code +const auth = server.${i||"validateAuth"}(request.headers['x-api-key']); +if (!auth.valid) { + Response.error(auth.error, 401); + return; +} + +// User is authenticated +const products = db.query('SELECT * FROM products WHERE user_id = ?', [auth.user.id]); +Response.json({ products });`})]}),y&&(0,d.jsxs)("div",{className:"flex items-center gap-2 text-sm text-destructive bg-destructive/10 p-3 rounded-lg",children:[(0,d.jsx)(g.A,{className:"h-4 w-4"}),y]})]}),(0,d.jsxs)("div",{className:"flex items-center justify-end gap-2 pt-4 border-t",children:[(0,d.jsx)(o.$,{variant:"outline",onClick:c,disabled:p,children:"Cancel"}),(0,d.jsx)(o.$,{onClick:D,disabled:p,children:p?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(f.A,{className:"h-4 w-4 mr-2 animate-spin"}),"Saving..."]}):a?"Save Changes":"Create Function"})]})]})}):null}var y=c(15514);function z({deploymentId:a,dataProvider:b}){let[c,q]=(0,e.useState)([]),[r,s]=(0,e.useState)(!0),[t,u]=(0,e.useState)(null),[v,w]=(0,e.useState)(null),[z,A]=(0,e.useState)(!1),B=async()=>{try{if(s(!0),u(null),b)q(await b.list());else if(a){let b=await fetch(`/api/admin/deployments/${a}/server-functions`);if(!b.ok){let a=await b.json();throw Error(a.error||"Failed to load server functions")}let c=await b.json();q(c.functions)}}catch(a){u(a instanceof Error?a.message:"Failed to load server functions")}finally{s(!1)}},C=async c=>{try{if(b)await b.toggle(c.id,!c.enabled);else if(!a)return;else if(!(await fetch(`/api/admin/deployments/${a}/server-functions/${c.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({enabled:!c.enabled})})).ok)throw Error("Failed to update server function");await B()}catch(a){console.error("Failed to toggle server function:",a)}},D=async c=>{if(confirm(`Delete server function "${c.name}"? This cannot be undone.`))try{if(b)await b.remove(c.id);else if(!a)return;else if(!(await fetch(`/api/admin/deployments/${a}/server-functions/${c.id}`,{method:"DELETE"})).ok)throw Error("Failed to delete server function");await B()}catch(a){console.error("Failed to delete server function:",a)}},E=async c=>{try{if(b)await b.save(v?.id||null,c);else if(a)if(v){let b=await fetch(`/api/admin/deployments/${a}/server-functions/${v.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(c)});if(!b.ok){let a=await b.json();throw Error(a.error||"Failed to update server function")}}else{let b=await fetch(`/api/admin/deployments/${a}/server-functions`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(c)});if(!b.ok){let a=await b.json();throw Error(a.error||"Failed to create server function")}}else throw Error("No deployment ID available");w(null),A(!1),await B()}catch(a){throw a}};return r?(0,d.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,d.jsx)(f.A,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):t?(0,d.jsxs)("div",{className:"flex flex-col items-center justify-center h-full gap-4",children:[(0,d.jsx)(g.A,{className:"h-8 w-8 text-destructive"}),(0,d.jsx)("p",{className:"text-sm text-muted-foreground",children:t}),(0,d.jsx)(o.$,{variant:"outline",onClick:B,children:"Retry"})]}):(0,d.jsxs)("div",{className:"h-full flex flex-col",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,d.jsx)("h3",{className:"text-sm font-medium",children:"Server Functions (Helpers)"}),(0,d.jsxs)(o.$,{size:"sm",onClick:()=>A(!0),children:[(0,d.jsx)(h.A,{className:"h-4 w-4 mr-1"}),"New Helper"]})]}),(0,d.jsx)("div",{className:"flex-1 overflow-auto",children:0===c.length?(0,d.jsxs)("div",{className:"flex flex-col items-center justify-center h-full p-8 text-center border rounded-lg",children:[(0,d.jsx)(i.A,{className:"h-8 w-8 text-muted-foreground mb-2"}),(0,d.jsx)("p",{className:"text-sm text-muted-foreground",children:"No server functions yet"}),(0,d.jsx)("p",{className:"text-xs text-muted-foreground mt-1 mb-4",children:"Create reusable helpers for your edge functions"}),(0,d.jsxs)(o.$,{size:"sm",onClick:()=>A(!0),children:[(0,d.jsx)(h.A,{className:"h-4 w-4 mr-1"}),"Create Helper"]})]}):(0,d.jsx)("div",{className:"grid gap-3",children:c.map(a=>(0,d.jsx)("div",{className:(0,y.cn)("border rounded-lg p-4 transition-colors",!a.enabled&&"opacity-60 bg-muted/30"),children:(0,d.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,d.jsxs)("div",{className:"flex-1 min-w-0 overflow-hidden",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,d.jsx)(i.A,{className:"h-4 w-4 text-orange-500 shrink-0"}),(0,d.jsx)("span",{className:"font-mono font-medium truncate",children:a.name}),!a.enabled&&(0,d.jsx)("span",{className:"text-xs bg-muted px-1.5 py-0.5 rounded shrink-0",children:"disabled"})]}),a.description&&(0,d.jsx)("p",{className:"text-sm text-muted-foreground mt-1 truncate",children:a.description}),(0,d.jsx)("div",{className:"flex items-center gap-4 mt-2 text-xs text-muted-foreground",children:(0,d.jsxs)("span",{className:"font-mono truncate",children:["server.",a.name,"(args)"]})})]}),(0,d.jsxs)(p.rI,{children:[(0,d.jsx)(p.ty,{asChild:!0,children:(0,d.jsx)(o.$,{variant:"ghost",size:"sm",children:(0,d.jsx)(j.A,{className:"h-4 w-4"})})}),(0,d.jsxs)(p.SQ,{align:"end",children:[(0,d.jsxs)(p._2,{onClick:()=>w(a),children:[(0,d.jsx)(k.A,{className:"h-4 w-4 mr-2"}),"Edit"]}),(0,d.jsx)(p._2,{onClick:()=>C(a),children:a.enabled?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(l.A,{className:"h-4 w-4 mr-2"}),"Disable"]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(m.A,{className:"h-4 w-4 mr-2"}),"Enable"]})}),(0,d.jsxs)(p._2,{onClick:()=>D(a),className:"text-destructive",children:[(0,d.jsx)(n.A,{className:"h-4 w-4 mr-2"}),"Delete"]})]})]})]})},a.id))})}),(z||v)&&(0,d.jsx)(x,{function:v,isOpen:!0,onClose:()=>{A(!1),w(null)},onSave:E})]})}},62949:(a,b,c)=>{c.d(b,{Ke:()=>h,Nt:()=>f,R6:()=>g});var d=c(21124),e=c(59147);function f({...a}){return(0,d.jsx)(e.bL,{"data-slot":"collapsible",...a})}function g({...a}){return(0,d.jsx)(e.R6,{"data-slot":"collapsible-trigger",...a})}function h({...a}){return(0,d.jsx)(e.Ke,{"data-slot":"collapsible-content",...a})}},66641:(a,b,c)=>{c.d(b,{j:()=>x});var d=c(21124),e=c(38301),f=c(14263),g=c(18310),h=c(8849),i=c(16945),j=c(43718),k=c(34941),l=c(78460),m=c(40284),n=c(22544),o=c(19217),p=c(9188),q=c(33305),r=c(7629),s=c(53199),t=c(72380),u=c(3368),v=c(71117);function w({secret:a,isOpen:b,onClose:c,onSave:h}){let[i,j]=(0,e.useState)(a?.name||""),[k,l]=(0,e.useState)(""),[m,n]=(0,e.useState)(a?.description||""),[p,w]=(0,e.useState)(!1),[x,y]=(0,e.useState)(!1),[z,A]=(0,e.useState)(null),B=async()=>{if(A(null),!i.trim())return void A("Secret name is required");if(!/^[A-Z][A-Z0-9_]*$/.test(i))return void A("Name must be SCREAMING_SNAKE_CASE (uppercase letters, numbers, underscores; must start with letter)");if(!a&&!k.trim())return void A("Secret value is required");y(!0);try{await h({name:i.trim(),value:k.trim()||void 0,description:m.trim()||void 0})}catch(a){A(a instanceof Error?a.message:"Failed to save secret")}finally{y(!1)}};return(0,d.jsx)(q.lG,{open:b,onOpenChange:c,children:(0,d.jsxs)(q.Cf,{className:"sm:max-w-lg",children:[(0,d.jsxs)(q.c7,{children:[(0,d.jsx)(q.L3,{children:a?"Edit Secret":"Create Secret"}),(0,d.jsxs)(q.rr,{children:["Store sensitive values like API keys securely. Edge functions can access them via secrets.get('",i||"NAME","')."]})]}),(0,d.jsxs)("div",{className:"space-y-4",children:[(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)(s.J,{htmlFor:"name",children:"Secret Name"}),(0,d.jsx)(r.p,{id:"name",value:i,onChange:a=>{j(a.target.value.toUpperCase().replace(/[^A-Z0-9_]/g,"").replace(/^[0-9]+/,""))},placeholder:"STRIPE_API_KEY",disabled:!!a,className:"font-mono"}),(0,d.jsx)("p",{className:"text-xs text-muted-foreground",children:"Use SCREAMING_SNAKE_CASE (e.g., API_KEY, SENDGRID_TOKEN)"})]}),(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)(s.J,{htmlFor:"value",children:a?"New Value (leave empty to keep current)":"Secret Value"}),(0,d.jsxs)("div",{className:"relative",children:[(0,d.jsx)(r.p,{id:"value",type:p?"text":"password",value:k,onChange:a=>l(a.target.value),placeholder:a?"Enter new value to change...":"sk_live_...",className:"pr-10 font-mono"}),(0,d.jsx)(o.$,{type:"button",variant:"ghost",size:"sm",className:"absolute right-1 top-1/2 -translate-y-1/2 h-7 w-7 p-0",onClick:()=>w(!p),children:p?(0,d.jsx)(t.A,{className:"h-4 w-4"}):(0,d.jsx)(u.A,{className:"h-4 w-4"})})]}),(0,d.jsx)("p",{className:"text-xs text-muted-foreground",children:a?"Leave empty to keep the existing value":"This value will be encrypted and never displayed again"})]}),(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)(s.J,{htmlFor:"description",children:"Description (optional)"}),(0,d.jsx)(r.p,{id:"description",value:m,onChange:a=>n(a.target.value),placeholder:"Production Stripe API key"})]}),(0,d.jsxs)("div",{className:"bg-muted/30 border rounded-lg p-4 space-y-2",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 text-sm font-medium",children:[(0,d.jsx)(v.A,{className:"h-4 w-4"}),"Usage in Edge Functions"]}),(0,d.jsx)("pre",{className:"text-xs font-mono bg-background p-2 rounded overflow-x-auto",children:`// Get secret value +const apiKey = secrets.get('${i||"STRIPE_API_KEY"}'); + +// Check if secret exists +if (secrets.has('${i||"STRIPE_API_KEY"}')) { + // Use the secret +} + +// List all available secrets +const allSecrets = secrets.list(); // ['${i||"STRIPE_API_KEY"}', ...]`})]}),z&&(0,d.jsxs)("div",{className:"flex items-center gap-2 text-sm text-destructive bg-destructive/10 p-3 rounded-lg",children:[(0,d.jsx)(g.A,{className:"h-4 w-4"}),z]})]}),(0,d.jsxs)("div",{className:"flex items-center justify-end gap-2 pt-4 border-t",children:[(0,d.jsx)(o.$,{variant:"outline",onClick:c,disabled:x,children:"Cancel"}),(0,d.jsx)(o.$,{onClick:B,disabled:x,children:x?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(f.A,{className:"h-4 w-4 mr-2 animate-spin"}),"Saving..."]}):a?"Save Changes":"Create Secret"})]})]})})}function x({deploymentId:a,dataProvider:b}){let[c,q]=(0,e.useState)([]),[r,s]=(0,e.useState)(!0),[t,u]=(0,e.useState)(null),[v,x]=(0,e.useState)(null),[y,z]=(0,e.useState)(!1),[A,B]=(0,e.useState)(!0),C=async()=>{try{if(s(!0),u(null),b){let a=await b.list();q(a.secrets),B(a.encryptionConfigured)}else if(a){let b=await fetch(`/api/admin/deployments/${a}/secrets`);if(!b.ok){let a=await b.json();throw Error(a.error||"Failed to load secrets")}let c=await b.json();q(c.secrets),B(c.encryptionConfigured)}}catch(a){u(a instanceof Error?a.message:"Failed to load secrets")}finally{s(!1)}},D=async c=>{if(confirm(`Delete secret "${c.name}"? This cannot be undone.`))try{if(b)await b.remove(c.id);else if(!a)return;else if(!(await fetch(`/api/admin/deployments/${a}/secrets/${c.id}`,{method:"DELETE"})).ok)throw Error("Failed to delete secret");await C()}catch(a){console.error("Failed to delete secret:",a)}},E=async c=>{try{if(b)await b.save(v?.id||null,c);else if(a)if(v){let b=await fetch(`/api/admin/deployments/${a}/secrets/${v.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(c)});if(!b.ok){let a=await b.json();throw Error(a.error||"Failed to update secret")}}else{let b=await fetch(`/api/admin/deployments/${a}/secrets`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(c)});if(!b.ok){let a=await b.json();throw Error(a.error||"Failed to create secret")}}else throw Error("No deployment ID available");x(null),z(!1),await C()}catch(a){throw a}};return r?(0,d.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,d.jsx)(f.A,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):t?(0,d.jsxs)("div",{className:"flex flex-col items-center justify-center h-full gap-4",children:[(0,d.jsx)(g.A,{className:"h-8 w-8 text-destructive"}),(0,d.jsx)("p",{className:"text-sm text-muted-foreground",children:t}),(0,d.jsx)(o.$,{variant:"outline",onClick:C,children:"Retry"})]}):(0,d.jsxs)("div",{className:"h-full flex flex-col",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,d.jsx)("h3",{className:"text-sm font-medium",children:"Secrets"}),(0,d.jsxs)(o.$,{size:"sm",onClick:()=>z(!0),disabled:!A,children:[(0,d.jsx)(h.A,{className:"h-4 w-4 mr-1"}),"New Secret"]})]}),!A&&(0,d.jsxs)("div",{className:"flex items-center gap-2 text-sm bg-yellow-500/10 border border-yellow-500/30 text-yellow-600 dark:text-yellow-400 p-3 rounded-lg mb-4",children:[(0,d.jsx)(i.A,{className:"h-4 w-4 shrink-0"}),(0,d.jsxs)("div",{children:[(0,d.jsx)("p",{className:"font-medium",children:"Encryption not configured"}),(0,d.jsx)("p",{className:"text-xs opacity-80",children:"Set the SECRETS_ENCRYPTION_KEY environment variable to enable secrets."})]})]}),(0,d.jsx)("div",{className:"flex-1 overflow-auto",children:0===c.length?(0,d.jsxs)("div",{className:"flex flex-col items-center justify-center h-full p-8 text-center border rounded-lg",children:[(0,d.jsx)(j.A,{className:"h-8 w-8 text-muted-foreground mb-2"}),(0,d.jsx)("p",{className:"text-sm text-muted-foreground",children:"No secrets yet"}),(0,d.jsx)("p",{className:"text-xs text-muted-foreground mt-1 mb-4",children:"Store API keys and tokens securely for your edge functions"}),(0,d.jsxs)(o.$,{size:"sm",onClick:()=>z(!0),disabled:!A,children:[(0,d.jsx)(h.A,{className:"h-4 w-4 mr-1"}),"Create Secret"]})]}):(0,d.jsx)("div",{className:"grid gap-3",children:c.map(a=>(0,d.jsx)("div",{className:"border rounded-lg p-4 transition-colors",children:(0,d.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,d.jsxs)("div",{className:"flex-1 min-w-0 overflow-hidden",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,d.jsx)(j.A,{className:"h-4 w-4 text-yellow-500 shrink-0"}),(0,d.jsx)("span",{className:"font-mono font-medium truncate",children:a.name}),!a.hasValue&&(0,d.jsx)(n.E,{variant:"outline",className:"text-amber-600 border-amber-500/50 bg-amber-500/10 text-xs shrink-0",children:"Value not set"})]}),a.description&&(0,d.jsx)("p",{className:"text-sm text-muted-foreground mt-1 truncate",children:a.description}),(0,d.jsxs)("div",{className:"flex items-center gap-4 mt-2 text-xs text-muted-foreground",children:[(0,d.jsxs)("span",{className:"shrink-0",children:["Updated ",new Date(a.updatedAt).toLocaleDateString(void 0,{month:"short",day:"numeric",year:"numeric"})]}),(0,d.jsxs)("span",{className:"font-mono truncate",children:["secrets.get('",a.name,"')"]})]})]}),(0,d.jsxs)(p.rI,{children:[(0,d.jsx)(p.ty,{asChild:!0,children:(0,d.jsx)(o.$,{variant:"ghost",size:"sm",children:(0,d.jsx)(k.A,{className:"h-4 w-4"})})}),(0,d.jsxs)(p.SQ,{align:"end",children:[(0,d.jsxs)(p._2,{onClick:()=>x(a),children:[(0,d.jsx)(l.A,{className:"h-4 w-4 mr-2"}),"Edit"]}),(0,d.jsxs)(p._2,{onClick:()=>D(a),className:"text-destructive",children:[(0,d.jsx)(m.A,{className:"h-4 w-4 mr-2"}),"Delete"]})]})]})]})},a.id))})}),(y||v)&&(0,d.jsx)(w,{secret:v,isOpen:!0,onClose:()=>{z(!1),x(null)},onSave:E})]})}},68877:(a,b,c)=>{c.d(b,{Xi:()=>j,av:()=>k,j7:()=>i,tU:()=>h});var d=c(21124),e=c(38301),f=c(89989),g=c(15514);let h=f.bL,i=e.forwardRef(({className:a,...b},c)=>(0,d.jsx)(f.B8,{ref:c,className:(0,g.cn)("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",a),...b}));i.displayName=f.B8.displayName;let j=e.forwardRef(({className:a,...b},c)=>(0,d.jsx)(f.l9,{ref:c,className:(0,g.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",a),...b}));j.displayName=f.l9.displayName;let k=e.forwardRef(({className:a,...b},c)=>(0,d.jsx)(f.UC,{ref:c,className:(0,g.cn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",a),...b}));k.displayName=f.UC.displayName},69374:(a,b,c)=>{c.d(b,{DEMO_PROJECT_TEMPLATE:()=>d.vY,I1:()=>d.I1,Nr:()=>d.Nr,ZQ:()=>d.ZQ,createProjectFromTemplate:()=>d.c3,uD:()=>d.uD});var d=c(90528)},70740:(a,b,c)=>{async function d(a){}async function e(){return{serverProjectCount:0,serverDeploymentCount:0,serverLastUpdated:null,localProjectCount:0,isUninitialized:!1,needsSync:!1,loading:!1,error:"Server mode not enabled"}}c.d(b,{autoSyncProject:()=>d,jP:()=>e}),c(11482),c(15514),c(42830)},71652:(a,b,c)=>{c.d(b,{BV:()=>m,gA:()=>l});var d=c(21124),e=c(38301),f=c(19217),g=c(14263),h=c(30887),i=c(42830),j=c(78266),k=c(24886);async function l(a,b){}function m({projectId:a,enabled:b,onSchemaChange:c}){let[l,m]=(0,e.useState)("tables"),[n,o]=(0,e.useState)(""),[p,q]=(0,e.useState)(!1),[r,s]=(0,e.useState)(0);(0,e.useRef)(null);let t=`/api/projects/${a}/database/schema`,u=`/api/projects/${a}/database/query`,v=(0,e.useCallback)(async()=>{if(n.trim()){q(!0);try{let a=await fetch(u,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sql:n.trim()})}),b=await a.json();if(!a.ok)return void i.oR.error(b.error||"Failed to apply DDL");i.oR.success("DDL applied successfully");let d="",e=d?`${d} + +${n.trim()}`:n.trim();c?.(e),s(a=>a+1),o("")}catch(a){i.oR.error(a instanceof Error?a.message:"Failed to apply DDL")}finally{q(!1)}}},[n,u,a,c]);return b?(0,d.jsxs)("div",{className:"h-full flex flex-col",children:[(0,d.jsx)("div",{className:"flex items-center gap-1 mb-3 border-b pb-2",children:["tables","sql","ddl"].map(a=>(0,d.jsx)("button",{onClick:()=>m(a),className:`px-3 py-1.5 text-xs font-medium rounded-md transition-colors ${l===a?"bg-primary text-primary-foreground":"text-muted-foreground hover:text-foreground hover:bg-muted"}`,children:"tables"===a?"Tables":"sql"===a?"SQL":"DDL"},a))}),(0,d.jsxs)("div",{className:"flex-1 min-h-0",children:["tables"===l&&(0,d.jsx)(j.g,{schemaEndpoint:t,showSystemTablesToggle:!1},r),"sql"===l&&(0,d.jsx)(k.m,{queryEndpoint:u}),"ddl"===l&&(0,d.jsxs)("div",{className:"h-full flex flex-col gap-3",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("h4",{className:"text-sm font-medium",children:"Apply DDL"}),(0,d.jsx)("p",{className:"text-xs text-muted-foreground mt-0.5",children:"CREATE TABLE, ALTER TABLE, and other DDL statements"})]}),(0,d.jsxs)(f.$,{size:"sm",className:"h-7 px-2 text-xs",onClick:v,disabled:p||!n.trim(),children:[p?(0,d.jsx)(g.A,{className:"h-3 w-3 mr-1 animate-spin"}):(0,d.jsx)(h.A,{className:"h-3 w-3 mr-1"}),"Apply"]})]}),(0,d.jsx)("textarea",{"data-schema-editor":!0,className:"flex-1 w-full rounded-md border border-input bg-background px-3 py-2 text-sm font-mono resize-none focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring placeholder:text-muted-foreground",placeholder:`-- Create or modify tables +CREATE TABLE IF NOT EXISTS example ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + name TEXT NOT NULL, + created_at DATETIME DEFAULT CURRENT_TIMESTAMP +);`,value:n,onChange:a=>o(a.target.value),spellCheck:!1})]})]})]}):null}},78266:(a,b,c)=>{c.d(b,{g:()=>p});var d=c(21124),e=c(38301),f=c(14263),g=c(18310),h=c(72380),i=c(3368),j=c(80414),k=c(85351),l=c(59405),m=c(96503),n=c(15514),o=c(19217);function p({deploymentId:a,schemaEndpoint:b,showSystemTablesToggle:c=!0}){let[p,q]=(0,e.useState)([]),[r,s]=(0,e.useState)(!0),[t,u]=(0,e.useState)(null),[v,w]=(0,e.useState)(new Set),[x,y]=(0,e.useState)(!1),z=b||`/api/admin/deployments/${a}/database/schema`,A=async()=>{try{s(!0),u(null);let a=await fetch(z);if(!a.ok){let b=await a.json();throw Error(b.error||"Failed to load schema")}let b=await a.json();q(b.tables)}catch(a){u(a instanceof Error?a.message:"Failed to load schema")}finally{s(!1)}},B=x?p:p.filter(a=>!a.isSystemTable);return r?(0,d.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,d.jsx)(f.A,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):t?(0,d.jsxs)("div",{className:"flex flex-col items-center justify-center h-full gap-4",children:[(0,d.jsx)(g.A,{className:"h-8 w-8 text-destructive"}),(0,d.jsx)("p",{className:"text-sm text-muted-foreground",children:t}),(0,d.jsx)(o.$,{variant:"outline",onClick:A,children:"Retry"})]}):(0,d.jsxs)("div",{className:"h-full flex flex-col",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,d.jsx)("h3",{className:"text-sm font-medium",children:"Database Tables"}),c&&(0,d.jsx)(o.$,{variant:"ghost",size:"sm",onClick:()=>y(!x),className:"text-xs",children:x?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(h.A,{className:"h-3.5 w-3.5 mr-1"}),"Hide System Tables"]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(i.A,{className:"h-3.5 w-3.5 mr-1"}),"Show System Tables"]})})]}),(0,d.jsx)("div",{className:"flex-1 overflow-auto border rounded-lg",children:0===B.length?(0,d.jsxs)("div",{className:"flex flex-col items-center justify-center h-full p-8 text-center",children:[(0,d.jsx)(j.A,{className:"h-8 w-8 text-muted-foreground mb-2"}),(0,d.jsx)("p",{className:"text-sm text-muted-foreground",children:"No user tables found"}),(0,d.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:"Create tables using the SQL editor"})]}):(0,d.jsx)("div",{className:"divide-y",children:B.map(a=>(0,d.jsxs)("div",{className:(0,n.cn)("transition-colors",a.isSystemTable&&"bg-muted/30"),children:[(0,d.jsxs)("button",{onClick:()=>{var b;return b=a.name,void w(a=>{let c=new Set(a);return c.has(b)?c.delete(b):c.add(b),c})},className:"w-full flex items-center gap-2 p-3 text-left hover:bg-muted/50 transition-colors",children:[v.has(a.name)?(0,d.jsx)(k.A,{className:"h-4 w-4 text-muted-foreground"}):(0,d.jsx)(l.A,{className:"h-4 w-4 text-muted-foreground"}),(0,d.jsx)(j.A,{className:"h-4 w-4 text-blue-500"}),(0,d.jsx)("span",{className:"flex-1 font-mono text-sm",children:a.name}),(0,d.jsxs)("span",{className:"text-xs text-muted-foreground",children:[a.rowCount," row",1!==a.rowCount?"s":""]}),a.isSystemTable&&(0,d.jsx)("span",{className:"text-xs bg-muted px-1.5 py-0.5 rounded",children:"system"})]}),v.has(a.name)&&(0,d.jsx)("div",{className:"bg-muted/20 border-t",children:(0,d.jsxs)("table",{className:"w-full text-sm",children:[(0,d.jsx)("thead",{children:(0,d.jsxs)("tr",{className:"border-b bg-muted/30",children:[(0,d.jsx)("th",{className:"text-left p-2 font-medium",children:"Column"}),(0,d.jsx)("th",{className:"text-left p-2 font-medium",children:"Type"}),(0,d.jsx)("th",{className:"text-left p-2 font-medium",children:"Nullable"}),(0,d.jsx)("th",{className:"text-left p-2 font-medium",children:"Default"})]})}),(0,d.jsx)("tbody",{children:a.columns.map(a=>(0,d.jsxs)("tr",{className:"border-b last:border-0",children:[(0,d.jsxs)("td",{className:"p-2 font-mono flex items-center gap-1.5",children:[a.primaryKey&&(0,d.jsx)(m.A,{className:"h-3 w-3 text-yellow-500"}),a.name]}),(0,d.jsx)("td",{className:"p-2 font-mono text-muted-foreground",children:a.type||"TEXT"}),(0,d.jsx)("td",{className:"p-2 text-muted-foreground",children:a.nullable?"Yes":"No"}),(0,d.jsx)("td",{className:"p-2 font-mono text-muted-foreground text-xs",children:a.defaultValue||"-"})]},a.name))})]})})]},a.name))})})]})}},79588:(a,b,c)=>{c.d(b,{P:()=>D});var d=c(21124),e=c(38301),f=c(14263),g=c(18310),h=c(8849),i=c(33464),j=c(59268),k=c(10708),l=c(34941),m=c(78460),n=c(90771),o=c(52426),p=c(78583),q=c(40284),r=c(19217),s=c(9188),t=c(21564),u=c(33305),v=c(7629),w=c(53199),x=c(28241),y=c(71117),z=c(45523);let A=`// Access the request object +// request.method - HTTP method +// request.body - Parsed request body +// request.query - Query string parameters +// request.headers - Request headers + +// Use the database +// db.query(sql, params) - Execute SELECT query +// db.run(sql, params) - Execute INSERT/UPDATE/DELETE +// db.all(sql, params) - Alias for query + +// Return a response +// Response.json(data, status) - Return JSON +// Response.text(text, status) - Return text +// Response.error(message, status) - Return error + +// Example: List items +const items = db.all('SELECT * FROM items LIMIT 10'); +Response.json({ items }); +`;function B({deploymentId:a,function:b,isOpen:c,onClose:h,onSave:i}){let[j,k]=(0,e.useState)(b?.name||""),[l,m]=(0,e.useState)(b?.description||""),[n,o]=(0,e.useState)(b?.method||"ANY"),[p,q]=(0,e.useState)(b?.code||A),[s,B]=(0,e.useState)(b?.timeoutMs||5e3),[C,D]=(0,e.useState)(!1),[E,F]=(0,e.useState)(null),{resolvedTheme:G}=(0,z.D)(),[H,I]=(0,e.useState)(!1),J=async()=>{if(F(null),!j.trim())return void F("Function name is required");if(!/^[a-z0-9][a-z0-9-]*[a-z0-9]$|^[a-z0-9]$/.test(j))return void F("Name must be lowercase letters, numbers, and hyphens only");if(!p.trim())return void F("Function code is required");D(!0);try{await i({name:j.trim(),description:l.trim()||void 0,method:n,code:p,timeoutMs:s,enabled:b?.enabled??!0})}catch(a){F(a instanceof Error?a.message:"Failed to save function")}finally{D(!1)}};return H?(0,d.jsx)(u.lG,{open:c,onOpenChange:h,children:(0,d.jsxs)(u.Cf,{className:"sm:max-w-3xl h-[85vh] flex flex-col",children:[(0,d.jsxs)(u.c7,{children:[(0,d.jsx)(u.L3,{children:b?"Edit Function":"Create Function"}),(0,d.jsx)(u.rr,{children:"Define an HTTP endpoint that can access your deployment database."})]}),(0,d.jsxs)("div",{className:"flex-1 overflow-auto space-y-4",children:[(0,d.jsxs)("div",{className:"grid grid-cols-3 gap-4",children:[(0,d.jsxs)("div",{className:"col-span-2 space-y-2",children:[(0,d.jsx)(w.J,{htmlFor:"name",children:"Function Name"}),(0,d.jsx)(v.p,{id:"name",value:j,onChange:a=>k(a.target.value.toLowerCase()),placeholder:"my-function",disabled:!!b}),a&&(0,d.jsxs)("p",{className:"text-xs text-muted-foreground",children:["URL: /api/deployments/",a,"/functions/",(0,d.jsx)("span",{className:"font-mono",children:j||"name"})]})]}),(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)(w.J,{htmlFor:"method",children:"HTTP Method"}),(0,d.jsxs)(x.l6,{value:n,onValueChange:a=>o(a),children:[(0,d.jsx)(x.bq,{children:(0,d.jsx)(x.yv,{})}),(0,d.jsxs)(x.gC,{children:[(0,d.jsx)(x.eb,{value:"ANY",children:"ANY"}),(0,d.jsx)(x.eb,{value:"GET",children:"GET"}),(0,d.jsx)(x.eb,{value:"POST",children:"POST"}),(0,d.jsx)(x.eb,{value:"PUT",children:"PUT"}),(0,d.jsx)(x.eb,{value:"DELETE",children:"DELETE"})]})]})]})]}),(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)(w.J,{htmlFor:"description",children:"Description (optional)"}),(0,d.jsx)(v.p,{id:"description",value:l,onChange:a=>m(a.target.value),placeholder:"What does this function do?"})]}),(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)(w.J,{htmlFor:"timeout",children:"Timeout (seconds)"}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(v.p,{id:"timeout",type:"number",min:1,max:30,value:s/1e3,onChange:a=>B(1e3*Math.min(30,Math.max(1,parseInt(a.target.value)||5))),className:"w-24"}),(0,d.jsx)("span",{className:"text-sm text-muted-foreground",children:"1-30 seconds"})]})]}),(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)(w.J,{children:"Function Code"}),(0,d.jsx)("div",{className:"h-64 border rounded-lg overflow-hidden",children:(0,d.jsx)(t.Ay,{language:"javascript",theme:"dark"===G?"vs-dark":"light",value:p,onChange:a=>q(a||""),options:{minimap:{enabled:!1},fontSize:13,scrollBeyondLastLine:!1,automaticLayout:!0,tabSize:2}})})]}),(0,d.jsxs)("div",{className:"bg-muted/30 border rounded-lg p-4 space-y-2",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 text-sm font-medium",children:[(0,d.jsx)(y.A,{className:"h-4 w-4"}),"Available APIs"]}),(0,d.jsxs)("div",{className:"grid gap-2 text-xs font-mono",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("span",{className:"text-blue-500",children:"request"}),".method, .body, .query, .headers, .params, .path"]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("span",{className:"text-green-500",children:"db"}),".query(sql, params), .run(sql, params), .all(sql, params)"]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("span",{className:"text-purple-500",children:"Response"}),".json(data, status), .text(text, status), .error(msg, status)"]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("span",{className:"text-yellow-500",children:"fetch"}),"(url, options) - External HTTP requests"]})]})]}),E&&(0,d.jsxs)("div",{className:"flex items-center gap-2 text-sm text-destructive bg-destructive/10 p-3 rounded-lg",children:[(0,d.jsx)(g.A,{className:"h-4 w-4"}),E]})]}),(0,d.jsxs)("div",{className:"flex items-center justify-end gap-2 pt-4 border-t",children:[(0,d.jsx)(r.$,{variant:"outline",onClick:h,disabled:C,children:"Cancel"}),(0,d.jsx)(r.$,{onClick:J,disabled:C,children:C?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(f.A,{className:"h-4 w-4 mr-2 animate-spin"}),"Saving..."]}):b?"Save Changes":"Create Function"})]})]})}):null}var C=c(15514);function D({deploymentId:a,dataProvider:b,hideRuntimeFeatures:c}){let[t,u]=(0,e.useState)([]),[v,w]=(0,e.useState)(!0),[x,y]=(0,e.useState)(null),[z,A]=(0,e.useState)(null),[D,E]=(0,e.useState)(!1),[F,G]=(0,e.useState)(null),H=async()=>{try{if(w(!0),y(null),b)u(await b.list());else if(a){let b=await fetch(`/api/admin/deployments/${a}/functions`);if(!b.ok){let a=await b.json();throw Error(a.error||"Failed to load functions")}let c=await b.json();u(c.functions)}}catch(a){y(a instanceof Error?a.message:"Failed to load functions")}finally{w(!1)}},I=async c=>{try{if(b)await b.toggle(c.id,!c.enabled);else if(!a)return;else if(!(await fetch(`/api/admin/deployments/${a}/functions/${c.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({enabled:!c.enabled})})).ok)throw Error("Failed to update function");await H()}catch(a){console.error("Failed to toggle function:",a)}},J=async c=>{if(confirm(`Delete function "${c.name}"? This cannot be undone.`))try{if(b)await b.remove(c.id);else if(!a)return;else if(!(await fetch(`/api/admin/deployments/${a}/functions/${c.id}`,{method:"DELETE"})).ok)throw Error("Failed to delete function");await H()}catch(a){console.error("Failed to delete function:",a)}},K=async c=>{try{if(b)await b.save(z?.id||null,c);else if(a)if(z){let b=await fetch(`/api/admin/deployments/${a}/functions/${z.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(c)});if(!b.ok){let a=await b.json();throw Error(a.error||"Failed to update function")}}else{let b=await fetch(`/api/admin/deployments/${a}/functions`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(c)});if(!b.ok){let a=await b.json();throw Error(a.error||"Failed to create function")}}else throw Error("No deployment ID available");A(null),E(!1),await H()}catch(a){throw a}};return v?(0,d.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,d.jsx)(f.A,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):x?(0,d.jsxs)("div",{className:"flex flex-col items-center justify-center h-full gap-4",children:[(0,d.jsx)(g.A,{className:"h-8 w-8 text-destructive"}),(0,d.jsx)("p",{className:"text-sm text-muted-foreground",children:x}),(0,d.jsx)(r.$,{variant:"outline",onClick:H,children:"Retry"})]}):(0,d.jsxs)("div",{className:"h-full flex flex-col",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,d.jsx)("h3",{className:"text-sm font-medium",children:"Edge Functions"}),(0,d.jsxs)(r.$,{size:"sm",onClick:()=>E(!0),children:[(0,d.jsx)(h.A,{className:"h-4 w-4 mr-1"}),"New Function"]})]}),(0,d.jsx)("div",{className:"flex-1 overflow-auto",children:0===t.length?(0,d.jsxs)("div",{className:"flex flex-col items-center justify-center h-full p-8 text-center border rounded-lg",children:[(0,d.jsx)(i.A,{className:"h-8 w-8 text-muted-foreground mb-2"}),(0,d.jsx)("p",{className:"text-sm text-muted-foreground",children:"No edge functions yet"}),(0,d.jsx)("p",{className:"text-xs text-muted-foreground mt-1 mb-4",children:"Create your first API endpoint"}),(0,d.jsxs)(r.$,{size:"sm",onClick:()=>E(!0),children:[(0,d.jsx)(h.A,{className:"h-4 w-4 mr-1"}),"Create Function"]})]}):(0,d.jsx)("div",{className:"grid gap-3",children:t.map(b=>(0,d.jsx)("div",{className:(0,C.cn)("border rounded-lg p-4 transition-colors",!b.enabled&&"opacity-60 bg-muted/30"),children:(0,d.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,d.jsxs)("div",{className:"flex-1 min-w-0 overflow-hidden",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,d.jsx)(i.A,{className:"h-4 w-4 text-blue-500 shrink-0"}),(0,d.jsx)("span",{className:"font-mono font-medium truncate",children:b.name}),(0,d.jsx)("span",{className:(0,C.cn)("text-xs px-1.5 py-0.5 rounded shrink-0","ANY"===b.method?"bg-purple-500/20 text-purple-600":"GET"===b.method?"bg-green-500/20 text-green-600":"POST"===b.method?"bg-blue-500/20 text-blue-600":"PUT"===b.method?"bg-yellow-500/20 text-yellow-600":"bg-red-500/20 text-red-600"),children:b.method}),!b.enabled&&(0,d.jsx)("span",{className:"text-xs bg-muted px-1.5 py-0.5 rounded shrink-0",children:"disabled"})]}),b.description&&(0,d.jsx)("p",{className:"text-sm text-muted-foreground mt-1 truncate",children:b.description}),(0,d.jsxs)("div",{className:"flex items-center gap-4 mt-2 text-xs text-muted-foreground",children:[(0,d.jsxs)("span",{className:"shrink-0",children:["Timeout: ",b.timeoutMs/1e3,"s"]}),!c&&a&&(0,d.jsx)("button",{onClick:()=>(b=>{if(!a)return;let c=`${window.location.origin}/api/deployments/${a}/functions/${b.name}`;navigator.clipboard.writeText(c),G(b.id),setTimeout(()=>G(null),2e3)})(b),className:"flex items-center gap-1 hover:text-foreground transition-colors shrink-0",children:F===b.id?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(j.A,{className:"h-3 w-3 text-green-500"}),"Copied!"]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(k.A,{className:"h-3 w-3"}),"Copy URL"]})})]})]}),(0,d.jsxs)(s.rI,{children:[(0,d.jsx)(s.ty,{asChild:!0,children:(0,d.jsx)(r.$,{variant:"ghost",size:"sm",children:(0,d.jsx)(l.A,{className:"h-4 w-4"})})}),(0,d.jsxs)(s.SQ,{align:"end",children:[(0,d.jsxs)(s._2,{onClick:()=>A(b),children:[(0,d.jsx)(m.A,{className:"h-4 w-4 mr-2"}),"Edit"]}),(0,d.jsx)(s._2,{onClick:()=>I(b),children:b.enabled?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(n.A,{className:"h-4 w-4 mr-2"}),"Disable"]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(o.A,{className:"h-4 w-4 mr-2"}),"Enable"]})}),!c&&a&&(0,d.jsxs)(s._2,{onClick:()=>window.open(`/api/deployments/${a}/functions/${b.name}`,"_blank"),children:[(0,d.jsx)(p.A,{className:"h-4 w-4 mr-2"}),"Open in Browser"]}),(0,d.jsxs)(s._2,{onClick:()=>J(b),className:"text-destructive",children:[(0,d.jsx)(q.A,{className:"h-4 w-4 mr-2"}),"Delete"]})]})]})]})},b.id))})}),(D||z)&&(0,d.jsx)(B,{deploymentId:a||"",function:z,isOpen:!0,onClose:()=>{E(!1),A(null)},onSave:K})]})}},83330:(a,b,c)=>{c.d(b,{f:()=>bx});var d=c(21124),e=c(38301),f=c(15514),g=c(42378),h=c(11482),i=c(2117),j=c(39193),k=c.n(j);class l{async doInit(){if(this.adapter)return;let{vfs:a}=await Promise.resolve().then(c.bind(c,11482));await a.init(),this.adapter=a.getStorageAdapter()}async init(){return this.initPromise||(this.initPromise=this.doInit()),this.initPromise}getAdapter(){if(!this.adapter)throw Error("TemplateService not initialized. Call init() first.");return this.adapter}async exportProjectAsTemplate(a,b,c){try{let d;f.v.info("[TemplateService] Exporting project as template",{projectId:b,name:c.name}),this.validateMetadata(c);let e=await a.getAllFilesAndDirectories(b),g=e.filter(a=>"directory"!==a.type),h=e.filter(a=>"directory"===a.type).map(a=>a.path);try{let c=a.getStorageAdapter(),e=c.listEdgeFunctions?await c.listEdgeFunctions(b):[],f=c.listServerFunctions?await c.listServerFunctions(b):[],g=c.listSecrets?await c.listSecrets(b):[];(e.length>0||f.length>0||g.length>0)&&(d={edgeFunctions:e.length>0?e.map(a=>({name:a.name,method:a.method,code:a.code,description:a.description,enabled:a.enabled,timeoutMs:a.timeoutMs})):void 0,serverFunctions:f.length>0?f.map(a=>({name:a.name,code:a.code,description:a.description,enabled:a.enabled})):void 0,secrets:g.length>0?g.map(a=>({name:a.name,description:a.description})):void 0})}catch{f.v.warn("[TemplateService] Could not extract backend features from project stores")}let i={version:d?"2.0.0":"1.0.0",name:c.name,description:c.description,templateVersion:c.version,author:c.author,authorUrl:c.authorUrl,license:c.license,licenseLabel:c.licenseLabel,licenseDescription:c.licenseDescription,tags:c.tags||[],thumbnail:c.thumbnail,previewImages:c.previewImages||[],downloadUrl:c.downloadUrl,directories:h,files:g.map(a=>({path:a.path,content:a.content})),assets:[],backendFeatures:d},j=new(k());j.file("template.json",JSON.stringify(i,null,2));let l=await j.generateAsync({type:"blob",compression:"DEFLATE",compressionOptions:{level:6}});return f.v.info("[TemplateService] Template exported successfully",{name:c.name,size:l.size}),l}catch(a){throw f.v.error("[TemplateService] Failed to export template:",a),Error(`Failed to export template: ${a instanceof Error?a.message:"Unknown error"}`)}}async importTemplateFile(a){try{if(f.v.info("[TemplateService] Importing template file",{name:a.name,size:a.size}),!a.name.endsWith(".oswt"))throw Error("Invalid file type. Expected .oswt file.");if(a.size>0x1900000)throw Error(`File too large. Maximum size is ${Math.round(25)}MB.`);let b=new(k()),c=(await b.loadAsync(a)).file("template.json");if(!c)throw Error("Invalid template file format. Missing template.json.");let d=await c.async("string"),e=JSON.parse(d);this.validateTemplateStructure(e);let g={id:(0,i.A)(),name:e.name,description:e.description,version:e.templateVersion||"1.0.0",files:e.files||[],directories:e.directories||[],assets:e.assets,metadata:{author:e.author,authorUrl:e.authorUrl,license:e.license||"personal",licenseLabel:e.licenseLabel,licenseDescription:e.licenseDescription,tags:e.tags||[],thumbnail:e.thumbnail,previewImages:e.previewImages||[],downloadUrl:e.downloadUrl},importedAt:new Date,backendFeatures:e.backendFeatures||e.serverFeatures};return await this.init(),await this.getAdapter().saveCustomTemplate(g),f.v.info("[TemplateService] Template imported successfully",{id:g.id,name:g.name}),g}catch(a){throw f.v.error("[TemplateService] Failed to import template:",a),Error(`Failed to import template: ${a instanceof Error?a.message:"Unknown error"}`)}}async listCustomTemplates(){try{return await this.init(),(await this.getAdapter().getAllCustomTemplates()).sort((a,b)=>b.importedAt.getTime()-a.importedAt.getTime())}catch(a){throw f.v.error("[TemplateService] Failed to list templates:",a),Error("Failed to list templates")}}async deleteCustomTemplate(a){try{await this.init(),await this.getAdapter().deleteCustomTemplate(a),f.v.info("[TemplateService] Template deleted",{id:a})}catch(a){throw f.v.error("[TemplateService] Failed to delete template:",a),Error("Failed to delete template")}}async exportTemplateAsFile(a){try{f.v.info("[TemplateService] Re-exporting custom template",{id:a.id,name:a.name});let b=new(k());for(let c of(b.file("template.json",JSON.stringify(a,null,2)),a.files))c.content,b.file(c.path,c.content);return await b.generateAsync({type:"blob"})}catch(a){throw f.v.error("[TemplateService] Failed to re-export template:",a),Error(`Failed to export template: ${a instanceof Error?a.message:"Unknown error"}`)}}validateMetadata(a){if(!a.name||a.name.length<1||a.name.length>50)throw Error("Template name must be between 1 and 50 characters");if(!a.description||a.description.length<10||a.description.length>500)throw Error("Template description must be between 10 and 500 characters");if(!a.version||!/^\d+\.\d+\.\d+$/.test(a.version))throw Error("Template version must be in semantic version format (e.g., 1.0.0)");if(a.author&&a.author.length>50)throw Error("Author name must be 50 characters or less");if(a.authorUrl&&!this.isValidUrl(a.authorUrl))throw Error("Author URL must be a valid URL");if(!a.license)throw Error("License is required");if(a.tags&&a.tags.length>10)throw Error("Maximum 10 tags allowed");if(a.thumbnail&&a.thumbnail.length>512e3)throw Error(`Thumbnail too large. Maximum size is ${Math.round(500)}KB`);if(a.previewImages&&a.previewImages.length>5)throw Error("Maximum 5 preview images allowed");if(a.previewImages){for(let b of a.previewImages)if(b.length>1048576)throw Error(`Preview image too large. Maximum size is ${Math.round(1024)}KB per image`)}}validateTemplateStructure(a){if(!a.name||"string"!=typeof a.name)throw Error("Invalid template: missing or invalid name");if(!a.description||"string"!=typeof a.description)throw Error("Invalid template: missing or invalid description");if(!a.files||!Array.isArray(a.files))throw Error("Invalid template: missing or invalid files array");if(!a.directories||!Array.isArray(a.directories))throw Error("Invalid template: missing or invalid directories array");for(let b of a.files){if(!b.path||"string"!=typeof b.path)throw Error("Invalid template: file missing path");if(void 0===b.content)throw Error("Invalid template: file missing content")}let b=a.backendFeatures||a.serverFeatures;if(b){if("object"!=typeof b)throw Error("Invalid template: backendFeatures must be an object");if(b.edgeFunctions&&!Array.isArray(b.edgeFunctions))throw Error("Invalid template: backendFeatures.edgeFunctions must be an array");if(b.serverFunctions&&!Array.isArray(b.serverFunctions))throw Error("Invalid template: backendFeatures.serverFunctions must be an array");if(b.secrets&&!Array.isArray(b.secrets))throw Error("Invalid template: backendFeatures.secrets must be an array")}}isValidUrl(a){try{return new URL(a),!0}catch{return!1}}constructor(){this.adapter=null,this.initPromise=null}}let m=new l;var n=c(19217),o=c(7629),p=c(33847),q=c(88205),r=c(3663),s=c(46148),t=c(71613),u=c(47089),v=c(84122),w=c(15350),x=c(66041),y=c(32717),z=c(34941),A=c(3368),B=c(11082),C=c(10708),D=c(70045),E=c(49269),F=c(91351),G=c(40284),H=c(14263),I=c(36734),J=c(27928);async function K(a){let b=await createImageBitmap(a),c=b.width,d=b.height;if(c>640||d>360){let a=Math.min(640/c,360/d);c=Math.round(c*a),d=Math.round(d*a)}let e=document.createElement("canvas");e.width=c,e.height=d;let f=e.getContext("2d");if(!f)throw Error("Failed to get canvas context");f.drawImage(b,0,0,c,d),b.close();let g=e.toDataURL("image/jpeg",.7);return g.length>137e3&&(g=e.toDataURL("image/jpeg",.5)),g}function L({image:a,onCapture:b,onImageChange:c,size:g="md",className:h}){let i=(0,e.useRef)(null),[j,k]=(0,e.useState)(!1),l=async a=>{let b=a.target.files?.[0];if(b){try{let a=await K(b);c(a)}catch{}a.target.value=""}},m=async a=>{if(a.stopPropagation(),b){k(!0);try{let a=await b();a&&c(a)}finally{k(!1)}}},n=a=>{a.stopPropagation(),i.current?.click()},o="sm"===g,p=a=>a.stopPropagation();return a?(0,d.jsxs)("div",{className:(0,f.cn)("relative group",h),onClick:p,children:[o?(0,d.jsx)("div",{className:"w-16 h-12 rounded-md overflow-hidden bg-muted shrink-0",children:(0,d.jsx)("img",{src:a,alt:"Thumbnail",className:"w-full h-full object-cover"})}):(0,d.jsx)("div",{className:"w-full aspect-video bg-muted",children:(0,d.jsx)("img",{src:a,alt:"Thumbnail",className:"w-full h-full object-cover"})}),(0,d.jsx)("button",{type:"button",onClick:a=>{a.stopPropagation(),c(void 0)},className:(0,f.cn)("absolute flex items-center justify-center bg-background/80 text-foreground opacity-0 group-hover:opacity-100 transition-opacity border border-border shadow-sm",o?"h-5 w-5 rounded":"h-7 w-7 rounded-md",o?"top-0 right-0 -translate-y-1/3 translate-x-1/3":"top-1.5 right-1.5"),title:"Remove thumbnail",children:(0,d.jsx)(u.A,{className:o?"h-3 w-3":"h-3.5 w-3.5"})})]}):(0,d.jsxs)("div",{className:(0,f.cn)("relative",h),onClick:p,children:[o?(0,d.jsxs)("div",{className:"w-16 h-12 rounded-md bg-muted flex items-center justify-center gap-1 shrink-0",children:[b&&(0,d.jsx)("button",{type:"button",onClick:m,disabled:j,className:"h-6 w-6 rounded flex items-center justify-center text-muted-foreground hover:text-foreground hover:bg-muted-foreground/15 transition-colors",title:"Capture",children:j?(0,d.jsx)(H.A,{className:"h-3 w-3 animate-spin"}):(0,d.jsx)(I.A,{className:"h-3 w-3"})}),(0,d.jsx)("button",{type:"button",onClick:n,className:"h-6 w-6 rounded flex items-center justify-center text-muted-foreground hover:text-foreground hover:bg-muted-foreground/15 transition-colors",title:"Upload image",children:(0,d.jsx)(J.A,{className:"h-3 w-3"})})]}):(0,d.jsxs)("div",{className:"w-full aspect-video bg-muted flex items-center justify-center gap-3",children:[b&&(0,d.jsx)("button",{type:"button",onClick:m,disabled:j,className:"h-9 w-9 rounded-lg flex items-center justify-center border border-border/60 bg-background/50 text-muted-foreground hover:text-foreground hover:bg-background/80 transition-colors shadow-sm",title:"Capture screenshot",children:j?(0,d.jsx)(H.A,{className:"h-4 w-4 animate-spin"}):(0,d.jsx)(I.A,{className:"h-4 w-4"})}),(0,d.jsx)("button",{type:"button",onClick:n,className:"h-9 w-9 rounded-lg flex items-center justify-center border border-border/60 bg-background/50 text-muted-foreground hover:text-foreground hover:bg-background/80 transition-colors shadow-sm",title:"Upload image",children:(0,d.jsx)(J.A,{className:"h-4 w-4"})})]}),(0,d.jsx)("input",{ref:i,type:"file",accept:"image/*",className:"hidden",onChange:l})]})}var M=c(13531),N=c(50485);async function O(a){let b;await h.vfs.init();let c=new M.B(h.vfs,a);try{b=await c.compileProject()}catch{return c.cleanupBlobUrls(),null}let d=b.files.find(a=>"/index.html"===a.path);if(!d)return c.cleanupBlobUrls(),null;let e="string"==typeof d.content?d.content:new TextDecoder().decode(d.content);e=(e=(e=e.replace(/href="([^"]+\.css)"/g,(a,c)=>{if(c.startsWith("http")||c.startsWith("//"))return a;let d=c.startsWith("/")?c:"/"+c,e=b.blobUrls.get(d);return e?`href="${e}"`:a})).replace(/src="([^"]+\.js)"/g,(a,c)=>{if(c.startsWith("http")||c.startsWith("//"))return a;let d=c.startsWith("/")?c:"/"+c,e=b.blobUrls.get(d);return e?`src="${e}"`:a})).replace(/src="([^"]+\.(png|jpg|jpeg|gif|svg|webp))"/gi,(a,c)=>{let d=c.startsWith("/")?c:"/"+c,e=b.blobUrls.get(d);return e?`src="${e}"`:a});let f=document.createElement("iframe");f.style.position="fixed",f.style.top="-10000px",f.style.left="-10000px",f.style.width="1280px",f.style.height="720px",f.style.border="none",document.body.appendChild(f);try{return await new Promise(a=>{f.onload=()=>a(),f.srcdoc=e}),await new Promise(a=>setTimeout(a,1500)),await (0,N.captureIframeScreenshot)(f,1280,720,640,360,.8,!1)}finally{f.parentElement&&document.body.removeChild(f),c.cleanupBlobUrls()}}var P=c(51855),Q=c(9188),R=c(42830);function S({project:a,onSelect:b,onDelete:c,onExport:g,onExportZip:i,onDuplicate:j,onPreview:k,onUpdate:l,onExportAsTemplate:m,onBackend:H,viewMode:I="grid",forceMenuOpen:J=!1,highlightExport:K=!1}){let[M,N]=(0,e.useState)(!1),[S,T]=(0,e.useState)(a.name),[U,V]=(0,e.useState)(a.description||""),[W,X]=(0,e.useState)(null),[Y,Z]=(0,e.useState)(!0),[$,_]=(0,e.useState)(!1),aa=async()=>{if(!S.trim()){R.oR.error("Project name cannot be empty"),T(a.name),N(!1);return}if(S.length>50)return void R.oR.error("Project name must be 50 characters or less");if(U.length>200)return void R.oR.error("Description must be 200 characters or less");try{a.name=S.trim(),a.description=U.trim()||void 0,await h.vfs.updateProject(a),l(a),N(!1),R.oR.success("Project updated")}catch(b){f.v.error("Failed to update project:",b),R.oR.error("Failed to update project"),T(a.name),V(a.description||"")}},ab=()=>{T(a.name),V(a.description||""),N(!1)},ac=a=>{if(J)return void _(!0);_(a)},ad=()=>W?Object.entries(W.fileTypes).sort(([,a],[,b])=>b-a).slice(0,3):[],ae=a=>{let b=a.toLowerCase();return["html","htm"].includes(b)?(0,d.jsx)(q.A,{className:"h-3 w-3"}):["css","scss","sass"].includes(b)?(0,d.jsx)(r.A,{className:"h-3 w-3"}):["js","jsx","ts","tsx"].includes(b)?(0,d.jsx)(q.A,{className:"h-3 w-3"}):["png","jpg","jpeg","gif","svg"].includes(b)?(0,d.jsx)(s.A,{className:"h-3 w-3"}):(0,d.jsx)(r.A,{className:"h-3 w-3"})},af=a=>a&&0!==a?`$${a.toFixed(2)}`:null;return"list"===I?(0,d.jsx)("div",{className:`group border border-border rounded-lg p-4 hover:shadow-md transition-all cursor-pointer hover:border-primary/50 ${K?"ring-2 ring-primary/70 animate-ring-opacity":""}`,style:{background:"linear-gradient(var(--project-card-tint), var(--project-card-tint)), var(--card)"},onClick:()=>b(a),children:(0,d.jsxs)("div",{className:"flex items-start gap-4",children:[(0,d.jsx)(L,{image:a.previewImage,onCapture:()=>O(a.id),onImageChange:b=>l({...a,previewImage:b,previewUpdatedAt:b?new Date:void 0}),size:"sm"}),(0,d.jsxs)("div",{className:"flex-1 min-w-0 flex flex-col md:flex-row md:gap-6",children:[(0,d.jsx)("div",{className:"flex-1 min-w-0 space-y-1",children:M?(0,d.jsxs)("div",{className:"space-y-2",onClick:a=>a.stopPropagation(),children:[(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(o.p,{value:S,onChange:a=>T(a.target.value),onKeyDown:a=>{"Enter"!==a.key||a.shiftKey||(a.preventDefault(),aa()),"Escape"===a.key&&ab()},className:"h-7 text-sm font-semibold",autoFocus:!0,maxLength:50,placeholder:"Project name"}),(0,d.jsx)(n.$,{size:"icon",variant:"ghost",className:"h-6 w-6 shrink-0",onClick:aa,children:(0,d.jsx)(t.A,{className:"h-3 w-3"})}),(0,d.jsx)(n.$,{size:"icon",variant:"ghost",className:"h-6 w-6 shrink-0",onClick:ab,children:(0,d.jsx)(u.A,{className:"h-3 w-3"})})]}),(0,d.jsxs)("span",{className:"text-xs text-muted-foreground",children:[S.length,"/50"]})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)(p.T,{value:U,onChange:a=>V(a.target.value),onKeyDown:a=>{"Escape"===a.key&&ab()},placeholder:"Add a description...",className:"min-h-[60px] text-sm resize-none",maxLength:200}),(0,d.jsxs)("span",{className:"text-xs text-muted-foreground",children:[U.length,"/200"]})]})]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("h3",{className:"font-semibold truncate",children:a.name}),(0,d.jsx)(n.$,{size:"icon",variant:"ghost",className:"h-5 w-5 opacity-0 group-hover:opacity-100 transition-opacity",onClick:a=>{a.stopPropagation(),N(!0)},children:(0,d.jsx)(v.A,{className:"h-3 w-3"})})]}),a.description&&(0,d.jsx)("p",{className:"text-sm text-muted-foreground line-clamp-1",children:a.description}),(0,d.jsxs)("p",{className:"text-xs text-muted-foreground",children:["Updated ",(0,P.m)(a.updatedAt,{addSuffix:!0})]})]})}),(0,d.jsxs)("div",{className:"space-y-2 mt-2 md:mt-0",children:[W&&(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1 text-sm text-muted-foreground",children:[(0,d.jsxs)("span",{className:"flex items-center gap-1",children:[(0,d.jsx)(w.A,{className:"h-4 w-4"}),W.fileCount," ",1===W.fileCount?"file":"files"]}),(0,d.jsxs)("span",{className:"flex items-center gap-1",children:[(0,d.jsx)(x.A,{className:"h-4 w-4"}),W.formattedSize]}),a.costTracking?.totalCost&&a.costTracking.totalCost>0&&(0,d.jsxs)("span",{className:"flex items-center gap-1",children:[(0,d.jsx)(y.A,{className:"h-4 w-4"}),af(a.costTracking.totalCost)]})]}),W&&ad().length>0&&(0,d.jsx)("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1 text-xs",children:ad().map(([a,b])=>(0,d.jsxs)("div",{className:"flex items-center gap-1 text-muted-foreground",children:[ae(a),(0,d.jsxs)("span",{children:[a.toUpperCase()," (",b,")"]})]},a))})]})]}),(0,d.jsx)("div",{className:"flex items-center gap-2 ml-4",children:(0,d.jsxs)(Q.rI,{open:!!J||$,onOpenChange:ac,children:[(0,d.jsx)(Q.ty,{asChild:!0,onClick:a=>a.stopPropagation(),"data-tour-id":K?"project-actions-trigger":void 0,children:(0,d.jsx)(n.$,{size:"icon",variant:"ghost",className:"h-8 w-8",children:(0,d.jsx)(z.A,{className:"h-4 w-4"})})}),(0,d.jsxs)(Q.SQ,{align:"end",children:[(0,d.jsxs)(Q._2,{onClick:b=>{b.stopPropagation(),k(a)},children:[(0,d.jsx)(A.A,{className:"mr-2 h-4 w-4"}),"Preview"]}),H&&(0,d.jsxs)(Q._2,{onClick:b=>{b.stopPropagation(),H(a)},children:[(0,d.jsx)(B.A,{className:"mr-2 h-4 w-4"}),"Backend"]}),(0,d.jsxs)(Q._2,{onClick:b=>{b.stopPropagation(),j(a)},children:[(0,d.jsx)(C.A,{className:"mr-2 h-4 w-4"}),"Duplicate"]}),(0,d.jsx)(Q.mB,{}),(0,d.jsxs)(Q._2,{onClick:b=>{b.stopPropagation(),i(a)},children:[(0,d.jsx)(D.A,{className:"mr-2 h-4 w-4"}),"Export as ZIP"]}),(0,d.jsxs)(Q._2,{onClick:b=>{b.stopPropagation(),g(a)},"data-tour-id":K?"project-export-json":void 0,children:[(0,d.jsx)(E.A,{className:"mr-2 h-4 w-4"}),"Export as JSON"]}),m&&(0,d.jsxs)(Q._2,{onClick:b=>{b.stopPropagation(),m(a)},children:[(0,d.jsx)(F.A,{className:"mr-2 h-4 w-4"}),"Export as Template"]}),(0,d.jsx)(Q.mB,{}),(0,d.jsxs)(Q._2,{className:"text-destructive",onClick:b=>{b.stopPropagation(),c(a)},children:[(0,d.jsx)(G.A,{className:"mr-2 h-4 w-4"}),"Delete"]})]})]})})]})}):(0,d.jsxs)("div",{className:`border border-border rounded-lg overflow-hidden hover:shadow-lg transition-all cursor-pointer hover:border-primary/50 group ${K?"ring-2 ring-primary/70 animate-ring-opacity":""}`,style:{background:"linear-gradient(var(--project-card-tint), var(--project-card-tint)), var(--card)"},onClick:()=>b(a),"data-tour-id":"project-card",children:[(0,d.jsx)(L,{image:a.previewImage,onCapture:()=>O(a.id),onImageChange:b=>l({...a,previewImage:b,previewUpdatedAt:b?new Date:void 0}),size:"md"}),(0,d.jsxs)("div",{className:"p-4 space-y-3",children:[(0,d.jsxs)("div",{className:"flex justify-between items-start",children:[M?(0,d.jsxs)("div",{className:"flex-1",onClick:a=>a.stopPropagation(),children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(o.p,{value:S,onChange:a=>T(a.target.value),onKeyDown:a=>{"Enter"===a.key&&!1===a.shiftKey&&(a.preventDefault(),aa()),"Escape"===a.key&&ab()},className:"h-8 text-sm font-semibold",autoFocus:!0,maxLength:50}),(0,d.jsx)(n.$,{size:"icon",variant:"ghost",className:"h-5 w-5",onClick:aa,children:(0,d.jsx)(t.A,{className:"h-3 w-3"})}),(0,d.jsx)(n.$,{size:"icon",variant:"ghost",className:"h-5 w-5",onClick:ab,children:(0,d.jsx)(u.A,{className:"h-3 w-3"})})]}),(0,d.jsxs)("span",{className:"text-xs text-muted-foreground mt-1",children:[S.length,"/50"]})]}):(0,d.jsxs)("div",{className:"flex items-center gap-2 flex-1",children:[(0,d.jsx)("h3",{className:"font-semibold text-lg truncate flex-1",children:a.name}),(0,d.jsx)(n.$,{size:"icon",variant:"ghost",className:"h-5 w-5 opacity-0 group-hover:opacity-100 transition-opacity",onClick:a=>{a.stopPropagation(),N(!0)},children:(0,d.jsx)(v.A,{className:"h-3 w-3"})})]}),(0,d.jsxs)(Q.rI,{open:!!J||$,onOpenChange:ac,children:[(0,d.jsx)(Q.ty,{asChild:!0,onClick:a=>a.stopPropagation(),"data-tour-id":K?"project-actions-trigger":void 0,children:(0,d.jsx)(n.$,{size:"icon",variant:"ghost",className:"h-8 w-8",children:(0,d.jsx)(z.A,{className:"h-4 w-4"})})}),(0,d.jsxs)(Q.SQ,{align:"end",children:[(0,d.jsxs)(Q._2,{onClick:b=>{b.stopPropagation(),k(a)},children:[(0,d.jsx)(A.A,{className:"mr-2 h-4 w-4"}),"Preview"]}),H&&(0,d.jsxs)(Q._2,{onClick:b=>{b.stopPropagation(),H(a)},children:[(0,d.jsx)(B.A,{className:"mr-2 h-4 w-4"}),"Backend"]}),(0,d.jsxs)(Q._2,{onClick:b=>{b.stopPropagation(),j(a)},children:[(0,d.jsx)(C.A,{className:"mr-2 h-4 w-4"}),"Duplicate"]}),(0,d.jsx)(Q.mB,{}),(0,d.jsxs)(Q._2,{onClick:b=>{b.stopPropagation(),i(a)},children:[(0,d.jsx)(D.A,{className:"mr-2 h-4 w-4"}),"Export as ZIP"]}),(0,d.jsxs)(Q._2,{onClick:b=>{b.stopPropagation(),g(a)},"data-tour-id":K?"project-export-json":void 0,children:[(0,d.jsx)(E.A,{className:"mr-2 h-4 w-4"}),"Export as JSON"]}),m&&(0,d.jsxs)(Q._2,{onClick:b=>{b.stopPropagation(),m(a)},children:[(0,d.jsx)(F.A,{className:"mr-2 h-4 w-4"}),"Export as Template"]}),(0,d.jsx)(Q.mB,{}),(0,d.jsxs)(Q._2,{className:"text-destructive",onClick:b=>{b.stopPropagation(),c(a)},children:[(0,d.jsx)(G.A,{className:"mr-2 h-4 w-4"}),"Delete"]})]})]})]}),M?(0,d.jsxs)("div",{onClick:a=>a.stopPropagation(),children:[(0,d.jsx)(p.T,{value:U,onChange:a=>V(a.target.value),onKeyDown:a=>{"Escape"===a.key&&ab()},placeholder:"Add a description...",className:"min-h-[60px] text-sm resize-none",maxLength:200}),(0,d.jsx)("div",{className:"flex items-center justify-between mt-1",children:(0,d.jsxs)("span",{className:"text-xs text-muted-foreground",children:[U.length,"/200"]})})]}):(0,d.jsx)("div",{className:"min-h-[40px]",children:a.description?(0,d.jsx)("p",{className:"text-sm text-muted-foreground line-clamp-2",children:a.description}):(0,d.jsx)("p",{className:"text-sm text-muted-foreground/50 italic",children:"No description"})}),Y?(0,d.jsx)("div",{className:"h-6 bg-muted animate-pulse rounded"}):W&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"flex items-center gap-3 text-sm text-muted-foreground pt-2 border-t",children:[(0,d.jsxs)("span",{className:"flex items-center gap-1",children:[(0,d.jsx)(w.A,{className:"h-4 w-4"}),W.fileCount," ",1===W.fileCount?"file":"files"]}),(0,d.jsxs)("span",{className:"flex items-center gap-1",children:[(0,d.jsx)(x.A,{className:"h-4 w-4"}),W.formattedSize]}),a.costTracking?.totalCost&&a.costTracking.totalCost>0&&(0,d.jsxs)("span",{className:"flex items-center gap-1",children:[(0,d.jsx)(y.A,{className:"h-4 w-4"}),af(a.costTracking.totalCost)]})]}),ad().length>0&&(0,d.jsx)("div",{className:"flex items-center gap-3 text-xs",children:ad().map(([a,b])=>(0,d.jsxs)("div",{className:"flex items-center gap-1 text-muted-foreground",children:[ae(a),(0,d.jsxs)("span",{children:[a," (",b,")"]})]},a))})]}),(0,d.jsx)("div",{className:"text-xs text-muted-foreground pt-2 border-t",children:(0,d.jsxs)("p",{children:["Updated ",(0,P.m)(a.updatedAt,{addSuffix:!0})]})})]})]})}var T=c(9284),U=c(45914),V=c(88285),W=c(86773),X=c(82548),Y=c(55705),Z=c(8849),$=c(43700),_=c(71117),aa=c(91044),ab=c(97950),ac=c(33305),ad=c(53199),ae=c(71652);async function af(a,b){let c=h.vfs.getStorageAdapter(),d=new Date,e=0,f=0,g=0,i=!1;if(b.edgeFunctions&&c.createEdgeFunction)for(let f of b.edgeFunctions)await c.createEdgeFunction({...f,id:crypto.randomUUID(),projectId:a,enabled:f.enabled??!0,method:f.method??"GET",timeoutMs:f.timeoutMs??1e4,createdAt:d,updatedAt:d}),e++;if(b.serverFunctions&&c.createServerFunction)for(let e of b.serverFunctions)await c.createServerFunction({...e,id:crypto.randomUUID(),projectId:a,enabled:e.enabled??!0,createdAt:d,updatedAt:d}),f++;if(b.secrets&&c.createSecret)for(let e of b.secrets)await c.createSecret({...e,id:crypto.randomUUID(),projectId:a,hasValue:!1,createdAt:d,updatedAt:d}),g++;return b.databaseSchema&&(await (0,ae.gA)(a,b.databaseSchema),i=!0),{edgeFunctions:e,serverFunctions:f,secrets:g,hasDatabaseSchema:i}}var ag=c(69374),ah=c(28241),ai=c(61010),aj=c(95919),ak=c(14258),al=c(47247),am=c(96352);function an({project:a,open:b,onOpenChange:c}){let[g,i]=(0,e.useState)(!1),[j,k]=(0,e.useState)({name:a?.name||"",description:a?.description||"",version:"1.0.0",author:"",authorUrl:"",license:"personal",tags:[],thumbnail:void 0,previewImages:[],downloadUrl:""}),[l,q]=(0,e.useState)(""),r=async()=>{if(a){if(!j.name||j.name.length<1||j.name.length>50)return void R.oR.error("Template name must be between 1 and 50 characters");if(!j.description||j.description.length<10||j.description.length>500)return void R.oR.error("Description must be between 10 and 500 characters");if(!j.version||!/^\d+\.\d+\.\d+$/.test(j.version))return void R.oR.error("Version must be in format x.y.z (e.g., 1.0.0)");try{i(!0);let b=l.split(",").map(a=>a.trim()).filter(a=>a.length>0),d={...j,tags:b},e=await m.exportProjectAsTemplate(h.vfs,a.id,d),f=URL.createObjectURL(e),g=document.createElement("a");g.href=f,g.download=`${j.name.replace(/\s+/g,"-").toLowerCase()}.oswt`,document.body.appendChild(g),g.click(),document.body.removeChild(g),URL.revokeObjectURL(f),R.oR.success("Template exported successfully!"),c(!1),k({name:"",description:"",version:"1.0.0",author:"",authorUrl:"",license:"personal",tags:[],thumbnail:void 0,previewImages:[],downloadUrl:""}),q("")}catch(a){f.v.error("Failed to export template:",a),R.oR.error(a instanceof Error?a.message:"Failed to export template")}finally{i(!1)}}},s=am.N2.find(a=>a.value===j.license);return(0,d.jsx)(ac.lG,{open:b,onOpenChange:c,children:(0,d.jsxs)(ac.Cf,{className:"max-w-2xl max-h-[90vh] overflow-y-auto",children:[(0,d.jsxs)(ac.c7,{children:[(0,d.jsx)(ac.L3,{children:"Export as Template"}),(0,d.jsx)(ac.rr,{children:"Create a reusable template from this project"})]}),(0,d.jsxs)("div",{className:"space-y-4 py-4",children:[j.thumbnail&&(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)(ad.J,{children:"Preview Thumbnail"}),(0,d.jsx)("div",{className:"w-full rounded-lg overflow-hidden bg-muted border",children:(0,d.jsx)("img",{src:j.thumbnail,alt:"Template preview",className:"w-full h-auto"})}),(0,d.jsx)("p",{className:"text-xs text-muted-foreground",children:"This preview was captured when you saved the project"})]}),!j.thumbnail&&(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)(ad.J,{children:"Preview Thumbnail"}),(0,d.jsx)("div",{className:"w-full h-48 rounded-lg bg-muted flex items-center justify-center border",children:(0,d.jsxs)("div",{className:"text-center text-muted-foreground",children:[(0,d.jsx)(F.A,{className:"h-12 w-12 mx-auto mb-2"}),(0,d.jsx)("p",{className:"text-sm",children:"No preview available"}),(0,d.jsx)("p",{className:"text-xs",children:"Save your project to capture a preview"})]})})]}),(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsxs)("div",{className:"flex justify-between items-center",children:[(0,d.jsxs)(ad.J,{htmlFor:"template-name",children:["Template Name ",(0,d.jsx)("span",{className:"text-destructive",children:"*"})]}),(0,d.jsxs)("span",{className:"text-xs text-muted-foreground",children:[j.name.length,"/50"]})]}),(0,d.jsx)(o.p,{id:"template-name",value:j.name,onChange:a=>k({...j,name:a.target.value.slice(0,50)}),placeholder:"My Awesome Template",maxLength:50,required:!0})]}),(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsxs)("div",{className:"flex justify-between items-center",children:[(0,d.jsxs)(ad.J,{htmlFor:"template-description",children:["Description ",(0,d.jsx)("span",{className:"text-destructive",children:"*"})]}),(0,d.jsxs)("span",{className:"text-xs text-muted-foreground",children:[j.description.length,"/500"]})]}),(0,d.jsx)(p.T,{id:"template-description",value:j.description,onChange:a=>k({...j,description:a.target.value.slice(0,500)}),placeholder:"A complete multi-page template with...",className:"resize-none",rows:3,maxLength:500,required:!0})]}),(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsxs)(ad.J,{htmlFor:"template-version",children:["Version ",(0,d.jsx)("span",{className:"text-destructive",children:"*"})]}),(0,d.jsx)(o.p,{id:"template-version",value:j.version,onChange:a=>k({...j,version:a.target.value}),placeholder:"1.0.0",pattern:"^\\d+\\.\\d+\\.\\d+$",required:!0}),(0,d.jsx)("p",{className:"text-xs text-muted-foreground",children:"Semantic version format (e.g., 1.0.0)"})]}),(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)(ad.J,{htmlFor:"template-author",children:"Author"}),(0,d.jsx)(o.p,{id:"template-author",value:j.author,onChange:a=>k({...j,author:a.target.value.slice(0,50)}),placeholder:"Your Name",maxLength:50})]}),(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)(ad.J,{htmlFor:"template-author-url",children:"Author URL"}),(0,d.jsx)(o.p,{id:"template-author-url",type:"url",value:j.authorUrl,onChange:a=>k({...j,authorUrl:a.target.value}),placeholder:"https://yourwebsite.com"})]}),(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsxs)(ad.J,{htmlFor:"template-license",children:["License ",(0,d.jsx)("span",{className:"text-destructive",children:"*"})]}),(0,d.jsxs)(ah.l6,{value:j.license,onValueChange:a=>k({...j,license:a}),children:[(0,d.jsx)(ah.bq,{id:"template-license",children:(0,d.jsx)(ah.yv,{})}),(0,d.jsx)(ah.gC,{children:am.N2.map(a=>(0,d.jsx)(ah.eb,{value:a.value,children:a.label},a.value))})]}),s&&(0,d.jsxs)("div",{className:"flex items-start gap-2 p-2 rounded-md bg-muted text-xs",children:[(0,d.jsx)(_.A,{className:"h-3 w-3 mt-0.5 shrink-0 text-muted-foreground"}),(0,d.jsx)("p",{className:"text-muted-foreground",children:s.description})]})]}),(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)(ad.J,{htmlFor:"template-tags",children:"Tags"}),(0,d.jsx)(o.p,{id:"template-tags",value:l,onChange:a=>q(a.target.value),placeholder:"saas, marketing, landing (comma-separated)"}),(0,d.jsx)("p",{className:"text-xs text-muted-foreground",children:"Add up to 10 tags, separated by commas"})]}),(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)(ad.J,{htmlFor:"template-download-url",children:"Marketplace URL"}),(0,d.jsx)(o.p,{id:"template-download-url",type:"url",value:j.downloadUrl,onChange:a=>k({...j,downloadUrl:a.target.value}),placeholder:"https://example.com/templates/..."}),(0,d.jsx)("p",{className:"text-xs text-muted-foreground",children:"Where users can find this template"})]})]}),(0,d.jsxs)(ac.Es,{children:[(0,d.jsx)(n.$,{variant:"outline",onClick:()=>c(!1),disabled:g,children:"Cancel"}),(0,d.jsx)(n.$,{onClick:r,disabled:g,children:g?"Exporting...":"Export Template"})]})]})})}var ao=c(37905);function ap({onProjectSelect:a,hideHeader:b=!1,hideFooter:c=!1}){let i=(0,g.useRouter)(),[j,k]=(0,e.useState)([]),[l,q]=(0,e.useState)(!0),[r,s]=(0,e.useState)(""),[t,u]=(0,e.useState)(!1),[v,x]=(0,e.useState)(""),[y,z]=(0,e.useState)(""),[A,B]=(0,e.useState)("blank"),[C,D]=(0,e.useState)([]),[E,F]=(0,e.useState)("updated"),[G,H]=(0,e.useState)("list"),[I,J]=(0,e.useState)(null),[K,L]=(0,e.useState)(!1),[M,N]=(0,e.useState)(null),[O,P]=(0,e.useState)(null),{state:Q,setProjectList:ae,start:am,setTourDemoProjectId:ap}=(0,aj.C)(),aq=Q.currentStep?.id,ar="running"===Q.status,[as,at]=(0,e.useState)(!1),[au,av]=(0,e.useState)(null),aw=(0,e.useRef)(!1),ax=(0,e.useRef)(!1),ay=!O||(0,al.D)(O.id),az=(0,e.useCallback)(async()=>{try{let a=await m.listCustomTemplates();D(a)}catch(a){f.v.error("Failed to load custom templates:",a)}},[]);(0,e.useCallback)(async()=>{if(!aw.current){aw.current=!0,q(!0);try{await h.vfs.init();let a=(await h.vfs.listProjects()).sort((a,b)=>b.updatedAt.getTime()-a.updatedAt.getTime());k(a),ae(a),await az()}catch(a){f.v.error("Failed to load projects:",a),R.oR.error("Failed to load projects")}finally{q(!1),at(!0),aw.current=!1}}},[ae,az]);let aA=(0,e.useCallback)(async()=>{try{await h.vfs.init();let a=(await h.vfs.listProjects()).sort((a,b)=>b.updatedAt.getTime()-a.updatedAt.getTime());k(a),ae(a)}catch(a){f.v.error("Failed to reload projects:",a),R.oR.error("Failed to reload projects")}},[ae]),aB=async()=>{if(!ax.current){ax.current=!0;try{let b=await h.vfs.createProject("Multi-File Demo","Interactive examples showing how HTML, CSS, and JavaScript files work together");return await (0,ag.createProjectFromTemplate)(h.vfs,b.id,ag.DEMO_PROJECT_TEMPLATE,ag.DEMO_PROJECT_TEMPLATE.assets),R.oR.success("Demo project created successfully"),await aA(),a(b),b}catch(a){throw f.v.error("Failed to create demo project:",a),R.oR.error("Failed to create demo project"),ax.current=!1,a}}},aC=async()=>{try{let a=await h.vfs.createProject("Example Studios (Tour)","Demo project for guided tour");await (0,ag.createProjectFromTemplate)(h.vfs,a.id,ag.DEMO_PROJECT_TEMPLATE,ag.DEMO_PROJECT_TEMPLATE.assets),ap(a.id),await aA(),am(),f.v.info("[Tour] Created tour demo project:",a.id)}catch(a){f.v.error("Failed to prepare for tour:",a),R.oR.error("Failed to start tour - could not create demo project")}},aD=async()=>{if(!v.trim())return void R.oR.error("Please enter a project name");if(v.length>50)return void R.oR.error("Project name must be 50 characters or less");if(y.length>200)return void R.oR.error("Description must be 200 characters or less");try{let b=await h.vfs.createProject(v.trim().slice(0,50),y.trim().slice(0,200)||void 0);if(A.startsWith("custom:")){let a=A.replace("custom:",""),c=C.find(b=>b.id===a);c&&await (0,ag.createProjectFromTemplate)(h.vfs,b.id,{name:c.name,description:c.description,files:c.files.map(a=>({path:a.path,content:"string"==typeof a.content?a.content:new TextDecoder().decode(a.content)})),directories:c.directories,assets:c.assets})}else switch(A){case"demo":await (0,ag.createProjectFromTemplate)(h.vfs,b.id,ag.DEMO_PROJECT_TEMPLATE,ag.DEMO_PROJECT_TEMPLATE.assets);break;case"contact-landing":await (0,ag.createProjectFromTemplate)(h.vfs,b.id,ag.I1);break;case"blog":await (0,ag.createProjectFromTemplate)(h.vfs,b.id,ag.uD);break;default:await (0,ag.createProjectFromTemplate)(h.vfs,b.id,ag.ZQ)}let c=ag.Nr.find(a=>a.id===A),d=c?.backendFeatures;if(d)try{await af(b.id,d)}catch(a){f.v.error("Failed to provision backend features:",a),R.oR.warning("Project created but backend features provisioning failed.")}R.oR.success("Project created successfully"),u(!1),x(""),z(""),B("blank"),await aA(),a(b)}catch(a){f.v.error("Failed to create project:",a),R.oR.error("Failed to create project")}},aE=async a=>{if(confirm(`Are you sure you want to delete "${a.name}"? This cannot be undone.`))try{await h.vfs.deleteProject(a.id),localStorage.removeItem(`osw-db-schema-${a.id}`),R.oR.success("Project deleted"),await aA()}catch(a){f.v.error("Failed to delete project:",a),R.oR.error("Failed to delete project")}},aF=async b=>{try{let c=await h.vfs.duplicateProject(b.id);R.oR.success("Project duplicated successfully"),await aA(),a(c)}catch(a){f.v.error("Failed to duplicate project:",a),R.oR.error("Failed to duplicate project")}},aG=async a=>{try{let b=await h.vfs.exportProject(a.id),c=JSON.stringify(b,null,2),d=new Blob([c],{type:"application/json"}),e=URL.createObjectURL(d),f=document.createElement("a");f.href=e,f.download=`${a.name.replace(/\s+/g,"-")}-export.json`,document.body.appendChild(f),f.click(),document.body.removeChild(f),URL.revokeObjectURL(e),R.oR.success("Project exported")}catch(a){f.v.error("Failed to export project:",a),R.oR.error("Failed to export project")}},aH=async a=>{try{let b=await h.vfs.exportProjectAsZip(a.id),c=URL.createObjectURL(b),d=document.createElement("a");d.href=c,d.download=`${a.name.replace(/\s+/g,"-")}.zip`,document.body.appendChild(d),d.click(),document.body.removeChild(d),URL.revokeObjectURL(c),R.oR.success("Project exported as ZIP")}catch(a){f.v.error("Failed to export project as ZIP:",a),R.oR.error("Failed to export project as ZIP")}},aI=async()=>{let b=document.createElement("input");b.type="file",b.accept=".json",b.onchange=async b=>{let c=b.target.files?.[0];if(c)try{let b=await c.text(),d=JSON.parse(b);if(!d.project||!d.files)throw Error("Invalid project file");let e=await h.vfs.importProject(d);R.oR.success("Project imported successfully"),await aA(),a(e)}catch(a){f.v.error("Failed to import project:",a),R.oR.error("Failed to import project")}},b.click()},aJ=((a,b)=>{let c=[...a];switch(b){case"updated":return c.sort((a,b)=>b.updatedAt.getTime()-a.updatedAt.getTime());case"created":return c.sort((a,b)=>b.createdAt.getTime()-a.createdAt.getTime());case"name":return c.sort((a,b)=>a.name.localeCompare(b.name));case"size":return c.sort((a,b)=>b.updatedAt.getTime()-a.updatedAt.getTime());default:return c}})(j.filter(a=>a.name.toLowerCase().includes(r.toLowerCase())||a.description?.toLowerCase().includes(r.toLowerCase())),E);return l&&!as?(0,d.jsx)("div",{className:"flex items-center justify-center h-screen",children:(0,d.jsxs)("div",{className:"text-center",children:[(0,d.jsx)("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-primary mx-auto"}),(0,d.jsx)("p",{className:"mt-4",children:"Loading projects..."})]})}):(0,d.jsxs)("div",{className:"flex flex-col h-[100dvh]",style:{background:"linear-gradient(var(--project-background-tint), var(--project-background-tint)), var(--background)"},children:[(0,d.jsx)("main",{className:"flex-1 min-h-0 overflow-auto",children:(0,d.jsxs)("div",{className:"h-full flex flex-col",children:[(0,d.jsx)("div",{className:"pt-4 px-4 pb-3 sm:pt-6 sm:px-6 sm:pb-3 shrink-0",children:(0,d.jsxs)("div",{className:"mx-auto max-w-7xl flex flex-col sm:flex-row gap-3","data-tour-id":"projects-actions",children:[(0,d.jsxs)("div",{className:"relative flex-1",children:[(0,d.jsx)(V.A,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-muted-foreground"}),(0,d.jsx)(o.p,{placeholder:"Search projects...",value:r,onChange:a=>s(a.target.value),className:"pl-9"})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsxs)(ai.AM,{children:[(0,d.jsx)(ai.Wv,{asChild:!0,children:(0,d.jsxs)(n.$,{variant:"outline",size:"sm",className:"gap-2",children:[(0,d.jsx)(W.A,{className:"h-4 w-4"}),(0,d.jsx)("span",{className:"hidden sm:inline",children:"Sort"})]})}),(0,d.jsx)(ai.hl,{className:"w-48",align:"end",children:(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)("h4",{className:"font-semibold text-sm",children:"Sort by"}),(0,d.jsxs)(ah.l6,{value:E,onValueChange:a=>F(a),children:[(0,d.jsx)(ah.bq,{children:(0,d.jsx)(ah.yv,{})}),(0,d.jsxs)(ah.gC,{children:[(0,d.jsx)(ah.eb,{value:"updated",children:"Last Updated"}),(0,d.jsx)(ah.eb,{value:"created",children:"Date Created"}),(0,d.jsx)(ah.eb,{value:"name",children:"Name"})]})]})]})})]}),(0,d.jsxs)("div",{className:"flex border rounded-full",children:[(0,d.jsx)(n.$,{variant:"grid"===G?"secondary":"ghost",size:"sm",onClick:()=>H("grid"),className:"rounded-r-none rounded-l-full",children:(0,d.jsx)(X.A,{className:"h-4 w-4"})}),(0,d.jsx)(n.$,{variant:"list"===G?"secondary":"ghost",size:"sm",onClick:()=>H("list"),className:"rounded-l-none rounded-r-full",children:(0,d.jsx)(Y.A,{className:"h-4 w-4"})})]}),(0,d.jsxs)(n.$,{onClick:()=>u(!0),size:"sm",className:"gap-2","data-tour-id":"new-project-button",children:[(0,d.jsx)(Z.A,{className:"h-4 w-4"}),(0,d.jsx)("span",{children:"New"})]}),(0,d.jsxs)(n.$,{onClick:aI,variant:"outline",size:"sm",className:"gap-2",children:[(0,d.jsx)($.A,{className:"h-4 w-4"}),(0,d.jsx)("span",{children:"Import"})]})]})]})}),(0,d.jsx)("div",{className:"flex-1 px-4 pt-3 pb-4 sm:px-6 sm:pt-3 sm:pb-6",children:(0,d.jsx)("div",{className:"mx-auto max-w-7xl",children:0===aJ.length?(0,d.jsxs)("div",{className:"text-center py-12",children:[(0,d.jsx)(w.A,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),(0,d.jsx)("h2",{className:"text-xl font-semibold mb-2",children:r?"No projects found":"No projects yet"}),(0,d.jsx)("p",{className:"text-muted-foreground mb-6",children:r?"Try a different search term":"Create your first project to get started"}),!r&&(0,d.jsxs)("div",{className:"flex gap-3 justify-center",children:[(0,d.jsxs)(n.$,{onClick:()=>u(!0),children:[(0,d.jsx)(Z.A,{className:"mr-2 h-4 w-4"}),"Create Project"]}),(0,d.jsxs)(n.$,{variant:"outline",onClick:aB,children:[(0,d.jsx)(w.A,{className:"mr-2 h-4 w-4"}),"Create Demo Project"]})]})]}):(0,d.jsx)("div",{className:"grid"===G?"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4":"space-y-3","data-tour-id":"projects-list",children:aJ.map(b=>"object"==typeof b&&b.id&&b.name?(0,d.jsx)(S,{project:b,onSelect:a,onDelete:aE,onExport:aG,onExportZip:aH,onDuplicate:aF,onPreview:J,onExportAsTemplate:N,onBackend:P,onUpdate:async a=>{await h.vfs.updateProject(a),k(j.map(b=>b.id===a.id?a:b))},viewMode:G,forceMenuOpen:au===b.id,highlightExport:ar&&"project-controls"===aq&&au===b.id},b.id):(f.v.error("Invalid project object:",b),null))})})})]})}),!c&&(0,d.jsx)("footer",{className:"hidden md:block border-t bg-card/50 py-3 px-6",children:(0,d.jsxs)("div",{className:"flex justify-center gap-2",children:[(0,d.jsxs)(n.$,{variant:"outline",size:"sm",onClick:aC,disabled:ar,"data-tour-id":"footer-guided-tour",children:[(0,d.jsx)(_.A,{className:"mr-2 h-4 w-4"}),"Guided Tour"]}),(0,d.jsxs)(n.$,{variant:"outline",size:"sm",onClick:()=>i.push("/test-generation"),children:[(0,d.jsx)(aa.A,{className:"mr-2 h-4 w-4"}),"Model Tester"]}),(0,d.jsxs)(n.$,{variant:"outline",size:"sm",onClick:()=>L(!0),children:[(0,d.jsx)(_.A,{className:"mr-2 h-4 w-4"}),"About OSW Studio"]}),(0,d.jsx)(n.$,{variant:"outline",size:"sm",asChild:!0,children:(0,d.jsxs)("a",{href:"https://github.com/o-stahl/osw-studio",target:"_blank",rel:"noopener noreferrer",children:[(0,d.jsx)(ab.A,{className:"mr-2 h-4 w-4"}),"GitHub"]})})]})}),(0,d.jsx)(ac.lG,{open:t,onOpenChange:u,children:(0,d.jsxs)(ac.Cf,{className:"sm:max-w-md",children:[(0,d.jsxs)(ac.c7,{children:[(0,d.jsx)(ac.L3,{children:"Create New Project"}),(0,d.jsx)(ac.rr,{children:"Start a new multipage website project"})]}),(0,d.jsxs)("div",{className:"space-y-4",children:[(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:"flex justify-between items-center",children:[(0,d.jsx)(ad.J,{htmlFor:"name",children:"Project Name"}),(0,d.jsxs)("span",{className:"text-xs text-muted-foreground",children:[v.length,"/50"]})]}),(0,d.jsx)(o.p,{id:"name",value:v,onChange:a=>x(a.target.value.slice(0,50)),placeholder:"My Awesome Website",className:"mt-2",maxLength:50})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)(ad.J,{htmlFor:"template",children:"Template"}),(0,d.jsxs)(ah.l6,{value:A,onValueChange:B,children:[(0,d.jsx)(ah.bq,{id:"template",className:"mt-2 w-full",children:(0,d.jsx)("div",{className:"truncate flex-1 text-left",children:(a=>{if(a.startsWith("custom:")){let b=a.replace("custom:",""),c=C.find(a=>a.id===b);return c?.name||"Custom Template"}let b=ag.Nr.find(b=>b.id===a);return b?.name||"Select a template"})(A)})}),(0,d.jsxs)(ah.gC,{children:[(0,d.jsxs)(ah.s3,{children:[(0,d.jsx)(ah.TR,{children:"Built-in Templates"}),ag.Nr.map(a=>(0,d.jsx)(ah.eb,{value:a.id,children:(0,d.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,d.jsx)("div",{className:"font-medium",children:a.name}),(0,d.jsx)("div",{className:"text-xs text-muted-foreground",children:a.description})]})},a.id))]}),C.length>0&&(0,d.jsxs)(ah.s3,{children:[(0,d.jsx)(ah.TR,{children:"Custom Templates"}),C.map(a=>(0,d.jsx)(ah.eb,{value:`custom:${a.id}`,children:(0,d.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,d.jsx)("div",{className:"font-medium",children:a.name}),(0,d.jsx)("div",{className:"text-xs text-muted-foreground",children:a.description})]})},a.id))]})]})]})]}),(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:"flex justify-between items-center",children:[(0,d.jsx)(ad.J,{htmlFor:"description",children:"Description (optional)"}),(0,d.jsxs)("span",{className:"text-xs text-muted-foreground",children:[y.length,"/200"]})]}),(0,d.jsx)(p.T,{id:"description",value:y,onChange:a=>z(a.target.value.slice(0,200)),placeholder:"A brief description of your project",className:"mt-2 resize-none",rows:3,maxLength:200})]})]}),(0,d.jsxs)(ac.Es,{children:[(0,d.jsx)(n.$,{variant:"outline",onClick:()=>u(!1),children:"Cancel"}),(0,d.jsx)(n.$,{onClick:aD,children:"Create Project"})]})]})}),I&&(0,d.jsx)(ac.lG,{open:!!I,onOpenChange:()=>J(null),children:(0,d.jsxs)(ac.Cf,{className:"max-w-[90vw] sm:max-w-[85vw] lg:max-w-[80vw] 2xl:max-w-[1400px] max-h-[90vh] w-full h-full p-0 flex flex-col",children:[(0,d.jsx)(ac.c7,{className:"p-4 border-b",children:(0,d.jsxs)(ac.L3,{children:["Preview: ",I.name]})}),(0,d.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,d.jsx)(T.X,{projectId:I.id})})]})}),(0,d.jsx)(an,{project:M,open:!!M,onOpenChange:a=>{a||N(null)}}),O&&(0,d.jsx)(ao.V,{projectId:O.id,projectName:O.name,isOpen:!0,onClose:()=>P(null),enabled:ay,onToggleEnabled:a=>{localStorage.setItem(`osw-backend-${O.id}`,String(a)),P({...O})}}),(0,d.jsx)(U.V,{open:K,onOpenChange:L}),(0,d.jsx)(ak.V,{location:"project-manager"})]})}function aq({onProjectSelect:a}){return(0,d.jsx)(ap,{onProjectSelect:a,hideHeader:!0,hideFooter:!0})}var ar=c(90528),as=c(22544),at=c(38442),au=c(78583),av=c(36736);function aw({template:a,onSelect:b,onDelete:c,onExport:e,viewMode:f="grid"}){let g="isBuiltIn"in a&&a.isBuiltIn,h=g?null:a,i="backendFeatures"in a&&!!a.backendFeatures,j=a=>{let b=am.N2.find(b=>b.value===a);return b?.label||a},k=b=>{b.stopPropagation(),!g&&c&&c(a.id)},l=b=>{b.stopPropagation(),e&&e(a)},m=a=>{if(!a)return"Never";try{return(0,P.m)(a,{addSuffix:!0})}catch{return"Recently"}};return"list"===f?(0,d.jsx)("div",{className:"border border-border rounded-lg p-4 bg-card",children:(0,d.jsxs)("div",{className:"flex items-center gap-4",children:[(0,d.jsxs)("div",{className:"relative shrink-0",children:[h?.metadata.thumbnail?(0,d.jsx)("div",{className:"w-24 h-16 rounded-md overflow-hidden bg-muted",children:(0,d.jsx)("img",{src:h.metadata.thumbnail,alt:a.name,className:"w-full h-full object-cover"})}):(0,d.jsx)("div",{className:"w-24 h-16 rounded-md bg-muted flex items-center justify-center",children:(0,d.jsx)(F.A,{className:"h-8 w-8 text-muted-foreground"})}),g&&(0,d.jsx)(av.Bc,{children:(0,d.jsxs)(av.m_,{children:[(0,d.jsx)(av.k$,{asChild:!0,children:(0,d.jsx)("div",{className:"absolute top-1 right-1 bg-background/90 rounded-full p-1",children:(0,d.jsx)(at.A,{className:"h-3 w-3 text-muted-foreground"})})}),(0,d.jsx)(av.ZI,{children:"Built-in template"})]})})]}),(0,d.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,d.jsx)("h3",{className:"font-semibold text-base truncate",title:a.name,children:a.name}),i&&(0,d.jsxs)(as.E,{className:"text-xs px-1.5 py-0 h-auto bg-orange-100 text-orange-700 border-orange-200 dark:bg-orange-950 dark:text-orange-400 dark:border-orange-800 shrink-0",children:[(0,d.jsx)(B.A,{className:"h-3 w-3 mr-0.5"}),"Backend"]}),h&&(0,d.jsxs)("span",{className:"text-xs text-muted-foreground shrink-0",children:["v",h.version]})]}),(0,d.jsx)("p",{className:"text-sm text-muted-foreground line-clamp-1 mb-2",title:a.description,children:a.description}),(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 text-xs text-muted-foreground",children:[(h?.metadata.author||a.metadata?.author)&&(0,d.jsxs)("span",{className:"truncate max-w-[150px]",title:h?.metadata.author||a.metadata?.author,children:["by ",h?.metadata.author||a.metadata?.author]}),h?.metadata.license&&(0,d.jsxs)(d.Fragment,{children:[h.metadata.author&&(0,d.jsx)("span",{children:"•"}),(0,d.jsx)(as.E,{variant:"secondary",className:"text-xs px-1.5 py-0 h-auto",children:j(h.metadata.license)})]}),h?.files&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("span",{children:"•"}),(0,d.jsxs)("span",{children:[h.files.length," files"]})]}),(h?.metadata.tags||a.metadata?.tags)&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("span",{children:"•"}),(h?.metadata.tags||a.metadata?.tags||[]).slice(0,2).map(a=>(0,d.jsx)(as.E,{variant:"outline",className:"text-xs px-1.5 py-0 h-auto",children:a},a)),(h?.metadata.tags||a.metadata?.tags||[]).length>2&&(0,d.jsxs)(as.E,{variant:"outline",className:"text-xs px-1.5 py-0 h-auto",children:["+",(h?.metadata.tags||a.metadata?.tags||[]).length-2]})]})]})]}),(0,d.jsxs)("div",{className:"hidden md:flex items-center gap-3 shrink-0",children:[(0,d.jsx)("span",{className:"text-xs text-muted-foreground whitespace-nowrap",children:m(h?.updatedAt||a.updatedAt)}),(0,d.jsxs)(Q.rI,{children:[(0,d.jsx)(Q.ty,{asChild:!0,children:(0,d.jsx)(n.$,{size:"icon",variant:"ghost",className:"h-8 w-8",children:(0,d.jsx)(z.A,{className:"h-4 w-4"})})}),(0,d.jsxs)(Q.SQ,{align:"end",children:[(0,d.jsxs)(Q._2,{onClick:()=>b(a),children:[(0,d.jsx)(Z.A,{className:"mr-2 h-4 w-4"}),"Create Project"]}),e&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Q.mB,{}),(0,d.jsxs)(Q._2,{onClick:l,children:[(0,d.jsx)(E.A,{className:"mr-2 h-4 w-4"}),"Export Template"]})]}),c&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Q.mB,{}),(0,d.jsx)(av.Bc,{children:(0,d.jsxs)(av.m_,{children:[(0,d.jsx)(av.k$,{asChild:!0,children:(0,d.jsx)("div",{children:(0,d.jsxs)(Q._2,{className:"text-destructive",onClick:k,disabled:g,children:[(0,d.jsx)(G.A,{className:"mr-2 h-4 w-4"}),"Delete"]})})}),g&&(0,d.jsx)(av.ZI,{children:"Built-in templates cannot be deleted"})]})})]})]})]})]}),(0,d.jsx)("div",{className:"md:hidden",children:(0,d.jsxs)(Q.rI,{children:[(0,d.jsx)(Q.ty,{asChild:!0,children:(0,d.jsx)(n.$,{size:"icon",variant:"ghost",className:"h-8 w-8",children:(0,d.jsx)(z.A,{className:"h-4 w-4"})})}),(0,d.jsxs)(Q.SQ,{align:"end",children:[(0,d.jsxs)(Q._2,{onClick:()=>b(a),children:[(0,d.jsx)(Z.A,{className:"mr-2 h-4 w-4"}),"Create Project"]}),e&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Q.mB,{}),(0,d.jsxs)(Q._2,{onClick:l,children:[(0,d.jsx)(E.A,{className:"mr-2 h-4 w-4"}),"Export Template"]})]}),c&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Q.mB,{}),(0,d.jsxs)(Q._2,{className:"text-destructive",onClick:k,disabled:g,children:[(0,d.jsx)(G.A,{className:"mr-2 h-4 w-4"}),"Delete"]})]})]})]})})]})}):(0,d.jsxs)("div",{className:"border border-border rounded-lg overflow-hidden bg-card group",children:[(0,d.jsxs)("div",{className:"relative",children:[h?.metadata.thumbnail?(0,d.jsx)("div",{className:"w-full aspect-video bg-muted",children:(0,d.jsx)("img",{src:h.metadata.thumbnail,alt:a.name,className:"w-full h-full object-cover"})}):(0,d.jsx)("div",{className:"w-full aspect-video bg-muted flex items-center justify-center",children:(0,d.jsx)(F.A,{className:"h-16 w-16 text-muted-foreground"})}),g&&(0,d.jsx)(av.Bc,{children:(0,d.jsxs)(av.m_,{children:[(0,d.jsx)(av.k$,{asChild:!0,children:(0,d.jsx)("div",{className:"absolute top-2 right-2 bg-background/90 rounded-full p-1.5 shadow-sm",children:(0,d.jsx)(at.A,{className:"h-4 w-4 text-muted-foreground"})})}),(0,d.jsx)(av.ZI,{children:"Built-in template"})]})}),h?.metadata.downloadUrl&&(0,d.jsx)(av.Bc,{children:(0,d.jsxs)(av.m_,{children:[(0,d.jsx)(av.k$,{asChild:!0,children:(0,d.jsx)("a",{href:h.metadata.downloadUrl,target:"_blank",rel:"noopener noreferrer",className:"absolute top-2 left-2 bg-background/90 hover:bg-background rounded-full p-1.5 shadow-sm transition-colors",onClick:a=>a.stopPropagation(),children:(0,d.jsx)(au.A,{className:"h-4 w-4 text-muted-foreground"})})}),(0,d.jsx)(av.ZI,{children:"View on marketplace"})]})})]}),(0,d.jsxs)("div",{className:"p-4 space-y-3",children:[(0,d.jsxs)("div",{className:"space-y-1",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("h3",{className:"font-semibold text-base line-clamp-1 flex-1",title:a.name,children:a.name}),i&&(0,d.jsxs)(as.E,{className:"text-xs px-1.5 py-0 h-auto bg-orange-100 text-orange-700 border-orange-200 dark:bg-orange-950 dark:text-orange-400 dark:border-orange-800 shrink-0",children:[(0,d.jsx)(B.A,{className:"h-3 w-3 mr-0.5"}),"Backend"]}),h&&(0,d.jsxs)("span",{className:"text-xs text-muted-foreground shrink-0",children:["v",h.version]})]}),(0,d.jsx)("p",{className:"text-sm text-muted-foreground line-clamp-2",title:a.description,children:a.description})]}),(0,d.jsxs)("div",{className:"space-y-2",children:[(h?.metadata.author||a.metadata?.author)&&(0,d.jsx)("div",{className:"text-xs text-muted-foreground",children:h?.metadata.authorUrl?(0,d.jsxs)("a",{href:h.metadata.authorUrl,target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline inline-flex items-center gap-1",onClick:a=>a.stopPropagation(),children:["by ",h.metadata.author,(0,d.jsx)(au.A,{className:"h-3 w-3"})]}):(0,d.jsxs)("span",{children:["by ",h?.metadata.author||a.metadata?.author]})}),(h?.metadata.tags||a.metadata?.tags)&&(h?.metadata.tags||a.metadata?.tags||[]).length>0&&(0,d.jsxs)("div",{className:"flex flex-wrap gap-1",children:[(h?.metadata.tags||a.metadata?.tags||[]).slice(0,3).map(a=>(0,d.jsx)(as.E,{variant:"secondary",className:"text-xs px-1.5 py-0.5",children:a},a)),(h?.metadata.tags||a.metadata?.tags||[]).length>3&&(0,d.jsxs)(as.E,{variant:"secondary",className:"text-xs px-1.5 py-0.5",children:["+",(h?.metadata.tags||a.metadata?.tags||[]).length-3]})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2 text-xs text-muted-foreground flex-wrap",children:[h?.metadata.license&&(0,d.jsx)(as.E,{variant:"outline",className:"text-xs px-1.5 py-0 h-auto",children:j(h.metadata.license)}),h?.files&&(0,d.jsxs)(d.Fragment,{children:[h.metadata.license&&(0,d.jsx)("span",{children:"•"}),(0,d.jsxs)("span",{children:[h.files.length," files"]})]})]})]}),(0,d.jsxs)("div",{className:"pt-3 border-t flex items-center justify-between",children:[(0,d.jsx)("span",{className:"text-xs text-muted-foreground",children:m(h?.updatedAt||a.updatedAt)}),(0,d.jsxs)(Q.rI,{children:[(0,d.jsx)(Q.ty,{asChild:!0,children:(0,d.jsx)(n.$,{size:"icon",variant:"ghost",className:"h-8 w-8",children:(0,d.jsx)(z.A,{className:"h-4 w-4"})})}),(0,d.jsxs)(Q.SQ,{align:"end",children:[(0,d.jsxs)(Q._2,{onClick:()=>b(a),children:[(0,d.jsx)(Z.A,{className:"mr-2 h-4 w-4"}),"Create Project"]}),e&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Q.mB,{}),(0,d.jsxs)(Q._2,{onClick:l,children:[(0,d.jsx)(E.A,{className:"mr-2 h-4 w-4"}),"Export Template"]})]}),c&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Q.mB,{}),(0,d.jsx)(av.Bc,{children:(0,d.jsxs)(av.m_,{children:[(0,d.jsx)(av.k$,{asChild:!0,children:(0,d.jsx)("div",{children:(0,d.jsxs)(Q._2,{className:"text-destructive",onClick:k,disabled:g,children:[(0,d.jsx)(G.A,{className:"mr-2 h-4 w-4"}),"Delete"]})})}),g&&(0,d.jsx)(av.ZI,{children:"Built-in templates cannot be deleted"})]})})]})]})]})]})]})]})}var ax=c(81925);function ay({onProjectCreated:a}){let[b,c]=(0,e.useState)([]),[g,i]=(0,e.useState)(!0),[j,k]=(0,e.useState)(!1),[l,p]=(0,e.useState)(""),[q,r]=(0,e.useState)("updated"),[s,t]=(0,e.useState)("grid"),[u,v]=(0,e.useState)("all"),w=(0,e.useCallback)(async()=>{try{i(!0),await h.vfs.init();let a=await m.listCustomTemplates();c(a)}catch(a){f.v.error("Failed to load custom templates:",a),R.oR.error("Failed to load custom templates")}finally{i(!1)}},[]),x=async()=>{let a=document.createElement("input");a.type="file",a.accept=".oswt",a.onchange=async a=>{let b=a.target.files?.[0];if(b)try{await m.importTemplateFile(b),R.oR.success("Template imported successfully!"),await w()}catch(a){f.v.error("Failed to import template:",a),R.oR.error(a instanceof Error?a.message:"Failed to import template")}},a.click()},y=async a=>{if(confirm("Are you sure you want to delete this template?"))try{await m.deleteCustomTemplate(a),R.oR.success("Template deleted"),await w()}catch(a){f.v.error("Failed to delete template:",a),R.oR.error("Failed to delete template")}},z=async a=>{try{if("isBuiltIn"in a&&a.isBuiltIn){R.oR.info("Exporting built-in template as custom template...");let b=await h.vfs.createProject(a.name,a.description);"blank"===a.id?await (0,ar.c3)(h.vfs,b.id,ag.ZQ):"demo"===a.id?await (0,ar.c3)(h.vfs,b.id,ag.DEMO_PROJECT_TEMPLATE,ag.DEMO_PROJECT_TEMPLATE.assets):"contact-landing"===a.id?await (0,ar.c3)(h.vfs,b.id,ag.I1):"blog"===a.id&&await (0,ar.c3)(h.vfs,b.id,ag.uD);let c=await m.exportProjectAsTemplate(h.vfs,b.id,{name:a.name,description:a.description,version:"1.0.0",author:"OSW Studio",license:"mit",tags:a.metadata?.tags||[]});await h.vfs.deleteProject(b.id);let d=URL.createObjectURL(c),e=document.createElement("a");e.href=d,e.download=`${a.name.replace(/\s+/g,"-").toLowerCase()}.oswt`,document.body.appendChild(e),e.click(),document.body.removeChild(e),URL.revokeObjectURL(d),R.oR.success("Template exported successfully!")}else{let b=await m.exportTemplateAsFile(a),c=URL.createObjectURL(b),d=document.createElement("a");d.href=c,d.download=`${a.name.replace(/\s+/g,"-").toLowerCase()}.oswt`,document.body.appendChild(d),d.click(),document.body.removeChild(d),URL.revokeObjectURL(c),R.oR.success("Template exported successfully!")}}catch(a){f.v.error("Failed to export template:",a),R.oR.error("Failed to export template")}},A=async b=>{try{let c;k(!0);let d="Blank"===b.name||"Example Studios"===b.name?`New ${b.name} Project`:b.name,e=await h.vfs.createProject(d,b.description);if("isBuiltIn"in b&&b.isBuiltIn?"blank"===b.id?await (0,ar.c3)(h.vfs,e.id,ag.ZQ):"demo"===b.id?await (0,ar.c3)(h.vfs,e.id,ag.DEMO_PROJECT_TEMPLATE,ag.DEMO_PROJECT_TEMPLATE.assets):"contact-landing"===b.id?await (0,ar.c3)(h.vfs,e.id,ag.I1):"blog"===b.id&&await (0,ar.c3)(h.vfs,e.id,ag.uD):await (0,ar.c3)(h.vfs,e.id,{name:b.name,description:b.description,files:b.files.map(a=>({path:a.path,content:"string"==typeof a.content?a.content:new TextDecoder().decode(a.content)})),directories:b.directories,assets:b.assets}),c=b.backendFeatures)try{let a=await af(e.id,c),b=[];a.edgeFunctions>0&&b.push(`${a.edgeFunctions} edge function(s)`),a.serverFunctions>0&&b.push(`${a.serverFunctions} server function(s)`),a.secrets>0&&b.push(`${a.secrets} secret placeholder(s)`),a.hasDatabaseSchema&&b.push("database schema"),b.length>0&&R.oR.success(`Backend features provisioned: ${b.join(", ")}`,{duration:5e3})}catch(a){f.v.error("Failed to provision backend features:",a),R.oR.warning("Project created but backend features provisioning failed. You can configure features manually.",{duration:6e3})}R.oR.success(`Project "${e.name}" created successfully!`),a&&a(e.id,!!c)}catch(a){f.v.error("Failed to create project from template:",a),R.oR.error("Failed to create project")}finally{k(!1)}},B=[...[...ar.Nr,...b].filter(a=>{let b=l.toLowerCase(),c=a.name.toLowerCase().includes(b)||a.description.toLowerCase().includes(b)||"metadata"in a&&a.metadata?.author?.toLowerCase().includes(b)||"metadata"in a&&a.metadata?.tags?.some(a=>a.toLowerCase().includes(b));if("all"!==u){let b="backendFeatures"in a&&!!a.backendFeatures;if("server"===u&&!b||"standard"===u&&b)return!1}return c})].sort((a,b)=>{switch(q){case"updated":let c="updatedAt"in a&&a.updatedAt?a.updatedAt:new Date("2024-01-01");return("updatedAt"in b&&b.updatedAt?b.updatedAt:new Date("2024-01-01")).getTime()-c.getTime();case"name":return a.name.localeCompare(b.name);case"author":let d="metadata"in a&&a.metadata?.author||"",e="metadata"in b&&b.metadata?.author||"";return d.localeCompare(e);case"files":let f="files"in a&&a.files?.length||0;return("files"in b&&b.files?.length||0)-f;default:return 0}});return g||j?(0,d.jsx)("div",{className:"flex items-center justify-center h-screen",children:(0,d.jsxs)("div",{className:"text-center",children:[(0,d.jsx)("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-primary mx-auto"}),(0,d.jsx)("p",{className:"mt-4",children:j?"Setting up your project...":"Loading templates..."})]})}):(0,d.jsxs)("div",{className:"h-full flex flex-col",children:[(0,d.jsx)("div",{className:"pt-4 px-4 pb-3 sm:pt-6 sm:px-6 sm:pb-3 shrink-0",children:(0,d.jsxs)("div",{className:"mx-auto max-w-7xl flex flex-col sm:flex-row gap-3",children:[(0,d.jsxs)("div",{className:"relative flex-1",children:[(0,d.jsx)(V.A,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-muted-foreground"}),(0,d.jsx)(o.p,{placeholder:"Search templates...",value:l,onChange:a=>p(a.target.value),className:"pl-9"})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsxs)(ah.l6,{value:u,onValueChange:a=>v(a),children:[(0,d.jsxs)(ah.bq,{className:"w-[110px] h-9 text-sm",children:[(0,d.jsx)(ax.A,{className:"h-4 w-4 mr-1 shrink-0"}),(0,d.jsx)(ah.yv,{})]}),(0,d.jsxs)(ah.gC,{children:[(0,d.jsx)(ah.eb,{value:"all",children:"All Types"}),(0,d.jsx)(ah.eb,{value:"standard",children:"Standard"}),(0,d.jsx)(ah.eb,{value:"server",children:"Backend"})]})]}),(0,d.jsxs)(ai.AM,{children:[(0,d.jsx)(ai.Wv,{asChild:!0,children:(0,d.jsxs)(n.$,{variant:"outline",size:"sm",className:"gap-2",children:[(0,d.jsx)(W.A,{className:"h-4 w-4"}),(0,d.jsx)("span",{className:"hidden sm:inline",children:"Sort"})]})}),(0,d.jsx)(ai.hl,{className:"w-48",align:"end",children:(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)("h4",{className:"font-semibold text-sm",children:"Sort by"}),(0,d.jsxs)(ah.l6,{value:q,onValueChange:a=>r(a),children:[(0,d.jsx)(ah.bq,{children:(0,d.jsx)(ah.yv,{})}),(0,d.jsxs)(ah.gC,{children:[(0,d.jsx)(ah.eb,{value:"updated",children:"Last Updated"}),(0,d.jsx)(ah.eb,{value:"name",children:"Name"}),(0,d.jsx)(ah.eb,{value:"author",children:"Author"}),(0,d.jsx)(ah.eb,{value:"files",children:"File Count"})]})]})]})})]}),(0,d.jsxs)("div",{className:"flex border rounded-full",children:[(0,d.jsx)(n.$,{variant:"grid"===s?"secondary":"ghost",size:"sm",onClick:()=>t("grid"),className:"rounded-r-none rounded-l-full",children:(0,d.jsx)(X.A,{className:"h-4 w-4"})}),(0,d.jsx)(n.$,{variant:"list"===s?"secondary":"ghost",size:"sm",onClick:()=>t("list"),className:"rounded-l-none rounded-r-full",children:(0,d.jsx)(Y.A,{className:"h-4 w-4"})})]}),(0,d.jsxs)(n.$,{onClick:x,size:"sm",className:"gap-2",children:[(0,d.jsx)($.A,{className:"h-4 w-4"}),(0,d.jsx)("span",{children:"Import"})]})]})]})}),(0,d.jsx)("div",{className:"flex-1 min-h-0 overflow-y-auto px-4 pt-3 pb-4 sm:px-6 sm:pt-3 sm:pb-6",children:(0,d.jsx)("div",{className:"mx-auto max-w-7xl",children:0===B.length?(0,d.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,d.jsx)("div",{className:"text-center max-w-md",children:l?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(V.A,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),(0,d.jsx)("h3",{className:"font-semibold mb-2",children:"No templates found"}),(0,d.jsxs)("p",{className:"text-sm text-muted-foreground mb-4",children:['No templates match your search query "',l,'"']}),(0,d.jsx)(n.$,{variant:"outline",onClick:()=>p(""),children:"Clear search"})]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(D.A,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),(0,d.jsx)("h3",{className:"font-semibold mb-2",children:"No custom templates yet"}),(0,d.jsx)("p",{className:"text-sm text-muted-foreground mb-4",children:"Import custom templates to get started with professional designs."}),(0,d.jsxs)(n.$,{onClick:x,children:[(0,d.jsx)($.A,{className:"h-4 w-4 mr-2"}),"Import Template"]})]})})}):(0,d.jsx)("div",{className:"grid"===s?"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4":"space-y-3",children:B.map(a=>(0,d.jsx)(aw,{template:a,onSelect:A,onDelete:y,onExport:z,viewMode:s},a.id))})})})]})}function az({onProjectSelect:a,onNavigate:b}){let c=(0,g.useRouter)();return(0,d.jsx)(ay,{onProjectCreated:(b,d)=>{a?a({id:b}):c.push(`/workspace/${b}`)}})}var aA=c(6636),aB=c(17585),aC=c(62949),aD=c(5360),aE=c(75234),aF=c(85351),aG=c(59405),aH=c(76180),aI=c(12897),aJ=c(79944),aK=c(81100);function aL({skill:a,mode:b,onSave:c,onCancel:f}){let[g,h]=(0,e.useState)(""),[i,j]=(0,e.useState)(""),[k,l]=(0,e.useState)(""),[m,q]=(0,e.useState)(""),[s,t]=(0,e.useState)("form"),[u,v]=(0,e.useState)(!1),w=async()=>{v(!0);try{let{frontmatter:d}=(0,aI.N1)(m);"create"===b?(await aA.skillsService.createSkill(m),R.oR.success(`Created skill: ${d.name}`)):a&&(await aA.skillsService.updateSkill(a.id,m),R.oR.success(`Updated skill: ${d.name}`)),c()}catch(b){let a=b instanceof Error?b.message:"Failed to save skill";R.oR.error(a)}finally{v(!1)}};return(0,d.jsxs)("div",{className:"flex flex-col bg-background h-[inherit]",children:[(0,d.jsx)("div",{className:"border-b px-6 py-4 shrink-0",children:(0,d.jsxs)("div",{className:"flex items-center justify-between",children:[(0,d.jsxs)("div",{className:"flex items-center gap-3",children:[(0,d.jsx)(n.$,{variant:"ghost",size:"sm",onClick:f,children:(0,d.jsx)(aJ.A,{className:"w-4 h-4"})}),(0,d.jsxs)("div",{children:[(0,d.jsx)("h1",{className:"text-2xl font-bold",children:"create"===b?"Create New Skill":"Edit Skill"}),(0,d.jsx)("p",{className:"text-sm text-muted-foreground",children:"Define specialized knowledge for the AI assistant"})]})]}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(n.$,{variant:"outline",onClick:f,children:"Cancel"}),(0,d.jsxs)(n.$,{onClick:w,disabled:u,children:[(0,d.jsx)(aK.A,{className:"w-4 h-4 mr-2"}),u?"Saving...":"Save Skill"]})]})]})}),(0,d.jsxs)("div",{className:"flex-1 flex flex-col overflow-auto",children:[(0,d.jsx)("div",{className:"border-b px-6 shrink-0",children:(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)("button",{onClick:()=>t("form"),className:`px-4 py-2 text-sm font-medium border-b-2 transition-colors ${"form"===s?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground"}`,children:"Form Editor"}),(0,d.jsx)("button",{onClick:()=>t("raw"),className:`px-4 py-2 text-sm font-medium border-b-2 transition-colors ${"raw"===s?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground"}`,children:"Raw Markdown"})]})}),"form"===s&&(0,d.jsx)("div",{className:"flex-1 overflow-y-auto px-6 py-4",children:(0,d.jsxs)("div",{className:"space-y-6",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)(ad.J,{htmlFor:"name",children:"Skill Name *"}),(0,d.jsx)(o.p,{id:"name",placeholder:"e.g., react-hooks, python-testing, ui-design",value:g,onChange:a=>h(a.target.value),className:"mt-1.5"}),(0,d.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:"Lowercase with hyphens (will be used as file name)"})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)(ad.J,{htmlFor:"description",children:"Description *"}),(0,d.jsx)(o.p,{id:"description",placeholder:"Brief description of what this skill covers",value:i,onChange:a=>j(a.target.value),className:"mt-1.5"}),(0,d.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:"Max 200 characters - shown in skills list"})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)(ad.J,{htmlFor:"markdown",children:"Skill Content *"}),(0,d.jsx)(p.T,{id:"markdown",placeholder:"Write the skill content in markdown format... ## Guidelines - Guideline 1 - Guideline 2 ## Examples ```javascript // Example code ```",value:k,onChange:a=>l(a.target.value),className:"mt-1.5 font-mono text-sm min-h-[400px]"}),(0,d.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:"Markdown content that the AI will read when using this skill"})]}),(0,d.jsxs)("div",{className:"bg-muted/50 rounded-lg p-4",children:[(0,d.jsxs)("h3",{className:"font-semibold mb-2 flex items-center gap-2",children:[(0,d.jsx)(r.A,{className:"w-4 h-4"}),"Tips for Writing Skills"]}),(0,d.jsxs)("ul",{className:"text-sm text-muted-foreground space-y-1 ml-5 list-disc",children:[(0,d.jsx)("li",{children:"Be specific and actionable - provide clear guidelines and examples"}),(0,d.jsx)("li",{children:"Use markdown formatting for better readability"}),(0,d.jsx)("li",{children:"Include code examples where relevant"}),(0,d.jsx)("li",{children:"Focus on practical knowledge the AI can apply"}),(0,d.jsx)("li",{children:"Keep it concise but comprehensive"})]})]})]})}),"raw"===s&&(0,d.jsx)("div",{className:"flex-1 overflow-auto px-6 py-4",children:(0,d.jsx)("div",{className:"max-w-4xl",children:(0,d.jsxs)("div",{children:[(0,d.jsx)(ad.J,{htmlFor:"raw-content",children:"Raw SKILL.md Content"}),(0,d.jsx)(p.T,{id:"raw-content",value:m,onChange:a=>(a=>{q(a);try{let{frontmatter:b,markdown:c}=(0,aI.N1)(a);h(b.name),j(b.description),l(c)}catch(a){}})(a.target.value),className:"mt-1.5 font-mono text-sm min-h-[600px]",spellCheck:!1}),(0,d.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:"Direct editing of the SKILL.md file (YAML frontmatter + markdown)"})]})})})]})]})}function aM(){let[a,b]=(0,e.useState)([]),[c,g]=(0,e.useState)(!0),[h,i]=(0,e.useState)(""),[j,k]=(0,e.useState)(null),[l,m]=(0,e.useState)(null),[p,q]=(0,e.useState)(!1),[s,t]=(0,e.useState)(null),[u,v]=(0,e.useState)(!0),[w,x]=(0,e.useState)(!1),[y,z]=(0,e.useState)(new Set),A=async()=>{try{g(!0);let a=await aA.skillsService.getAllSkills();b(a)}catch(a){f.v.error("[SkillsManager] Failed to load skills",a),R.oR.error("Failed to load skills")}finally{g(!1)}},B=async()=>{try{let a=await aA.skillsService.isGloballyEnabled();v(a);let b=await aA.skillsService.isEvaluationEnabled();x(b);let c=await aA.skillsService.getAllSkills(),d=new Set;for(let a of c)await aA.skillsService.isSkillEnabled(a.id)&&d.add(a.id);z(d)}catch(a){f.v.error("[SkillsManager] Failed to load enabled state",a)}},C=async a=>{try{await aA.skillsService.setGlobalEnabled(a),v(a),R.oR.success(a?"Skills enabled":"Skills disabled")}catch(a){R.oR.error("Failed to update skills state")}},D=async a=>{try{await aA.skillsService.setEvaluationEnabled(a),x(a),R.oR.success(a?"Skill evaluation enabled":"Skill evaluation disabled")}catch{R.oR.error("Failed to update evaluation state")}},F=async(a,b)=>{try{b?(await aA.skillsService.enableSkill(a),z(b=>new Set([...b,a]))):(await aA.skillsService.disableSkill(a),z(b=>{let c=new Set(b);return c.delete(a),c}))}catch(a){R.oR.error("Failed to toggle skill")}},G=()=>{k(null),m("create")},H=a=>{k(a),m("edit")},I=a=>{t(a),q(!0)},J=async()=>{if(s)try{await aA.skillsService.deleteSkill(s.id),R.oR.success(`Deleted skill: ${s.name}`),await A(),await B()}catch(b){let a=b instanceof Error?b.message:"Failed to delete skill";R.oR.error(a)}finally{q(!1),t(null)}},K=async()=>{let a=document.createElement("input");a.type="file",a.accept=".md,.zip",a.multiple=!1,a.onchange=async a=>{let b=a.target.files?.[0];if(b)try{if(b.name.endsWith(".zip")){let a=await aA.skillsService.importSkills(b);R.oR.success(`Imported ${a.length} skill(s)`)}else{let a=await aA.skillsService.importSkillFile(b);R.oR.success(`Imported skill: ${a.name}`)}await A(),await B()}catch(b){let a=b instanceof Error?b.message:"Failed to import skill";R.oR.error(a)}},a.click()},L=async()=>{try{let b=a.filter(a=>!a.isBuiltIn);if(0===b.length)return void R.oR.error("No custom skills to export");let c=await aA.skillsService.exportSkills(b.map(a=>a.id)),d=URL.createObjectURL(c),e=document.createElement("a");e.href=d,e.download=`osw-skills-${new Date().toISOString().split("T")[0]}.zip`,e.click(),URL.revokeObjectURL(d),R.oR.success(`Exported ${b.length} skill(s)`)}catch(a){R.oR.error("Failed to export skills")}},M=async()=>{m(null),k(null),await A(),await B()},N=()=>{m(null),k(null)},O=a.filter(a=>a.name.toLowerCase().includes(h.toLowerCase())||a.description.toLowerCase().includes(h.toLowerCase())),P=O.filter(a=>a.isBuiltIn),Q=O.filter(a=>!a.isBuiltIn);return c?(0,d.jsx)("div",{className:"flex items-center justify-center h-screen",children:(0,d.jsxs)("div",{className:"text-center",children:[(0,d.jsx)("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-primary mx-auto"}),(0,d.jsx)("p",{className:"mt-4",children:"Loading skills..."})]})}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:"h-full flex flex-col",children:[(0,d.jsx)("div",{className:"pt-4 px-4 pb-3 sm:pt-6 sm:px-6 sm:pb-3 shrink-0",children:(0,d.jsxs)("div",{className:"mx-auto max-w-7xl flex flex-col gap-3",children:[(0,d.jsxs)("div",{className:"flex flex-col sm:flex-row gap-3",children:[(0,d.jsxs)("div",{className:"relative flex-1",children:[(0,d.jsx)(V.A,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-muted-foreground"}),(0,d.jsx)(o.p,{placeholder:"Search skills...",value:h,onChange:a=>i(a.target.value),className:"pl-9"})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsxs)(n.$,{variant:"outline",size:"sm",onClick:K,children:[(0,d.jsx)($.A,{className:"w-4 h-4 mr-2"}),"Import"]}),(0,d.jsxs)(n.$,{variant:"outline",size:"sm",onClick:L,children:[(0,d.jsx)(E.A,{className:"w-4 h-4 mr-2"}),"Export"]}),(0,d.jsxs)(n.$,{onClick:G,size:"sm",children:[(0,d.jsx)(Z.A,{className:"w-4 h-4 mr-2"}),"New"]})]})]}),(0,d.jsxs)("div",{className:"flex items-center justify-between p-3 bg-muted/50 rounded-lg",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(aD.A,{className:"w-4 h-4"}),(0,d.jsx)(ad.J,{htmlFor:"global-toggle",className:"text-sm font-medium cursor-pointer",children:"Enable Skills System"})]}),(0,d.jsx)(aB.d,{id:"global-toggle",checked:u,onCheckedChange:C})]}),(0,d.jsxs)("div",{className:"flex items-center justify-between p-3 bg-muted/50 rounded-lg",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(aE.A,{className:"w-4 h-4"}),(0,d.jsxs)("div",{children:[(0,d.jsx)(ad.J,{htmlFor:"eval-toggle",className:"text-sm font-medium cursor-pointer",children:"Skill Evaluation"}),(0,d.jsx)("p",{className:"text-xs text-muted-foreground",children:"Pre-check which skills are relevant before each message. Increases initial token usage per message."})]})]}),(0,d.jsx)(aB.d,{id:"eval-toggle",checked:w,disabled:!u,onCheckedChange:D})]})]})}),(0,d.jsx)("div",{className:"flex-1 px-4 pt-3 pb-4 sm:px-6 sm:pt-3 sm:pb-6 overflow-auto",children:(0,d.jsx)("div",{className:"mx-auto max-w-7xl",children:0===O.length?(0,d.jsxs)("div",{className:"text-center py-12",children:[(0,d.jsx)(aE.A,{className:"w-12 h-12 mx-auto mb-4 text-muted-foreground"}),(0,d.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"No skills found"}),(0,d.jsx)("p",{className:"text-muted-foreground mb-4",children:h?"Try a different search query":"Create your first custom skill"}),!h&&(0,d.jsxs)(n.$,{onClick:G,children:[(0,d.jsx)(Z.A,{className:"w-4 h-4 mr-2"}),"Create Skill"]})]}):(0,d.jsxs)("div",{className:"space-y-6",children:[P.length>0&&(0,d.jsxs)("div",{children:[(0,d.jsxs)("h2",{className:"text-lg font-semibold mb-3 flex items-center gap-2",children:[(0,d.jsx)(r.A,{className:"w-5 h-5"}),"Built-in Skills (",P.length,")"]}),(0,d.jsx)("div",{className:"grid gap-3",children:P.map(a=>(0,d.jsx)(aN,{skill:a,isEnabled:y.has(a.id),globalEnabled:u,onToggle:F,onEdit:H,onDelete:I},a.id))})]}),Q.length>0&&(0,d.jsxs)("div",{children:[(0,d.jsxs)("h2",{className:"text-lg font-semibold mb-3 flex items-center gap-2",children:[(0,d.jsx)(aE.A,{className:"w-5 h-5"}),"Custom Skills (",Q.length,")"]}),(0,d.jsx)("div",{className:"grid gap-3",children:Q.map(a=>(0,d.jsx)(aN,{skill:a,isEnabled:y.has(a.id),globalEnabled:u,onToggle:F,onEdit:H,onDelete:I},a.id))})]})]})})})]}),(0,d.jsx)(ac.lG,{open:!!l,onOpenChange:a=>!a&&N(),children:(0,d.jsx)(ac.Cf,{className:"max-w-[90vw] sm:max-w-[85vw] lg:max-w-[75vw] xl:max-w-[1200px] h-[90vh] p-0 overflow-hidden",children:l&&(0,d.jsx)(aL,{skill:j,mode:l,onSave:M,onCancel:N})})}),(0,d.jsx)(ac.lG,{open:p,onOpenChange:q,children:(0,d.jsxs)(ac.Cf,{children:[(0,d.jsxs)(ac.c7,{children:[(0,d.jsx)(ac.L3,{children:"Delete Skill"}),(0,d.jsxs)(ac.rr,{children:['Are you sure you want to delete "',s?.name,'"? This action cannot be undone.']})]}),(0,d.jsxs)(ac.Es,{children:[(0,d.jsx)(n.$,{variant:"outline",onClick:()=>q(!1),children:"Cancel"}),(0,d.jsx)(n.$,{variant:"destructive",onClick:J,children:"Delete"})]})]})})]})}function aN({skill:a,isEnabled:b,globalEnabled:c,onToggle:f,onEdit:g,onDelete:h}){let[i,j]=(0,e.useState)(!1),k=c&&b;return(0,d.jsx)(aC.Nt,{open:i,onOpenChange:j,children:(0,d.jsxs)("div",{className:`border rounded-lg transition-colors ${k?"border-primary/30 bg-primary/5":"border-border"}`,children:[(0,d.jsx)("div",{className:"p-4",children:(0,d.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,d.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,d.jsxs)(aC.R6,{className:"flex items-center gap-2 hover:text-primary transition-colors",children:[i?(0,d.jsx)(aF.A,{className:"w-4 h-4 shrink-0"}):(0,d.jsx)(aG.A,{className:"w-4 h-4 shrink-0"}),(0,d.jsx)("h3",{className:"font-semibold truncate",children:a.name})]}),a.isBuiltIn&&(0,d.jsx)(as.E,{variant:"secondary",className:"text-xs",children:"Built-in"}),!k&&(0,d.jsx)(as.E,{variant:"outline",className:"text-xs text-muted-foreground",children:"Disabled"})]}),(0,d.jsx)("p",{className:"text-sm text-muted-foreground line-clamp-2",children:a.description})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(aB.d,{checked:b,onCheckedChange:b=>f(a.id,b),disabled:!c}),!a.isBuiltIn&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(n.$,{variant:"ghost",size:"sm",onClick:()=>g(a),children:(0,d.jsx)(aH.A,{className:"w-4 h-4"})}),(0,d.jsx)(n.$,{variant:"ghost",size:"sm",onClick:()=>h(a),children:(0,d.jsx)(G.A,{className:"w-4 h-4"})})]})]})]})}),(0,d.jsx)(aC.Ke,{children:(0,d.jsx)("div",{className:"border-t px-4 py-3 bg-muted/30",children:(0,d.jsxs)("div",{className:"text-sm space-y-2",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 text-muted-foreground",children:[(0,d.jsx)("span",{className:"font-medium",children:"Updated:"}),(0,d.jsx)("span",{children:a.updatedAt.toLocaleDateString()})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("span",{className:"font-medium text-muted-foreground",children:"Description:"}),(0,d.jsx)("p",{className:"mt-1",children:a.description})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("span",{className:"font-medium text-muted-foreground",children:"Content:"}),(0,d.jsx)("pre",{className:"mt-1 text-xs bg-background p-3 rounded border overflow-auto max-h-96 whitespace-pre-wrap",children:a.markdown})]})]})})})]})})}function aO(){return(0,d.jsx)(aM,{})}var aP=c(30824),aQ=c(72380),aR=c(43476),aS=c(18310),aT=c(15917),aU=c(80196),aV=c(25345),aW=c(78460),aX=c(94684),aY=c(15952),aZ=c(68877),a$=c(16945);c(33204);c(68324);c(27067);var a_=c(78266),a0=c(24886),a1=c(79588),a2=c(51932),a3=c(66641),a4=c(24780),a5=c(15303),a6=c(59268),a7=c(91292),a8=c(75535);c(65828),c(77917),c(33464),c(98688),c(43718),c(22774);c(71899),c(65893),c(18004);c(51881);function a9({onProjectSelect:a}){let[b,c]=(0,e.useState)([]),[f,g]=(0,e.useState)([]),[h,i]=(0,e.useState)(!0),[j,k]=(0,e.useState)({}),[l,m]=(0,e.useState)(null),[n,o]=(0,e.useState)(!1),[p,q]=(0,e.useState)(!1),[r,s]=(0,e.useState)(!1),[t,u]=(0,e.useState)(!1),[v,w]=(0,e.useState)(!1),[x,y]=(0,e.useState)(null),[z,A]=(0,e.useState)(""),[B,C]=(0,e.useState)("updated"),[D,E]=(0,e.useState)(null),[F,G]=(0,e.useState)(null);return(0,e.useMemo)(()=>{let a=b;if(z){let c=z.toLowerCase();a=b.filter(a=>{let b=f.find(b=>b.id===a.projectId);return a.name.toLowerCase().includes(c)||a.slug?.toLowerCase().includes(c)||b?.name.toLowerCase().includes(c)})}return[...a].sort((a,b)=>{switch(B){case"name":return a.name.localeCompare(b.name);case"created":return new Date(b.createdAt).getTime()-new Date(a.createdAt).getTime();case"published":if(!a.publishedAt&&!b.publishedAt)return 0;if(!a.publishedAt)return 1;if(!b.publishedAt)return -1;return new Date(b.publishedAt).getTime()-new Date(a.publishedAt).getTime();default:return new Date(b.updatedAt).getTime()-new Date(a.updatedAt).getTime()}})},[b,f,z,B]),(0,d.jsx)("div",{className:"h-full flex items-center justify-center",children:(0,d.jsx)("div",{className:"text-center text-muted-foreground",children:(0,d.jsx)("p",{children:"Deployments feature is only available in Server Mode"})})})}var ba=c(26946),bb=c(85986);function bc({tab:a}){let b=(0,g.useSearchParams)().get("settings");return(0,d.jsx)("div",{className:"h-full flex flex-col",children:(0,d.jsx)("div",{className:"flex-1 overflow-auto p-6",children:"application"===(b||a||"model")?(0,d.jsx)(bb.O,{}):(0,d.jsx)(ba.t,{})})})}function bd({tab:a}){return(0,d.jsx)(e.Suspense,{fallback:(0,d.jsx)("div",{className:"h-full flex items-center justify-center",children:(0,d.jsx)("p",{className:"text-muted-foreground",children:"Loading..."})}),children:(0,d.jsx)(bc,{tab:a})})}var be=c(15649);function bf({items:a,activeId:b,visibleIds:c=[],onItemClick:e}){if(0===a.length)return null;let g=(a,b)=>{a.preventDefault(),e?.(b.index.toString());let c=document.querySelector(`[data-heading-index="${b.index}"]`);c&&(c.scrollIntoView({behavior:"smooth"}),window.history.pushState(null,"",`#${b.id}`))};return(0,d.jsxs)("nav",{className:"space-y-1",children:[(0,d.jsx)("p",{className:"text-sm font-semibold mb-3 text-foreground",children:"On This Page"}),(0,d.jsx)("ul",{className:"text-sm",children:a.map(a=>(0,d.jsxs)("li",{children:[(0,d.jsx)("a",{href:`#${a.id}`,"data-toc-id":a.index,onClick:b=>g(b,a),className:(0,f.cn)("block py-1 text-muted-foreground hover:text-foreground transition-colors","border-l-2 pl-3",b===a.index.toString()?"border-primary text-foreground font-medium":c.includes(a.index.toString())?"border-blue-400/50 text-foreground/80":"border-transparent"),children:a.text}),a.children&&a.children.length>0&&(0,d.jsx)("ul",{children:a.children.map(a=>(0,d.jsx)("li",{children:(0,d.jsx)("a",{href:`#${a.id}`,"data-toc-id":a.index,onClick:b=>g(b,a),className:(0,f.cn)("block py-1 text-xs text-muted-foreground hover:text-foreground transition-colors","border-l-2",b===a.index.toString()?"border-primary text-foreground font-medium":c.includes(a.index.toString())?"border-blue-400/50 text-foreground/80":"border-transparent"),style:{paddingLeft:"calc(0.75rem * 1.67)"},children:a.text})},`${a.id}-${a.index}`))})]},`${a.id}-${a.index}`))})]})}var bg=c(97518);function bh(){let a=(0,g.useSearchParams)().get("doc")||"overview",b=bg.P.find(b=>b.id===a)||bg.P[0],[c,f]=(0,e.useState)(""),[h,i]=(0,e.useState)(!1),[j,k]=(0,e.useState)(null),[l,m]=(0,e.useState)(""),[n,o]=(0,e.useState)([]),p=(0,e.useRef)(!1);(0,e.useRef)(null);let q=(0,e.useMemo)(()=>{if(!c)return[];let a=c.split("\n"),b=[],d=0;for(let c of a){let a=c.match(/^(#{2,4})\s+(.+)$/);if(a){let c=a[1].length,e=a[2].trim(),f=e.toString().toLowerCase().trim().replace(/\s+/g,"-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"");b.push({level:c,text:e,id:f,index:d}),d++}}let e=[],f=null;for(let a of b)2===a.level?(f={id:a.id,text:a.text,level:2,index:a.index,children:[]},e.push(f)):3===a.level&&f&&f.children.push({id:a.id,text:a.text,level:3,index:a.index});return e},[c]),r=(0,e.useCallback)(a=>{m(a),o([a]),p.current=!0,setTimeout(()=>{p.current=!1;let a=document.querySelector(".docs-content-area");if(!a)return;let b=document.querySelectorAll(".docs-content-area [data-heading-index]");if(0===b.length)return;let c=a.getBoundingClientRect().top,d=[];b.forEach(b=>{let e=b.getBoundingClientRect(),f=c+a.clientHeight;if(e.top>=c&&e.bottom<=f){let a=b.getAttribute("data-heading-index");a&&d.push(a)}}),o(d)},1e3)},[]),s=q.length>=3;return(0,d.jsx)("div",{className:"h-full flex flex-col",children:(0,d.jsxs)("div",{className:`flex-1 overflow-hidden ${s?"lg:grid lg:grid-cols-[1fr_280px]":""}`,children:[(0,d.jsx)("div",{className:"h-full overflow-y-auto docs-content-area bg-background",children:(0,d.jsxs)("div",{className:"p-6 sm:p-8 max-w-4xl mx-auto",onClick:a=>{let b=a.target;if("A"===b.tagName){let c=b.getAttribute("href");if(c?.startsWith("#")){a.preventDefault();let b=document.getElementById(c.slice(1));b&&(b.scrollIntoView({behavior:"smooth"}),window.history.pushState(null,"",c))}}},children:[h&&(0,d.jsx)("div",{className:"flex items-center justify-center h-screen",children:(0,d.jsxs)("div",{className:"text-center",children:[(0,d.jsx)("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-primary mx-auto"}),(0,d.jsx)("p",{className:"mt-4 text-muted-foreground",children:"Loading documentation..."})]})}),j&&(0,d.jsxs)("div",{className:"flex items-center gap-3 p-4 bg-destructive/10 border border-destructive/20 rounded-lg text-destructive",children:[(0,d.jsx)(aS.A,{className:"h-5 w-5 flex-shrink-0"}),(0,d.jsxs)("div",{children:[(0,d.jsx)("p",{className:"font-semibold",children:"Error loading document"}),(0,d.jsx)("p",{className:"text-sm",children:j})]})]}),!h&&!j&&c&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{className:"mb-6 pb-4 border-b",children:(0,d.jsxs)("div",{className:"flex items-center gap-3 mb-2",children:[(0,d.jsx)(b.icon,{className:"h-8 w-8 text-primary"}),(0,d.jsx)("h1",{className:"text-3xl font-bold",children:b.title})]})}),(0,d.jsx)(be.T,{content:c})]})]})}),s&&(0,d.jsx)("div",{className:"hidden lg:block h-full overflow-y-auto border-l border-border bg-muted/30",children:(0,d.jsx)("div",{className:"p-6 sticky top-0",children:(0,d.jsx)(bf,{items:q,activeId:l,visibleIds:n,onItemClick:r})})})]})})}function bi(){return(0,d.jsx)(e.Suspense,{fallback:(0,d.jsx)("div",{className:"flex items-center justify-center h-full",children:"Loading documentation..."}),children:(0,d.jsx)(bh,{})})}var bj=c(74097),bk=c(52998),bl=c(87251),bm=c(3991),bn=c.n(bm),bo=c(30758);async function bp(){await h.vfs.init();let a=await h.vfs.listProjects(),b=await m.listCustomTemplates(),c=await aA.skillsService.getAllSkills(),d=null;try{let a=await fetch("/api/docs/WHATS_NEW.md");if(a.ok){let b=await a.text(),c=b.match(/^## v(\d+\.\d+\.\d+)\s*-\s*(.+)$/m);if(c){let a,e=c[1],f=c[2].trim(),g=b.indexOf(c[0]),h=b.substring(g+c[0].length),i=h.match(/^(?:## |---)/m),j=i?h.substring(0,i.index):h,k=/^[-*]\s+\*\*(.+?)\*\*\s*[-–]?\s*(.*)$/gm,l=[];for(;null!==(a=k.exec(j))&&l.length<4;){let b=a[1].trim(),c=a[2]?.trim();l.push(c?`${b} - ${c}`:b)}if(0===l.length){let b=/^[-*]\s+(.+)$/gm;for(;null!==(a=b.exec(j))&&l.length<4;){let b=a[1].trim();b.match(/^\[.*\]\(.*\)$/)||l.push(b.replace(/\*\*/g,""))}}d={version:e,title:f,highlights:l}}}}catch{}return{content:{projects:a.length,templates:b.length,skills:c.length},whatsNew:d,recentProjects:a.sort((a,b)=>new Date(b.updatedAt).getTime()-new Date(a.updatedAt).getTime()).slice(0,3).map(a=>({id:a.id,name:a.name,description:a.description||null,updatedAt:a.updatedAt instanceof Date?a.updatedAt.toISOString():a.updatedAt}))}}function bq(a){return a>=1e6?(a/1e6).toFixed(1)+"M":a>=1e3?(a/1e3).toFixed(1)+"K":a.toString()}function br(a){let b=new Date(a),c=new Date().getTime()-b.getTime(),d=Math.floor(c/6e4),e=Math.floor(c/36e5),f=Math.floor(c/864e5);return d<1?"just now":d<60?`${d}m ago`:e<24?`${e}h ago`:f<7?`${f}d ago`:b.toLocaleDateString()}function bs({onStartTour:a,onNavigate:b}){let c=a=>{b&&(a.preventDefault(),b("projects"))};return(0,d.jsx)("div",{className:"bg-card rounded-xl border border-zinc-800 p-4 mb-6",children:(0,d.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,d.jsx)(n.$,{variant:"default",size:"sm",asChild:!0,className:"gap-1.5",children:(0,d.jsxs)(bn(),{href:"#",onClick:c,children:[(0,d.jsx)(Z.A,{className:"w-4 h-4"}),"New Project"]})}),(0,d.jsx)(n.$,{variant:"outline",size:"sm",asChild:!0,className:"gap-1.5",children:(0,d.jsxs)(bn(),{href:"#",onClick:c,children:[(0,d.jsx)(w.A,{className:"w-4 h-4"}),"Projects"]})}),!1,(0,d.jsxs)(n.$,{variant:"outline",size:"sm",onClick:a,className:"gap-1.5",children:[(0,d.jsx)(aE.A,{className:"w-4 h-4"}),"Guided Tour"]}),(0,d.jsx)(n.$,{variant:"outline",size:"sm",asChild:!0,className:"gap-1.5",children:(0,d.jsxs)("a",{href:"https://discord.gg/mAJ8Ss4u",target:"_blank",rel:"noopener noreferrer",children:[(0,d.jsx)(bl.E,{className:"w-4 h-4"}),"Discord"]})}),(0,d.jsx)(n.$,{variant:"outline",size:"sm",asChild:!0,className:"gap-1.5",children:(0,d.jsxs)(bn(),{href:"#",onClick:a=>{b&&(a.preventDefault(),b("docs"))},children:[(0,d.jsx)(bj.A,{className:"w-4 h-4"}),"Docs"]})})]})})}function bt({whatsNew:a,onNavigate:b}){return a?(0,d.jsxs)("div",{className:"bg-zinc-900/30 rounded-xl border border-zinc-800 p-4 flex flex-col",children:[(0,d.jsxs)("div",{className:"flex items-start justify-between gap-4 mb-3",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(bk.A,{className:"w-4 h-4 text-orange-500"}),(0,d.jsxs)("h3",{className:"text-sm font-medium text-zinc-200",children:["What's New in v",a.version]})]}),(0,d.jsxs)(bn(),{href:"#",onClick:a=>{b&&(a.preventDefault(),window.history.pushState({},"","/?doc=whats-new"),b("docs"))},className:"text-xs text-orange-500 hover:text-orange-400 flex items-center gap-1",children:["Read all",(0,d.jsx)(au.A,{className:"w-3 h-3"})]})]}),(0,d.jsx)("p",{className:"text-sm font-medium text-zinc-200 mb-2",children:a.title}),a.highlights&&a.highlights.length>0&&(0,d.jsx)("ul",{className:"space-y-1 flex-1",children:a.highlights.map((a,b)=>(0,d.jsxs)("li",{className:"text-xs text-zinc-300 flex items-start gap-2",children:[(0,d.jsx)("span",{className:"text-orange-500/70 mt-0.5",children:"•"}),(0,d.jsx)("span",{children:a})]},b))})]}):null}function bu({data:a,loading:b,onRefresh:c}){let e=[{label:"Version",value:`v${bo.rE}`},{label:"Projects",value:bq(a.content.projects)},{label:"Templates",value:bq(a.content.templates)},{label:"Skills",value:bq(a.content.skills)}],f=Math.ceil(e.length/2),g=e.slice(0,f),h=e.slice(f);return(0,d.jsxs)("div",{className:"bg-zinc-900/30 rounded-xl border border-zinc-800 p-4 flex flex-col",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,d.jsx)("h3",{className:"text-sm font-medium text-zinc-300",children:"Content Overview"}),(0,d.jsx)(n.$,{variant:"ghost",size:"sm",onClick:c,disabled:b,className:"h-7 px-2",children:(0,d.jsx)(aV.A,{className:`w-3.5 h-3.5 ${b?"animate-spin":""}`})})]}),(0,d.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-x-6 gap-y-1.5 flex-1 content-start",children:[(0,d.jsx)("div",{className:"space-y-1.5",children:g.map(a=>(0,d.jsxs)("div",{className:"flex items-center justify-between",children:[(0,d.jsx)("span",{className:"text-xs text-zinc-500",children:a.label}),(0,d.jsx)("span",{className:"text-sm font-medium text-zinc-200",children:a.value})]},a.label))}),(0,d.jsx)("div",{className:"space-y-1.5",children:h.map(a=>(0,d.jsxs)("div",{className:"flex items-center justify-between",children:[(0,d.jsx)("span",{className:"text-xs text-zinc-500",children:a.label}),(0,d.jsx)("span",{className:"text-sm font-medium text-zinc-200",children:a.value})]},a.label))})]})]})}function bv({projects:a,onNavigate:b,onProjectSelect:c}){return(0,d.jsxs)("div",{className:"bg-zinc-900/30 rounded-xl border border-zinc-800 p-4 flex flex-col",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(w.A,{className:"w-4 h-4 text-orange-500"}),(0,d.jsx)("h3",{className:"text-sm font-medium text-zinc-300",children:"Recent Projects"})]}),(0,d.jsxs)(bn(),{href:"#",onClick:a=>{b&&(a.preventDefault(),b("projects"))},className:"text-xs text-zinc-500 hover:text-zinc-300 flex items-center gap-0.5",children:["View all",(0,d.jsx)(aG.A,{className:"w-3 h-3"})]})]}),0===a.length?(0,d.jsx)("p",{className:"text-xs text-zinc-500 text-center py-2 flex-1 flex items-center justify-center",children:"No projects yet"}):(0,d.jsx)("div",{className:"space-y-1.5 flex-1",children:a.slice(0,3).map(a=>(0,d.jsxs)(bn(),{href:"#",onClick:b=>{var d;return d=a.id,void(c&&(b.preventDefault(),c(d)))},className:"flex items-center justify-between text-xs py-1.5 px-2 bg-zinc-900/50 rounded hover:bg-zinc-800/50 transition-colors",children:[(0,d.jsx)("span",{className:"text-zinc-300 truncate flex-1 mr-2",children:a.name}),(0,d.jsxs)("span",{className:"text-zinc-500 shrink-0 flex items-center gap-1",children:[(0,d.jsx)(a5.A,{className:"w-3 h-3"}),br(a.updatedAt)]})]},a.id))})]})}function bw({onNavigate:a,onProjectSelect:b,onStartTour:c}){let f=(0,g.useRouter)(),[h,i]=(0,e.useState)(null),[j,k]=(0,e.useState)(null),[l,m]=(0,e.useState)(!0),[o,p]=(0,e.useState)(null),[q,r]=(0,e.useState)(null),s=(0,e.useCallback)(async()=>{m(!0),p(null);try{{let a=await bp();k(a)}r(new Date)}catch(a){p(a instanceof Error?a.message:"Unknown error")}finally{m(!1)}},[]),t=(0,e.useCallback)(()=>{c?c():f.push("/admin/projects?tour=start")},[f,c]),u=(0,e.useCallback)(a=>{b&&b(a)},[b]),v=!!j;if(l&&!v)return(0,d.jsx)("div",{className:"h-full flex items-center justify-center",children:(0,d.jsxs)("div",{className:"text-center",children:[(0,d.jsx)("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-orange-500 mx-auto"}),(0,d.jsx)("p",{className:"mt-3 text-sm text-zinc-400",children:"Loading dashboard..."})]})});if(o&&!v)return(0,d.jsx)("div",{className:"h-full flex items-center justify-center",children:(0,d.jsxs)("div",{className:"text-center",children:[(0,d.jsx)(a$.A,{className:"w-8 h-8 text-red-500 mx-auto mb-2"}),(0,d.jsx)("p",{className:"text-zinc-400 text-sm",children:o}),(0,d.jsx)(n.$,{variant:"outline",size:"sm",onClick:s,className:"mt-4",children:"Retry"})]})});if(!v)return null;if(j){let b=null!==j.whatsNew;return(0,d.jsxs)("div",{className:"h-full overflow-y-auto p-6",children:[(0,d.jsx)("div",{className:"flex items-center justify-between mb-4",children:(0,d.jsxs)("div",{children:[(0,d.jsx)("h1",{className:"text-xl font-semibold text-zinc-100",children:"Dashboard"}),q&&(0,d.jsxs)("p",{className:"text-xs text-zinc-500 mt-0.5",children:["Updated ",q.toLocaleTimeString()]})]})}),(0,d.jsx)(bs,{onStartTour:t,onNavigate:a}),(0,d.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4 mb-4 [&>*]:min-h-[160px]",children:[(0,d.jsx)(bu,{data:j,loading:l,onRefresh:s}),b&&(0,d.jsx)(bt,{whatsNew:j.whatsNew,onNavigate:a})]}),(0,d.jsx)("div",{className:"mb-4",children:(0,d.jsx)(bv,{projects:j.recentProjects,onNavigate:a,onProjectSelect:u})})]})}return null}function bx({view:a,onProjectSelect:b,settingsTab:e,onNavigate:g,onStartTour:h}){let i=async a=>{try{let{vfs:d}=await Promise.resolve().then(c.bind(c,11482));await d.init();let e=await d.getProject(a);e?b(e):f.v.warn("[ContentArea] Project not found:",a)}catch(a){f.v.error("[ContentArea] Failed to load project:",a)}};switch(a){case"dashboard":return(0,d.jsx)(bw,{onNavigate:g,onProjectSelect:i,onStartTour:h});case"projects":default:return(0,d.jsx)(aq,{onProjectSelect:b});case"deployments":return(0,d.jsx)(a9,{onProjectSelect:b});case"templates":return(0,d.jsx)(az,{onProjectSelect:a=>i(a.id),onNavigate:g});case"skills":return(0,d.jsx)(aO,{});case"docs":return(0,d.jsx)(bi,{});case"settings":return(0,d.jsx)(bd,{tab:e})}}},85986:(a,b,c)=>{c.d(b,{O:()=>D});var d=c(21124),e=c(38301),f=c(47247),g=c(19217),h=c(7629),i=c(53199),j=c(17585),k=c(42830),l=c(45523),m=c(28074),n=c(85351),o=c(32717),p=c(16945),q=c(65828),r=c(49269),s=c(43700),t=c(71117),u=c(86275),v=c(45914),w=c(39193),x=c.n(w),y=c(15514);class z{static{this.BACKUP_VERSION="1.9.0"}static{this.FILE_EXTENSION=".osws"}static{this.MAX_IMPORT_SIZE=0x6400000}static async exportAllData(){try{y.v.info("Starting data export...");let a={version:this.BACKUP_VERSION,exportDate:new Date().toISOString(),databases:{vfs:await this.exportUnifiedData(),conversations:[],checkpoints:[]},metadata:{projectCount:0,totalSize:0,exportedFrom:"oswstudio"}};a.metadata.projectCount=a.databases.vfs.projects.length,a.metadata.totalSize=this.calculateDataSize(a);let b=new(x());b.file("backup.json",JSON.stringify(a,null,2));let c=await b.generateAsync({type:"blob",compression:"DEFLATE",compressionOptions:{level:6}}),d=`oswstudio-backup-${new Date().toISOString().split("T")[0]}${this.FILE_EXTENSION}`;this.downloadBlob(c,d),y.v.info(`Export completed: ${a.metadata.projectCount} projects, ${this.formatBytes(a.metadata.totalSize)}`)}catch(a){throw y.v.error("Export failed:",a),Error(`Export failed: ${a instanceof Error?a.message:"Unknown error"}`)}}static async importAllData(a,b={mode:"merge"}){try{if(!a.name.endsWith(this.FILE_EXTENSION))throw Error(`Invalid file type. Expected ${this.FILE_EXTENSION} file.`);if(a.size>this.MAX_IMPORT_SIZE)throw Error(`File too large. Maximum size is ${this.formatBytes(this.MAX_IMPORT_SIZE)}.`);b.onProgress?.(10,"Reading backup file...");let d=new(x()),e=(await d.loadAsync(a)).file("backup.json");if(!e)throw Error("Invalid backup file format.");let f=await e.async("string"),g=JSON.parse(f);if(this.validateBackupData(g),b.onProgress?.(30,"Validating backup data..."),"replace"===b.mode){b.onProgress?.(40,"Clearing existing data...");try{let{vfs:a}=await Promise.resolve().then(c.bind(c,11482));a.db?.db&&(y.v.info("[Backup] Closing VFS database before deletion"),a.db.db.close())}catch(a){y.v.warn("[Backup] Could not close VFS database",a)}await this.clearAllData(),await new Promise(a=>setTimeout(a,500))}b.onProgress?.(50,"Importing all data...");let h={...g.databases.vfs,conversations:g.databases.vfs.conversations||g.databases.conversations||[],checkpoints:g.databases.vfs.checkpoints||g.databases.checkpoints||[]};await this.importUnifiedData(h),b.onProgress?.(100,"Import completed successfully!"),y.v.info(`Import completed: ${g.metadata.projectCount} projects restored`)}catch(a){throw y.v.error("Import failed:",a),Error(`Import failed: ${a instanceof Error?a.message:"Unknown error"}`)}}static async validateBackupFile(a){try{if(!a.name.endsWith(this.FILE_EXTENSION))return{valid:!1,reason:"Invalid file extension"};if(a.size>this.MAX_IMPORT_SIZE)return{valid:!1,reason:"File too large"};let b=new(x()),c=(await b.loadAsync(a)).file("backup.json");if(!c)return{valid:!1,reason:"Invalid backup file format"};let d=await c.async("string"),e=JSON.parse(d);return this.validateBackupData(e),{valid:!0,metadata:e.metadata}}catch(a){return{valid:!1,reason:a instanceof Error?a.message:"Unknown error"}}}static async exportUnifiedData(){let a={projects:[],files:[],fileTree:[],conversations:[],checkpoints:[]};return new Promise((b,c)=>{let d=indexedDB.open("osw-studio-db",1);d.onsuccess=async()=>{try{let c=d.result,e=c.transaction(["projects"],"readonly"),f=e.objectStore("projects").getAll();f.onsuccess=()=>{a.projects=f.result||[]};let g=c.transaction(["files"],"readonly"),h=g.objectStore("files").getAll();h.onsuccess=()=>{a.files=h.result||[]};let i=c.transaction(["fileTree"],"readonly"),j=i.objectStore("fileTree").getAll();j.onsuccess=()=>{a.fileTree=j.result||[]};let k=c.transaction(["conversations"],"readonly"),l=k.objectStore("conversations").getAll();l.onsuccess=()=>{a.conversations=l.result||[]};let m=c.transaction(["checkpoints"],"readonly"),n=m.objectStore("checkpoints").getAll();n.onsuccess=()=>{a.checkpoints=n.result||[]},await Promise.all([new Promise(a=>e.oncomplete=()=>a(void 0)),new Promise(a=>g.oncomplete=()=>a(void 0)),new Promise(a=>i.oncomplete=()=>a(void 0)),new Promise(a=>k.oncomplete=()=>a(void 0)),new Promise(a=>m.oncomplete=()=>a(void 0))]),b(a)}catch(a){c(a)}},d.onerror=()=>c(d.error)})}static async importLegacyConversations(){return new Promise(a=>{let b=indexedDB.open("DeepStudioConversations",1);b.onsuccess=()=>{let c=b.result.transaction(["conversations"],"readonly").objectStore("conversations").getAll();c.onsuccess=()=>{a(c.result||[])},c.onerror=()=>a([])},b.onerror=()=>a([])})}static async importLegacyCheckpoints(){return new Promise(a=>{let b=indexedDB.open("DeepStudioCheckpoints",1);b.onsuccess=()=>{let c=b.result.transaction(["checkpoints"],"readonly").objectStore("checkpoints").getAll();c.onsuccess=()=>{a(c.result||[])},c.onerror=()=>a([])},b.onerror=()=>a([])})}static async importUnifiedData(a){return new Promise((b,c)=>{y.v.info("[Import] Opening database for import...");let d=setTimeout(()=>{y.v.error("[Import] Database open timeout after 10s"),c(Error("Database open timeout"))},1e4),e=indexedDB.open("osw-studio-db",1);e.onerror=()=>{clearTimeout(d),y.v.error("[Import] Failed to open database for import",e.error),c(e.error)},e.onblocked=()=>{y.v.warn("[Import] Database open is blocked - waiting for connections to close")},e.onupgradeneeded=a=>{y.v.info("[Import] Creating database schema...");let b=a.target.result;if(!b.objectStoreNames.contains("projects")){let a=b.createObjectStore("projects",{keyPath:"id"});a.createIndex("name","name",{unique:!1}),a.createIndex("createdAt","createdAt",{unique:!1})}if(!b.objectStoreNames.contains("files")){let a=b.createObjectStore("files",{keyPath:"id"});a.createIndex("projectId","projectId",{unique:!1}),a.createIndex("path",["projectId","path"],{unique:!0}),a.createIndex("type","type",{unique:!1})}if(!b.objectStoreNames.contains("fileTree")){let a=b.createObjectStore("fileTree",{keyPath:"id"});a.createIndex("projectId","projectId",{unique:!1}),a.createIndex("path",["projectId","path"],{unique:!0}),a.createIndex("parentPath",["projectId","parentPath"],{unique:!1})}if(!b.objectStoreNames.contains("conversations")){let a=b.createObjectStore("conversations",{keyPath:"id"});a.createIndex("projectId","projectId",{unique:!1}),a.createIndex("lastUpdated","lastUpdated",{unique:!1})}if(!b.objectStoreNames.contains("checkpoints")){let a=b.createObjectStore("checkpoints",{keyPath:"id"});a.createIndex("projectId","projectId",{unique:!1}),a.createIndex("timestamp","timestamp",{unique:!1})}},e.onsuccess=async()=>{try{clearTimeout(d);let c=e.result;y.v.info("[Import] Database opened successfully"),y.v.info("[Import] Starting data import...",{projects:a.projects?.length||0,files:a.files?.length||0,fileTree:a.fileTree?.length||0,conversations:a.conversations?.length||0,checkpoints:a.checkpoints?.length||0});let f=c.transaction(["projects"],"readwrite").objectStore("projects");for(let b of a.projects||[])await new Promise((a,c)=>{let d=f.put(b);d.onsuccess=()=>a(),d.onerror=()=>{y.v.error("[Import] Failed to import project:",b.id,d.error),c(d.error)}});y.v.info("[Import] Projects imported");let g=c.transaction(["files"],"readwrite").objectStore("files");for(let b of a.files||[])await new Promise((a,c)=>{let d=g.put(b);d.onsuccess=()=>a(),d.onerror=()=>{y.v.error("[Import] Failed to import file:",b.path,d.error),c(d.error)}});y.v.info("[Import] Files imported");let h=c.transaction(["fileTree"],"readwrite").objectStore("fileTree");for(let b of a.fileTree||[])await new Promise((a,c)=>{let d=h.put(b);d.onsuccess=()=>a(),d.onerror=()=>{y.v.error("[Import] Failed to import tree node:",b.path,d.error),c(d.error)}});y.v.info("[Import] File tree imported");let i=a.conversations||[];if(i.length>0){y.v.info("[Import] Importing conversations:",i.length);let a=c.transaction(["conversations"],"readwrite").objectStore("conversations");for(let b of i)await new Promise((c,d)=>{let e=a.put(b);e.onsuccess=()=>c(),e.onerror=()=>{y.v.error("[Import] Failed to import conversation:",b.id,e.error),d(e.error)}});y.v.info("[Import] Conversations imported")}let j=a.checkpoints||[];if(j.length>0){y.v.info("[Import] Importing checkpoints:",j.length);let a=c.transaction(["checkpoints"],"readwrite").objectStore("checkpoints");for(let b of j)await new Promise((c,d)=>{let e=a.put(b);e.onsuccess=()=>c(),e.onerror=()=>{y.v.error("[Import] Failed to import checkpoint:",b.id,e.error),d(e.error)}});y.v.info("[Import] Checkpoints imported")}y.v.info("[Import] All data imported successfully"),b()}catch(a){c(a)}},e.onerror=()=>c(e.error)})}static async clearAllData(){for(let a of["osw-studio-db","osw-studio-vfs","OSWStudioConversations","OSWStudioCheckpoints","deepstudio-vfs","DeepStudioConversations","DeepStudioCheckpoints"])await new Promise(b=>{let c=setTimeout(()=>{y.v.warn(`[Backup] Database deletion timeout for: ${a}`),b()},2e3),d=indexedDB.deleteDatabase(a);d.onsuccess=()=>{clearTimeout(c),y.v.info(`[Backup] Deleted database: ${a}`),b()},d.onerror=()=>{clearTimeout(c),y.v.warn(`[Backup] Error deleting database: ${a}`,d.error),b()},d.onblocked=()=>{y.v.warn(`[Backup] Database deletion blocked: ${a}`)}});y.v.info("[Backup] All databases cleared")}static validateBackupData(a){if(!a.version||!a.exportDate||!a.databases||!a.metadata)throw Error("Invalid backup file structure");if(!a.databases.vfs||!a.databases.conversations||!a.databases.checkpoints)throw Error("Incomplete backup data");let b=a.version.split(".").map(Number),c=this.BACKUP_VERSION.split(".").map(Number);if(b[0]>c[0])throw Error(`Backup version ${a.version} is not compatible with current version ${this.BACKUP_VERSION}`)}static calculateDataSize(a){return JSON.stringify(a).length}static formatBytes(a){if(0===a)return"0 Bytes";let b=Math.floor(Math.log(a)/Math.log(1024));return parseFloat((a/Math.pow(1024,b)).toFixed(2))+" "+["Bytes","KB","MB","GB"][b]}static downloadBlob(a,b){let c=URL.createObjectURL(a),d=document.createElement("a");d.href=c,d.download=b,document.body.appendChild(d),d.click(),document.body.removeChild(d),URL.revokeObjectURL(c)}}var A=c(93554),B=c(62949),C=c(46435);function D({onClose:a}){let[b,c]=(0,e.useState)({}),[w,x]=(0,e.useState)({}),{theme:y,setTheme:D}=(0,l.D)(),[E,F]=(0,e.useState)(!1),[G,H]=(0,e.useState)(!1),[I,J]=(0,e.useState)(!1),[K,L]=(0,e.useState)(!1),[M,N]=(0,e.useState)(0),[O,P]=(0,e.useState)(""),[Q,R]=(0,e.useState)(()=>!1!==f.s.getSettings().telemetryOptIn),[S,T]=(0,e.useState)({application:!0,costTracking:!0,dataManagement:!0}),U=async()=>{try{J(!0),await z.exportAllData(),k.oR.success("Data exported successfully!")}catch(a){k.oR.error(a instanceof Error?a.message:"Export failed")}finally{J(!1)}},V=a=>{T(b=>({...b,[a]:!b[a]}))};return(0,d.jsxs)("div",{className:"flex-1 min-h-0 flex flex-col overflow-hidden",children:[(0,d.jsxs)("div",{className:"shrink-0 pb-3 mb-1 border-b",children:[(0,d.jsx)("h3",{className:"font-semibold text-base tracking-tight",children:"Settings"}),(0,d.jsx)("p",{className:"text-muted-foreground text-xs mt-1",children:"Application preferences and data management"})]}),(0,d.jsx)("div",{className:"flex-1 min-h-0 overflow-y-auto",children:(0,d.jsxs)("div",{className:"space-y-3 pb-4",children:[(0,d.jsxs)(B.Nt,{open:S.application,onOpenChange:()=>V("application"),children:[(0,d.jsxs)(B.R6,{className:"flex items-center justify-between w-full p-3 rounded-lg hover:bg-muted/50 transition-colors",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(m.A,{className:"h-4 w-4"}),(0,d.jsx)("h4",{className:"font-medium text-sm",children:"Application Settings"})]}),(0,d.jsx)(n.A,{className:`h-4 w-4 transition-transform duration-200 ${S.application?"rotate-180":""}`})]}),(0,d.jsxs)(B.Ke,{className:"px-3 pt-2 pb-3",children:[(0,d.jsx)("p",{className:"text-muted-foreground text-xs mb-4",children:"Configure your preferences and display options"}),(0,d.jsxs)("div",{className:"space-y-4",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)(i.J,{htmlFor:"theme",children:"Theme"}),(0,d.jsxs)(C.OY,{type:"single",value:E&&y||"dark",onValueChange:a=>{a&&(D(a),f.s.setSetting("theme",a),c(b=>({...b,theme:a})))},className:"w-full mt-2",children:[(0,d.jsx)(C.dz,{value:"dark",className:"flex-1",children:"Dark"}),(0,d.jsx)(C.dz,{value:"light",className:"flex-1",children:"Light"}),(0,d.jsx)(C.dz,{value:"system",className:"flex-1",children:"System"})]})]}),(0,d.jsxs)("div",{className:"flex items-center justify-between",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)(i.J,{htmlFor:"telemetry",children:"Anonymous Usage Analytics"}),(0,d.jsx)("p",{className:"text-xs text-muted-foreground mt-0.5",children:"Help improve OSW Studio by sharing anonymous usage data"})]}),(0,d.jsx)(j.d,{id:"telemetry",checked:Q,onCheckedChange:a=>{R(a),(0,A._e)(a)}})]})]})]})]}),(0,d.jsxs)(B.Nt,{open:S.costTracking,onOpenChange:()=>V("costTracking"),children:[(0,d.jsxs)(B.R6,{className:"flex items-center justify-between w-full p-3 rounded-lg hover:bg-muted/50 transition-colors",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(o.A,{className:"h-4 w-4"}),(0,d.jsx)("h4",{className:"font-medium text-sm",children:"Cost Tracking"})]}),(0,d.jsx)(n.A,{className:`h-4 w-4 transition-transform duration-200 ${S.costTracking?"rotate-180":""}`})]}),(0,d.jsx)(B.Ke,{className:"px-3 pt-2 pb-3",children:(0,d.jsxs)("div",{className:"space-y-4",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)(i.J,{htmlFor:"show-costs",children:"Display Costs"}),(0,d.jsx)("p",{className:"text-xs text-muted-foreground mt-0.5",children:"Show cost information in messages"})]}),(0,d.jsx)(j.d,{id:"show-costs",checked:!1!==w.showCosts,onCheckedChange:a=>{let b={...w,showCosts:a};f.s.setCostSettings(b),x(b)}})]}),(0,d.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)(i.J,{htmlFor:"daily-limit",className:"text-xs",children:"Daily Limit (USD)"}),(0,d.jsx)(h.p,{id:"daily-limit",type:"number",min:"0",step:"0.01",placeholder:"No limit",className:"mt-1.5",value:w.dailyLimit||"",onChange:a=>{let b=a.target.value?parseFloat(a.target.value):void 0,c={...w,dailyLimit:b};f.s.setCostSettings(c),x(c)}})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)(i.J,{htmlFor:"project-limit",className:"text-xs",children:"Project Limit (USD)"}),(0,d.jsx)(h.p,{id:"project-limit",type:"number",min:"0",step:"0.01",placeholder:"No limit",className:"mt-1.5",value:w.projectLimit||"",onChange:a=>{let b=a.target.value?parseFloat(a.target.value):void 0,c={...w,projectLimit:b};f.s.setCostSettings(c),x(c)}})]})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)(i.J,{htmlFor:"warning-threshold",className:"text-xs",children:"Warning Threshold"}),(0,d.jsxs)("div",{className:"flex items-center gap-3 mt-1.5",children:[(0,d.jsx)(h.p,{id:"warning-threshold",type:"number",min:"50",max:"100",step:"5",className:"flex-1",value:w.warningThreshold||80,onChange:a=>{let b=parseInt(a.target.value),c={...w,warningThreshold:b};f.s.setCostSettings(c),x(c)}}),(0,d.jsxs)("span",{className:"text-xs text-muted-foreground flex items-center gap-1 whitespace-nowrap font-mono",children:[(0,d.jsx)(p.A,{className:"h-3 w-3"}),"Warn at ",w.warningThreshold||80,"%"]})]})]}),(0,d.jsxs)("div",{className:"flex items-center justify-between bg-muted/30 border rounded-lg p-3",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("div",{className:"text-xs text-muted-foreground font-medium",children:"Lifetime Total"}),(0,d.jsx)("div",{className:"text-lg font-bold font-mono tracking-tight mt-0.5",children:u.U.formatCost(f.s.getLifetimeCosts().total)})]}),(0,d.jsx)(g.$,{variant:"outline",size:"sm",onClick:()=>{confirm("Reset lifetime cost tracking? This cannot be undone.")&&(f.s.resetLifetimeCosts(),k.oR.success("Lifetime costs reset"))},children:"Reset Stats"})]})]})})]}),(0,d.jsxs)(B.Nt,{open:S.dataManagement,onOpenChange:()=>V("dataManagement"),children:[(0,d.jsxs)(B.R6,{className:"flex items-center justify-between w-full p-3 rounded-lg hover:bg-muted/50 transition-colors",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(q.A,{className:"h-4 w-4"}),(0,d.jsx)("h4",{className:"font-medium text-sm",children:"Data Management"})]}),(0,d.jsx)(n.A,{className:`h-4 w-4 transition-transform duration-200 ${S.dataManagement?"rotate-180":""}`})]}),(0,d.jsxs)(B.Ke,{className:"px-3 pt-2 pb-3",children:[(0,d.jsx)("p",{className:"text-xs text-muted-foreground mb-4",children:"Backup and restore your projects, conversations, and settings."}),(0,d.jsxs)("div",{className:"space-y-2.5",children:[(0,d.jsxs)("div",{className:"flex items-center gap-3 p-3 rounded-lg border",children:[(0,d.jsx)(r.A,{className:"h-4 w-4 text-muted-foreground shrink-0"}),(0,d.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,d.jsx)("div",{className:"text-sm font-medium",children:"Export All Data"}),(0,d.jsx)("div",{className:"text-xs text-muted-foreground",children:"Download a backup of all projects and data"})]}),(0,d.jsx)(g.$,{variant:"outline",size:"sm",onClick:U,disabled:I,children:I?"Exporting...":"Export"})]}),(0,d.jsxs)("div",{className:"flex items-center gap-3 p-3 rounded-lg border",children:[(0,d.jsx)(s.A,{className:"h-4 w-4 text-muted-foreground shrink-0"}),(0,d.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,d.jsx)("div",{className:"text-sm font-medium",children:"Import Data"}),(0,d.jsx)("div",{className:"text-xs text-muted-foreground",children:"Restore from a .osws backup file"})]}),(0,d.jsx)(g.$,{variant:"outline",size:"sm",onClick:()=>{let a=document.createElement("input");a.type="file",a.accept=".osws",a.onchange=async a=>{let b=a.target.files?.[0];if(b)try{L(!0),N(0),P("Validating file...");let a=await z.validateBackupFile(b);if(!a.valid)return void k.oR.error(`Invalid backup file: ${a.reason}`);let c=confirm(`Import ${a.metadata?.projectCount||0} projects? + +Choose OK to REPLACE all current data, or Cancel to MERGE with existing data.`);await z.importAllData(b,{mode:c?"replace":"merge",onProgress:(a,b)=>{N(a),P(b)}}),k.oR.success("Data imported successfully!"),setTimeout(()=>window.location.reload(),1e3)}catch(a){k.oR.error(a instanceof Error?a.message:"Import failed")}finally{L(!1),N(0),P("")}},a.click()},disabled:K,children:K?"Importing...":"Import"})]}),K&&(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsxs)("div",{className:"flex justify-between text-xs",children:[(0,d.jsx)("span",{children:O}),(0,d.jsxs)("span",{children:[M,"%"]})]}),(0,d.jsx)("div",{className:"w-full bg-muted rounded-full h-2",children:(0,d.jsx)("div",{className:"bg-primary h-2 rounded-full transition-all duration-300",style:{width:`${M}%`}})})]})]})]})]})]})}),(0,d.jsxs)("div",{className:"shrink-0 flex items-center justify-between pt-4 px-3 border-t",children:[(0,d.jsx)(g.$,{variant:"ghost",size:"sm",className:"text-destructive hover:text-destructive",onClick:()=>{confirm("Are you sure you want to clear all settings?")&&(f.s.clearSettings(),c({}),k.oR.success("Settings cleared"))},children:"Clear All Settings"}),(0,d.jsxs)(g.$,{variant:"ghost",size:"sm",onClick:()=>H(!0),children:[(0,d.jsx)(t.A,{className:"mr-1.5 h-3.5 w-3.5"}),"About OSW Studio"]})]}),(0,d.jsx)(v.V,{open:G,onOpenChange:H})]})}},87251:(a,b,c)=>{c.d(b,{E:()=>e});var d=c(21124);function e({className:a}){return(0,d.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 64 48",fill:"currentColor",className:a,children:(0,d.jsx)("path",{d:"M40.575 0C39.9562 1.09866 39.4006 2.2352 38.8954 3.397C34.0967 2.67719 29.2096 2.67719 24.3982 3.397C23.9057 2.2352 23.3374 1.09866 22.7186 0C18.2104 0.770324 13.8157 2.12155 9.64839 4.02841C1.38951 16.2652 -0.845688 28.1863 0.265599 39.9432C5.10222 43.517 10.5197 46.2447 16.2909 47.9874C17.5916 46.2447 18.7407 44.3883 19.7257 42.4562C17.8568 41.7616 16.0509 40.8903 14.3208 39.88C14.7755 39.5517 15.2175 39.2107 15.6468 38.8824C25.7873 43.6559 37.5316 43.6559 47.6847 38.8824C48.1141 39.236 48.5561 39.577 49.0107 39.88C47.2806 40.9029 45.4748 41.7616 43.5931 42.4688C44.5781 44.4009 45.7273 46.2573 47.028 48C52.7991 46.2573 58.2167 43.5422 63.0533 39.9684C64.3666 26.3299 60.8055 14.5099 53.6452 4.04104C49.4905 2.13418 45.0959 0.782952 40.5876 0.0252565L40.575 0ZM21.1401 32.7072C18.0209 32.7072 15.4321 29.8785 15.4321 26.3804C15.4321 22.8824 17.9199 20.041 21.1275 20.041C24.3351 20.041 26.886 22.895 26.8354 26.3804C26.7849 29.8658 24.3224 32.7072 21.1401 32.7072ZM42.1788 32.7072C39.047 32.7072 36.4834 29.8785 36.4834 26.3804C36.4834 22.8824 38.9712 20.041 42.1788 20.041C45.3864 20.041 47.9246 22.895 47.8741 26.3804C47.8236 29.8658 45.3611 32.7072 42.1788 32.7072Z"})})}},90528:(a,b,c)=>{c.d(b,{ZQ:()=>e,uD:()=>g,Nr:()=>j,I1:()=>f,vY:()=>d,c3:()=>i});let d={name:"Example Studios",description:"Creative agency portfolio showcasing modern web development capabilities",directories:["/styles","/scripts","/portfolio","/assets","/assets/images","/templates"],files:[{path:"/index.html",content:` + + + + + Example Studios - Creative Agency + + + + + {{> navigation}} + +
+
+
+

Crafting Digital Experiences

+

We create stunning websites and digital solutions that captivate audiences and drive results

+ +
+
+ +
+
+

What We Do

+

From concept to launch, we deliver exceptional digital experiences

+
+ +
+
+
Design
+

Web Design

+

Beautiful, user-centered designs that make lasting impressions

+ See Our Work +
+ +
+
Code
+

Development

+

Fast, responsive websites built with modern technologies

+ View Projects +
+ +
+
Mobile
+

Mobile Apps

+

Native and web applications that users love to use

+ Get Started +
+
+
+ + + +
+
+

Ready to Build Something Amazing?

+

Let's turn your ideas into reality. We'd love to hear about your project.

+ Start Your Project +
+
+ +
+ + {{> footer}} + + + +`},{path:"/portfolio.html",content:` + + + + + Portfolio - Example Studios + + + + + + + +
+
+
+

Our Portfolio

+

Explore our recent projects and see how we bring ideas to life

+
+
+ +
+
+
+

Our Work

+

Filter by category to explore our diverse portfolio of projects

+
+ +
+ + + + +
+ +
+ + +
+ Fitness Tracker App +
+

Fitness Tracker App

+

Cross-platform mobile app for health and wellness tracking

+
+ React Native + Firebase + Redux +
+
+
+ +
+ Green Earth Campaign +
+

Green Earth Campaign

+

Complete brand identity for environmental awareness initiative

+
+ Brand Design + Illustration + Print +
+
+
+ +
+ Web Application +
+

Web Application

+

Interactive web application with modern features

+
+ React + Node.js + PostgreSQL +
+
+
+ +
+ Recipe Sharing App +
+

Recipe Sharing App

+

Social platform for food enthusiasts to share and discover recipes

+
+ Flutter + AWS + ML Kit +
+
+
+ +
+ StartupLab Identity +
+

StartupLab Identity

+

Modern brand identity for tech incubator and coworking space

+
+ Logo Design + Web Design + Marketing +
+
+
+
+
+
+ +
+
+

Ready to Build Something Amazing?

+

Let's turn your ideas into reality. We'd love to hear about your project.

+ Start Your Project +
+
+
+ + {{> footer}} + + + + +`},{path:"/about.html",content:` + + + + + About - Example Studios + + + + + + +
+
+
+

About Example Studios

+

We're a passionate team of designers and developers crafting exceptional digital experiences that make a difference.

+
+
+ +
+ +
+
+

Our Story

+

From humble beginnings to digital excellence

+
+
+
+
🚀
+

Founded in 2020

+

Example Studios emerged from a simple belief: great design should be accessible to everyone. What started as a small team of passionate creators has grown into a full-service digital agency.

+
+ +
+
💡
+

Our Philosophy

+

We believe in the power of collaboration, the importance of user-centered design, and the magic that happens when creativity meets technology.

+
+
+
+ +
+
+

Our Mission

+

Crafting digital experiences that make a difference

+
+
+
🎯
+

Empowering Through Design

+

To empower businesses and individuals with stunning, functional digital solutions that not only look great but drive real results. We're not just building websites and applications; we're crafting digital experiences that connect, engage, and inspire.

+ Start Your Project +
+
+ +
+
+

Our Team

+
+
+
+ Sarah Johnson +

Sarah Johnson

+
Creative Director
+

With over 8 years in design, Sarah leads our creative vision and ensures every project tells a compelling story.

+
+ +
+ Mike Chen +

Mike Chen

+
Lead Developer
+

Mike transforms designs into responsive, performant web experiences using the latest technologies and best practices.

+
+ +
+ Emily Rodriguez +

Emily Rodriguez

+
UX Designer
+

Emily ensures every user interaction is intuitive and delightful, backed by research and user testing.

+
+
+
+ +
+
+

Our Values

+
+
+
+
Creativity
+

Creativity First

+

We believe every project deserves a unique, creative approach that stands out in the digital landscape.

+
+ +
+
Performance
+

Performance Driven

+

Beautiful designs mean nothing without flawless performance. We optimize for speed, accessibility, and user experience.

+
+ +
+
Partnership
+

Collaboration

+

The best results come from working closely with our clients as partners, not just service providers.

+
+ +
+
Innovation
+

Innovation

+

We stay ahead of industry trends and constantly explore new technologies to deliver cutting-edge solutions.

+
+
+
+ +
+
+

Ready to Build Something Amazing?

+

Let's turn your ideas into reality. We'd love to hear about your project.

+ Start Your Project +
+
+
+
+ + {{> footer}} + + + +`},{path:"/styles/main.css",content:`/* Main Stylesheet - Shared across all pages */ + +:root { + --primary: #ea580c; + --primary-dark: #c2410c; + --secondary: #0891b2; + --secondary-dark: #0e7490; + --accent: #f59e0b; + --neutral: #64748b; + --bg: linear-gradient(180deg, #ffffff 0%, #fdfdfd 100%); + --bg-secondary: linear-gradient(180deg, #f4f4f4 0%, #f8fafc 100%); + --text: #1e293b; + --text-light: #64748b; + --border: #e2e8f0; + --radius: 12px; + --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); + + /* Layout variables */ + --navbar-height: 65px; + --navbar-bg: rgba(255, 255, 255, 0.95); + --hero-gradient-blue: rgba(26, 54, 93, 0.9); + --hero-gradient-orange: rgba(255, 123, 0, 0.8); + + /* Responsive Typography Scale (Mobile-first) */ + --text-xs: 0.75rem; + --text-sm: 0.875rem; + --text-base: 1rem; + --text-lg: 1.125rem; + --text-xl: 1.25rem; + --text-2xl: 1.5rem; + --text-3xl: 1.875rem; + --text-4xl: 2.25rem; + --text-5xl: 3rem; + --text-6xl: 3.75rem; + + /* Semantic Typography Variables */ + --heading-h1: var(--text-4xl); + --heading-h2: var(--text-3xl); + --heading-h3: var(--text-xl); + --heading-h4: var(--text-lg); + --heading-h5: var(--text-base); + --text-subtitle: var(--text-lg); + --text-body: var(--text-base); + --text-small: var(--text-sm); + + /* Responsive Spacing Scale */ + --space-1: 0.25rem; + --space-2: 0.5rem; + --space-3: 0.75rem; + --space-4: 1rem; + --space-5: 1.25rem; + --space-6: 1.5rem; + --space-8: 2rem; + --space-10: 2.5rem; + --space-12: 3rem; + --space-16: 4rem; + --space-20: 5rem; + + /* Container and Grid Variables */ + --container-padding: var(--space-4); + --grid-gap: var(--space-6); + --card-padding: var(--space-6); + --section-spacing: var(--space-12); +} + +/* Tablet Breakpoint - 768px+ */ +@media (min-width: 768px) { + :root { + /* Larger typography for tablet */ + --text-3xl: 2.25rem; + --text-4xl: 2.75rem; + --text-5xl: 3.5rem; + --text-6xl: 4.5rem; + + /* Updated semantic typography for tablet */ + --heading-h1: var(--text-4xl); + --heading-h2: var(--text-3xl); + --heading-h3: var(--text-2xl); + --heading-h4: var(--text-xl); + --text-subtitle: var(--text-xl); + + /* Increased spacing for tablet */ + --container-padding: var(--space-6); + --grid-gap: var(--space-8); + --card-padding: var(--space-8); + --section-spacing: var(--space-16); + } +} + +/* Desktop Breakpoint - 1024px+ */ +@media (min-width: 1024px) { + :root { + /* Larger typography for desktop */ + --text-4xl: 2.5rem; + --text-5xl: 3rem; + --text-6xl: 3.5rem; + + /* Updated semantic typography for desktop */ + --heading-h1: var(--text-4xl); + --heading-h2: var(--text-3xl); + --heading-h3: var(--text-2xl); + --heading-h4: var(--text-xl); + + /* Increased spacing for desktop */ + --container-padding: var(--space-8); + --grid-gap: var(--space-10); + --card-padding: var(--space-10); + --section-spacing: var(--space-20); + } +} + +/* Large Desktop Breakpoint - 1200px+ */ +@media (min-width: 1200px) { + :root { + /* Maximum typography scaling */ + --text-6xl: 4rem; + + /* Maximum spacing */ + --section-spacing: var(--space-24, 6rem); + } +} + +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +body { + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; + background: var(--bg); + color: var(--text); + line-height: 1.6; +} + +/* Navigation */ +.navbar { + padding: var(--space-4) var(--container-padding); + display: flex; + justify-content: space-between; + align-items: center; + position: fixed; + top: 0; + left: 0; + right: 0; + z-index: 1000; + transition: transform 0.3s ease; + backdrop-filter: opacity(0); + background: var(--navbar-bg); + height: var(--navbar-height); +} + +.navbar.hidden { + transform: translateY(-100%); +} + +body { + padding-top: var(--navbar-height); +} + +.nav-brand { + font-size: var(--text-xl); + font-weight: 600; + color: var(--text); + text-decoration: none; + display: flex; + align-items: center; + gap: var(--space-2); +} + +.nav-logo { + width: 28px; + height: 28px; +} + +.nav-menu { + display: flex; + list-style: none; + gap: var(--space-6); +} + +.nav-link { + color: var(--text-light); + text-decoration: none; + transition: all 0.2s ease; + border-radius: var(--space-1); + padding: var(--space-2); +} + +.nav-link:hover, +.nav-link.active { + color: var(--primary); +} + +.nav-link:focus { + outline: none; +} + +/* Hamburger Menu Button */ +.nav-toggle { + display: none; + flex-direction: column; + justify-content: space-between; + width: 24px; + height: 18px; + background: transparent; + border: none; + cursor: pointer; + padding: 0; + z-index: 1001; + border-radius: var(--space-1); +} + +.nav-toggle:focus { + outline: none; +} + +.hamburger-line { + width: 100%; + height: 2px; + background: var(--text); + transition: all 0.3s ease; + transform-origin: center; +} + +.nav-toggle.active .hamburger-line:nth-child(1) { + transform: rotate(45deg) translate(6px, 6px); +} + +.nav-toggle.active .hamburger-line:nth-child(2) { + opacity: 0; +} + +.nav-toggle.active .hamburger-line:nth-child(3) { + transform: rotate(-45deg) translate(6px, -6px); +} + +/* Tablet Responsive - Enhanced desktop experience */ +@media (min-width: 768px) and (max-width: 1023px) { + .nav-menu { + gap: var(--space-4); + } + + .nav-link { + font-size: var(--text-sm); + padding: var(--space-2) var(--space-3); + } +} + +/* Mobile Menu Styles - Hamburger menu only on mobile */ +@media (max-width: 767px) { + .nav-toggle { + display: flex; + } + + .navbar.menu-open { + background: rgba(255, 255, 255, 1); + backdrop-filter: opacity(0); + } + + .nav-menu { + position: fixed; + top: var(--navbar-height); + left: 0; + right: 0; + background: #fff; + backdrop-filter: opacity(0); + flex-direction: column; + padding: var(--space-6) var(--space-4) var(--space-8); + gap: 0; + transform: translateY(-100%); + opacity: 0; + visibility: hidden; + transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); + } + + .nav-menu.active { + transform: translateY(0); + opacity: 1; + visibility: visible; + } + + .nav-link { + font-size: var(--text-lg); + font-weight: 500; + padding: var(--space-2) var(--space-6); + border-radius: var(--space-2); + background: transparent; + border: none; + transition: all 0.2s ease; + position: relative; + width: fit-content; + display: block; + margin: 0 auto; + } + + .nav-link:hover { + background: var(--bg-secondary); + color: var(--primary); + transform: translateY(-2px); + } + + .nav-link.active { + background: var(--primary); + color: white; + font-weight: 600; + } + + .nav-link.active::before { + content: ''; + position: absolute; + left: 0; + top: 50%; + transform: translateY(-50%); + width: 4px; + height: 20px; + background: white; + border-radius: 2px; + } +} + +/* Container */ +.container { + max-width: 1000px; + margin: 0 auto; + padding: var(--card-padding); +} + +/* Universal Heading Styles */ +h1 { + font-size: var(--heading-h1); + margin-bottom: var(--space-4); + font-weight: 700; + line-height: 1.2; +} + +h2 { + font-size: var(--heading-h2); + margin-bottom: var(--space-4); + font-weight: 600; + line-height: 1.3; +} + +h3 { + font-size: var(--heading-h3); + margin-bottom: var(--space-3); + font-weight: 600; + line-height: 1.4; +} + +h4 { + font-size: var(--heading-h4); + margin-bottom: var(--space-2); + font-weight: 600; + line-height: 1.4; +} + +h5 { + font-size: var(--heading-h5); + margin-bottom: var(--space-2); + font-weight: 600; + line-height: 1.5; +} + +p { + color: var(--text-light); + font-size: var(--text-body); + margin-bottom: var(--space-8); + line-height: 1.6; +} + +/* Cards */ +.card-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); + gap: var(--space-6); + margin-bottom: var(--section-spacing); +} + +.card { + background: var(--bg-secondary); + padding: var(--card-padding); + border-radius: var(--radius); + text-align: center; +} + +.card h2 { + font-size: var(--heading-h2); + margin-bottom: var(--space-4); +} + +.card p { + font-size: var(--text-body); + margin-bottom: var(--space-6); +} + +/* Buttons */ +.btn { + display: inline-block; + background: var(--primary); + color: white; + padding: var(--space-3) var(--space-6); + border: none; + border-radius: var(--radius); + cursor: pointer; + text-decoration: none; + font-size: var(--text-body); + font-weight: 500; + transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); +} + +.btn:hover { + background: var(--primary-dark); + transform: translateY(-2px); + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); +} + +.btn:active { + transform: translateY(0); + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); +} + +.btn:focus { + outline: none; +} + +.btn-small { + padding: var(--space-2) var(--space-4); + font-size: var(--text-sm); +} + +/* Hero Section */ +.hero { + height: calc(100vh - var(--navbar-height) - var(--container-padding)); + background: linear-gradient(135deg, var(--hero-gradient-blue), var(--hero-gradient-orange)), + url('/assets/images/example-background.jpg') center/cover; + background-size: contain; + color: white; + display: flex; + align-items: center; + justify-content: center; + text-align: center; + padding: var(--space-8) var(--container-padding); + position: relative; + overflow: hidden; + margin: 0rem var(--container-padding) var(--section-spacing); + border-radius: var(--radius); +} + +.hero.sub-page { + height: calc(50vh + var(--navbar-height)); + min-height: calc(300px + var(--navbar-height)); +} + +.hero-content { + max-width: 800px; + z-index: 1; +} + +.hero h1 { + font-size: var(--text-4xl); + margin-bottom: var(--space-4); + font-weight: 700; + text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); +} + +.hero-subtitle { + font-size: var(--text-subtitle); + opacity: 0.95; + margin-bottom: var(--space-8); + color: white; +} + +.hero-buttons { + display: flex; + gap: var(--space-4); + justify-content: center; + flex-wrap: wrap; +} + +.btn-primary { + background: var(--primary); + color: white; +} + +.btn-primary:hover { + background: var(--primary-dark); + transform: translateY(-2px) scale(1.02); + box-shadow: 0 6px 16px rgba(234, 88, 12, 0.25); +} + +.btn-primary:focus { + outline: none; +} + +.btn-secondary { + background: rgba(255, 255, 255, 0.2); + color: white; + backdrop-filter: opacity(0); + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); +} + +.btn-secondary:hover { + background: rgba(255, 255, 255, 0.3); + transform: translateY(-2px) scale(1.02); + box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15); +} + +.btn-secondary:focus { + outline: none; +} + +/* Features Section */ +.features-section { + padding: var(--section-spacing) 0; + background: var(--bg-secondary); + border-radius: var(--radius); + margin-top: var(--section-spacing); +} + +.feature-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); + gap: var(--space-6); + margin-top: var(--space-8); +} + +.feature { + text-align: center; + padding: var(--space-6); +} + +.feature-icon { + font-size: 0.9rem; + font-weight: 600; + color: var(--secondary); + text-transform: uppercase; + letter-spacing: 0.1em; + display: block; + margin-bottom: var(--space-4); +} + +.feature h3 { + color: var(--secondary-dark); + margin-bottom: 0.5rem; +} + +.feature p { + color: var(--text-light); + font-size: var(--text-body); +} + +/* Example Section */ +.example-section { + background: var(--bg-secondary); + padding: var(--card-padding); + border-radius: var(--radius); + text-align: center; +} + +/* Aurora Studios Specific Styles */ +.section-subtitle { + font-size: var(--text-subtitle); + color: var(--text-light); + margin-bottom: var(--section-spacing); + text-align: center; + max-width: 600px; + margin-left: auto; + margin-right: auto; +} + +/* What We Do section title */ +#services h2 { + text-align: center; +} + +.service-icon { + font-size: var(--text-small); + font-weight: 600; + color: var(--primary); + text-transform: uppercase; + letter-spacing: 0.1em; + margin-bottom: var(--space-6); + display: block; +} + +/* Featured Work Section */ +.featured-work { + padding: var(--section-spacing) 0; + background: var(--bg-secondary); +} + +.featured-work h2 { + font-size: var(--heading-h2); + text-align: center; + margin-bottom: var(--section-spacing); + color: var(--text); +} + +.work-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); + gap: var(--space-6); + max-width: 1200px; + margin: 0 auto; + padding: 0 var(--space-8); +} + +.work-item { + background: white; + border-radius: var(--radius); + overflow: hidden; + box-shadow: var(--shadow); + transition: transform 0.3s ease; +} + +.work-item:hover { + transform: translateY(-5px); +} + +.section-cta { + text-align: center; + margin-top: var(--space-8); + padding-top: var(--space-6); + border-top: 1px solid var(--border); +} + +.featured-work-cta { + text-align: center; + margin-top: var(--space-8); +} + +.work-image { + width: 100%; + height: 250px; + object-fit: cover; +} + +.work-info { + padding: var(--space-6); +} + +.work-info h3 { + color: var(--primary); + margin-bottom: var(--space-2); +} + +.work-info p { + color: var(--text-light); + font-size: var(--text-body); +} + +/* CTA Section */ +.cta-section { + background: linear-gradient(135deg, var(--secondary), var(--primary)); + color: white; + padding: var(--section-spacing) var(--space-8); + text-align: center; + margin: var(--section-spacing) var(--space-4); + border-radius: var(--radius); +} + +.cta-content h2 { + margin-bottom: var(--space-4); + font-size: var(--heading-h2); +} + +.cta-content p { + font-size: var(--text-subtitle); + opacity: 0.9; + margin-bottom: var(--space-8); + color: white; +} + +.cta-section .btn { + background: white; + color: var(--text); + font-weight: 600; + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); +} + +.cta-section .btn:hover { + background: var(--bg-secondary); + transform: translateY(-2px) scale(1.02); + box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15); +} + +.cta-section .btn:focus { + outline: none; +} + +/* Page Header - Shared across sub-pages */ +.page-header { + text-align: center; + margin-bottom: var(--section-spacing); +} + +.page-header h1 { + font-size: var(--heading-h1); + margin-bottom: var(--space-4); + color: var(--text); +} + +.page-subtitle { + font-size: var(--text-subtitle); + color: var(--text-light); + max-width: 600px; + margin: 0 auto; +} + +/* Section Header Component */ +.section-header { + text-align: center; + margin-bottom: var(--section-spacing); +} + +.section-header h2 { + font-size: var(--heading-h2); + color: var(--text); + margin-bottom: var(--space-3); + position: relative; +} + +.section-header h2::after { + content: ''; + position: absolute; + bottom: -0.75rem; + left: 50%; + transform: translateX(-50%); + width: 2rem; + height: 3px; + background: var(--primary); + border-radius: 2px; +} + +.section-header .section-subtitle { + font-size: var(--text-subtitle); + color: var(--text-light); + margin-top: var(--space-6); + margin-bottom: 0; + max-width: 600px; + margin-left: auto; + margin-right: auto; + line-height: 1.6; +} + +/* Content Sections - Shared layout styles */ +.content-section { + margin-bottom: var(--section-spacing); +} + +.content-section h2 { + font-size: var(--heading-h2); + color: var(--text); + margin-bottom: var(--space-4); + position: relative; +} + +.content-section p { + font-size: var(--text-subtitle); + line-height: 1.8; + color: var(--text-light); + margin-bottom: var(--space-6); + text-align: center; +} + +/* Team Grid - Shared component */ +.team-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); + gap: var(--space-6); + margin-top: var(--space-8); +} + +.team-member { + text-align: center; + padding: var(--card-padding); + background: var(--bg-secondary); + border-radius: var(--radius); + transition: transform 0.3s ease, box-shadow 0.3s ease; +} + +.team-member:hover { + transform: translateY(-5px); + box-shadow: var(--shadow); +} + +.team-member img { + width: 100px; + height: 100px; + border-radius: 50%; + object-fit: cover; + margin-bottom: var(--space-4); + border: 3px solid var(--primary); +} + +.team-member h3 { + font-size: var(--heading-h3); + color: var(--text); + margin-bottom: var(--space-2); +} + +.team-member .role { + color: var(--primary); + font-weight: 600; + margin-bottom: var(--space-4); +} + +.team-member p { + font-size: var(--text-small); + color: var(--text-light); + line-height: 1.6; +} + +/* Contact Page Components */ +.contact-card .contact-detail { + font-weight: 600; + color: var(--primary); + font-size: var(--text-base); + margin: var(--space-4) 0; + padding: var(--space-3); + background: var(--bg-secondary); + border-radius: var(--space-2); + text-align: center; +} + +.contact-form-section { + max-width: 600px; + margin: 0 auto; + background: white; + padding: var(--card-padding); + border-radius: var(--radius); + box-shadow: var(--shadow); +} + +.social-proof-container { + max-width: 800px; + margin: 0 auto; + text-align: center; +} + +/* Tablet Responsive Styles */ +@media (min-width: 768px) and (max-width: 1023px) { + /* Hero adjustments for tablet */ + .hero.sub-page { + height: calc(50vh + var(--navbar-height)); + min-height: calc(350px + var(--navbar-height)); + } + + /* Grid layout adjustments for tablet */ + .card-grid, + .work-grid, + .team-grid, + .portfolio-grid { + grid-template-columns: repeat(2, 1fr); + gap: var(--space-6); + } + +} + +/* Mobile Responsive Styles */ +@media (max-width: 767px) { + :root { + /* Mobile-optimized typography */ + --heading-h1: var(--text-3xl); + --heading-h2: var(--text-2xl); + --heading-h3: var(--text-lg); + --text-subtitle: var(--text-base); + + /* Tighter spacing for mobile */ + --section-spacing: var(--space-10); + --card-padding: var(--space-4); + } + + /* Hero section mobile adjustments */ + .hero { + margin: 0rem var(--space-4) var(--section-spacing); + padding: var(--space-6) var(--space-4); + } + + .hero h1 { + font-size: var(--text-4xl); + } + + .hero.sub-page { + height: calc(40vh + var(--navbar-height)); + min-height: calc(250px + var(--navbar-height)); + } + + /* Grid layout adjustments - single column for mobile */ + .card-grid, + .work-grid, + .team-grid, + .portfolio-grid { + grid-template-columns: 1fr; + gap: var(--space-4); + } + + + /* Mobile button improvements */ + .btn { + width: 100%; + max-width: 280px; + text-align: center; + } + + .hero-buttons { + flex-direction: column; + align-items: center; + gap: var(--space-3); + } + + /* Mobile typography improvements */ + p { + margin-bottom: var(--space-6); + } + + /* Contact form mobile adjustments */ + .form-row { + grid-template-columns: 1fr; + gap: var(--space-4); + margin-bottom: var(--space-4); + } + + .social-proof-stats { + grid-template-columns: 1fr; + gap: var(--space-6); + } + + .social-proof-text { + margin-left: 0; + border-left: none; + border-top: 3px solid var(--primary); + padding-left: 0; + padding-top: var(--space-4); + } +} + +.contact-info h2 { + font-size: var(--heading-h2); + color: var(--text); + margin-bottom: var(--space-4); +} + +.contact-info p { + font-size: var(--text-subtitle); + line-height: 1.8; + color: var(--text-light); + margin-bottom: var(--space-8); +} + + +/* Contact Form - Refactored */ +.contact-form-container { + padding: var(--card-padding); +} + +.contact-form-container .section-header { + text-align: left; + margin-bottom: var(--space-8); +} + +.contact-form-container .section-header h2 { + font-size: var(--heading-h2); + color: var(--text); + margin-bottom: var(--space-3); +} + +.contact-form-container .section-header p { + color: var(--text-light); + font-size: var(--text-base); + margin: 0; +} + +.form-row { + display: grid; + grid-template-columns: 1fr 1fr; + gap: var(--space-4); + margin-bottom: var(--space-6); +} + +.form-group { + margin-bottom: var(--space-6); +} + +.form-group label { + display: block; + font-weight: 600; + color: var(--text); + font-size: var(--text-body); + margin-bottom: var(--space-2); +} + +.form-group input, +.form-group select, +.form-group textarea { + width: 100%; + padding: var(--space-4); + border: 2px solid var(--border); + border-radius: var(--radius); + font-size: var(--text-body); + transition: border-color 0.3s ease, box-shadow 0.3s ease; +} + +.form-group input:focus, +.form-group select:focus, +.form-group textarea:focus { + outline: none; + border-color: var(--primary); + box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1); +} + +.form-group textarea { + resize: vertical; + min-height: 120px; +} + +.checkbox-group { + display: flex; + align-items: flex-start; + gap: var(--space-2); +} + +.checkbox-group input[type="checkbox"] { + width: auto; + margin: 0; + transform: scale(1.2); +} + +.checkbox-group label { + margin-bottom: 0; + font-weight: normal; + font-size: var(--text-small); + cursor: pointer; +} + +.error-message { + color: #ef4444; + font-size: var(--text-sm); + margin-top: var(--space-1); + display: block; +} + +.btn-full { + width: 100%; + padding: var(--space-4) var(--space-8); + font-size: var(--text-subtitle); + font-weight: 600; +} + +.form-success { + display: none; + background: #10b981; + color: white; + padding: var(--space-6); + border-radius: var(--radius); + margin-top: var(--space-4); + text-align: center; + border: 1px solid #059669; +} + +.form-success.show { + display: flex; + align-items: center; + justify-content: center; + gap: var(--space-3); +} + +.form-success .success-icon { + display: flex; + align-items: center; + justify-content: center; + width: 32px; + height: 32px; + background: rgba(255, 255, 255, 0.2); + border-radius: 50%; + flex-shrink: 0; +} + +.form-success .success-icon svg { + width: 20px; + height: 20px; + stroke: white; + stroke-width: 3; +} + +.form-success p { + margin: 0; + font-weight: 500; + font-size: var(--text-body); +} + +/* Social Proof Section */ +.contact-social-proof { + background: var(--bg-secondary); + padding: var(--card-padding); + border-radius: var(--radius); + border: 2px solid var(--border); +} + +.contact-social-proof h3 { + font-size: var(--heading-h3); + color: var(--text); + margin-bottom: var(--space-6); + text-align: center; +} + +.social-proof-stats { + display: grid; + grid-template-columns: repeat(3, 1fr); + gap: var(--space-4); + margin-bottom: var(--space-6); +} + +.stat { + text-align: center; + padding: var(--space-3); +} + +.stat-number { + font-size: var(--text-2xl); + font-weight: 700; + color: var(--primary); + margin-bottom: var(--space-1); +} + +.stat-label { + font-size: var(--text-sm); + color: var(--text-light); + font-weight: 500; +} + +.social-proof-text { + font-style: italic; + color: var(--text); + line-height: 1.6; + margin-bottom: var(--space-4); + text-align: center; + border-left: 3px solid var(--primary); + padding-left: var(--space-4); + margin-left: var(--space-4); +} + +.social-proof-attribution { + text-align: center; + color: var(--text-light); + font-size: var(--text-sm); +} + +.testimonial { + margin-top: var(--space-8); + padding: var(--space-6); + background: var(--bg-secondary); + border-radius: var(--radius); + border-left: 4px solid var(--primary); +} + +.testimonial-text { + font-size: var(--text-lg); + font-style: italic; + color: var(--text); + line-height: 1.6; + margin-bottom: var(--space-4); +} + +.testimonial-attribution { + color: var(--text-light); + font-size: var(--text-sm); +} + +/* Loading state for form submission */ +.contact-form.loading .btn-primary { + background: var(--neutral); + cursor: not-allowed; + position: relative; +} + +.contact-form.loading .btn-primary:after { + content: ''; + position: absolute; + width: 20px; + height: 20px; + margin: auto; + border: 2px solid white; + border-top: 2px solid transparent; + border-radius: 50%; + animation: spin 1s linear infinite; +} + +@keyframes spin { + 0% { transform: rotate(0deg); } + 100% { transform: rotate(360deg); } +} + +/* Form validation styles */ +.form-group.error input, +.form-group.error select, +.form-group.error textarea { + border-color: #ef4444; + background-color: #fef2f2; +} + +.form-group.success input, +.form-group.success select, +.form-group.success textarea { + border-color: #10b981; + background-color: #f0fdf4; +} + +/* Footer - Modern Light Design */ +.site-footer { + background: var(--bg-secondary); + border-top: 1px solid var(--border); + padding: var(--section-spacing) 0 0; + margin-top: var(--section-spacing); +} + +.footer-content { + max-width: 1200px; + margin: 0 auto; + padding: 0 var(--space-8) var(--section-spacing); + display: grid; + grid-template-columns: 1fr 2fr; + gap: var(--space-10); + align-items: start; +} + +/* Footer Brand Section */ +.footer-brand { + display: flex; + flex-direction: column; + gap: var(--space-4); +} + +.footer-logo { + display: flex; + align-items: center; + gap: var(--space-3); + font-size: var(--text-xl); + font-weight: 600; + color: var(--text); +} + +.footer-logo img { + width: 40px; + height: 40px; +} + +.footer-tagline { + color: var(--text-light); + font-size: var(--text-body); + margin: 0; + line-height: 1.5; +} + +.footer-social { + display: flex; + gap: var(--space-3); + margin-top: var(--space-2); +} + +.footer-social a { + width: 36px; + height: 36px; + display: flex; + align-items: center; + justify-content: center; + border-radius: 50%; + background: white; + color: var(--text); + text-decoration: none; + font-size: var(--text-base); + transition: all 0.2s ease; + border: 1px solid var(--border); +} + +.footer-social a:hover { + background: var(--primary); + color: white; + border-color: var(--primary); + transform: translateY(-2px); +} + +/* Footer Links Section */ +.footer-links-section { + display: grid; + grid-template-columns: 1fr 1fr; + gap: var(--space-8); +} + +.footer-column h4 { + font-size: var(--text-base); + font-weight: 600; + color: var(--text); + margin-bottom: var(--space-4); + text-transform: uppercase; + letter-spacing: 0.05em; +} + +.footer-links { + list-style: none; + padding: 0; + margin: 0; +} + +.footer-links li { + margin-bottom: var(--space-3); +} + +.footer-links a { + color: var(--text-light); + text-decoration: none; + font-size: var(--text-body); + transition: color 0.2s ease; + position: relative; +} + +.footer-links a:hover { + color: var(--primary); + transform: translateX(2px); + display: inline-block; +} + +/* Footer Bottom Bar */ +.footer-bottom { + border-top: 1px solid var(--border); + padding: var(--space-6) var(--space-8); + max-width: 1200px; + margin: 0 auto; + display: flex; + justify-content: space-between; + align-items: center; + flex-wrap: wrap; + gap: var(--space-4); +} + +.footer-hf-link { + display: flex; + align-items: center; + gap: var(--space-2); + color: var(--text-light); + text-decoration: none; + font-size: var(--text-sm); + font-weight: 500; + transition: all 0.2s ease; + padding: var(--space-1) var(--space-2); + border-radius: var(--space-1); +} + +.footer-hf-link:hover { + color: var(--primary); + background: rgba(234, 88, 12, 0.1); + transform: translateY(-1px); +} + +.footer-hf-link svg { + width: 16px; + height: 16px; + flex-shrink: 0; +} + +.footer-bottom-links { + display: flex; + align-items: center; + gap: var(--space-4); +} + +.footer-bottom-links a { + color: var(--text-light); + text-decoration: none; + font-size: var(--text-sm); + transition: color 0.2s ease; +} + +.footer-bottom-links a:hover { + color: var(--primary); +} + +.footer-bottom-links .separator { + color: var(--text-light); + font-size: var(--text-sm); +} + +/* Responsive Footer Styles */ +@media (max-width: 767px) { + .footer-content { + grid-template-columns: 1fr; + gap: var(--space-8); + padding: 0 var(--space-4) var(--space-8); + } + + .footer-brand { + text-align: center; + align-items: center; + } + + .footer-links-section { + grid-template-columns: 1fr 1fr; + gap: var(--space-6); + text-align: center; + } + + .footer-column h4 { + text-align: center; + } + + .footer-links { + text-align: center; + } + + .footer-links a { + display: inline-block; + } + + .footer-bottom { + flex-direction: column; + text-align: center; + padding: var(--space-4); + } + + .footer-bottom-links { + flex-wrap: wrap; + justify-content: center; + } +} + +`},{path:"/styles/portfolio.css",content:`/* Portfolio Page Styles */ + +/* Portfolio Filters */ +.portfolio-filters { + display: flex; + justify-content: center; + gap: var(--space-4); + margin-bottom: var(--section-spacing); + flex-wrap: wrap; +} + +.filter-btn { + padding: var(--space-3) var(--space-6); + border: 2px solid var(--border); + background: transparent; + border-radius: 50px; + cursor: pointer; + transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); + font-weight: 500; + font-size: var(--text-body); + color: var(--text-light); + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); +} + +.filter-btn:hover, +.filter-btn.active { + border-color: var(--primary); + background: var(--primary); + color: white; + transform: translateY(-1px) scale(1.01); + box-shadow: 0 4px 12px rgba(234, 88, 12, 0.2); +} + +.filter-btn:focus { + outline: none; +} + +.filter-btn:active { + transform: translateY(0) scale(0.99); +} + +/* Portfolio Grid */ +.portfolio-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); + gap: var(--space-6); + margin-bottom: var(--section-spacing); +} + +.portfolio-item { + position: relative; + border-radius: var(--radius); + overflow: hidden; + box-shadow: var(--shadow); + transition: transform 0.3s ease; + cursor: pointer; +} + +.portfolio-item:hover { + transform: translateY(-10px); +} + +.portfolio-item.hidden { + display: none; +} + +.portfolio-image { + width: 100%; + height: 300px; + object-fit: cover; + transition: transform 0.3s ease; +} + +.portfolio-item:hover .portfolio-image { + transform: scale(1.05); +} + +.portfolio-overlay { + position: absolute; + bottom: 0; + left: 0; + right: 0; + background: linear-gradient(transparent, rgba(0,0,0,0.8)); + color: white; + padding: var(--card-padding); + transform: translateY(100%); + transition: transform 0.3s ease; +} + +.portfolio-item:hover .portfolio-overlay { + transform: translateY(0); +} + +.portfolio-overlay h3 { + font-size: var(--heading-h3); + margin-bottom: var(--space-2); +} + +.portfolio-overlay p { + margin-bottom: var(--space-4); + opacity: 0.9; + color: white; +} + +.portfolio-tags { + display: flex; + flex-wrap: wrap; + gap: var(--space-2); +} + +.tag { + background: rgba(255,255,255,0.2); + color: white; + padding: var(--space-1) var(--space-3); + border-radius: 20px; + font-size: var(--text-xs); + font-weight: 500; +}`},{path:"/scripts/main.js",content:`// Main JavaScript - Shared functionality + +// Multi-file demo loaded + +// Set up navigation highlighting +document.addEventListener('DOMContentLoaded', function() { + const currentPath = window.location.pathname; + const navLinks = document.querySelectorAll('.nav-link'); + + navLinks.forEach(link => { + if (link.getAttribute('href') === currentPath) { + link.classList.add('active'); + } else { + link.classList.remove('active'); + } + }); + + // Scroll-reactive navbar functionality + const navbar = document.querySelector('.navbar'); + const hero = document.querySelector('.hero'); + let lastScrollY = window.scrollY; + let heroHeight = hero ? hero.offsetHeight : 0; + + function updateNavbarVisibility() { + const currentScrollY = window.scrollY; + const scrollDifference = currentScrollY - lastScrollY; + + // Always show navbar in hero section + if (currentScrollY <= heroHeight) { + navbar.classList.remove('hidden'); + } + // Hide when scrolling down past hero section + else if (scrollDifference > 0) { + navbar.classList.add('hidden'); + } + // Show when scrolling up by 20px or more + else if (scrollDifference <= -20) { + navbar.classList.remove('hidden'); + } + + lastScrollY = currentScrollY; + } + + // Throttle scroll events for better performance + let ticking = false; + function handleScroll() { + if (!ticking) { + requestAnimationFrame(updateNavbarVisibility); + ticking = true; + setTimeout(() => { ticking = false; }, 16); // ~60fps + } + } + + window.addEventListener('scroll', handleScroll); + + // Recalculate hero height on resize + window.addEventListener('resize', function() { + heroHeight = hero ? hero.offsetHeight : 0; + }); + + // Mobile hamburger menu functionality + const navToggle = document.querySelector('.nav-toggle'); + const navMenu = document.querySelector('.nav-menu'); + const mobileNavLinks = document.querySelectorAll('.nav-link'); + + function toggleMobileMenu() { + navToggle.classList.toggle('active'); + navMenu.classList.toggle('active'); + navbar.classList.toggle('menu-open'); + + // Update ARIA attributes + const isExpanded = navToggle.classList.contains('active'); + navToggle.setAttribute('aria-expanded', isExpanded); + + // Prevent body scroll when menu is open + document.body.style.overflow = isExpanded ? 'hidden' : ''; + } + + function closeMobileMenu() { + navToggle.classList.remove('active'); + navMenu.classList.remove('active'); + navbar.classList.remove('menu-open'); + navToggle.setAttribute('aria-expanded', 'false'); + document.body.style.overflow = ''; + } + + // Toggle menu on button click + if (navToggle) { + navToggle.addEventListener('click', toggleMobileMenu); + } + + // Close menu when clicking nav links + mobileNavLinks.forEach(link => { + link.addEventListener('click', closeMobileMenu); + }); + + // Close menu on escape key + document.addEventListener('keydown', function(e) { + if (e.key === 'Escape' && navMenu.classList.contains('active')) { + closeMobileMenu(); + } + }); + + // Close menu when clicking outside + document.addEventListener('click', function(e) { + if (!navToggle.contains(e.target) && !navMenu.contains(e.target) && navMenu.classList.contains('active')) { + closeMobileMenu(); + } + }); + + // Close mobile menu when navbar hides (scroll reactive) + const originalUpdateNavbarVisibility = updateNavbarVisibility; + updateNavbarVisibility = function() { + originalUpdateNavbarVisibility(); + if (navbar.classList.contains('hidden') && navMenu.classList.contains('active')) { + closeMobileMenu(); + } + }; + +});`},{path:"/templates/navigation.hbs",content:``},{path:"/templates/footer.hbs",content:`
+ + + +
`},{path:"/scripts/portfolio.js",content:`// Portfolio Filtering Functionality + +(function() { + let currentFilter = 'all'; + + function init() { + const filterButtons = document.querySelectorAll('.filter-btn'); + const portfolioItems = document.querySelectorAll('.portfolio-item'); + + if (!filterButtons.length || !portfolioItems.length) return; + + // Add event listeners to filter buttons + filterButtons.forEach(btn => { + btn.addEventListener('click', handleFilterClick); + }); + + // Show all items initially + showItems(portfolioItems, 'all'); + } + + function handleFilterClick(e) { + const button = e.target; + const filter = button.dataset.filter; + + if (!filter) return; + + // Update active button + document.querySelectorAll('.filter-btn').forEach(btn => { + btn.classList.remove('active'); + }); + button.classList.add('active'); + + // Filter and show items + const portfolioItems = document.querySelectorAll('.portfolio-item'); + showItems(portfolioItems, filter); + + currentFilter = filter; + } + + function showItems(items, filter) { + items.forEach(item => { + const itemCategory = item.dataset.category; + + if (filter === 'all' || itemCategory === filter) { + item.style.display = 'block'; + item.style.opacity = '0'; + + // Animate in + setTimeout(() => { + item.style.opacity = '1'; + item.style.transform = 'translateY(0)'; + }, 50); + } else { + item.style.opacity = '0'; + item.style.transform = 'translateY(20px)'; + + // Hide after animation + setTimeout(() => { + item.style.display = 'none'; + }, 300); + } + }); + } + + // Add smooth transitions to portfolio items + function addTransitions() { + const portfolioItems = document.querySelectorAll('.portfolio-item'); + portfolioItems.forEach(item => { + item.style.transition = 'opacity 0.3s ease, transform 0.3s ease'; + }); + } + + document.addEventListener('DOMContentLoaded', function() { + addTransitions(); + init(); + }); +})();`},{path:"/scripts/contact.js",content:`// Contact Form Validation and Submission + +(function() { + let form; + let submitButton; + let isSubmitting = false; + + function init() { + form = document.getElementById('contactForm'); + submitButton = form?.querySelector('button[type="submit"]'); + + if (!form || !submitButton) return; + + // Add event listeners + form.addEventListener('submit', handleSubmit); + + // Real-time validation + const inputs = form.querySelectorAll('input[required], textarea[required]'); + inputs.forEach(input => { + input.addEventListener('blur', validateField); + input.addEventListener('input', clearErrors); + }); + + // Email specific validation + const emailInput = form.querySelector('#email'); + if (emailInput) { + emailInput.addEventListener('blur', validateEmail); + } + } + + function handleSubmit(e) { + e.preventDefault(); + + if (isSubmitting) return; + + // Clear all previous errors + clearAllErrors(); + + // Validate all fields + const isValid = validateForm(); + + if (isValid) { + submitForm(); + } + } + + function validateForm() { + let isValid = true; + + // Required field validation + const requiredFields = [ + { id: 'name', name: 'Full Name' }, + { id: 'email', name: 'Email Address' }, + { id: 'message', name: 'Project Details' } + ]; + + requiredFields.forEach(field => { + const input = document.getElementById(field.id); + const value = input.value.trim(); + + if (!value) { + showError(field.id, \`\${field.name} is required\`); + isValid = false; + } + }); + + // Email format validation + const emailInput = document.getElementById('email'); + const emailValue = emailInput.value.trim(); + if (emailValue && !isValidEmail(emailValue)) { + showError('email', 'Please enter a valid email address'); + isValid = false; + } + + // Message length validation + const messageInput = document.getElementById('message'); + const messageValue = messageInput.value.trim(); + if (messageValue && messageValue.length < 20) { + showError('message', 'Please provide more details about your project (minimum 20 characters)'); + isValid = false; + } + + return isValid; + } + + function validateField(e) { + const field = e.target; + const value = field.value.trim(); + + clearErrors(e); + + if (field.hasAttribute('required') && !value) { + const fieldName = field.previousElementSibling.textContent.replace(' *', ''); + showError(field.id, \`\${fieldName} is required\`); + } + } + + function validateEmail(e) { + const emailInput = e.target; + const emailValue = emailInput.value.trim(); + + if (emailValue && !isValidEmail(emailValue)) { + showError('email', 'Please enter a valid email address'); + } + } + + function isValidEmail(email) { + const emailRegex = /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/; + return emailRegex.test(email); + } + + function showError(fieldId, message) { + const field = document.getElementById(fieldId); + const formGroup = field.parentElement; + const errorElement = document.getElementById(fieldId + 'Error'); + + // Add error class to form group + formGroup.classList.add('error'); + formGroup.classList.remove('success'); + + // Show error message + if (errorElement) { + errorElement.textContent = message; + } + } + + function clearErrors(e) { + const field = e.target; + const formGroup = field.parentElement; + const errorElement = document.getElementById(field.id + 'Error'); + + // Remove error class + formGroup.classList.remove('error'); + + // Clear error message + if (errorElement) { + errorElement.textContent = ''; + } + + // Add success class if field has value and no errors + if (field.value.trim() && !formGroup.classList.contains('error')) { + formGroup.classList.add('success'); + } else { + formGroup.classList.remove('success'); + } + } + + function clearAllErrors() { + const errorMessages = form.querySelectorAll('.error-message'); + errorMessages.forEach(error => error.textContent = ''); + + const formGroups = form.querySelectorAll('.form-group'); + formGroups.forEach(group => { + group.classList.remove('error', 'success'); + }); + + // Hide success message + const successElement = document.getElementById('formSuccess'); + if (successElement) { + successElement.classList.remove('show'); + } + } + + function submitForm() { + if (isSubmitting) return; + + isSubmitting = true; + + // Add loading state + form.classList.add('loading'); + submitButton.disabled = true; + submitButton.textContent = 'Sending...'; + + // Collect form data + const formData = new FormData(form); + const data = { + name: formData.get('name'), + email: formData.get('email'), + company: formData.get('company'), + project: formData.get('project'), + budget: formData.get('budget'), + message: formData.get('message'), + newsletter: formData.get('newsletter') ? true : false, + timestamp: new Date().toISOString() + }; + + // Simulate form submission (replace with actual API call) + setTimeout(() => { + + // Show success message + showSuccess(); + + // Reset form + form.reset(); + clearAllErrors(); + + // Remove loading state + form.classList.remove('loading'); + submitButton.disabled = false; + submitButton.textContent = 'Send Message'; + + isSubmitting = false; + + // Auto-hide success message after 5 seconds + setTimeout(() => { + const successElement = document.getElementById('formSuccess'); + if (successElement) { + successElement.classList.remove('show'); + } + }, 5000); + + }, 2000); // Simulate network delay + } + + function showSuccess() { + const successElement = document.getElementById('formSuccess'); + if (successElement) { + successElement.classList.add('show'); + successElement.scrollIntoView({ behavior: 'smooth', block: 'nearest' }); + } + } + + // Initialize when DOM is ready + document.addEventListener('DOMContentLoaded', init); +})();`},{path:"/data.json",content:`{ + "siteName": "Example Studios", + "footerTagline": "Crafting digital experiences that inspire", + "navigation": [ + {"title": "Home", "url": "/"}, + {"title": "Portfolio", "url": "/portfolio.html"}, + {"title": "About", "url": "/about.html"}, + {"title": "Contact", "url": "/contact.html"} + ], + "social": [ + {"name": "Twitter", "url": "#", "icon": "𝕏"}, + {"name": "LinkedIn", "url": "#", "icon": "in"}, + {"name": "Instagram", "url": "#", "icon": "📷"}, + {"name": "GitHub", "url": "#", "icon": "⚡"} + ], + "services": [ + {"name": "Web Design", "url": "/portfolio.html"}, + {"name": "Development", "url": "/portfolio.html"}, + {"name": "Mobile Apps", "url": "/portfolio.html"}, + {"name": "Consulting", "url": "/portfolio.html"} + ], + "deepstudioLink": "https://huggingface.co/spaces/otst/oswstudio", + "deepstudioName": "OSW Studio", + "legalLinks": [ + {"name": "Privacy Policy", "url": "/privacy.html"}, + {"name": "Terms of Service", "url": "/terms.html"} + ] +}`},{path:"/assets/images/logo.svg",content:` + + + + + + + + + + + + +`},{path:"/assets/images/favicon.svg",content:` + + + + +`},{path:"/contact.html",content:` + + + + + Contact - Example Studios + + + + + + +
+
+
+

Let's Build Something Amazing

+

Ready to turn your ideas into reality? We'd love to hear about your project and show you how we can help.

+
+
+ +
+
+

Get In Touch

+

Ready to start your next project? Choose how you'd like to connect with us

+
+ +
+
+
Email
+

Send Us an Email

+

Drop us a line and we'll get back to you within 24 hours

+
hello@examplestudios.com
+ Send Email +
+ +
+
Phone
+

Give Us a Call

+

Speak directly with our team about your project

+
(555) 123-4567
+ Call Now +
+ +
+
Office
+

Visit Our Studio

+

Meet with us in person to discuss your vision

+
San Francisco, CA
By appointment only
+ Schedule Visit +
+
+
+ +
+
+

Start Your Project

+

Tell us about your vision and we'll get back to you within 24 hours

+
+ +
+
+
+
+ + + +
+ +
+ + + +
+
+ +
+ + + +
+ + + +
+
+ + + +
+

Thank you! We'll get back to you within 24 hours.

+
+
+
+
+ + +
+ + {{> footer}} + + + + +`},{path:"/privacy.html",content:` + + + + + Privacy Policy - Example Studios + + + + + {{> navigation}} + +
+
+
+

Privacy Policy

+

How we protect and handle your information

+
+
+ +
+
+

Last updated: December 2024

+ +

Overview

+

At Example Studios, we take your privacy seriously. This Privacy Policy explains how we collect, use, and protect your personal information when you use our services.

+ +

Information We Collect

+

We may collect the following types of information:

+
    +
  • Contact Information: Name, email address, phone number when you contact us
  • +
  • Project Information: Details about your project requirements and preferences
  • +
  • Usage Data: How you interact with our website for improving our services
  • +
+ +

How We Use Your Information

+

We use your information to:

+
    +
  • Provide and improve our design and development services
  • +
  • Communicate with you about your projects
  • +
  • Send you updates about our services (with your consent)
  • +
  • Analyze and improve our website and services
  • +
+ +

Information Sharing

+

We do not sell, trade, or otherwise transfer your personal information to third parties without your consent, except:

+
    +
  • To trusted service providers who help us operate our business
  • +
  • When required by law or to protect our rights
  • +
  • With your explicit consent
  • +
+ +

Data Security

+

We implement appropriate security measures to protect your personal information against unauthorized access, alteration, disclosure, or destruction.

+ +

Your Rights

+

You have the right to:

+
    +
  • Access and review your personal information
  • +
  • Request corrections to your information
  • +
  • Request deletion of your information
  • +
  • Opt-out of marketing communications
  • +
+ +

Contact Us

+

If you have questions about this Privacy Policy, please contact us at:

+

+ Example Studios
+ Email: hello@examplestudios.com
+ Phone: (555) 123-4567 +

+
+
+ +
+
+

Ready to Build Something Amazing?

+

Let's turn your ideas into reality. We'd love to hear about your project.

+ Start Your Project +
+
+
+ + {{> footer}} + + + +`},{path:"/terms.html",content:` + + + + + Terms of Service - Example Studios + + + + + {{> navigation}} + +
+
+
+

Terms of Service

+

Our terms and conditions for working together

+
+
+ +
+
+

Last updated: December 2024

+ +

Agreement to Terms

+

By accessing and using Example Studios' services, you agree to be bound by these Terms of Service and all applicable laws and regulations.

+ +

Services

+

Example Studios provides web design, development, and digital consulting services. We reserve the right to modify or discontinue services with reasonable notice.

+ +

Client Responsibilities

+

As a client, you agree to:

+
    +
  • Provide accurate and complete information for your project
  • +
  • Respond to requests for feedback in a timely manner
  • +
  • Collaborate effectively throughout the project
  • +
  • Respect intellectual property rights
  • +
+ +

Project Process

+

Our typical process includes:

+
    +
  • Discovery: Understanding your requirements and goals
  • +
  • Proposal: Detailed scope, timeline, and pricing
  • +
  • Design & Development: Creating your solution
  • +
  • Review: Client feedback and revisions
  • +
  • Launch: Final delivery and launch support
  • +
+ +

Project Timeline

+
    +
  • Project schedules will be outlined in individual agreements
  • +
  • Milestone deliverables will be clearly defined
  • +
  • Regular progress updates will be provided
  • +
+ +

Intellectual Property

+

Upon project completion, clients receive ownership of custom work created specifically for their project, excluding any pre-existing intellectual property or third-party components.

+ +

Limitation of Liability

+

Example Studios' liability is limited to the amount paid for services. We are not responsible for indirect, incidental, or consequential damages.

+ +

Termination

+

Either party may terminate services with written notice. All completed work will be delivered upon termination.

+ +

Changes to Terms

+

We reserve the right to update these terms with reasonable notice to existing clients.

+ +

Contact

+

Questions about these terms? Contact us at:

+

+ Example Studios
+ Email: hello@examplestudios.com
+ Phone: (555) 123-4567 +

+
+
+
+ + {{> footer}} + + + +`},{path:"/portfolio/techflow-dashboard.html",content:` + + + + + TechFlow Dashboard - Example Studios + + + + + + +
+
+
+

TechFlow Dashboard

+

Modern analytics platform with real-time data visualization

+
+
+ +
+
+
+

Project Overview

+

A comprehensive analytics solution built for modern businesses

+
+ +
+
+
Challenge
+

Challenge

+

TechFlow needed a modern dashboard to visualize complex data streams in real-time, replacing their outdated reporting system with something more intuitive and scalable.

+
+ +
+
Solution
+

Solution

+

We designed and built a React-based dashboard with D3.js visualizations, featuring customizable widgets and real-time data updates via WebSocket connections.

+
+
+
+ +
+
+

Technology Stack

+
+
+
+
React
+

React

+

Modern component-based architecture for maintainable UI development

+
+ +
+
Data
+

D3.js

+

Custom data visualizations with smooth animations and interactions

+
+ +
+
Backend
+

Node.js

+

Robust backend API with real-time data processing capabilities

+
+
+
+ +
+
+

Results

+
+
+
Results
+

Impact & Performance

+

The new dashboard reduced report generation time by 75% and improved user engagement by 300%. Real-time updates eliminated the need for manual refreshes, and the intuitive interface reduced training time for new users.

+
+
+
+ +
+
+

Ready for Your Next Project?

+

Let's discuss how we can create a custom solution for your business needs.

+ Start Your Project +
+
+
+ + {{> footer}} + + + +`},{path:"/assets/README.md",content:`# Assets Directory + +This directory contains all static assets for the Example project. + +## Structure + +- \`/images/\` - Image files including: + - \`example-background.jpg\` - Hero section background image + - \`logo.svg\` - Site logo + - \`favicon.svg\` - Browser favicon + +## Background Image + +The \`example-background.jpg\` is automatically included when the demo project is created. It features a beautiful flowing gradient design that complements the orange (#ff7b00) and blue (#2563eb) color scheme. + +## File Types Supported + +The VFS system supports various file types: +- Images: PNG, JPG, JPEG, GIF, WebP, SVG, ICO +- Documents: HTML, CSS, JS, JSON, TXT, MD, XML +- Binary files up to 10MB + +This demonstrates the VFS capability to handle multiple file types and organize them in a structured directory system.`}],assets:[{filename:"example-background.jpg",path:"/assets/images/example-background.jpg"}]},e={name:"Barebones Project",description:"A minimal starting template",directories:["/styles","/scripts","/templates"],files:[{path:"/index.html",content:` + + + + + New Project + + + + {{> welcome-card}} + + + +`},{path:"/styles/style.css",content:`/* + * Your project styles start here. + * Use this file to customize typography, layout, and colors. + */ + +body { + font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; + margin: 0; + padding: 2rem; + background: #f9fafb; + color: #0f172a; +} + +h1 { + font-size: 2.25rem; + margin-bottom: 0.5rem; +} + +p { + font-size: 1rem; + line-height: 1.6; +} + +.welcome-card { + /* Component styles can be added here */ +} +`},{path:"/scripts/main.js",content:`// Welcome to your project! +// Use this file to add interactivity to your pages. + +document.addEventListener('DOMContentLoaded', () => { + console.log('Project ready. Happy building!'); +}); +`},{path:"/templates/welcome-card.hbs",content:`
+

{{title}}

+

{{message}}

+
`},{path:"/data.json",content:`{ + "title": "Welcome", + "message": "Start building your website!" +}`}]},f={name:"Landing Page with Contact Form",description:"Professional landing page with a working contact form powered by Resend",directories:["/styles","/scripts"],files:[{path:"/index.html",content:` + + + + + My Website + + + + + + + +
+
+

Build Something Amazing

+

A modern landing page template with a working contact form. In Server Mode, messages are saved to a database and forwarded via email.

+ Get in Touch +
+
+ + +
+
+

Features

+
+
+
+

Fast & Lightweight

+

Pure HTML, CSS, and JavaScript. No frameworks, no build steps. Just clean, fast code.

+
+
+
📧
+

Working Contact Form

+

Messages are stored in a database and can be forwarded to your email via Resend.

+
+
+
🌐
+

Ready to Deploy

+

Publish directly from OSW Studio in Server Mode, or export and host anywhere.

+
+
+
+
+ + +
+
+

About

+

This is a starter template for a landing page with a fully functional contact form. Customize the content, colors, and layout to match your brand.

+

In Server Mode, the contact form saves submissions to a SQLite database and optionally sends email notifications using Resend. In Browser Mode, submissions are saved locally in your browser.

+
+
+ + +
+
+

Contact Us

+

Have a question or want to work together? Send us a message.

+
+
+
+ + +
+
+ + +
+
+
+ + +
+
+ + +
+ +
+
+
+ + +
+
+

© 2025 MyBrand. Built with OSW Studio.

+
+
+ + + +`},{path:"/styles/style.css",content:`/* Landing Page Styles */ +*, +*::before, +*::after { + box-sizing: border-box; + margin: 0; + padding: 0; +} + +body { + font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; + background: #ffffff; + color: #1e293b; + line-height: 1.6; +} + +.container { + max-width: 1100px; + margin: 0 auto; + padding: 0 1.5rem; +} + +/* Header */ +.site-header { + background: #ffffff; + border-bottom: 1px solid #e2e8f0; + padding: 1rem 0; + position: sticky; + top: 0; + z-index: 100; +} + +.header-inner { + display: flex; + justify-content: space-between; + align-items: center; +} + +.logo { + font-size: 1.25rem; + font-weight: 700; + color: #0f172a; + text-decoration: none; +} + +nav { + display: flex; + gap: 1.5rem; +} + +nav a { + text-decoration: none; + color: #64748b; + font-size: 0.875rem; + font-weight: 500; + transition: color 0.2s; +} + +nav a:hover { + color: #2563eb; +} + +/* Hero */ +.hero { + text-align: center; + padding: 6rem 0 5rem; + background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%); +} + +.hero h1 { + font-size: 3rem; + font-weight: 800; + color: #0f172a; + margin-bottom: 1rem; + line-height: 1.2; +} + +.hero p { + font-size: 1.125rem; + color: #64748b; + max-width: 600px; + margin: 0 auto 2rem; +} + +/* Features */ +.features { + padding: 5rem 0; +} + +.features h2, +.about h2, +.contact h2 { + text-align: center; + font-size: 2rem; + font-weight: 700; + margin-bottom: 1rem; + color: #0f172a; +} + +.feature-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); + gap: 2rem; + margin-top: 3rem; +} + +.feature-card { + text-align: center; + padding: 2rem; + border: 1px solid #e2e8f0; + border-radius: 12px; + transition: box-shadow 0.2s; +} + +.feature-card:hover { + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06); +} + +.feature-icon { + font-size: 2.5rem; + margin-bottom: 1rem; +} + +.feature-card h3 { + font-size: 1.125rem; + margin-bottom: 0.5rem; + color: #0f172a; +} + +.feature-card p { + color: #64748b; + font-size: 0.9375rem; +} + +/* About */ +.about { + padding: 5rem 0; + background: #f8fafc; +} + +.about p { + max-width: 700px; + margin: 0 auto 1rem; + text-align: center; + color: #475569; +} + +.about a { + color: #2563eb; + text-decoration: none; +} + +.about a:hover { + text-decoration: underline; +} + +/* Contact */ +.contact { + padding: 5rem 0; +} + +.section-subtitle { + text-align: center; + color: #64748b; + margin-bottom: 2.5rem; +} + +.contact-form { + max-width: 600px; + margin: 0 auto; +} + +.form-row { + display: grid; + grid-template-columns: 1fr 1fr; + gap: 1rem; +} + +@media (max-width: 640px) { + .form-row { + grid-template-columns: 1fr; + } + .hero h1 { + font-size: 2rem; + } +} + +.form-group { + margin-bottom: 1rem; +} + +.form-group label { + display: block; + font-size: 0.875rem; + font-weight: 500; + margin-bottom: 0.375rem; + color: #334155; +} + +.form-group input, +.form-group textarea { + width: 100%; + padding: 0.625rem 0.75rem; + border: 1px solid #d1d5db; + border-radius: 8px; + font-family: inherit; + font-size: 0.9375rem; + transition: border-color 0.2s, box-shadow 0.2s; +} + +.form-group input:focus, +.form-group textarea:focus { + outline: none; + border-color: #2563eb; + box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); +} + +/* Buttons */ +.btn { + display: inline-block; + padding: 0.625rem 1.5rem; + border: none; + border-radius: 8px; + font-size: 0.9375rem; + font-weight: 600; + cursor: pointer; + text-decoration: none; + transition: background 0.2s, transform 0.1s; +} + +.btn:active { + transform: scale(0.98); +} + +.btn-primary { + background: #2563eb; + color: white; +} + +.btn-primary:hover { + background: #1d4ed8; +} + +.btn-lg { + padding: 0.875rem 2.5rem; + font-size: 1rem; +} + +.btn:disabled { + opacity: 0.6; + cursor: not-allowed; +} + +/* Success Message */ +.form-success { + text-align: center; + padding: 2rem; + background: #f0fdf4; + border: 1px solid #bbf7d0; + border-radius: 12px; +} + +.form-success h3 { + color: #16a34a; + font-size: 1.25rem; + margin-bottom: 0.5rem; +} + +.form-success p { + color: #475569; +} + +/* Toast */ +.toast { + position: fixed; + bottom: 1.5rem; + right: 1.5rem; + padding: 0.75rem 1.25rem; + border-radius: 8px; + color: white; + font-size: 0.875rem; + font-weight: 500; + z-index: 1000; + opacity: 0; + transform: translateY(10px); + transition: opacity 0.3s, transform 0.3s; +} + +.toast.show { + opacity: 1; + transform: translateY(0); +} + +.toast-success { background: #16a34a; } +.toast-error { background: #dc2626; } +.toast-info { background: #2563eb; } + +/* Footer */ +.site-footer { + background: #f1f5f9; + padding: 2rem 0; + text-align: center; + color: #64748b; + font-size: 0.875rem; +} +`},{path:"/scripts/main.js",content:`// Landing Page with Contact Form +// In Server Mode, submissions are saved to the database and optionally emailed via Resend. +// In Browser Mode, submissions are saved to localStorage. + +let serverMode = false; + +async function handleContactSubmit(e) { + e.preventDefault(); + + const nameEl = document.getElementById('contact-name'); + const emailEl = document.getElementById('contact-email'); + const subjectEl = document.getElementById('contact-subject'); + const messageEl = document.getElementById('contact-message'); + + const name = nameEl.value.trim(); + const email = emailEl.value.trim(); + const subject = subjectEl.value.trim(); + const message = messageEl.value.trim(); + + if (!name || !email || !message) { + showToast('Please fill in all required fields.', 'error'); + return; + } + + const submitBtn = e.target.querySelector('button[type="submit"]'); + submitBtn.disabled = true; + submitBtn.textContent = 'Sending...'; + + let success = false; + + if (serverMode) { + try { + const res = await fetch('/submit-contact', { + method: 'POST', + headers: { 'Content-Type': 'application/json' }, + body: JSON.stringify({ name, email, subject, message }), + }); + if (!res.ok) throw new Error(); + success = true; + } catch { + showToast('Failed to send message. Please try again.', 'error'); + } + } else { + // Browser Mode — save locally + saveMessageLocally({ name, email, subject, message, date: new Date().toISOString() }); + success = true; + } + + submitBtn.disabled = false; + submitBtn.textContent = 'Send Message'; + + if (success) { + showFormSuccess(); + e.target.reset(); + } +} + +function saveMessageLocally(msg) { + try { + const messages = JSON.parse(localStorage.getItem('contact-messages') || '[]'); + messages.push(msg); + localStorage.setItem('contact-messages', JSON.stringify(messages)); + } catch { + // Ignore storage errors + } +} + +function showFormSuccess() { + const form = document.getElementById('contact-form'); + if (!form) return; + + const successDiv = document.createElement('div'); + successDiv.className = 'form-success'; + successDiv.innerHTML = '

Message Sent!

Thank you for reaching out. We\\u2019ll get back to you soon.

'; + + form.style.display = 'none'; + form.parentNode.insertBefore(successDiv, form.nextSibling); + + // Restore form after 5 seconds + setTimeout(() => { + successDiv.remove(); + form.style.display = 'block'; + }, 5000); +} + +// --- Detect Server Mode --- + +async function detectServerMode() { + try { + const res = await fetch('/list-messages'); + if (res.ok) serverMode = true; + } catch { + // Not in server mode + } +} + +// --- Utilities --- + +function showToast(message, type) { + const toast = document.createElement('div'); + toast.className = 'toast toast-' + (type || 'info'); + toast.textContent = message; + document.body.appendChild(toast); + requestAnimationFrame(() => toast.classList.add('show')); + setTimeout(() => { + toast.classList.remove('show'); + setTimeout(() => toast.remove(), 300); + }, 2500); +} + +// --- Smooth scrolling for anchor links --- + +function setupSmoothScroll() { + document.querySelectorAll('a[href^="#"]').forEach(anchor => { + anchor.addEventListener('click', (e) => { + const target = document.querySelector(anchor.getAttribute('href')); + if (target) { + e.preventDefault(); + target.scrollIntoView({ behavior: 'smooth', block: 'start' }); + } + }); + }); +} + +// --- Init --- + +document.addEventListener('DOMContentLoaded', () => { + setupSmoothScroll(); + detectServerMode(); + + const form = document.getElementById('contact-form'); + if (form) { + form.addEventListener('submit', handleContactSubmit); + } +}); +`}]},g={name:"Blog with Comments",description:"Blog platform with posts, comments, and content management",directories:["/styles","/scripts","/blog","/templates"],files:[{path:"/data.json",content:`{ + "siteName": "My Blog", + "tagline": "Thoughts, tutorials, and stories.", + "navigation": [ + { "title": "Home", "url": "/" } + ], + "posts": [ + { + "title": "Hello World", + "slug": "hello-world", + "excerpt": "Welcome to my blog! This is the first post to get you started.", + "author": "Admin", + "date": "January 15, 2025" + }, + { + "title": "Getting Started with OSW Studio", + "slug": "getting-started", + "excerpt": "Learn how to build and publish websites using OSW Studio's AI-powered development environment.", + "author": "Admin", + "date": "January 10, 2025" + } + ] +}`},{path:"/index.html",content:` + + + + + {{siteName}} + + + + {{> navigation}} + +
+
+

{{siteName}}

+

{{tagline}}

+
+ +
+ {{#each posts}} +
+ +

{{title}}

+

{{excerpt}}

+ by {{author}} +
+ {{/each}} +
+
+ + {{> footer}} + +`},{path:"/blog/hello-world.html",content:` + + + + + Hello World - {{siteName}} + + + + {{> navigation}} + +
+
+ +

Hello World

+ +
+

Welcome to my blog! This is a sample post to help you get started.

+

In Server Mode, comments are stored in a SQLite database and moderated before display. Users can register, log in, and leave comments on any post.

+

In Browser Mode, comments are stored in your browser's localStorage — great for testing and development.

+

What You Can Do

+
    +
  • Create new blog posts as HTML files in the /blog/ directory
  • +
  • Update the post index in /data.json
  • +
  • Customize the design in /styles/style.css
  • +
  • Add dynamic features in Server Mode
  • +
  • Export and deploy anywhere
  • +
+

Each blog post is a standalone HTML file that uses Handlebars partials for the navigation, footer, and comments section — keeping things consistent and easy to maintain.

+
+
+ + {{> comments}} +
+ + {{> footer}} + + + +`},{path:"/blog/getting-started.html",content:` + + + + + Getting Started with OSW Studio - {{siteName}} + + + + {{> navigation}} + +
+
+ +

Getting Started with OSW Studio

+ +
+

OSW Studio makes it easy to build and publish websites using AI. Here\u2019s how to get started.

+

Step 1: Create a Project

+

Open the Projects tab and click New Project. Choose a template or start from scratch.

+

Step 2: Chat with AI

+

Describe what you want to build. The AI will create files, write code, and set up your project structure.

+

Step 3: Preview & Publish

+

Use the live preview to see your changes in real time. In Server Mode, publish your site with one click and your blog is live!

+

Adding New Posts

+

To add a new blog post:

+
    +
  1. Create a new HTML file in the /blog/ directory (e.g. /blog/my-new-post.html)
  2. +
  3. Use the same structure as existing posts — include the navigation, comments, and footer partials
  4. +
  5. Add an entry to the posts array in /data.json with the title, slug, excerpt, author, and date
  6. +
+

Or simply ask the AI to create a new post for you!

+
+
+ + {{> comments}} +
+ + {{> footer}} + + + +`},{path:"/templates/navigation.hbs",content:``},{path:"/templates/footer.hbs",content:`
+
+

© 2025 {{siteName}}. Built with OSW Studio.

+
+
`},{path:"/templates/comments.hbs",content:`
+ + +
`},{path:"/styles/style.css",content:`/* Blog Styles */ +*, +*::before, +*::after { + box-sizing: border-box; + margin: 0; + padding: 0; +} + +body { + font-family: Georgia, 'Times New Roman', serif; + background: #fafaf9; + color: #292524; + line-height: 1.8; +} + +.container { + max-width: 800px; + margin: 0 auto; + padding: 0 1.5rem; +} + +/* Header */ +.site-header { + background: #ffffff; + border-bottom: 1px solid #e7e5e4; + padding: 1rem 0; +} + +.header-inner { + display: flex; + justify-content: space-between; + align-items: center; + max-width: 800px; + margin: 0 auto; + padding: 0 1.5rem; +} + +.logo { + font-size: 1.5rem; + font-weight: 700; + color: #1c1917; + font-family: system-ui, sans-serif; +} + +.logo a { + text-decoration: none; + color: inherit; +} + +nav { + display: flex; + gap: 1.5rem; + font-family: system-ui, sans-serif; +} + +nav a { + text-decoration: none; + color: #78716c; + font-size: 0.875rem; + font-weight: 500; + transition: color 0.2s; +} + +nav a:hover, +nav a.active { + color: #b45309; +} + +/* Hero */ +.hero { + text-align: center; + padding: 3rem 0 2rem; +} + +.hero h2 { + font-size: 2.25rem; + margin-bottom: 0.5rem; + color: #1c1917; +} + +.hero p { + color: #78716c; + font-size: 1.125rem; +} + +/* Post Cards */ +.posts { + padding: 1rem 0 4rem; +} + +.post-card { + padding: 2rem 0; + border-bottom: 1px solid #e7e5e4; +} + +.post-card time { + font-family: system-ui, sans-serif; + font-size: 0.8125rem; + color: #a8a29e; + text-transform: uppercase; + letter-spacing: 0.05em; +} + +.post-card h3 { + font-size: 1.5rem; + margin: 0.5rem 0; +} + +.post-card h3 a { + text-decoration: none; + color: #1c1917; + transition: color 0.2s; +} + +.post-card h3 a:hover { + color: #b45309; +} + +.post-card p { + color: #57534e; + margin-bottom: 0.5rem; +} + +.author { + font-family: system-ui, sans-serif; + font-size: 0.8125rem; + color: #a8a29e; +} + +/* Full Post */ +.post-full { + padding: 2rem 0; +} + +.post-full time { + font-family: system-ui, sans-serif; + font-size: 0.8125rem; + color: #a8a29e; + text-transform: uppercase; + letter-spacing: 0.05em; +} + +.post-full h2 { + font-size: 2rem; + margin: 0.5rem 0 0.25rem; +} + +.post-meta { + margin-bottom: 2rem; + padding-bottom: 1rem; + border-bottom: 1px solid #e7e5e4; +} + +.post-body p { + margin-bottom: 1.25rem; + color: #44403c; +} + +.post-body h3 { + margin: 2rem 0 1rem; + font-size: 1.375rem; +} + +.post-body ul, +.post-body ol { + margin-bottom: 1.25rem; + padding-left: 1.5rem; +} + +.post-body li { + margin-bottom: 0.5rem; + color: #44403c; +} + +.post-body code { + background: #f5f5f4; + padding: 0.125rem 0.375rem; + border-radius: 4px; + font-size: 0.875rem; +} + +/* Comments */ +.comments-section { + border-top: 2px solid #e7e5e4; + padding: 2rem 0 4rem; + margin-top: 2rem; +} + +.comments-section h3 { + font-size: 1.375rem; + margin-bottom: 1.5rem; + font-family: system-ui, sans-serif; +} + +.no-comments { + text-align: center; + padding: 2rem; + color: #a8a29e; + font-style: italic; +} + +.comment { + padding: 1rem 0; + border-bottom: 1px solid #f5f5f4; +} + +.comment.pending { + opacity: 0.7; + font-style: italic; +} + +.comment-header { + display: flex; + justify-content: space-between; + margin-bottom: 0.5rem; + font-family: system-ui, sans-serif; + font-size: 0.875rem; +} + +.comment-author { + font-weight: 600; + color: #1c1917; +} + +.comment-date { + color: #a8a29e; +} + +.comment-body { + color: #57534e; +} + +.comment-pending-label { + font-size: 0.75rem; + color: #b45309; + margin-left: 0.5rem; + font-weight: 400; +} + +/* Comment Form */ +.comment-form { + margin-top: 2rem; + padding: 1.5rem; + background: #ffffff; + border: 1px solid #e7e5e4; + border-radius: 8px; +} + +.comment-form h4 { + font-family: system-ui, sans-serif; + margin-bottom: 1rem; +} + +.form-group { + margin-bottom: 1rem; +} + +.form-group label { + display: block; + font-family: system-ui, sans-serif; + font-size: 0.875rem; + font-weight: 500; + margin-bottom: 0.375rem; + color: #44403c; +} + +.form-group input, +.form-group textarea { + width: 100%; + padding: 0.625rem; + border: 1px solid #d6d3d1; + border-radius: 6px; + font-family: inherit; + font-size: 0.9375rem; + line-height: 1.6; + transition: border-color 0.2s; +} + +.form-group input:focus, +.form-group textarea:focus { + outline: none; + border-color: #b45309; +} + +/* Buttons */ +.btn { + display: inline-block; + padding: 0.625rem 1.25rem; + border: none; + border-radius: 6px; + font-family: system-ui, sans-serif; + font-size: 0.875rem; + font-weight: 600; + cursor: pointer; + transition: background 0.2s, border-color 0.2s; +} + +.btn-primary { + background: #b45309; + color: white; +} + +.btn-primary:hover { + background: #92400e; +} + +.btn-outline { + background: transparent; + border: 1px solid #d6d3d1; + color: #57534e; +} + +.btn-outline:hover { + border-color: #b45309; + color: #b45309; +} + +.btn:disabled { + opacity: 0.6; + cursor: not-allowed; +} + +/* Auth Bar */ +.auth-bar { + display: flex; + align-items: center; + gap: 0.75rem; + margin-bottom: 1rem; + padding: 0.625rem 1rem; + background: #f5f5f4; + border-radius: 6px; + font-family: system-ui, sans-serif; + font-size: 0.875rem; + color: #57534e; +} + +.auth-bar strong { + color: #1c1917; +} + +.auth-bar a { + color: #b45309; + text-decoration: none; + cursor: pointer; +} + +.auth-bar a:hover { + text-decoration: underline; +} + +/* Auth Form (login/register) */ +.auth-form { + margin-top: 2rem; + padding: 1.5rem; + background: #ffffff; + border: 1px solid #e7e5e4; + border-radius: 8px; +} + +.auth-form h4 { + font-family: system-ui, sans-serif; + margin-bottom: 1rem; +} + +/* Tab Toggle */ +.tab-toggle { + display: flex; + gap: 0; + margin-bottom: 1.25rem; + border: 1px solid #e7e5e4; + border-radius: 6px; + overflow: hidden; +} + +.tab-toggle button { + flex: 1; + padding: 0.5rem 1rem; + border: none; + background: #fafaf9; + font-family: system-ui, sans-serif; + font-size: 0.875rem; + font-weight: 500; + color: #78716c; + cursor: pointer; + transition: background 0.2s, color 0.2s; +} + +.tab-toggle button.active { + background: #b45309; + color: white; +} + +.tab-toggle button:not(.active):hover { + background: #f5f5f4; +} + +/* Toast */ +.toast { + position: fixed; + bottom: 1.5rem; + right: 1.5rem; + padding: 0.75rem 1.25rem; + border-radius: 8px; + color: white; + font-family: system-ui, sans-serif; + font-size: 0.875rem; + font-weight: 500; + z-index: 1000; + opacity: 0; + transform: translateY(10px); + transition: opacity 0.3s, transform 0.3s; +} + +.toast.show { + opacity: 1; + transform: translateY(0); +} + +.toast-success { background: #16a34a; } +.toast-error { background: #dc2626; } +.toast-info { background: #b45309; } + +/* Footer */ +.site-footer { + background: #f5f5f4; + padding: 2rem 0; + text-align: center; + color: #a8a29e; + font-family: system-ui, sans-serif; + font-size: 0.875rem; + margin-top: 4rem; +} +`},{path:"/scripts/main.js",content:`// Blog Comments & Auth — works in both Browser Mode and Server Mode +// Server Mode: user auth + moderated comments via edge functions +// Browser Mode: localStorage comments with simple name field (no auth) + +let serverMode = false; +let commentsLoaded = false; + +// Derive slug from current URL: /blog/hello-world.html → hello-world +function getSlug() { + const path = window.location.pathname; + const match = path.match(/\\/blog\\/([^\\/]+)\\.html$/); + return match ? decodeURIComponent(match[1]) : null; +} + +// --- Show Comments (lazy load on button click) --- + +async function showComments() { + if (commentsLoaded) return; + commentsLoaded = true; + + const btn = document.getElementById('show-comments-btn'); + if (btn) btn.textContent = 'Loading...'; + + const area = document.getElementById('comments-area'); + const slug = getSlug(); + if (!slug) return; + + // Detect Server Mode by checking auth-status endpoint + try { + const authRes = await fetch('/auth-status'); + if (authRes.ok) { + const authData = await authRes.json(); + serverMode = true; + + // Fetch comments + const commentsRes = await fetch('/get-comments?slug=' + encodeURIComponent(slug)); + const commentsData = commentsRes.ok ? await commentsRes.json() : { comments: [] }; + + renderComments(commentsData.comments || []); + renderAuthArea(authData.authenticated ? authData.user : null); + } else { + throw new Error('not server mode'); + } + } catch { + // Browser Mode — localStorage comments, no auth + renderComments(getLocalComments(slug)); + renderBrowserCommentForm(); + } + + if (btn) btn.style.display = 'none'; + if (area) area.style.display = 'block'; +} + +// --- Comments --- + +function renderComments(comments) { + const container = document.getElementById('comments-list'); + if (!container) return; + + if (comments.length === 0) { + container.innerHTML = '

No comments yet. Be the first to share your thoughts!

'; + return; + } + + container.innerHTML = comments.map(function(c) { + return '
' + + '
' + + '' + esc(c.author) + (c.pending ? '(pending moderation)' : '') + '' + + '' + formatDate(c.created_at) + '' + + '
' + + '
' + esc(c.content) + '
' + + '
'; + }).join(''); +} + +function getLocalComments(slug) { + try { + var all = JSON.parse(localStorage.getItem('blog-comments') || '{}'); + return all[slug] || []; + } catch { + return []; + } +} + +function saveLocalComment(slug, comment) { + try { + var all = JSON.parse(localStorage.getItem('blog-comments') || '{}'); + if (!all[slug]) all[slug] = []; + all[slug].push(comment); + localStorage.setItem('blog-comments', JSON.stringify(all)); + } catch { + // Ignore storage errors + } +} + +// --- Auth Area (Server Mode) --- + +function renderAuthArea(user) { + var container = document.getElementById('auth-area'); + if (!container) return; + + if (user) { + // Logged in — show auth bar + comment form + container.innerHTML = '
' + + 'Logged in as ' + esc(user.displayName) + ' \\u00b7 Logout' + + '
' + + '
' + + '

Leave a Comment

' + + '
' + + '' + + '' + + '
' + + '' + + '
'; + document.getElementById('logout-link').addEventListener('click', handleLogout); + document.getElementById('comment-form').addEventListener('submit', handleCommentSubmit); + } else { + // Not logged in — show login/register tabbed form + container.innerHTML = '
' + + '
' + + '' + + '' + + '
' + + '
' + + '
' + + '
' + + '
' + + '
' + + '' + + '
' + + '' + + '
'; + + // Tab toggle + var tabLogin = document.getElementById('tab-login'); + var tabRegister = document.getElementById('tab-register'); + tabLogin.addEventListener('click', function() { + tabLogin.classList.add('active'); + tabRegister.classList.remove('active'); + document.getElementById('login-form').style.display = ''; + document.getElementById('register-form').style.display = 'none'; + }); + tabRegister.addEventListener('click', function() { + tabRegister.classList.add('active'); + tabLogin.classList.remove('active'); + document.getElementById('register-form').style.display = ''; + document.getElementById('login-form').style.display = 'none'; + }); + + document.getElementById('login-form').addEventListener('submit', handleLogin); + document.getElementById('register-form').addEventListener('submit', handleRegister); + } +} + +// --- Browser Mode Comment Form --- + +function renderBrowserCommentForm() { + var container = document.getElementById('auth-area'); + if (!container) return; + + container.innerHTML = '
' + + '

Leave a Comment

' + + '
' + + '
' + + '
' + + '
' + + '' + + '
'; + document.getElementById('comment-form').addEventListener('submit', handleBrowserComment); +} + +function handleBrowserComment(e) { + e.preventDefault(); + var slug = getSlug(); + if (!slug) return; + + var author = document.getElementById('comment-author').value.trim(); + var content = document.getElementById('comment-content').value.trim(); + if (!author || !content) { showToast('Please fill in your name and comment.', 'error'); return; } + + var comment = { author: author, content: content, created_at: new Date().toISOString(), pending: false }; + saveLocalComment(slug, comment); + appendCommentToUI(comment); + showToast('Comment added!', 'success'); + e.target.reset(); +} + +// --- Auth Handlers (Server Mode) --- + +async function handleLogin(e) { + e.preventDefault(); + var username = document.getElementById('login-username').value.trim(); + var password = document.getElementById('login-password').value; + if (!username || !password) return; + + var btn = e.target.querySelector('button[type="submit"]'); + btn.disabled = true; btn.textContent = 'Logging in...'; + + try { + var res = await fetch('/login', { + method: 'POST', + headers: { 'Content-Type': 'application/json' }, + body: JSON.stringify({ username: username, password: password }), + }); + var data = await res.json(); + if (!res.ok) { showToast(data.error || 'Login failed', 'error'); btn.disabled = false; btn.textContent = 'Login'; return; } + showToast('Logged in!', 'success'); + renderAuthArea(data.user); + } catch { + showToast('Login failed. Please try again.', 'error'); + btn.disabled = false; btn.textContent = 'Login'; + } +} + +async function handleRegister(e) { + e.preventDefault(); + var username = document.getElementById('reg-username').value.trim(); + var displayName = document.getElementById('reg-display').value.trim(); + var password = document.getElementById('reg-password').value; + if (!username || !password) return; + + var btn = e.target.querySelector('button[type="submit"]'); + btn.disabled = true; btn.textContent = 'Registering...'; + + try { + var res = await fetch('/register', { + method: 'POST', + headers: { 'Content-Type': 'application/json' }, + body: JSON.stringify({ username: username, password: password, displayName: displayName || undefined }), + }); + var data = await res.json(); + if (!res.ok) { showToast(data.error || 'Registration failed', 'error'); btn.disabled = false; btn.textContent = 'Register'; return; } + showToast('Account created!', 'success'); + renderAuthArea(data.user); + } catch { + showToast('Registration failed. Please try again.', 'error'); + btn.disabled = false; btn.textContent = 'Register'; + } +} + +async function handleLogout() { + try { + await fetch('/logout', { method: 'POST' }); + } catch { /* ignore */ } + showToast('Logged out.', 'info'); + renderAuthArea(null); +} + +// --- Comment Submit (Server Mode — authenticated) --- + +async function handleCommentSubmit(e) { + e.preventDefault(); + var slug = getSlug(); + if (!slug) return; + + var contentEl = document.getElementById('comment-content'); + var content = contentEl.value.trim(); + if (!content) { showToast('Please write a comment.', 'error'); return; } + + var submitBtn = e.target.querySelector('button[type="submit"]'); + submitBtn.disabled = true; submitBtn.textContent = 'Submitting...'; + + try { + var res = await fetch('/add-comment', { + method: 'POST', + headers: { 'Content-Type': 'application/json' }, + body: JSON.stringify({ slug: slug, content: content }), + }); + var data = await res.json(); + if (!res.ok) { + if (res.status === 401) { + showToast('Session expired. Please log in again.', 'error'); + renderAuthArea(null); + return; + } + throw new Error(data.error); + } + showToast('Comment submitted for moderation.', 'success'); + appendCommentToUI({ author: 'You', content: content, created_at: new Date().toISOString(), pending: true }); + contentEl.value = ''; + } catch { + showToast('Failed to submit comment. Please try again.', 'error'); + } + + submitBtn.disabled = false; submitBtn.textContent = 'Submit Comment'; +} + +function appendCommentToUI(comment) { + var container = document.getElementById('comments-list'); + if (!container) return; + + var noComments = container.querySelector('.no-comments'); + if (noComments) noComments.remove(); + + var div = document.createElement('div'); + div.className = 'comment' + (comment.pending ? ' pending' : ''); + div.innerHTML = '
' + + '' + esc(comment.author) + (comment.pending ? '(pending moderation)' : '') + '' + + 'Just now' + + '
' + + '
' + esc(comment.content) + '
'; + container.appendChild(div); +} + +// --- Utilities --- + +function esc(str) { + var d = document.createElement('div'); + d.textContent = str; + return d.innerHTML; +} + +function formatDate(dateStr) { + if (!dateStr) return ''; + try { + var date = new Date(dateStr); + return date.toLocaleDateString('en-US', { year: 'numeric', month: 'long', day: 'numeric' }); + } catch { + return dateStr; + } +} + +function showToast(message, type) { + var toast = document.createElement('div'); + toast.className = 'toast toast-' + (type || 'info'); + toast.textContent = message; + document.body.appendChild(toast); + requestAnimationFrame(function() { toast.classList.add('show'); }); + setTimeout(function() { + toast.classList.remove('show'); + setTimeout(function() { toast.remove(); }, 300); + }, 2500); +} + +// --- Init --- + +document.addEventListener('DOMContentLoaded', function() { + var btn = document.getElementById('show-comments-btn'); + if (btn) { + btn.addEventListener('click', showComments); + } +}); +`}]};var h=c(49186);async function i(a,b,c,d){await h.$.runWithSuppressedDirty(b,async()=>{for(let d of c.directories)await a.createDirectory(b,d);for(let d of c.files){let c=d.content;if(d.isBase64){let a=atob(d.content),b=new Uint8Array(a.length);for(let c=0;c0)for(let c of d)try{let d=await fetch(`${window.location.origin}/${c.filename}`);if(d.ok){let e=await d.arrayBuffer();await a.createFile(b,c.path,e)}}catch(a){}})}let j=[{id:"blank",name:"Blank",description:"Minimal starting template with basic HTML/CSS/JS structure",isBuiltIn:!0,updatedAt:new Date("2025-01-01T00:00:00Z"),metadata:{author:"OSW Studio",tags:["starter","basic"]}},{id:"demo",name:"Example Studios",description:"Multi-page agency portfolio showcasing modern web development",isBuiltIn:!0,updatedAt:new Date("2025-01-01T00:00:00Z"),metadata:{author:"OSW Studio",tags:["portfolio","multi-page","example"]}},{id:"contact-landing",name:"Landing Page with Contact Form",description:"Professional landing page with a working contact form powered by Resend",isBuiltIn:!0,updatedAt:new Date("2025-01-01T00:00:00Z"),backendFeatures:{edgeFunctions:[{name:"submit-contact",method:"POST",code:`const body = typeof request.body === 'string' ? JSON.parse(request.body) : request.body; +const { name, email, subject, message } = body; +if (!name || !email || !message) { Response.json({ error: 'Missing required fields' }, 400); return; } +db.run('INSERT INTO messages (name, email, subject, message) VALUES (?, ?, ?, ?)', [name, email, subject || null, message]); + +// Optional: send email via Resend if API key is configured +const apiKey = secrets.has('RESEND_API_KEY') ? secrets.get('RESEND_API_KEY') : null; +const notifyEmail = secrets.has('NOTIFY_EMAIL') ? secrets.get('NOTIFY_EMAIL') : null; +if (apiKey && notifyEmail) { + try { + await fetch('https://api.resend.com/emails', { + method: 'POST', + headers: { 'Authorization': 'Bearer ' + apiKey, 'Content-Type': 'application/json' }, + body: JSON.stringify({ + from: 'Contact Form ', + to: [notifyEmail], + subject: 'New contact: ' + (subject || 'No subject'), + html: '

From: ' + name + ' (' + email + ')

' + message + '

' + }) + }); + } catch (e) { console.error('Email send failed:', e); } +} + +Response.json({ success: true });`,description:"Handle contact form submission — saves to DB and optionally emails via Resend",enabled:!0,timeoutMs:1e4},{name:"list-messages",method:"GET",code:`const messages = db.query('SELECT id, name, email, subject, message, created_at FROM messages ORDER BY created_at DESC LIMIT 50'); +Response.json({ messages });`,description:"List recent contact form submissions (admin use)",enabled:!0,timeoutMs:5e3}],serverFunctions:[],secrets:[{name:"RESEND_API_KEY",description:"Resend API key for sending email notifications (get one at resend.com)"},{name:"NOTIFY_EMAIL",description:"Email address to receive contact form notifications"}],databaseSchema:`CREATE TABLE IF NOT EXISTS messages ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + name TEXT NOT NULL, + email TEXT NOT NULL, + subject TEXT, + message TEXT NOT NULL, + created_at DATETIME DEFAULT CURRENT_TIMESTAMP +);`},metadata:{author:"OSW Studio",tags:["landing-page","contact-form","server-mode"]}},{id:"blog",name:"Blog with Comments",description:"Blog platform with posts, user auth, and moderated comments",isBuiltIn:!0,updatedAt:new Date("2025-01-01T00:00:00Z"),backendFeatures:{edgeFunctions:[{name:"get-comments",method:"GET",code:`const slug = request.query && request.query.slug ? request.query.slug : null; +if (!slug) { Response.json({ error: 'Missing slug' }, 400); return; } +const comments = db.query('SELECT id, author, content, created_at FROM comments WHERE post_slug = ? AND approved = 1 ORDER BY created_at ASC', [slug]); +Response.json({ comments });`,description:"Get approved comments for a blog post by slug",enabled:!0,timeoutMs:5e3},{name:"add-comment",method:"POST",code:`// Requires authenticated session via cookie +const cookie = request.headers && request.headers.cookie ? request.headers.cookie : ''; +const tokenMatch = cookie.match(/blog_session=([^;]+)/); +if (!tokenMatch) { Response.json({ error: 'Not authenticated' }, 401); return; } +const sessions = db.query('SELECT s.*, u.display_name FROM sessions s JOIN users u ON s.user_id = u.id WHERE s.token = ? AND s.expires_at > datetime(\\'now\\')', [tokenMatch[1]]); +if (sessions.length === 0) { Response.json({ error: 'Invalid or expired session' }, 401); return; } +const body = typeof request.body === 'string' ? JSON.parse(request.body) : request.body; +const { slug, content } = body; +if (!slug || !content) { Response.json({ error: 'Missing required fields' }, 400); return; } +db.run('INSERT INTO comments (post_slug, author, content, approved) VALUES (?, ?, ?, ?)', [slug, sessions[0].display_name, content, 0]); +Response.json({ success: true, message: 'Comment submitted for moderation' });`,description:"Submit a comment (requires authenticated session)",enabled:!0,timeoutMs:5e3},{name:"register",method:"POST",code:`const body = typeof request.body === 'string' ? JSON.parse(request.body) : request.body; +const { username, password, displayName } = body; +if (!username || username.length < 3) { Response.json({ error: 'Username must be at least 3 characters' }, 400); return; } +if (!password || password.length < 6) { Response.json({ error: 'Password must be at least 6 characters' }, 400); return; } +const display = displayName || username; +const existing = db.query('SELECT id FROM users WHERE username = ?', [username.toLowerCase()]); +if (existing.length > 0) { Response.json({ error: 'Username already taken' }, 409); return; } +const salt = crypto.randomUUID(); +const passwordHash = crypto.sha256(salt + ':' + password); +const result = db.run('INSERT INTO users (username, password_hash, salt, display_name) VALUES (?, ?, ?, ?)', [username.toLowerCase(), passwordHash, salt, display]); +const userId = result.lastInsertRowid; +const token = crypto.randomUUID(); +db.run('INSERT INTO sessions (user_id, token, expires_at) VALUES (?, ?, datetime(\\'now\\', \\'+30 days\\'))', [userId, token]); +Response.json({ success: true, user: { username: username.toLowerCase(), displayName: display } }, 200, { 'Set-Cookie': 'blog_session=' + token + '; Path=/; HttpOnly; SameSite=Lax; Max-Age=2592000' });`,description:"Register a new user account",enabled:!0,timeoutMs:5e3},{name:"login",method:"POST",code:`const body = typeof request.body === 'string' ? JSON.parse(request.body) : request.body; +const { username, password } = body; +if (!username || !password) { Response.json({ error: 'Username and password are required' }, 400); return; } +const users = db.query('SELECT * FROM users WHERE username = ?', [username.toLowerCase()]); +if (users.length === 0) { Response.json({ error: 'Invalid credentials' }, 401); return; } +const user = users[0]; +const hash = crypto.sha256(user.salt + ':' + password); +if (hash !== user.password_hash) { Response.json({ error: 'Invalid credentials' }, 401); return; } +// Clean up expired sessions for this user +db.run('DELETE FROM sessions WHERE user_id = ? AND expires_at < datetime(\\'now\\')', [user.id]); +const token = crypto.randomUUID(); +db.run('INSERT INTO sessions (user_id, token, expires_at) VALUES (?, ?, datetime(\\'now\\', \\'+30 days\\'))', [user.id, token]); +Response.json({ success: true, user: { username: user.username, displayName: user.display_name } }, 200, { 'Set-Cookie': 'blog_session=' + token + '; Path=/; HttpOnly; SameSite=Lax; Max-Age=2592000' });`,description:"Log in with username and password",enabled:!0,timeoutMs:5e3},{name:"logout",method:"POST",code:`const cookie = request.headers && request.headers.cookie ? request.headers.cookie : ''; +const tokenMatch = cookie.match(/blog_session=([^;]+)/); +if (tokenMatch) { db.run('DELETE FROM sessions WHERE token = ?', [tokenMatch[1]]); } +Response.json({ success: true }, 200, { 'Set-Cookie': 'blog_session=; Path=/; HttpOnly; SameSite=Lax; Max-Age=0' });`,description:"Log out and clear session",enabled:!0,timeoutMs:5e3},{name:"auth-status",method:"GET",code:`const cookie = request.headers && request.headers.cookie ? request.headers.cookie : ''; +const tokenMatch = cookie.match(/blog_session=([^;]+)/); +if (!tokenMatch) { Response.json({ authenticated: false }); return; } +const sessions = db.query('SELECT s.*, u.username, u.display_name FROM sessions s JOIN users u ON s.user_id = u.id WHERE s.token = ? AND s.expires_at > datetime(\\'now\\')', [tokenMatch[1]]); +if (sessions.length === 0) { Response.json({ authenticated: false }); return; } +Response.json({ authenticated: true, user: { username: sessions[0].username, displayName: sessions[0].display_name } });`,description:"Check authentication status from session cookie",enabled:!0,timeoutMs:5e3}],serverFunctions:[],secrets:[],databaseSchema:`CREATE TABLE IF NOT EXISTS comments ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + post_slug TEXT NOT NULL, + author TEXT NOT NULL, + content TEXT NOT NULL, + approved INTEGER DEFAULT 0, + created_at DATETIME DEFAULT CURRENT_TIMESTAMP +); + +CREATE TABLE IF NOT EXISTS users ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + username TEXT NOT NULL UNIQUE, + password_hash TEXT NOT NULL, + salt TEXT NOT NULL, + display_name TEXT NOT NULL, + created_at DATETIME DEFAULT CURRENT_TIMESTAMP +); + +CREATE TABLE IF NOT EXISTS sessions ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + user_id INTEGER NOT NULL REFERENCES users(id), + token TEXT NOT NULL UNIQUE, + expires_at DATETIME NOT NULL, + created_at DATETIME DEFAULT CURRENT_TIMESTAMP +);`},metadata:{author:"OSW Studio",tags:["blog","comments","auth","server-mode"]}}]},95919:(a,b,c)=>{c.d(b,{g:()=>k,C:()=>l});var d=c(21124),e=c(38301),f=c(47247),g=c(6027);c(2117),c(11482);var h=c(98763),i=c(49186);let j=(0,e.createContext)(null);function k({children:a}){let[b,k]=(0,e.useState)("idle"),[l,m]=(0,e.useState)(0),[n,o]=(0,e.useState)(0),[p,q]=(0,e.useState)([]),[r,s]=(0,e.useState)(!1),[t,u]=(0,e.useState)([]),[v,w]=(0,e.useState)(null),[x,y]=(0,e.useState)(null),[z,A]=(0,e.useState)({projectId:null,preCheckpointId:null,postCheckpointId:null,originalCss:null,updatedCss:null}),B=(0,e.useRef)(z),C=(0,e.useRef)(null),D=(0,e.useRef)(null),E=(0,e.useRef)(null),F=(0,e.useRef)(null),G=(0,e.useRef)(null),H=(0,e.useRef)(null),I=(0,e.useMemo)(()=>(function(a){if(!(a<0)&&!(a>=g.A.length))return g.A[a]})(l),[l]),J=(0,e.useCallback)(()=>{A({projectId:null,preCheckpointId:null,postCheckpointId:null,originalCss:null,updatedCss:null}),C.current=null,D.current=null,E.current=null,F.current=null},[]),K=(0,e.useCallback)(async()=>{"running"===b&&(k("idle"),await new Promise(a=>setTimeout(a,100)));try{let{vfs:a}=await Promise.resolve().then(c.bind(c,11482)),{createProjectFromTemplate:b}=await Promise.resolve().then(c.bind(c,69374)),{DEMO_PROJECT_TEMPLATE:d}=await Promise.resolve().then(c.bind(c,69374));await a.init();let e=await a.createProject("Example Studios (Tour)","Demo project for guided tour");await b(a,e.id,d,d.assets),y(e.id);let f=await a.listProjects();u(f),await new Promise(a=>setTimeout(a,100)),k("running"),m(0),o(a=>a+1),q([]),J()}catch(a){console.error("[Tour] Failed to create demo project:",a),k("running"),m(0),o(a=>a+1),q([]),J()}},[J,b]),L=(0,e.useCallback)(a=>{H.current=a},[]),M=(0,e.useCallback)(async(a="finish")=>{let b=B.current;if(b.projectId&&b.preCheckpointId&&b.postCheckpointId&&i.$.runWithSuppressedDirty(b.projectId,async()=>{await h.Y.restoreCheckpoint(b.preCheckpointId)}).then(()=>{}).catch(a=>{console.error("[GuidedTour] Failed to restore baseline during cleanup",a)}),x)try{let{vfs:a}=await Promise.resolve().then(c.bind(c,11482));await a.init(),(await a.listProjects()).filter(a=>a.id!==x).length>0&&await a.deleteProject(x)}catch(a){console.error("[GuidedTour] Failed to cleanup tour demo project",a)}J(),q([]),m(0),o(a=>a+1),k("finish"===a?"completed":"idle"),f.s.setHasSeenTour(!0),G.current?.abort(),H.current=null},[J,x,t]),N=(0,e.useCallback)(()=>{M("skip")},[M]),O=(0,e.useCallback)(()=>{m(a=>{let b=a+1;if(b>=g.A.length)return M(),a;let c=g.A[b];return c?.location==="workspace"&&x&&setTimeout(()=>{w(x)},100),o(a=>a+1),b})},[M,x]),P=(0,e.useCallback)(()=>{m(a=>{let b=Math.max(0,a-1);return b!==a&&o(a=>a+1),b})},[]),Q=(0,e.useMemo)(()=>({state:{status:b,stepIndex:l,stepKey:n,currentStep:I,transcript:p,isBusy:r,projectList:t,tourDemoProjectId:x},start:K,skip:N,next:O,previous:P,setProjectList:a=>{u(a)},setActiveProjectId:w,setTranscript:q,setWorkspaceHandler:L,setTourDemoProjectId:y}),[b,l,n,I,p,r,t,x,K,N,O,P,L]);return(0,d.jsx)(j.Provider,{value:Q,children:a})}function l(){let a=(0,e.useContext)(j);if(!a)throw Error("useGuidedTour must be used within a GuidedTourProvider");return a}},97518:(a,b,c)=>{c.d(b,{P:()=>p});var d=c(75234),e=c(74097),f=c(46422),g=c(15350),h=c(2510),i=c(80196),j=c(11082),k=c(79764),l=c(43700),m=c(65828),n=c(86949),o=c(98688);let p=[{id:"whats-new",title:"What's New",icon:d.A,file:"WHATS_NEW.md"},{id:"overview",title:"Overview",icon:e.A,file:"OVERVIEW.md"},{id:"getting-started",title:"Getting Started",icon:f.A,file:"GETTING_STARTED.md"},{id:"projects",title:"Projects",icon:g.A,file:"PROJECTS.md"},{id:"working-with-ai",title:"Working with AI",icon:d.A,file:"WORKING_WITH_AI.md"},{id:"templates",title:"Templates",icon:h.A,file:"TEMPLATES.md"},{id:"skills",title:"Skills",icon:d.A,file:"SKILLS.md"},{id:"deploying-sites",title:"Deploying",icon:i.A,file:"DEPLOYING_SITES.md"},{id:"server-mode",title:"Server Mode",icon:j.A,file:"SERVER_MODE.md"},{id:"vps-deployment",title:"VPS Deployment",icon:k.A,file:"VPS_DEPLOYMENT.md"},{id:"site-publishing",title:"Deployment Publishing",icon:l.A,file:"SITE_PUBLISHING.md"},{id:"backend-features",title:"Backend",icon:m.A,file:"BACKEND_FEATURES.md"},{id:"faq",title:"FAQ",icon:n.A,file:"FAQ.md"},{id:"troubleshooting",title:"Troubleshooting",icon:o.A,file:"TROUBLESHOOTING.md"}]}}; \ No newline at end of file diff --git a/.next/server/instrumentation.js b/.next/server/instrumentation.js index 6223a2e0c05ab45ad5e4f11978e958396656d9cc..c88691be479981abecc8a001e86fd23459be4dee 100644 --- a/.next/server/instrumentation.js +++ b/.next/server/instrumentation.js @@ -1 +1 @@ -"use strict";(()=>{var a={};a.id=6183,a.ids=[6183],a.modules={5205:a=>{a.exports=import("quickjs-emscripten-core")},17915:a=>{a.exports=import("@jitl/quickjs-wasmfile-release-sync")},29021:a=>{a.exports=require("fs")},33873:a=>{a.exports=require("path")},52586:(a,b,c)=>{async function d(){try{let{listSiteIds:a}=await c.e(3614).then(c.bind(c,13614));a();let{Scheduler:b}=await c.e(7170).then(c.bind(c,7170)),{createSiteSchedulerTask:d}=await c.e(5823).then(c.bind(c,78204)),e=new b({pollIntervalMs:3e4});e.registerTask(d()),e.start()}catch(a){process.env.ADMIN_PASSWORD&&console.warn("[Scheduler] Failed to initialize:",a instanceof Error?a.message:a)}}c.r(b),c.d(b,{register:()=>d})},55511:a=>{a.exports=require("crypto")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("./webpack-runtime.js");b.C(a);var c=b(b.s=52586);module.exports=c})(); \ No newline at end of file +"use strict";(()=>{var a={};a.id=6183,a.ids=[6183],a.modules={5205:a=>{a.exports=import("quickjs-emscripten-core")},17915:a=>{a.exports=import("@jitl/quickjs-wasmfile-release-sync")},29021:a=>{a.exports=require("fs")},33873:a=>{a.exports=require("path")},52586:(a,b,c)=>{async function d(){try{let{listDeploymentIds:a}=await c.e(3614).then(c.bind(c,13614));a();let{Scheduler:b}=await c.e(7170).then(c.bind(c,7170)),{createDeploymentSchedulerTask:d}=await c.e(9399).then(c.bind(c,99399)),e=new b({pollIntervalMs:3e4});e.registerTask(d()),e.start()}catch(a){process.env.ADMIN_PASSWORD&&console.warn("[Scheduler] Failed to initialize:",a instanceof Error?a.message:a)}}c.r(b),c.d(b,{register:()=>d})},55511:a=>{a.exports=require("crypto")},87550:a=>{a.exports=require("better-sqlite3")}};var b=require("./webpack-runtime.js");b.C(a);var c=b(b.s=52586);module.exports=c})(); \ No newline at end of file diff --git a/.next/server/middleware-build-manifest.js b/.next/server/middleware-build-manifest.js index e670f42adca1d12175cfd1ba3911afb478d7c802..10b4d5273968556f2ec3345a24e8aa93eb21ad59 100644 --- a/.next/server/middleware-build-manifest.js +++ b/.next/server/middleware-build-manifest.js @@ -1 +1 @@ -globalThis.__BUILD_MANIFEST={polyfillFiles:["static/chunks/polyfills-42372ed130431b0a.js"],devFiles:[],ampDevFiles:[],lowPriorityFiles:[],rootMainFiles:["static/chunks/webpack-6a42fdfdafb7575a.js","static/chunks/4bd1b696-100b9d70ed4e49c1.js","static/chunks/1255-8befde0980f5cba9.js","static/chunks/main-app-6796e1116c8e92de.js"],rootMainFilesTree:{},pages:{"/_app":["static/chunks/webpack-6a42fdfdafb7575a.js","static/chunks/framework-bd61ec64032c2de7.js","static/chunks/main-73443a1a35107593.js","static/chunks/pages/_app-4b3fb5e477a0267f.js"],"/_error":["static/chunks/webpack-6a42fdfdafb7575a.js","static/chunks/framework-bd61ec64032c2de7.js","static/chunks/main-73443a1a35107593.js","static/chunks/pages/_error-c970d8b55ace1b48.js"]},ampFirstPages:[]},globalThis.__BUILD_MANIFEST.lowPriorityFiles=["/static/"+process.env.__NEXT_BUILD_ID+"/_buildManifest.js",,"/static/"+process.env.__NEXT_BUILD_ID+"/_ssgManifest.js"]; \ No newline at end of file +globalThis.__BUILD_MANIFEST={polyfillFiles:["static/chunks/polyfills-42372ed130431b0a.js"],devFiles:[],ampDevFiles:[],lowPriorityFiles:[],rootMainFiles:["static/chunks/webpack-6a7eac135ffbf936.js","static/chunks/4bd1b696-100b9d70ed4e49c1.js","static/chunks/1255-8befde0980f5cba9.js","static/chunks/main-app-6796e1116c8e92de.js"],rootMainFilesTree:{},pages:{"/_app":["static/chunks/webpack-6a7eac135ffbf936.js","static/chunks/framework-bd61ec64032c2de7.js","static/chunks/main-73443a1a35107593.js","static/chunks/pages/_app-4b3fb5e477a0267f.js"],"/_error":["static/chunks/webpack-6a7eac135ffbf936.js","static/chunks/framework-bd61ec64032c2de7.js","static/chunks/main-73443a1a35107593.js","static/chunks/pages/_error-c970d8b55ace1b48.js"]},ampFirstPages:[]},globalThis.__BUILD_MANIFEST.lowPriorityFiles=["/static/"+process.env.__NEXT_BUILD_ID+"/_buildManifest.js",,"/static/"+process.env.__NEXT_BUILD_ID+"/_ssgManifest.js"]; \ No newline at end of file diff --git a/.next/server/middleware-manifest.json b/.next/server/middleware-manifest.json index b5b8c8c4a8469ac87f9828bfcb22886e81f55e42..d3b50566efca7444abb4b4a5ebbbac03f93e92cb 100644 --- a/.next/server/middleware-manifest.json +++ b/.next/server/middleware-manifest.json @@ -18,11 +18,11 @@ "wasm": [], "assets": [], "env": { - "__NEXT_BUILD_ID": "Dj_mU3ym-gcopP6URA30w", - "NEXT_SERVER_ACTIONS_ENCRYPTION_KEY": "flncnxhSTACdguFALeYwglRdqglRvU2NT81F15tnIO4=", - "__NEXT_PREVIEW_MODE_ID": "9664e3819029b9cae7a0b4cc06e05681", - "__NEXT_PREVIEW_MODE_SIGNING_KEY": "ec50251289ff47d9a3399c535ade80092b835a889c1f041762c6312681261565", - "__NEXT_PREVIEW_MODE_ENCRYPTION_KEY": "2db42a7f17d06c1f12552bcd759256e1d99f6b8c2c60b3cb1e921667566b9d1d" + "__NEXT_BUILD_ID": "6U79IAVVts3v8bcNT6dWz", + "NEXT_SERVER_ACTIONS_ENCRYPTION_KEY": "t+n1/8ZcDIH8UtmOeS4uOnqr/QPeR9z5iDt1nmJB8W8=", + "__NEXT_PREVIEW_MODE_ID": "286d8fb8dd494eab5bda069a2ea4e0d5", + "__NEXT_PREVIEW_MODE_SIGNING_KEY": "569df3850c5a3af5028937eb4c0a8667962fd705e00c0be0a9fc75d6bb7d59b7", + "__NEXT_PREVIEW_MODE_ENCRYPTION_KEY": "a595dcde69cf6934a928c81d59cd443ac2d0d2fdacec7d85b4cac8b97e32f430" } } }, diff --git a/.next/server/middleware-react-loadable-manifest.js b/.next/server/middleware-react-loadable-manifest.js index be8e5a5fab1805f90d80b7a952acf1182b26510f..ae9542ba95fd4b3c0204500be117f80caa5399fa 100644 --- a/.next/server/middleware-react-loadable-manifest.js +++ b/.next/server/middleware-react-loadable-manifest.js @@ -1 +1 @@ -self.__REACT_LOADABLE_MANIFEST='{"components/file-explorer/index.tsx -> @/lib/vfs/skills":{"id":39336,"files":[]},"components/guided-tour/context.tsx -> @/lib/vfs":{"id":94318,"files":[]},"components/guided-tour/context.tsx -> @/lib/vfs/project-templates":{"id":98752,"files":[]},"components/heatmap-viewer/index.tsx -> @/lib/utils/screenshot":{"id":3169,"files":[]},"components/views/content-area.tsx -> @/lib/vfs":{"id":94318,"files":[]},"lib/llm/debug-events-state.ts -> @/lib/vfs":{"id":94318,"files":[]},"lib/llm/multi-agent-orchestrator.ts -> @/lib/auth/codex-auth":{"id":11454,"files":[]},"lib/vfs/adapters/factory.ts -> ./sqlite-adapter":{"id":87739,"files":["static/chunks/aaea2bcf.143d3b0dc8132bc4.js","static/chunks/8231.2a53dd09caf3dd99.js","static/chunks/7739.52e833cd492517c8.js"]},"lib/vfs/backup-service.ts -> @/lib/vfs":{"id":94318,"files":[]},"lib/vfs/cli-shell.ts -> ./index":{"id":94318,"files":[]},"lib/vfs/index.ts -> ./auto-sync":{"id":37714,"files":["static/chunks/7714.ccb74eca63677a95.js"]},"lib/vfs/index.ts -> ./server-context":{"id":91577,"files":["static/chunks/9ad0e60a.886739945b437238.js","static/chunks/1577.53b9baa9b34232a8.js"]},"lib/vfs/template-service.ts -> ./index":{"id":94318,"files":[]},"node_modules/@huggingface/hub/dist/browser/index.mjs -> ./FileBlob-7MRLQ6TG.mjs":{"id":96406,"files":["static/chunks/6406.be2ef3732e0dd42e.js"]},"node_modules/@huggingface/hub/dist/browser/index.mjs -> ./chunker_wasm-3YGRTTMN.mjs":{"id":85434,"files":["static/chunks/5434.6d4239952bbb7b27.js"]},"node_modules/@huggingface/hub/dist/browser/index.mjs -> ./sha256-node-TNZ2WHTI.mjs":{"id":35309,"files":["static/chunks/5309.f32a7a50f5c91f85.js"]},"node_modules/@huggingface/hub/dist/browser/index.mjs -> ./sha256-wrapper-RIVMC2TM.mjs":{"id":17552,"files":["static/chunks/7552.fa4bc89d55a6ec5e.js"]},"node_modules/@huggingface/hub/dist/browser/index.mjs -> ./sub-paths-F6TP7MGR.mjs":{"id":74845,"files":["static/chunks/4845.d493501706994acb.js"]}}'; \ No newline at end of file +self.__REACT_LOADABLE_MANIFEST='{"components/file-explorer/index.tsx -> @/lib/vfs/skills":{"id":39336,"files":[]},"components/guided-tour/context.tsx -> @/lib/vfs":{"id":94318,"files":[]},"components/guided-tour/context.tsx -> @/lib/vfs/project-templates":{"id":98752,"files":[]},"components/heatmap-viewer/index.tsx -> @/lib/utils/screenshot":{"id":3169,"files":[]},"components/views/content-area.tsx -> @/lib/vfs":{"id":94318,"files":[]},"lib/llm/debug-events-state.ts -> @/lib/vfs":{"id":94318,"files":[]},"lib/llm/multi-agent-orchestrator.ts -> @/lib/auth/codex-auth":{"id":11454,"files":[]},"lib/vfs/adapters/factory.ts -> ./sqlite-adapter":{"id":34481,"files":["static/chunks/aaea2bcf.143d3b0dc8132bc4.js","static/chunks/8231.2a53dd09caf3dd99.js","static/chunks/4481.42d49ebcb8c10deb.js"]},"lib/vfs/backup-service.ts -> @/lib/vfs":{"id":94318,"files":[]},"lib/vfs/cli-shell.ts -> ./index":{"id":94318,"files":[]},"lib/vfs/index.ts -> ./auto-sync":{"id":37714,"files":["static/chunks/7714.7621501a80d6df6d.js"]},"lib/vfs/index.ts -> ./server-context":{"id":91577,"files":["static/chunks/9ad0e60a.886739945b437238.js","static/chunks/1577.53b9baa9b34232a8.js"]},"lib/vfs/index.ts -> uuid":{"id":67108,"files":["static/chunks/7108.a799c23dcf87acfd.js"]},"lib/vfs/sync-manager.ts -> @/lib/vfs":{"id":94318,"files":[]},"lib/vfs/template-service.ts -> ./index":{"id":94318,"files":[]},"node_modules/@huggingface/hub/dist/browser/index.mjs -> ./FileBlob-7MRLQ6TG.mjs":{"id":96406,"files":["static/chunks/6406.be2ef3732e0dd42e.js"]},"node_modules/@huggingface/hub/dist/browser/index.mjs -> ./chunker_wasm-3YGRTTMN.mjs":{"id":85434,"files":["static/chunks/5434.6d4239952bbb7b27.js"]},"node_modules/@huggingface/hub/dist/browser/index.mjs -> ./sha256-node-TNZ2WHTI.mjs":{"id":35309,"files":["static/chunks/5309.f32a7a50f5c91f85.js"]},"node_modules/@huggingface/hub/dist/browser/index.mjs -> ./sha256-wrapper-RIVMC2TM.mjs":{"id":17552,"files":["static/chunks/7552.fa4bc89d55a6ec5e.js"]},"node_modules/@huggingface/hub/dist/browser/index.mjs -> ./sub-paths-F6TP7MGR.mjs":{"id":74845,"files":["static/chunks/4845.d493501706994acb.js"]}}'; \ No newline at end of file diff --git a/.next/server/next-font-manifest.js b/.next/server/next-font-manifest.js index f13549114e17868c0caf2a57bac6debb5f08f2cb..b346bb349ff4bdbe50d1b2590095a197914b33d8 100644 --- a/.next/server/next-font-manifest.js +++ b/.next/server/next-font-manifest.js @@ -1 +1 @@ -self.__NEXT_FONT_MANIFEST='{"pages":{},"app":{"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":["static/media/e4af272ccee01ff0-s.p.woff2","static/media/58f662ed5ba12a72-s.p.woff2","static/media/c3f6eb667c0186c5-s.p.woff2"]},"appUsingSizeAdjust":true,"pagesUsingSizeAdjust":false}'; \ No newline at end of file +self.__NEXT_FONT_MANIFEST='{"pages":{},"app":{"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":["static/media/58f662ed5ba12a72-s.p.woff2","static/media/c3f6eb667c0186c5-s.p.woff2","static/media/e4af272ccee01ff0-s.p.woff2"]},"appUsingSizeAdjust":true,"pagesUsingSizeAdjust":false}'; \ No newline at end of file diff --git a/.next/server/next-font-manifest.json b/.next/server/next-font-manifest.json index f76cf08bd5e7e6a80ad20fb77c25ba5fe7652443..237b0e5dacf5e809aee50dc040f9f1871b6166f0 100644 --- a/.next/server/next-font-manifest.json +++ b/.next/server/next-font-manifest.json @@ -1 +1 @@ -{"pages":{},"app":{"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":["static/media/e4af272ccee01ff0-s.p.woff2","static/media/58f662ed5ba12a72-s.p.woff2","static/media/c3f6eb667c0186c5-s.p.woff2"]},"appUsingSizeAdjust":true,"pagesUsingSizeAdjust":false} \ No newline at end of file +{"pages":{},"app":{"/Users/otto/Desktop/deepstudio/osw-studio-git/app/layout":["static/media/58f662ed5ba12a72-s.p.woff2","static/media/c3f6eb667c0186c5-s.p.woff2","static/media/e4af272ccee01ff0-s.p.woff2"]},"appUsingSizeAdjust":true,"pagesUsingSizeAdjust":false} \ No newline at end of file diff --git a/.next/server/pages-manifest.json b/.next/server/pages-manifest.json index 1a403dd2cd7485dd7c505170c3abf612a5d05660..ec0b0490a22b511151901a16cc1e79ab3dfb0e02 100644 --- a/.next/server/pages-manifest.json +++ b/.next/server/pages-manifest.json @@ -1,6 +1,6 @@ { - "/_error": "pages/_error.js", "/_app": "pages/_app.js", + "/_error": "pages/_error.js", "/_document": "pages/_document.js", "/404": "pages/404.html" } \ No newline at end of file diff --git a/.next/server/pages/404.html b/.next/server/pages/404.html index e8c24b5a17bd5ac6a8fad5c4ac75f18be138256c..636f6888be954a906a72beee6ba70217d03c484d 100644 --- a/.next/server/pages/404.html +++ b/.next/server/pages/404.html @@ -1 +1 @@ -404: This page could not be found.Open Source Web Studio | Agentic AI Development 🎨

404

This page could not be found.

\ No newline at end of file +404: This page could not be found.Open Source Web Studio | Agentic AI Development 🎨

404

This page could not be found.

\ No newline at end of file diff --git a/.next/server/pages/500.html b/.next/server/pages/500.html index bd67abb2c5bf610ec80c41a4f5f4083486b2d00b..30246223f5b40c751f8616e521239da365dddeac 100644 --- a/.next/server/pages/500.html +++ b/.next/server/pages/500.html @@ -1 +1 @@ -500: Internal Server Error

500

Internal Server Error.

\ No newline at end of file +500: Internal Server Error

500

Internal Server Error.

\ No newline at end of file diff --git a/.next/server/pages/_error.js b/.next/server/pages/_error.js index 10da5f74c53a61625efae84aa95a32b25b5ae3fc..a4ef54266ef79d84f54635349915489cba499290 100644 --- a/.next/server/pages/_error.js +++ b/.next/server/pages/_error.js @@ -1,4 +1,4 @@ -(()=>{var a={};a.id=2731,a.ids=[2731,3220],a.modules={625:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"default",{enumerable:!0,get:function(){return i}});let d=c(87020),e=c(8732),f=d._(c(82015)),g=c(76915);async function h(a){let{Component:b,ctx:c}=a;return{pageProps:await (0,g.loadGetInitialProps)(b,c)}}class i extends f.default.Component{render(){let{Component:a,pageProps:b}=this.props;return(0,e.jsx)(a,{...b})}}i.origGetInitialProps=h,i.getInitialProps=h,("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},1523:(a,b,c)=>{"use strict";a.exports=c(63885).vendored.contexts.HeadManagerContext},3147:(a,b)=>{"use strict";function c(a){if("function"!=typeof WeakMap)return null;var b=new WeakMap,d=new WeakMap;return(c=function(a){return a?d:b})(a)}b._=function(a,b){if(!b&&a&&a.__esModule)return a;if(null===a||"object"!=typeof a&&"function"!=typeof a)return{default:a};var d=c(b);if(d&&d.has(a))return d.get(a);var e={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in a)if("default"!==g&&Object.prototype.hasOwnProperty.call(a,g)){var h=f?Object.getOwnPropertyDescriptor(a,g):null;h&&(h.get||h.set)?Object.defineProperty(e,g,h):e[g]=a[g]}return e.default=a,d&&d.set(a,e),e}},5242:(a,b)=>{"use strict";function c(a,b){let c;if((null==b?void 0:b.host)&&!Array.isArray(b.host))c=b.host.toString().split(":",1)[0];else{if(!a.hostname)return;c=a.hostname}return c.toLowerCase()}Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"getHostname",{enumerable:!0,get:function(){return c}})},6479:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{DOC_PREFETCH_RANGE_HEADER_VALUE:function(){return d},doesExportedHtmlMatchBuildId:function(){return g},insertBuildIdComment:function(){return f}});let c="",d="bytes=0-63";function e(a){return a.slice(0,24).replace(/-/g,"_")}function f(a,b){return b.includes("--\x3e")||!a.startsWith(c)?a:a.replace(c,c+"\x3c!--"+e(b)+"--\x3e")}function g(a,b){return a.startsWith(c+"\x3c!--"+e(b)+"--\x3e")}},8538:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"Batcher",{enumerable:!0,get:function(){return e}});let d=c(73367);class e{constructor(a,b=a=>a()){this.cacheKeyFn=a,this.schedulerFn=b,this.pending=new Map}static create(a){return new e(null==a?void 0:a.cacheKeyFn,null==a?void 0:a.schedulerFn)}async batch(a,b){let c=this.cacheKeyFn?await this.cacheKeyFn(a):a;if(null===c)return b(c,Promise.resolve);let e=this.pending.get(c);if(e)return e;let{promise:f,resolve:g,reject:h}=new d.DetachedPromise;return this.pending.set(c,f),this.schedulerFn(async()=>{try{let a=await b(c,g);g(a)}catch(a){h(a)}finally{this.pending.delete(c)}}),f}}},8732:a=>{"use strict";a.exports=require("react/jsx-runtime")},11590:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"default",{enumerable:!0,get:function(){return k}});let d=c(87020),e=c(8732),f=d._(c(82015)),g=d._(c(36006)),h={400:"Bad Request",404:"This page could not be found",405:"Method Not Allowed",500:"Internal Server Error"};function i(a){let b,{req:d,res:e,err:f}=a,g=e&&e.statusCode?e.statusCode:f?f.statusCode:404;if(d){let{getRequestMeta:a}=c(35124),e=a(d,"initURL");e&&(b=new URL(e).hostname)}return{statusCode:g,hostname:b}}let j={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},desc:{lineHeight:"48px"},h1:{display:"inline-block",margin:"0 20px 0 0",paddingRight:23,fontSize:24,fontWeight:500,verticalAlign:"top"},h2:{fontSize:14,fontWeight:400,lineHeight:"28px"},wrap:{display:"inline-block"}};class k extends f.default.Component{render(){let{statusCode:a,withDarkMode:b=!0}=this.props,c=this.props.title||h[a]||"An unexpected error has occurred";return(0,e.jsxs)("div",{style:j.error,children:[(0,e.jsx)(g.default,{children:(0,e.jsx)("title",{children:a?a+": "+c:"Application error: a client-side exception has occurred"})}),(0,e.jsxs)("div",{style:j.desc,children:[(0,e.jsx)("style",{dangerouslySetInnerHTML:{__html:"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}"+(b?"@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}":"")}}),a?(0,e.jsx)("h1",{className:"next-error-h1",style:j.h1,children:a}):null,(0,e.jsx)("div",{style:j.wrap,children:(0,e.jsxs)("h2",{style:j.h2,children:[this.props.title||a?c:(0,e.jsxs)(e.Fragment,{children:["Application error: a client-side exception has occurred"," ",!!this.props.hostname&&(0,e.jsxs)(e.Fragment,{children:["while loading ",this.props.hostname]})," ","(see the browser console for more information)"]}),"."]})})]})]})}}k.displayName="ErrorPage",k.getInitialProps=i,k.origGetInitialProps=i,("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},11896:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{HTML_LIMITED_BOT_UA_RE:function(){return d.HTML_LIMITED_BOT_UA_RE},HTML_LIMITED_BOT_UA_RE_STRING:function(){return f},getBotType:function(){return i},isBot:function(){return h}});let d=c(33830),e=/Googlebot(?!-)|Googlebot$/i,f=d.HTML_LIMITED_BOT_UA_RE.source;function g(a){return d.HTML_LIMITED_BOT_UA_RE.test(a)}function h(a){return e.test(a)||g(a)}function i(a){return e.test(a)?"dom":g(a)?"html":void 0}},12289:(a,b,c)=>{"use strict";Object.defineProperty(b,"U",{enumerable:!0,get:function(){return A}});let d=c(80237),e=c(70772),f=c(12410),g=c(25397),h=c(35124),i=c(88647),j=c(83709),k=c(95e3),l=c(55122),m=c(56755),n=c(76915),o=c(30012),p=c(32072),q=z(c(33873)),r=c(18164),s=z(c(64971)),t=c(78737),u=c(46060),v=c(13866),w=c(11896),x=c(74420),y=c(26706);function z(a){return a&&a.__esModule?a:{default:a}}let A=({srcPage:a,config:b,userland:c,routeModule:z,isFallbackError:A,getStaticPaths:B,getStaticProps:C,getServerSideProps:D})=>async function(E,F,G){var H,I;let J=a;"/index"===J&&(J="/");let K=await z.prepare(E,F,{srcPage:J,multiZoneDraftMode:!1});if(!K){F.statusCode=400,F.end("Bad Request"),null==G.waitUntil||G.waitUntil.call(G,Promise.resolve());return}let{buildId:L,query:M,params:N,parsedUrl:O,originalQuery:P,originalPathname:Q,buildManifest:R,fallbackBuildManifest:S,nextFontManifest:T,serverFilesManifest:U,reactLoadableManifest:V,prerenderManifest:W,isDraftMode:X,isOnDemandRevalidate:Y,revalidateOnlyGenerated:Z,locale:$,locales:_,defaultLocale:aa,routerServerContext:ab,nextConfig:ac,resolvedPathname:ad}=K,ae=null==U||null==(I=U.config)||null==(H=I.experimental)?void 0:H.isExperimentalCompile,af=!!D,ag=!!C,ah=!!B,ai=!!(c.default||c).getInitialProps,aj=M.amp&&(null==b?void 0:b.amp),ak=null,al=!1,am=K.isNextDataRequest&&(ag||af),an="/404"===J,ao="/500"===J,ap="/_error"===J;if(z.isDev||X||!ag||(ak=`${$?`/${$}`:""}${("/"===J||"/"===ad)&&$?"":ad}${aj?".amp":""}`,(an||ao||ap)&&(ak=`${$?`/${$}`:""}${J}${aj?".amp":""}`),ak="/index"===ak?"/":ak),ah&&!X){let a=(0,y.removeTrailingSlash)($?(0,x.addPathPrefix)(ad,`/${$}`):ad),b=!!W.routes[a]||W.notFoundRoutes.includes(a),c=W.dynamicRoutes[J];if(c){if(!1===c.fallback&&!b)throw new u.NoFallbackError;"string"!=typeof c.fallback||b||am||(al=!0)}}(al&&(0,w.isBot)(E.headers["user-agent"]||"")||(0,h.getRequestMeta)(E,"minimalMode"))&&(al=!1);let aq=(0,f.getTracer)(),ar=aq.getActiveScopeSpan();try{let a=E.method||"GET",u=(0,g.formatUrl)({pathname:ac.trailingSlash?O.pathname:(0,y.removeTrailingSlash)(O.pathname||"/"),query:ag?{}:P}),w=(null==ab?void 0:ab.publicRuntimeConfig)||ac.publicRuntimeConfig,x=async f=>{var x,y;let H,I=async({previousCacheEntry:m})=>{var n;let o=async()=>{try{var d,n,o;return await z.render(E,F,{query:ag&&!ae?{...N,...aj?{amp:M.amp}:{}}:{...M,...N},params:N,page:J,renderContext:{isDraftMode:X,isFallback:al,developmentNotFoundSourcePage:(0,h.getRequestMeta)(E,"developmentNotFoundSourcePage")},sharedContext:{buildId:L,customServer:!!(null==ab?void 0:ab.isCustomServer)||void 0,deploymentId:!1},renderOpts:{params:N,routeModule:z,page:J,pageConfig:b||{},Component:(0,i.interopDefault)(c),ComponentMod:c,getStaticProps:C,getStaticPaths:B,getServerSideProps:D,supportsDynamicResponse:!ag,buildManifest:A?S:R,nextFontManifest:T,reactLoadableManifest:V,assetPrefix:ac.assetPrefix,previewProps:W.preview,images:ac.images,nextConfigOutput:ac.output,optimizeCss:!!ac.experimental.optimizeCss,nextScriptWorkers:!!ac.experimental.nextScriptWorkers,domainLocales:null==(d=ac.i18n)?void 0:d.domains,crossOrigin:ac.crossOrigin,multiZoneDraftMode:!1,basePath:ac.basePath,canonicalBase:ac.amp.canonicalBase||"",ampOptimizerConfig:null==(n=ac.experimental.amp)?void 0:n.optimizer,disableOptimizedLoading:ac.experimental.disableOptimizedLoading,largePageDataBytes:ac.experimental.largePageDataBytes,runtimeConfig:Object.keys(w).length>0?w:void 0,isExperimentalCompile:ae,experimental:{clientTraceMetadata:ac.experimental.clientTraceMetadata||[]},locale:$,locales:_,defaultLocale:aa,setIsrStatus:null==ab?void 0:ab.setIsrStatus,isNextDataRequest:am&&(af||ag),resolvedUrl:u,resolvedAsPath:af||ai?(0,g.formatUrl)({pathname:am?(0,k.normalizeDataPath)(Q):Q,query:P}):u,isOnDemandRevalidate:Y,ErrorDebug:(0,h.getRequestMeta)(E,"PagesErrorDebug"),err:(0,h.getRequestMeta)(E,"invokeError"),dev:z.isDev,distDir:q.default.join(process.cwd(),z.relativeProjectDir,z.distDir),ampSkipValidation:null==(o=ac.experimental.amp)?void 0:o.skipValidation,ampValidator:(0,h.getRequestMeta)(E,"ampValidator")}}).then(a=>{let{metadata:b}=a,c=b.cacheControl;return"isNotFound"in b&&b.isNotFound?{value:null,cacheControl:c}:b.isRedirect?{value:{kind:l.CachedRouteKind.REDIRECT,props:b.pageData??b.flightData},cacheControl:c}:{value:{kind:l.CachedRouteKind.PAGES,html:a,pageData:a.metadata.pageData,headers:a.metadata.headers,status:a.metadata.statusCode},cacheControl:c}}).finally(()=>{if(!f)return;f.setAttributes({"http.status_code":F.statusCode,"next.rsc":!1});let b=aq.getRootSpanAttributes();if(!b)return;if(b.get("next.span_type")!==e.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${b.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let c=b.get("next.route");if(c){let b=`${a} ${c}`;f.setAttributes({"next.route":c,"http.route":c,"next.span_name":b}),f.updateName(b)}else f.updateName(`${a} ${E.url}`)})}catch(a){throw(null==m?void 0:m.isStale)&&await z.onRequestError(E,a,{routerKind:"Pages Router",routePath:J,routeType:"render",revalidateReason:(0,j.getRevalidateReason)({isRevalidate:ag,isOnDemandRevalidate:Y})},ab),a}};if(m&&(al=!1),al){let a=await z.getResponseCache(E).get(z.isDev?null:$?`/${$}${J}`:J,async({previousCacheEntry:a=null})=>z.isDev?o():(0,t.toResponseCacheEntry)(a),{routeKind:d.RouteKind.PAGES,isFallback:!0,isRoutePPREnabled:!1,isOnDemandRevalidate:!1,incrementalCache:await z.getIncrementalCache(E,ac,W),waitUntil:G.waitUntil});if(a)return delete a.cacheControl,a.isMiss=!0,a}return!(0,h.getRequestMeta)(E,"minimalMode")&&Y&&Z&&!m?(F.statusCode=404,F.setHeader("x-nextjs-cache","REVALIDATED"),F.end("This page could not be found"),null):al&&(null==m||null==(n=m.value)?void 0:n.kind)===l.CachedRouteKind.PAGES?{value:{kind:l.CachedRouteKind.PAGES,html:new s.default(Buffer.from(m.value.html),{contentType:p.HTML_CONTENT_TYPE_HEADER,metadata:{statusCode:m.value.status,headers:m.value.headers}}),pageData:{},status:m.value.status,headers:m.value.headers},cacheControl:{revalidate:0,expire:void 0}}:o()},K=await z.handleResponse({cacheKey:ak,req:E,nextConfig:ac,routeKind:d.RouteKind.PAGES,isOnDemandRevalidate:Y,revalidateOnlyGenerated:Z,waitUntil:G.waitUntil,responseGenerator:I,prerenderManifest:W});if(!al||(null==K?void 0:K.isMiss)||(al=!1),K){if(ag&&!(0,h.getRequestMeta)(E,"minimalMode")&&F.setHeader("x-nextjs-cache",Y?"REVALIDATED":K.isMiss?"MISS":K.isStale?"STALE":"HIT"),!ag||al)F.getHeader("Cache-Control")||(H={revalidate:0,expire:void 0});else if(an){let a=(0,h.getRequestMeta)(E,"notFoundRevalidate");H={revalidate:void 0===a?0:a,expire:void 0}}else if(ao)H={revalidate:0,expire:void 0};else if(K.cacheControl)if("number"==typeof K.cacheControl.revalidate){if(K.cacheControl.revalidate<1)throw Object.defineProperty(Error(`Invalid revalidate configuration provided: ${K.cacheControl.revalidate} < 1`),"__NEXT_ERROR_CODE",{value:"E22",enumerable:!1,configurable:!0});H={revalidate:K.cacheControl.revalidate,expire:(null==(x=K.cacheControl)?void 0:x.expire)??ac.expireTime}}else H={revalidate:p.CACHE_ONE_YEAR,expire:void 0};if(H&&!F.getHeader("Cache-Control")&&F.setHeader("Cache-Control",(0,m.getCacheControlHeader)(H)),!K.value)return((0,h.addRequestMeta)(E,"notFoundRevalidate",null==(y=K.cacheControl)?void 0:y.revalidate),F.statusCode=404,am)?void F.end('{"notFound":true}'):void((null==ab?void 0:ab.render404)?await ab.render404(E,F,O,!1):F.end("This page could not be found"));if(K.value.kind===l.CachedRouteKind.REDIRECT)if(!am)return await (a=>{let b={destination:a.pageProps.__N_REDIRECT,statusCode:a.pageProps.__N_REDIRECT_STATUS,basePath:a.pageProps.__N_REDIRECT_BASE_PATH},c=(0,o.getRedirectStatus)(b),{basePath:d}=ac;d&&!1!==b.basePath&&b.destination.startsWith("/")&&(b.destination=`${d}${b.destination}`),b.destination.startsWith("/")&&(b.destination=(0,n.normalizeRepeatedSlashes)(b.destination)),F.statusCode=c,F.setHeader("Location",b.destination),c===v.RedirectStatusCode.PermanentRedirect&&F.setHeader("Refresh",`0;url=${b.destination}`),F.end(b.destination)})(K.value.props),null;else{F.setHeader("content-type",p.JSON_CONTENT_TYPE_HEADER),F.end(JSON.stringify(K.value.props));return}if(K.value.kind!==l.CachedRouteKind.PAGES)throw Object.defineProperty(Error("Invariant: received non-pages cache entry in pages handler"),"__NEXT_ERROR_CODE",{value:"E695",enumerable:!1,configurable:!0});if(z.isDev&&F.setHeader("Cache-Control","no-store, must-revalidate"),X&&F.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate"),(0,h.getRequestMeta)(E,"customErrorRender")||ap&&(0,h.getRequestMeta)(E,"minimalMode")&&500===F.statusCode)return null;await (0,r.sendRenderResult)({req:E,res:F,result:!am||ap||ao?K.value.html:new s.default(Buffer.from(JSON.stringify(K.value.pageData)),{contentType:p.JSON_CONTENT_TYPE_HEADER,metadata:K.value.html.metadata}),generateEtags:ac.generateEtags,poweredByHeader:ac.poweredByHeader,cacheControl:z.isDev?void 0:H})}};ar?await x():await aq.withPropagatedContext(E.headers,()=>aq.trace(e.BaseServerSpan.handleRequest,{spanName:`${a} ${E.url}`,kind:f.SpanKind.SERVER,attributes:{"http.method":a,"http.target":E.url}},x))}catch(a){throw a instanceof u.NoFallbackError||await z.onRequestError(E,a,{routerKind:"Pages Router",routePath:J,routeType:"render",revalidateReason:(0,j.getRevalidateReason)({isRevalidate:ag,isOnDemandRevalidate:Y})},ab),a}}},12569:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"NextURL",{enumerable:!0,get:function(){return k}});let d=c(49326),e=c(17035),f=c(5242),g=c(36732),h=/(?!^https?:\/\/)(127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|\[::1\]|localhost)/;function i(a,b){return new URL(String(a).replace(h,"localhost"),b&&String(b).replace(h,"localhost"))}let j=Symbol("NextURLInternal");class k{constructor(a,b,c){let d,e;"object"==typeof b&&"pathname"in b||"string"==typeof b?(d=b,e=c||{}):e=c||b||{},this[j]={url:i(a,d??e.base),options:e,basePath:""},this.analyze()}analyze(){var a,b,c,e,h;let i=(0,g.getNextPathnameInfo)(this[j].url.pathname,{nextConfig:this[j].options.nextConfig,parseData:!0,i18nProvider:this[j].options.i18nProvider}),k=(0,f.getHostname)(this[j].url,this[j].options.headers);this[j].domainLocale=this[j].options.i18nProvider?this[j].options.i18nProvider.detectDomainLocale(k):(0,d.detectDomainLocale)(null==(b=this[j].options.nextConfig)||null==(a=b.i18n)?void 0:a.domains,k);let l=(null==(c=this[j].domainLocale)?void 0:c.defaultLocale)||(null==(h=this[j].options.nextConfig)||null==(e=h.i18n)?void 0:e.defaultLocale);this[j].url.pathname=i.pathname,this[j].defaultLocale=l,this[j].basePath=i.basePath??"",this[j].buildId=i.buildId,this[j].locale=i.locale??l,this[j].trailingSlash=i.trailingSlash}formatPathname(){return(0,e.formatNextPathnameInfo)({basePath:this[j].basePath,buildId:this[j].buildId,defaultLocale:this[j].options.forceLocale?void 0:this[j].defaultLocale,locale:this[j].locale,pathname:this[j].url.pathname,trailingSlash:this[j].trailingSlash})}formatSearch(){return this[j].url.search}get buildId(){return this[j].buildId}set buildId(a){this[j].buildId=a}get locale(){return this[j].locale??""}set locale(a){var b,c;if(!this[j].locale||!(null==(c=this[j].options.nextConfig)||null==(b=c.i18n)?void 0:b.locales.includes(a)))throw Object.defineProperty(TypeError(`The NextURL configuration includes no locale "${a}"`),"__NEXT_ERROR_CODE",{value:"E597",enumerable:!1,configurable:!0});this[j].locale=a}get defaultLocale(){return this[j].defaultLocale}get domainLocale(){return this[j].domainLocale}get searchParams(){return this[j].url.searchParams}get host(){return this[j].url.host}set host(a){this[j].url.host=a}get hostname(){return this[j].url.hostname}set hostname(a){this[j].url.hostname=a}get port(){return this[j].url.port}set port(a){this[j].url.port=a}get protocol(){return this[j].url.protocol}set protocol(a){this[j].url.protocol=a}get href(){let a=this.formatPathname(),b=this.formatSearch();return`${this.protocol}//${this.host}${a}${b}${this.hash}`}set href(a){this[j].url=i(a),this.analyze()}get origin(){return this[j].url.origin}get pathname(){return this[j].url.pathname}set pathname(a){this[j].url.pathname=a}get hash(){return this[j].url.hash}set hash(a){this[j].url.hash=a}get search(){return this[j].url.search}set search(a){this[j].url.search=a}get password(){return this[j].url.password}set password(a){this[j].url.password=a}get username(){return this[j].url.username}set username(a){this[j].url.username=a}get basePath(){return this[j].basePath}set basePath(a){this[j].basePath=a.startsWith("/")?a:`/${a}`}toString(){return this.href}toJSON(){return this.href}[Symbol.for("edge-runtime.inspect.custom")](){return{href:this.href,origin:this.origin,protocol:this.protocol,username:this.username,password:this.password,host:this.host,hostname:this.hostname,port:this.port,pathname:this.pathname,search:this.search,searchParams:this.searchParams,hash:this.hash}}clone(){return new k(String(this),this[j].options)}}},13196:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"addLocale",{enumerable:!0,get:function(){return f}});let d=c(74420),e=c(23403);function f(a,b,c,f){if(!b||b===c)return a;let g=a.toLowerCase();return!f&&((0,e.pathHasPrefix)(g,"/api")||(0,e.pathHasPrefix)(g,"/"+b.toLowerCase()))?a:(0,d.addPathPrefix)(a,"/"+b)}},13866:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"RedirectStatusCode",{enumerable:!0,get:function(){return c}});var c=function(a){return a[a.SeeOther=303]="SeeOther",a[a.TemporaryRedirect=307]="TemporaryRedirect",a[a.PermanentRedirect=308]="PermanentRedirect",a}({});("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},14157:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"default",{enumerable:!0,get:function(){return f}});let d=c(82015),e=()=>{};function f(a){var b;let{headManager:c,reduceComponentsToState:f}=a;function g(){if(c&&c.mountedInstances){let b=d.Children.toArray(Array.from(c.mountedInstances).filter(Boolean));c.updateHead(f(b,a))}}return null==c||null==(b=c.mountedInstances)||b.add(a.children),g(),e(()=>{var b;return null==c||null==(b=c.mountedInstances)||b.add(a.children),()=>{var b;null==c||null==(b=c.mountedInstances)||b.delete(a.children)}}),e(()=>(c&&(c._pendingUpdate=g),()=>{c&&(c._pendingUpdate=g)})),null}},17035:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"formatNextPathnameInfo",{enumerable:!0,get:function(){return h}});let d=c(26706),e=c(74420),f=c(56011),g=c(13196);function h(a){let b=(0,g.addLocale)(a.pathname,a.locale,a.buildId?void 0:a.defaultLocale,a.ignorePrefix);return(a.buildId||!a.trailingSlash)&&(b=(0,d.removeTrailingSlash)(b)),a.buildId&&(b=(0,f.addPathSuffix)((0,e.addPathPrefix)(b,"/_next/data/"+a.buildId),"/"===a.pathname?"index.json":".json")),b=(0,e.addPathPrefix)(b,a.basePath),!a.buildId&&a.trailingSlash?b.endsWith("/")?b:(0,f.addPathSuffix)(b,"/"):(0,d.removeTrailingSlash)(b)}},18164:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{sendEtagResponse:function(){return i},sendRenderResult:function(){return j}});let d=c(76915),e=c(42956),f=function(a){return a&&a.__esModule?a:{default:a}}(c(80020)),g=c(56755),h=c(32072);function i(a,b,c){return c&&b.setHeader("ETag",c),!!(0,f.default)(a.headers,{etag:c})&&(b.statusCode=304,b.end(),!0)}async function j({req:a,res:b,result:c,generateEtags:f,poweredByHeader:j,cacheControl:k}){if((0,d.isResSent)(b))return;j&&c.contentType===h.HTML_CONTENT_TYPE_HEADER&&b.setHeader("X-Powered-By","Next.js"),k&&!b.getHeader("Cache-Control")&&b.setHeader("Cache-Control",(0,g.getCacheControlHeader)(k));let l=c.isDynamic?null:c.toUnchunkedString();if(!(f&&null!==l&&i(a,b,(0,e.generateETag)(l))))return(!b.getHeader("Content-Type")&&c.contentType&&b.setHeader("Content-Type",c.contentType),l&&b.setHeader("Content-Length",Buffer.byteLength(l)),"HEAD"===a.method)?void b.end(null):null!==l?void b.end(l):void await c.pipeToNodeResponse(b)}},21509:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{CachedRouteKind:function(){return c},IncrementalCacheKind:function(){return d}});var c=function(a){return a.APP_PAGE="APP_PAGE",a.APP_ROUTE="APP_ROUTE",a.PAGES="PAGES",a.FETCH="FETCH",a.REDIRECT="REDIRECT",a.IMAGE="IMAGE",a}({}),d=function(a){return a.APP_PAGE="APP_PAGE",a.APP_ROUTE="APP_ROUTE",a.PAGES="PAGES",a.FETCH="FETCH",a.IMAGE="IMAGE",a}({})},23403:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"pathHasPrefix",{enumerable:!0,get:function(){return e}});let d=c(34435);function e(a,b){if("string"!=typeof a)return!1;let{pathname:c}=(0,d.parsePath)(a);return c===b||c.startsWith(b+"/")}},25080:a=>{"use strict";var b=Object.defineProperty,c=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyNames,e=Object.prototype.hasOwnProperty,f={};function g(a){var b;let c=["path"in a&&a.path&&`Path=${a.path}`,"expires"in a&&(a.expires||0===a.expires)&&`Expires=${("number"==typeof a.expires?new Date(a.expires):a.expires).toUTCString()}`,"maxAge"in a&&"number"==typeof a.maxAge&&`Max-Age=${a.maxAge}`,"domain"in a&&a.domain&&`Domain=${a.domain}`,"secure"in a&&a.secure&&"Secure","httpOnly"in a&&a.httpOnly&&"HttpOnly","sameSite"in a&&a.sameSite&&`SameSite=${a.sameSite}`,"partitioned"in a&&a.partitioned&&"Partitioned","priority"in a&&a.priority&&`Priority=${a.priority}`].filter(Boolean),d=`${a.name}=${encodeURIComponent(null!=(b=a.value)?b:"")}`;return 0===c.length?d:`${d}; ${c.join("; ")}`}function h(a){let b=new Map;for(let c of a.split(/; */)){if(!c)continue;let a=c.indexOf("=");if(-1===a){b.set(c,"true");continue}let[d,e]=[c.slice(0,a),c.slice(a+1)];try{b.set(d,decodeURIComponent(null!=e?e:"true"))}catch{}}return b}function i(a){if(!a)return;let[[b,c],...d]=h(a),{domain:e,expires:f,httponly:g,maxage:i,path:l,samesite:m,secure:n,partitioned:o,priority:p}=Object.fromEntries(d.map(([a,b])=>[a.toLowerCase().replace(/-/g,""),b]));{var q,r,s={name:b,value:decodeURIComponent(c),domain:e,...f&&{expires:new Date(f)},...g&&{httpOnly:!0},..."string"==typeof i&&{maxAge:Number(i)},path:l,...m&&{sameSite:j.includes(q=(q=m).toLowerCase())?q:void 0},...n&&{secure:!0},...p&&{priority:k.includes(r=(r=p).toLowerCase())?r:void 0},...o&&{partitioned:!0}};let a={};for(let b in s)s[b]&&(a[b]=s[b]);return a}}((a,c)=>{for(var d in c)b(a,d,{get:c[d],enumerable:!0})})(f,{RequestCookies:()=>l,ResponseCookies:()=>m,parseCookie:()=>h,parseSetCookie:()=>i,stringifyCookie:()=>g}),a.exports=((a,f,g,h)=>{if(f&&"object"==typeof f||"function"==typeof f)for(let i of d(f))e.call(a,i)||i===g||b(a,i,{get:()=>f[i],enumerable:!(h=c(f,i))||h.enumerable});return a})(b({},"__esModule",{value:!0}),f);var j=["strict","lax","none"],k=["low","medium","high"],l=class{constructor(a){this._parsed=new Map,this._headers=a;let b=a.get("cookie");if(b)for(let[a,c]of h(b))this._parsed.set(a,{name:a,value:c})}[Symbol.iterator](){return this._parsed[Symbol.iterator]()}get size(){return this._parsed.size}get(...a){let b="string"==typeof a[0]?a[0]:a[0].name;return this._parsed.get(b)}getAll(...a){var b;let c=Array.from(this._parsed);if(!a.length)return c.map(([a,b])=>b);let d="string"==typeof a[0]?a[0]:null==(b=a[0])?void 0:b.name;return c.filter(([a])=>a===d).map(([a,b])=>b)}has(a){return this._parsed.has(a)}set(...a){let[b,c]=1===a.length?[a[0].name,a[0].value]:a,d=this._parsed;return d.set(b,{name:b,value:c}),this._headers.set("cookie",Array.from(d).map(([a,b])=>g(b)).join("; ")),this}delete(a){let b=this._parsed,c=Array.isArray(a)?a.map(a=>b.delete(a)):b.delete(a);return this._headers.set("cookie",Array.from(b).map(([a,b])=>g(b)).join("; ")),c}clear(){return this.delete(Array.from(this._parsed.keys())),this}[Symbol.for("edge-runtime.inspect.custom")](){return`RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(a=>`${a.name}=${encodeURIComponent(a.value)}`).join("; ")}},m=class{constructor(a){var b,c,d;this._parsed=new Map,this._headers=a;let e=null!=(d=null!=(c=null==(b=a.getSetCookie)?void 0:b.call(a))?c:a.get("set-cookie"))?d:[];for(let a of Array.isArray(e)?e:function(a){if(!a)return[];var b,c,d,e,f,g=[],h=0;function i(){for(;h=a.length)&&g.push(a.substring(b,a.length))}return g}(e)){let b=i(a);b&&this._parsed.set(b.name,b)}}get(...a){let b="string"==typeof a[0]?a[0]:a[0].name;return this._parsed.get(b)}getAll(...a){var b;let c=Array.from(this._parsed.values());if(!a.length)return c;let d="string"==typeof a[0]?a[0]:null==(b=a[0])?void 0:b.name;return c.filter(a=>a.name===d)}has(a){return this._parsed.has(a)}set(...a){let[b,c,d]=1===a.length?[a[0].name,a[0].value,a[0]]:a,e=this._parsed;return e.set(b,function(a={name:"",value:""}){return"number"==typeof a.expires&&(a.expires=new Date(a.expires)),a.maxAge&&(a.expires=new Date(Date.now()+1e3*a.maxAge)),(null===a.path||void 0===a.path)&&(a.path="/"),a}({name:b,value:c,...d})),function(a,b){for(let[,c]of(b.delete("set-cookie"),a)){let a=g(c);b.append("set-cookie",a)}}(e,this._headers),this}delete(...a){let[b,c]="string"==typeof a[0]?[a[0]]:[a[0].name,a[0]];return this.set({...c,name:b,value:"",expires:new Date(0)})}[Symbol.for("edge-runtime.inspect.custom")](){return`ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(g).join("; ")}}},25397:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{formatUrl:function(){return f},formatWithValidation:function(){return h},urlObjectKeys:function(){return g}});let d=c(3147)._(c(54779)),e=/https?|ftp|gopher|file/;function f(a){let{auth:b,hostname:c}=a,f=a.protocol||"",g=a.pathname||"",h=a.hash||"",i=a.query||"",j=!1;b=b?encodeURIComponent(b).replace(/%3A/i,":")+"@":"",a.host?j=b+a.host:c&&(j=b+(~c.indexOf(":")?"["+c+"]":c),a.port&&(j+=":"+a.port)),i&&"object"==typeof i&&(i=String(d.urlQueryToSearchParams(i)));let k=a.search||i&&"?"+i||"";return f&&!f.endsWith(":")&&(f+=":"),a.slashes||(!f||e.test(f))&&!1!==j?(j="//"+(j||""),g&&"/"!==g[0]&&(g="/"+g)):j||(j=""),h&&"#"!==h[0]&&(h="#"+h),k&&"?"!==k[0]&&(k="?"+k),""+f+j+(g=g.replace(/[?#]/g,encodeURIComponent))+(k=k.replace("#","%23"))+h}let g=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function h(a){return f(a)}},26706:(a,b)=>{"use strict";function c(a){return a.replace(/\/$/,"")||"/"}Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"removeTrailingSlash",{enumerable:!0,get:function(){return c}})},30012:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{allowedStatusCodes:function(){return e},getRedirectStatus:function(){return f},modifyRouteRegex:function(){return g}});let d=c(13866),e=new Set([301,302,303,307,308]);function f(a){return a.statusCode||(a.permanent?d.RedirectStatusCode.PermanentRedirect:d.RedirectStatusCode.TemporaryRedirect)}function g(a,b){return b&&(a=a.replace(/\^/,`^(?!${b.map(a=>a.replace(/\//g,"\\/")).join("|")})`)),a=a.replace(/\$$/,"(?:\\/)?$")}},32072:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{ACTION_SUFFIX:function(){return o},APP_DIR_ALIAS:function(){return I},CACHE_ONE_YEAR:function(){return A},DOT_NEXT_ALIAS:function(){return G},ESLINT_DEFAULT_DIRS:function(){return aa},GSP_NO_RETURNED_VALUE:function(){return W},GSSP_COMPONENT_MEMBER_ERROR:function(){return Z},GSSP_NO_RETURNED_VALUE:function(){return X},HTML_CONTENT_TYPE_HEADER:function(){return d},INFINITE_CACHE:function(){return B},INSTRUMENTATION_HOOK_FILENAME:function(){return E},JSON_CONTENT_TYPE_HEADER:function(){return e},MATCHED_PATH_HEADER:function(){return h},MIDDLEWARE_FILENAME:function(){return C},MIDDLEWARE_LOCATION_REGEXP:function(){return D},NEXT_BODY_SUFFIX:function(){return r},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return z},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return t},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return u},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return y},NEXT_CACHE_TAGS_HEADER:function(){return s},NEXT_CACHE_TAG_MAX_ITEMS:function(){return w},NEXT_CACHE_TAG_MAX_LENGTH:function(){return x},NEXT_DATA_SUFFIX:function(){return p},NEXT_INTERCEPTION_MARKER_PREFIX:function(){return g},NEXT_META_SUFFIX:function(){return q},NEXT_QUERY_PARAM_PREFIX:function(){return f},NEXT_RESUME_HEADER:function(){return v},NON_STANDARD_NODE_ENV:function(){return $},PAGES_DIR_ALIAS:function(){return F},PRERENDER_REVALIDATE_HEADER:function(){return i},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return j},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return Q},ROOT_DIR_ALIAS:function(){return H},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return P},RSC_ACTION_ENCRYPTION_ALIAS:function(){return O},RSC_ACTION_PROXY_ALIAS:function(){return L},RSC_ACTION_VALIDATE_ALIAS:function(){return K},RSC_CACHE_WRAPPER_ALIAS:function(){return M},RSC_DYNAMIC_IMPORT_WRAPPER_ALIAS:function(){return N},RSC_MOD_REF_PROXY_ALIAS:function(){return J},RSC_PREFETCH_SUFFIX:function(){return k},RSC_SEGMENTS_DIR_SUFFIX:function(){return l},RSC_SEGMENT_SUFFIX:function(){return m},RSC_SUFFIX:function(){return n},SERVER_PROPS_EXPORT_ERROR:function(){return V},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return S},SERVER_PROPS_SSG_CONFLICT:function(){return T},SERVER_RUNTIME:function(){return ab},SSG_FALLBACK_EXPORT_ERROR:function(){return _},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return R},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return U},TEXT_PLAIN_CONTENT_TYPE_HEADER:function(){return c},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return Y},WEBPACK_LAYERS:function(){return ad},WEBPACK_RESOURCE_QUERIES:function(){return ae}});let c="text/plain",d="text/html; charset=utf-8",e="application/json; charset=utf-8",f="nxtP",g="nxtI",h="x-matched-path",i="x-prerender-revalidate",j="x-prerender-revalidate-if-generated",k=".prefetch.rsc",l=".segments",m=".segment.rsc",n=".rsc",o=".action",p=".json",q=".meta",r=".body",s="x-next-cache-tags",t="x-next-revalidated-tags",u="x-next-revalidate-tag-token",v="next-resume",w=128,x=256,y=1024,z="_N_T_",A=31536e3,B=0xfffffffe,C="middleware",D=`(?:src/)?${C}`,E="instrumentation",F="private-next-pages",G="private-dot-next",H="private-next-root-dir",I="private-next-app-dir",J="private-next-rsc-mod-ref-proxy",K="private-next-rsc-action-validate",L="private-next-rsc-server-reference",M="private-next-rsc-cache-wrapper",N="private-next-rsc-track-dynamic-import",O="private-next-rsc-action-encryption",P="private-next-rsc-action-client-wrapper",Q="You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict",R="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",S="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",T="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",U="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",V="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",W="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",X="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",Y="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",Z="can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member",$='You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env',_="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",aa=["app","pages","components","lib","src"],ab={edge:"edge",experimentalEdge:"experimental-edge",nodejs:"nodejs"},ac={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",apiNode:"api-node",apiEdge:"api-edge",middleware:"middleware",instrument:"instrument",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser",pagesDirBrowser:"pages-dir-browser",pagesDirEdge:"pages-dir-edge",pagesDirNode:"pages-dir-node"},ad={...ac,GROUP:{builtinReact:[ac.reactServerComponents,ac.actionBrowser],serverOnly:[ac.reactServerComponents,ac.actionBrowser,ac.instrument,ac.middleware],neutralTarget:[ac.apiNode,ac.apiEdge],clientOnly:[ac.serverSideRendering,ac.appPagesBrowser],bundled:[ac.reactServerComponents,ac.actionBrowser,ac.serverSideRendering,ac.appPagesBrowser,ac.shared,ac.instrument,ac.middleware],appPages:[ac.reactServerComponents,ac.serverSideRendering,ac.appPagesBrowser,ac.actionBrowser]}},ae={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}},33134:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{NextRequestAdapter:function(){return l},ResponseAborted:function(){return i},ResponseAbortedName:function(){return h},createAbortController:function(){return j},signalFromNodeResponse:function(){return k}});let d=c(35124),e=c(39833),f=c(41801),g=c(65131),h="ResponseAborted";class i extends Error{constructor(...a){super(...a),this.name=h}}function j(a){let b=new AbortController;return a.once("close",()=>{a.writableFinished||b.abort(new i)}),b}function k(a){let{errored:b,destroyed:c}=a;if(b||c)return AbortSignal.abort(b??new i);let{signal:d}=j(a);return d}class l{static fromBaseNextRequest(a,b){if((0,g.isNodeNextRequest)(a))return l.fromNodeNextRequest(a,b);throw Object.defineProperty(Error("Invariant: Unsupported NextRequest type"),"__NEXT_ERROR_CODE",{value:"E345",enumerable:!1,configurable:!0})}static fromNodeNextRequest(a,b){let c,g=null;if("GET"!==a.method&&"HEAD"!==a.method&&a.body&&(g=a.body),a.url.startsWith("http"))c=new URL(a.url);else{let b=(0,d.getRequestMeta)(a,"initURL");c=b&&b.startsWith("http")?new URL(a.url,b):new URL(a.url,"http://n")}return new f.NextRequest(c,{method:a.method,headers:(0,e.fromNodeOutgoingHttpHeaders)(a.headers),duplex:"half",signal:b,...b.aborted?{}:{body:g}})}static fromWebNextRequest(a){let b=null;return"GET"!==a.method&&"HEAD"!==a.method&&(b=a.body),new f.NextRequest(a.url,{method:a.method,headers:(0,e.fromNodeOutgoingHttpHeaders)(a.headers),duplex:"half",signal:a.request.signal,...a.request.signal.aborted?{}:{body:b}})}}},33830:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"HTML_LIMITED_BOT_UA_RE",{enumerable:!0,get:function(){return c}});let c=/[\w-]+-Google|Google-[\w-]+|Chrome-Lighthouse|Slurp|DuckDuckBot|baiduspider|yandex|sogou|bitlybot|tumblr|vkShare|quora link preview|redditbot|ia_archiver|Bingbot|BingPreview|applebot|facebookexternalhit|facebookcatalog|Twitterbot|LinkedInBot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|Yeti|googleweblight/i},33873:a=>{"use strict";a.exports=require("path")},34435:(a,b)=>{"use strict";function c(a){let b=a.indexOf("#"),c=a.indexOf("?"),d=c>-1&&(b<0||c-1?{pathname:a.substring(0,d?c:b),query:d?a.substring(c,b>-1?b:void 0):"",hash:b>-1?a.slice(b):""}:{pathname:a,query:"",hash:""}}Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"parsePath",{enumerable:!0,get:function(){return c}})},35124:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{NEXT_REQUEST_META:function(){return c},addRequestMeta:function(){return f},getRequestMeta:function(){return d},removeRequestMeta:function(){return g},setRequestMeta:function(){return e}});let c=Symbol.for("NextInternalRequestMeta");function d(a,b){let d=a[c]||{};return"string"==typeof b?d[b]:d}function e(a,b){return a[c]=b,b}function f(a,b,c){let f=d(a);return f[b]=c,e(a,f)}function g(a,b){let c=d(a);return delete c[b],e(a,c)}},36006:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{default:function(){return p},defaultHead:function(){return l}});let d=c(87020),e=c(3147),f=c(8732),g=e._(c(82015)),h=d._(c(14157)),i=c(57043),j=c(1523),k=c(72974);function l(a){void 0===a&&(a=!1);let b=[(0,f.jsx)("meta",{charSet:"utf-8"},"charset")];return a||b.push((0,f.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")),b}function m(a,b){return"string"==typeof b||"number"==typeof b?a:b.type===g.default.Fragment?a.concat(g.default.Children.toArray(b.props.children).reduce((a,b)=>"string"==typeof b||"number"==typeof b?a:a.concat(b),[])):a.concat(b)}c(68532);let n=["name","httpEquiv","charSet","itemProp"];function o(a,b){let{inAmpMode:c}=b;return a.reduce(m,[]).reverse().concat(l(c).reverse()).filter(function(){let a=new Set,b=new Set,c=new Set,d={};return e=>{let f=!0,g=!1;if(e.key&&"number"!=typeof e.key&&e.key.indexOf("$")>0){g=!0;let b=e.key.slice(e.key.indexOf("$")+1);a.has(b)?f=!1:a.add(b)}switch(e.type){case"title":case"base":b.has(e.type)?f=!1:b.add(e.type);break;case"meta":for(let a=0,b=n.length;a{let c=a.key||b;return g.default.cloneElement(a,{key:c})})}let p=function(a){let{children:b}=a,c=(0,g.useContext)(i.AmpStateContext),d=(0,g.useContext)(j.HeadManagerContext);return(0,f.jsx)(h.default,{reduceComponentsToState:o,headManager:d,inAmpMode:(0,k.isInAmpMode)(c),children:b})};("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},36732:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"getNextPathnameInfo",{enumerable:!0,get:function(){return g}});let d=c(56629),e=c(66537),f=c(23403);function g(a,b){var c,g;let{basePath:h,i18n:i,trailingSlash:j}=null!=(c=b.nextConfig)?c:{},k={pathname:a,trailingSlash:"/"!==a?a.endsWith("/"):j};h&&(0,f.pathHasPrefix)(k.pathname,h)&&(k.pathname=(0,e.removePathPrefix)(k.pathname,h),k.basePath=h);let l=k.pathname;if(k.pathname.startsWith("/_next/data/")&&k.pathname.endsWith(".json")){let a=k.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/");k.buildId=a[0],l="index"!==a[1]?"/"+a.slice(1).join("/"):"/",!0===b.parseData&&(k.pathname=l)}if(i){let a=b.i18nProvider?b.i18nProvider.analyze(k.pathname):(0,d.normalizeLocalePath)(k.pathname,i.locales);k.locale=a.detectedLocale,k.pathname=null!=(g=a.pathname)?g:k.pathname,!a.detectedLocale&&k.buildId&&(a=b.i18nProvider?b.i18nProvider.analyze(l):(0,d.normalizeLocalePath)(l,i.locales)).detectedLocale&&(k.locale=a.detectedLocale)}return k}},39833:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{fromNodeOutgoingHttpHeaders:function(){return e},normalizeNextQueryParam:function(){return i},splitCookiesString:function(){return f},toNodeOutgoingHttpHeaders:function(){return g},validateURL:function(){return h}});let d=c(32072);function e(a){let b=new Headers;for(let[c,d]of Object.entries(a))for(let a of Array.isArray(d)?d:[d])void 0!==a&&("number"==typeof a&&(a=a.toString()),b.append(c,a));return b}function f(a){var b,c,d,e,f,g=[],h=0;function i(){for(;h=a.length)&&g.push(a.substring(b,a.length))}return g}function g(a){let b={},c=[];if(a)for(let[d,e]of a.entries())"set-cookie"===d.toLowerCase()?(c.push(...f(e)),b[d]=1===c.length?c[0]:c):b[d]=e;return b}function h(a){try{return String(new URL(String(a)))}catch(b){throw Object.defineProperty(Error(`URL is malformed "${String(a)}". Please use only absolute URLs - https://nextjs.org/docs/messages/middleware-relative-urls`,{cause:b}),"__NEXT_ERROR_CODE",{value:"E61",enumerable:!1,configurable:!0})}}function i(a){for(let b of[d.NEXT_QUERY_PARAM_PREFIX,d.NEXT_INTERCEPTION_MARKER_PREFIX])if(a!==b&&a.startsWith(b))return a.substring(b.length);return null}},40361:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},41801:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{INTERNALS:function(){return h},NextRequest:function(){return i}});let d=c(12569),e=c(39833),f=c(68176),g=c(56347),h=Symbol("internal request");class i extends Request{constructor(a,b={}){let c="string"!=typeof a&&"url"in a?a.url:String(a);(0,e.validateURL)(c),b.body&&"half"!==b.duplex&&(b.duplex="half"),a instanceof Request?super(a,b):super(c,b);let f=new d.NextURL(c,{headers:(0,e.toNodeOutgoingHttpHeaders)(this.headers),nextConfig:b.nextConfig});this[h]={cookies:new g.RequestCookies(this.headers),nextUrl:f,url:f.toString()}}[Symbol.for("edge-runtime.inspect.custom")](){return{cookies:this.cookies,nextUrl:this.nextUrl,url:this.url,bodyUsed:this.bodyUsed,cache:this.cache,credentials:this.credentials,destination:this.destination,headers:Object.fromEntries(this.headers),integrity:this.integrity,keepalive:this.keepalive,method:this.method,mode:this.mode,redirect:this.redirect,referrer:this.referrer,referrerPolicy:this.referrerPolicy,signal:this.signal}}get cookies(){return this[h].cookies}get nextUrl(){return this[h].nextUrl}get page(){throw new f.RemovedPageError}get ua(){throw new f.RemovedUAError}get url(){return this[h].url}}},42956:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{fnv1a52:function(){return c},generateETag:function(){return d}});let c=a=>{let b=a.length,c=0,d=0,e=8997,f=0,g=33826,h=0,i=40164,j=0,k=52210;for(;c>>16,e=65535&d,h+=f>>>16,g=65535&f,k=j+(h>>>16)&65535,i=65535&h;return(15&k)*0x1000000000000+0x100000000*i+65536*g+(e^k>>4)},d=(a,b=!1)=>(b?'W/"':'"')+c(a).toString(36)+a.length.toString(36)+'"'},44346:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"ENCODED_TAGS",{enumerable:!0,get:function(){return c}});let c={OPENING:{HTML:new Uint8Array([60,104,116,109,108]),BODY:new Uint8Array([60,98,111,100,121])},CLOSED:{HEAD:new Uint8Array([60,47,104,101,97,100,62]),BODY:new Uint8Array([60,47,98,111,100,121,62]),HTML:new Uint8Array([60,47,104,116,109,108,62]),BODY_AND_HTML:new Uint8Array([60,47,98,111,100,121,62,60,47,104,116,109,108,62])},META:{ICON_MARK:new Uint8Array([60,109,101,116,97,32,110,97,109,101,61,34,194,171,110,120,116,45,105,99,111,110,194,187,34])}}},46060:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external.js")},49326:(a,b)=>{"use strict";function c(a,b,c){if(a)for(let f of(c&&(c=c.toLowerCase()),a)){var d,e;if(b===(null==(d=f.domain)?void 0:d.split(":",1)[0].toLowerCase())||c===f.defaultLocale.toLowerCase()||(null==(e=f.locales)?void 0:e.some(a=>a.toLowerCase()===c)))return f}}Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"detectDomainLocale",{enumerable:!0,get:function(){return c}})},50996:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{chainStreams:function(){return n},continueDynamicHTMLResume:function(){return E},continueDynamicPrerender:function(){return C},continueFizzStream:function(){return B},continueStaticPrerender:function(){return D},createBufferedTransformStream:function(){return s},createDocumentClosingStream:function(){return F},createRootLayoutValidatorStream:function(){return A},renderToInitialFizzStream:function(){return u},streamFromBuffer:function(){return p},streamFromString:function(){return o},streamToBuffer:function(){return q},streamToString:function(){return r}});let d=c(12410),e=c(70772),f=c(73367),g=c(91504),h=c(44346),i=c(92329),j=c(68643),k=c(6479);function l(){}let m=new TextEncoder;function n(...a){if(0===a.length)return new ReadableStream({start(a){a.close()}});if(1===a.length)return a[0];let{readable:b,writable:c}=new TransformStream,d=a[0].pipeTo(c,{preventClose:!0}),e=1;for(;eb.pipeTo(c,{preventClose:!0}))}let f=a[e];return(d=d.then(()=>f.pipeTo(c))).catch(l),b}function o(a){return new ReadableStream({start(b){b.enqueue(m.encode(a)),b.close()}})}function p(a){return new ReadableStream({start(b){b.enqueue(a),b.close()}})}async function q(a){let b=a.getReader(),c=[];for(;;){let{done:a,value:d}=await b.read();if(a)break;c.push(d)}return Buffer.concat(c)}async function r(a,b){let c=new TextDecoder("utf-8",{fatal:!0}),d="";for await(let e of a){if(null==b?void 0:b.aborted)return d;d+=c.decode(e,{stream:!0})}return d+c.decode()}function s(){let a,b=[],c=0;return new TransformStream({transform(d,e){b.push(d),c+=d.byteLength,(d=>{if(a)return;let e=new f.DetachedPromise;a=e,(0,g.scheduleImmediate)(()=>{try{let a=new Uint8Array(c),e=0;for(let c=0;ca.renderToReadableStream(b,c))}function v(a){let b=-1,c=!1;return new TransformStream({async transform(d,e){let f=-1,g=-1;if(b++,c)return void e.enqueue(d);let j=0;if(-1===f){if(-1===(f=(0,i.indexOfUint8Array)(d,h.ENCODED_TAGS.META.ICON_MARK)))return void e.enqueue(d);47===d[f+(j=h.ENCODED_TAGS.META.ICON_MARK.length)]?j+=2:j++}if(0===b){if(g=(0,i.indexOfUint8Array)(d,h.ENCODED_TAGS.CLOSED.HEAD),-1!==f){if(f-1){if(a=!0,b.length===h.ENCODED_TAGS.CLOSED.BODY_AND_HTML.length)return;let e=b.slice(0,d);if(c.enqueue(e),b.length>h.ENCODED_TAGS.CLOSED.BODY_AND_HTML.length+d){let a=b.slice(d+h.ENCODED_TAGS.CLOSED.BODY_AND_HTML.length);c.enqueue(a)}}else c.enqueue(b)},flush(a){a.enqueue(h.ENCODED_TAGS.CLOSED.BODY_AND_HTML)}})}function A(){let a=!1,b=!1;return new TransformStream({async transform(c,d){!a&&(0,i.indexOfUint8Array)(c,h.ENCODED_TAGS.OPENING.HTML)>-1&&(a=!0),!b&&(0,i.indexOfUint8Array)(c,h.ENCODED_TAGS.OPENING.BODY)>-1&&(b=!0),d.enqueue(c)},flush(c){let d=[];a||d.push("html"),b||d.push("body"),d.length&&c.enqueue(m.encode(` +(()=>{var a={};a.id=2731,a.ids=[2731,3220],a.modules={625:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"default",{enumerable:!0,get:function(){return i}});let d=c(87020),e=c(8732),f=d._(c(82015)),g=c(76915);async function h(a){let{Component:b,ctx:c}=a;return{pageProps:await (0,g.loadGetInitialProps)(b,c)}}class i extends f.default.Component{render(){let{Component:a,pageProps:b}=this.props;return(0,e.jsx)(a,{...b})}}i.origGetInitialProps=h,i.getInitialProps=h,("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},1523:(a,b,c)=>{"use strict";a.exports=c(63885).vendored.contexts.HeadManagerContext},3147:(a,b)=>{"use strict";function c(a){if("function"!=typeof WeakMap)return null;var b=new WeakMap,d=new WeakMap;return(c=function(a){return a?d:b})(a)}b._=function(a,b){if(!b&&a&&a.__esModule)return a;if(null===a||"object"!=typeof a&&"function"!=typeof a)return{default:a};var d=c(b);if(d&&d.has(a))return d.get(a);var e={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in a)if("default"!==g&&Object.prototype.hasOwnProperty.call(a,g)){var h=f?Object.getOwnPropertyDescriptor(a,g):null;h&&(h.get||h.set)?Object.defineProperty(e,g,h):e[g]=a[g]}return e.default=a,d&&d.set(a,e),e}},4325:(a,b)=>{"use strict";function c(a){return a.replace(/\/$/,"")||"/"}Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"removeTrailingSlash",{enumerable:!0,get:function(){return c}})},5242:(a,b)=>{"use strict";function c(a,b){let c;if((null==b?void 0:b.host)&&!Array.isArray(b.host))c=b.host.toString().split(":",1)[0];else{if(!a.hostname)return;c=a.hostname}return c.toLowerCase()}Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"getHostname",{enumerable:!0,get:function(){return c}})},6479:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{DOC_PREFETCH_RANGE_HEADER_VALUE:function(){return d},doesExportedHtmlMatchBuildId:function(){return g},insertBuildIdComment:function(){return f}});let c="",d="bytes=0-63";function e(a){return a.slice(0,24).replace(/-/g,"_")}function f(a,b){return b.includes("--\x3e")||!a.startsWith(c)?a:a.replace(c,c+"\x3c!--"+e(b)+"--\x3e")}function g(a,b){return a.startsWith(c+"\x3c!--"+e(b)+"--\x3e")}},8538:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"Batcher",{enumerable:!0,get:function(){return e}});let d=c(73367);class e{constructor(a,b=a=>a()){this.cacheKeyFn=a,this.schedulerFn=b,this.pending=new Map}static create(a){return new e(null==a?void 0:a.cacheKeyFn,null==a?void 0:a.schedulerFn)}async batch(a,b){let c=this.cacheKeyFn?await this.cacheKeyFn(a):a;if(null===c)return b(c,Promise.resolve);let e=this.pending.get(c);if(e)return e;let{promise:f,resolve:g,reject:h}=new d.DetachedPromise;return this.pending.set(c,f),this.schedulerFn(async()=>{try{let a=await b(c,g);g(a)}catch(a){h(a)}finally{this.pending.delete(c)}}),f}}},8732:a=>{"use strict";a.exports=require("react/jsx-runtime")},11590:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"default",{enumerable:!0,get:function(){return k}});let d=c(87020),e=c(8732),f=d._(c(82015)),g=d._(c(36006)),h={400:"Bad Request",404:"This page could not be found",405:"Method Not Allowed",500:"Internal Server Error"};function i(a){let b,{req:d,res:e,err:f}=a,g=e&&e.statusCode?e.statusCode:f?f.statusCode:404;if(d){let{getRequestMeta:a}=c(35124),e=a(d,"initURL");e&&(b=new URL(e).hostname)}return{statusCode:g,hostname:b}}let j={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},desc:{lineHeight:"48px"},h1:{display:"inline-block",margin:"0 20px 0 0",paddingRight:23,fontSize:24,fontWeight:500,verticalAlign:"top"},h2:{fontSize:14,fontWeight:400,lineHeight:"28px"},wrap:{display:"inline-block"}};class k extends f.default.Component{render(){let{statusCode:a,withDarkMode:b=!0}=this.props,c=this.props.title||h[a]||"An unexpected error has occurred";return(0,e.jsxs)("div",{style:j.error,children:[(0,e.jsx)(g.default,{children:(0,e.jsx)("title",{children:a?a+": "+c:"Application error: a client-side exception has occurred"})}),(0,e.jsxs)("div",{style:j.desc,children:[(0,e.jsx)("style",{dangerouslySetInnerHTML:{__html:"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}"+(b?"@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}":"")}}),a?(0,e.jsx)("h1",{className:"next-error-h1",style:j.h1,children:a}):null,(0,e.jsx)("div",{style:j.wrap,children:(0,e.jsxs)("h2",{style:j.h2,children:[this.props.title||a?c:(0,e.jsxs)(e.Fragment,{children:["Application error: a client-side exception has occurred"," ",!!this.props.hostname&&(0,e.jsxs)(e.Fragment,{children:["while loading ",this.props.hostname]})," ","(see the browser console for more information)"]}),"."]})})]})]})}}k.displayName="ErrorPage",k.getInitialProps=i,k.origGetInitialProps=i,("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},11896:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{HTML_LIMITED_BOT_UA_RE:function(){return d.HTML_LIMITED_BOT_UA_RE},HTML_LIMITED_BOT_UA_RE_STRING:function(){return f},getBotType:function(){return i},isBot:function(){return h}});let d=c(33830),e=/Googlebot(?!-)|Googlebot$/i,f=d.HTML_LIMITED_BOT_UA_RE.source;function g(a){return d.HTML_LIMITED_BOT_UA_RE.test(a)}function h(a){return e.test(a)||g(a)}function i(a){return e.test(a)?"dom":g(a)?"html":void 0}},12289:(a,b,c)=>{"use strict";Object.defineProperty(b,"U",{enumerable:!0,get:function(){return A}});let d=c(80237),e=c(70772),f=c(12410),g=c(25397),h=c(35124),i=c(88647),j=c(83709),k=c(95e3),l=c(55122),m=c(56755),n=c(76915),o=c(30012),p=c(32072),q=z(c(33873)),r=c(18164),s=z(c(64971)),t=c(78737),u=c(46060),v=c(13866),w=c(11896),x=c(74420),y=c(4325);function z(a){return a&&a.__esModule?a:{default:a}}let A=({srcPage:a,config:b,userland:c,routeModule:z,isFallbackError:A,getStaticPaths:B,getStaticProps:C,getServerSideProps:D})=>async function(E,F,G){var H,I;let J=a;"/index"===J&&(J="/");let K=await z.prepare(E,F,{srcPage:J,multiZoneDraftMode:!1});if(!K){F.statusCode=400,F.end("Bad Request"),null==G.waitUntil||G.waitUntil.call(G,Promise.resolve());return}let{buildId:L,query:M,params:N,parsedUrl:O,originalQuery:P,originalPathname:Q,buildManifest:R,fallbackBuildManifest:S,nextFontManifest:T,serverFilesManifest:U,reactLoadableManifest:V,prerenderManifest:W,isDraftMode:X,isOnDemandRevalidate:Y,revalidateOnlyGenerated:Z,locale:$,locales:_,defaultLocale:aa,routerServerContext:ab,nextConfig:ac,resolvedPathname:ad}=K,ae=null==U||null==(I=U.config)||null==(H=I.experimental)?void 0:H.isExperimentalCompile,af=!!D,ag=!!C,ah=!!B,ai=!!(c.default||c).getInitialProps,aj=M.amp&&(null==b?void 0:b.amp),ak=null,al=!1,am=K.isNextDataRequest&&(ag||af),an="/404"===J,ao="/500"===J,ap="/_error"===J;if(z.isDev||X||!ag||(ak=`${$?`/${$}`:""}${("/"===J||"/"===ad)&&$?"":ad}${aj?".amp":""}`,(an||ao||ap)&&(ak=`${$?`/${$}`:""}${J}${aj?".amp":""}`),ak="/index"===ak?"/":ak),ah&&!X){let a=(0,y.removeTrailingSlash)($?(0,x.addPathPrefix)(ad,`/${$}`):ad),b=!!W.routes[a]||W.notFoundRoutes.includes(a),c=W.dynamicRoutes[J];if(c){if(!1===c.fallback&&!b)throw new u.NoFallbackError;"string"!=typeof c.fallback||b||am||(al=!0)}}(al&&(0,w.isBot)(E.headers["user-agent"]||"")||(0,h.getRequestMeta)(E,"minimalMode"))&&(al=!1);let aq=(0,f.getTracer)(),ar=aq.getActiveScopeSpan();try{let a=E.method||"GET",u=(0,g.formatUrl)({pathname:ac.trailingSlash?O.pathname:(0,y.removeTrailingSlash)(O.pathname||"/"),query:ag?{}:P}),w=(null==ab?void 0:ab.publicRuntimeConfig)||ac.publicRuntimeConfig,x=async f=>{var x,y;let H,I=async({previousCacheEntry:m})=>{var n;let o=async()=>{try{var d,n,o;return await z.render(E,F,{query:ag&&!ae?{...N,...aj?{amp:M.amp}:{}}:{...M,...N},params:N,page:J,renderContext:{isDraftMode:X,isFallback:al,developmentNotFoundSourcePage:(0,h.getRequestMeta)(E,"developmentNotFoundSourcePage")},sharedContext:{buildId:L,customServer:!!(null==ab?void 0:ab.isCustomServer)||void 0,deploymentId:!1},renderOpts:{params:N,routeModule:z,page:J,pageConfig:b||{},Component:(0,i.interopDefault)(c),ComponentMod:c,getStaticProps:C,getStaticPaths:B,getServerSideProps:D,supportsDynamicResponse:!ag,buildManifest:A?S:R,nextFontManifest:T,reactLoadableManifest:V,assetPrefix:ac.assetPrefix,previewProps:W.preview,images:ac.images,nextConfigOutput:ac.output,optimizeCss:!!ac.experimental.optimizeCss,nextScriptWorkers:!!ac.experimental.nextScriptWorkers,domainLocales:null==(d=ac.i18n)?void 0:d.domains,crossOrigin:ac.crossOrigin,multiZoneDraftMode:!1,basePath:ac.basePath,canonicalBase:ac.amp.canonicalBase||"",ampOptimizerConfig:null==(n=ac.experimental.amp)?void 0:n.optimizer,disableOptimizedLoading:ac.experimental.disableOptimizedLoading,largePageDataBytes:ac.experimental.largePageDataBytes,runtimeConfig:Object.keys(w).length>0?w:void 0,isExperimentalCompile:ae,experimental:{clientTraceMetadata:ac.experimental.clientTraceMetadata||[]},locale:$,locales:_,defaultLocale:aa,setIsrStatus:null==ab?void 0:ab.setIsrStatus,isNextDataRequest:am&&(af||ag),resolvedUrl:u,resolvedAsPath:af||ai?(0,g.formatUrl)({pathname:am?(0,k.normalizeDataPath)(Q):Q,query:P}):u,isOnDemandRevalidate:Y,ErrorDebug:(0,h.getRequestMeta)(E,"PagesErrorDebug"),err:(0,h.getRequestMeta)(E,"invokeError"),dev:z.isDev,distDir:q.default.join(process.cwd(),z.relativeProjectDir,z.distDir),ampSkipValidation:null==(o=ac.experimental.amp)?void 0:o.skipValidation,ampValidator:(0,h.getRequestMeta)(E,"ampValidator")}}).then(a=>{let{metadata:b}=a,c=b.cacheControl;return"isNotFound"in b&&b.isNotFound?{value:null,cacheControl:c}:b.isRedirect?{value:{kind:l.CachedRouteKind.REDIRECT,props:b.pageData??b.flightData},cacheControl:c}:{value:{kind:l.CachedRouteKind.PAGES,html:a,pageData:a.metadata.pageData,headers:a.metadata.headers,status:a.metadata.statusCode},cacheControl:c}}).finally(()=>{if(!f)return;f.setAttributes({"http.status_code":F.statusCode,"next.rsc":!1});let b=aq.getRootSpanAttributes();if(!b)return;if(b.get("next.span_type")!==e.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${b.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let c=b.get("next.route");if(c){let b=`${a} ${c}`;f.setAttributes({"next.route":c,"http.route":c,"next.span_name":b}),f.updateName(b)}else f.updateName(`${a} ${E.url}`)})}catch(a){throw(null==m?void 0:m.isStale)&&await z.onRequestError(E,a,{routerKind:"Pages Router",routePath:J,routeType:"render",revalidateReason:(0,j.getRevalidateReason)({isRevalidate:ag,isOnDemandRevalidate:Y})},ab),a}};if(m&&(al=!1),al){let a=await z.getResponseCache(E).get(z.isDev?null:$?`/${$}${J}`:J,async({previousCacheEntry:a=null})=>z.isDev?o():(0,t.toResponseCacheEntry)(a),{routeKind:d.RouteKind.PAGES,isFallback:!0,isRoutePPREnabled:!1,isOnDemandRevalidate:!1,incrementalCache:await z.getIncrementalCache(E,ac,W),waitUntil:G.waitUntil});if(a)return delete a.cacheControl,a.isMiss=!0,a}return!(0,h.getRequestMeta)(E,"minimalMode")&&Y&&Z&&!m?(F.statusCode=404,F.setHeader("x-nextjs-cache","REVALIDATED"),F.end("This page could not be found"),null):al&&(null==m||null==(n=m.value)?void 0:n.kind)===l.CachedRouteKind.PAGES?{value:{kind:l.CachedRouteKind.PAGES,html:new s.default(Buffer.from(m.value.html),{contentType:p.HTML_CONTENT_TYPE_HEADER,metadata:{statusCode:m.value.status,headers:m.value.headers}}),pageData:{},status:m.value.status,headers:m.value.headers},cacheControl:{revalidate:0,expire:void 0}}:o()},K=await z.handleResponse({cacheKey:ak,req:E,nextConfig:ac,routeKind:d.RouteKind.PAGES,isOnDemandRevalidate:Y,revalidateOnlyGenerated:Z,waitUntil:G.waitUntil,responseGenerator:I,prerenderManifest:W});if(!al||(null==K?void 0:K.isMiss)||(al=!1),K){if(ag&&!(0,h.getRequestMeta)(E,"minimalMode")&&F.setHeader("x-nextjs-cache",Y?"REVALIDATED":K.isMiss?"MISS":K.isStale?"STALE":"HIT"),!ag||al)F.getHeader("Cache-Control")||(H={revalidate:0,expire:void 0});else if(an){let a=(0,h.getRequestMeta)(E,"notFoundRevalidate");H={revalidate:void 0===a?0:a,expire:void 0}}else if(ao)H={revalidate:0,expire:void 0};else if(K.cacheControl)if("number"==typeof K.cacheControl.revalidate){if(K.cacheControl.revalidate<1)throw Object.defineProperty(Error(`Invalid revalidate configuration provided: ${K.cacheControl.revalidate} < 1`),"__NEXT_ERROR_CODE",{value:"E22",enumerable:!1,configurable:!0});H={revalidate:K.cacheControl.revalidate,expire:(null==(x=K.cacheControl)?void 0:x.expire)??ac.expireTime}}else H={revalidate:p.CACHE_ONE_YEAR,expire:void 0};if(H&&!F.getHeader("Cache-Control")&&F.setHeader("Cache-Control",(0,m.getCacheControlHeader)(H)),!K.value)return((0,h.addRequestMeta)(E,"notFoundRevalidate",null==(y=K.cacheControl)?void 0:y.revalidate),F.statusCode=404,am)?void F.end('{"notFound":true}'):void((null==ab?void 0:ab.render404)?await ab.render404(E,F,O,!1):F.end("This page could not be found"));if(K.value.kind===l.CachedRouteKind.REDIRECT)if(!am)return await (a=>{let b={destination:a.pageProps.__N_REDIRECT,statusCode:a.pageProps.__N_REDIRECT_STATUS,basePath:a.pageProps.__N_REDIRECT_BASE_PATH},c=(0,o.getRedirectStatus)(b),{basePath:d}=ac;d&&!1!==b.basePath&&b.destination.startsWith("/")&&(b.destination=`${d}${b.destination}`),b.destination.startsWith("/")&&(b.destination=(0,n.normalizeRepeatedSlashes)(b.destination)),F.statusCode=c,F.setHeader("Location",b.destination),c===v.RedirectStatusCode.PermanentRedirect&&F.setHeader("Refresh",`0;url=${b.destination}`),F.end(b.destination)})(K.value.props),null;else{F.setHeader("content-type",p.JSON_CONTENT_TYPE_HEADER),F.end(JSON.stringify(K.value.props));return}if(K.value.kind!==l.CachedRouteKind.PAGES)throw Object.defineProperty(Error("Invariant: received non-pages cache entry in pages handler"),"__NEXT_ERROR_CODE",{value:"E695",enumerable:!1,configurable:!0});if(z.isDev&&F.setHeader("Cache-Control","no-store, must-revalidate"),X&&F.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate"),(0,h.getRequestMeta)(E,"customErrorRender")||ap&&(0,h.getRequestMeta)(E,"minimalMode")&&500===F.statusCode)return null;await (0,r.sendRenderResult)({req:E,res:F,result:!am||ap||ao?K.value.html:new s.default(Buffer.from(JSON.stringify(K.value.pageData)),{contentType:p.JSON_CONTENT_TYPE_HEADER,metadata:K.value.html.metadata}),generateEtags:ac.generateEtags,poweredByHeader:ac.poweredByHeader,cacheControl:z.isDev?void 0:H})}};ar?await x():await aq.withPropagatedContext(E.headers,()=>aq.trace(e.BaseServerSpan.handleRequest,{spanName:`${a} ${E.url}`,kind:f.SpanKind.SERVER,attributes:{"http.method":a,"http.target":E.url}},x))}catch(a){throw a instanceof u.NoFallbackError||await z.onRequestError(E,a,{routerKind:"Pages Router",routePath:J,routeType:"render",revalidateReason:(0,j.getRevalidateReason)({isRevalidate:ag,isOnDemandRevalidate:Y})},ab),a}}},12569:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"NextURL",{enumerable:!0,get:function(){return k}});let d=c(49326),e=c(17035),f=c(5242),g=c(36732),h=/(?!^https?:\/\/)(127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|\[::1\]|localhost)/;function i(a,b){return new URL(String(a).replace(h,"localhost"),b&&String(b).replace(h,"localhost"))}let j=Symbol("NextURLInternal");class k{constructor(a,b,c){let d,e;"object"==typeof b&&"pathname"in b||"string"==typeof b?(d=b,e=c||{}):e=c||b||{},this[j]={url:i(a,d??e.base),options:e,basePath:""},this.analyze()}analyze(){var a,b,c,e,h;let i=(0,g.getNextPathnameInfo)(this[j].url.pathname,{nextConfig:this[j].options.nextConfig,parseData:!0,i18nProvider:this[j].options.i18nProvider}),k=(0,f.getHostname)(this[j].url,this[j].options.headers);this[j].domainLocale=this[j].options.i18nProvider?this[j].options.i18nProvider.detectDomainLocale(k):(0,d.detectDomainLocale)(null==(b=this[j].options.nextConfig)||null==(a=b.i18n)?void 0:a.domains,k);let l=(null==(c=this[j].domainLocale)?void 0:c.defaultLocale)||(null==(h=this[j].options.nextConfig)||null==(e=h.i18n)?void 0:e.defaultLocale);this[j].url.pathname=i.pathname,this[j].defaultLocale=l,this[j].basePath=i.basePath??"",this[j].buildId=i.buildId,this[j].locale=i.locale??l,this[j].trailingSlash=i.trailingSlash}formatPathname(){return(0,e.formatNextPathnameInfo)({basePath:this[j].basePath,buildId:this[j].buildId,defaultLocale:this[j].options.forceLocale?void 0:this[j].defaultLocale,locale:this[j].locale,pathname:this[j].url.pathname,trailingSlash:this[j].trailingSlash})}formatSearch(){return this[j].url.search}get buildId(){return this[j].buildId}set buildId(a){this[j].buildId=a}get locale(){return this[j].locale??""}set locale(a){var b,c;if(!this[j].locale||!(null==(c=this[j].options.nextConfig)||null==(b=c.i18n)?void 0:b.locales.includes(a)))throw Object.defineProperty(TypeError(`The NextURL configuration includes no locale "${a}"`),"__NEXT_ERROR_CODE",{value:"E597",enumerable:!1,configurable:!0});this[j].locale=a}get defaultLocale(){return this[j].defaultLocale}get domainLocale(){return this[j].domainLocale}get searchParams(){return this[j].url.searchParams}get host(){return this[j].url.host}set host(a){this[j].url.host=a}get hostname(){return this[j].url.hostname}set hostname(a){this[j].url.hostname=a}get port(){return this[j].url.port}set port(a){this[j].url.port=a}get protocol(){return this[j].url.protocol}set protocol(a){this[j].url.protocol=a}get href(){let a=this.formatPathname(),b=this.formatSearch();return`${this.protocol}//${this.host}${a}${b}${this.hash}`}set href(a){this[j].url=i(a),this.analyze()}get origin(){return this[j].url.origin}get pathname(){return this[j].url.pathname}set pathname(a){this[j].url.pathname=a}get hash(){return this[j].url.hash}set hash(a){this[j].url.hash=a}get search(){return this[j].url.search}set search(a){this[j].url.search=a}get password(){return this[j].url.password}set password(a){this[j].url.password=a}get username(){return this[j].url.username}set username(a){this[j].url.username=a}get basePath(){return this[j].basePath}set basePath(a){this[j].basePath=a.startsWith("/")?a:`/${a}`}toString(){return this.href}toJSON(){return this.href}[Symbol.for("edge-runtime.inspect.custom")](){return{href:this.href,origin:this.origin,protocol:this.protocol,username:this.username,password:this.password,host:this.host,hostname:this.hostname,port:this.port,pathname:this.pathname,search:this.search,searchParams:this.searchParams,hash:this.hash}}clone(){return new k(String(this),this[j].options)}}},13196:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"addLocale",{enumerable:!0,get:function(){return f}});let d=c(74420),e=c(23403);function f(a,b,c,f){if(!b||b===c)return a;let g=a.toLowerCase();return!f&&((0,e.pathHasPrefix)(g,"/api")||(0,e.pathHasPrefix)(g,"/"+b.toLowerCase()))?a:(0,d.addPathPrefix)(a,"/"+b)}},13866:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"RedirectStatusCode",{enumerable:!0,get:function(){return c}});var c=function(a){return a[a.SeeOther=303]="SeeOther",a[a.TemporaryRedirect=307]="TemporaryRedirect",a[a.PermanentRedirect=308]="PermanentRedirect",a}({});("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},14157:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"default",{enumerable:!0,get:function(){return f}});let d=c(82015),e=()=>{};function f(a){var b;let{headManager:c,reduceComponentsToState:f}=a;function g(){if(c&&c.mountedInstances){let b=d.Children.toArray(Array.from(c.mountedInstances).filter(Boolean));c.updateHead(f(b,a))}}return null==c||null==(b=c.mountedInstances)||b.add(a.children),g(),e(()=>{var b;return null==c||null==(b=c.mountedInstances)||b.add(a.children),()=>{var b;null==c||null==(b=c.mountedInstances)||b.delete(a.children)}}),e(()=>(c&&(c._pendingUpdate=g),()=>{c&&(c._pendingUpdate=g)})),null}},17035:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"formatNextPathnameInfo",{enumerable:!0,get:function(){return h}});let d=c(4325),e=c(74420),f=c(56011),g=c(13196);function h(a){let b=(0,g.addLocale)(a.pathname,a.locale,a.buildId?void 0:a.defaultLocale,a.ignorePrefix);return(a.buildId||!a.trailingSlash)&&(b=(0,d.removeTrailingSlash)(b)),a.buildId&&(b=(0,f.addPathSuffix)((0,e.addPathPrefix)(b,"/_next/data/"+a.buildId),"/"===a.pathname?"index.json":".json")),b=(0,e.addPathPrefix)(b,a.basePath),!a.buildId&&a.trailingSlash?b.endsWith("/")?b:(0,f.addPathSuffix)(b,"/"):(0,d.removeTrailingSlash)(b)}},18164:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{sendEtagResponse:function(){return i},sendRenderResult:function(){return j}});let d=c(76915),e=c(42956),f=function(a){return a&&a.__esModule?a:{default:a}}(c(80020)),g=c(56755),h=c(32072);function i(a,b,c){return c&&b.setHeader("ETag",c),!!(0,f.default)(a.headers,{etag:c})&&(b.statusCode=304,b.end(),!0)}async function j({req:a,res:b,result:c,generateEtags:f,poweredByHeader:j,cacheControl:k}){if((0,d.isResSent)(b))return;j&&c.contentType===h.HTML_CONTENT_TYPE_HEADER&&b.setHeader("X-Powered-By","Next.js"),k&&!b.getHeader("Cache-Control")&&b.setHeader("Cache-Control",(0,g.getCacheControlHeader)(k));let l=c.isDynamic?null:c.toUnchunkedString();if(!(f&&null!==l&&i(a,b,(0,e.generateETag)(l))))return(!b.getHeader("Content-Type")&&c.contentType&&b.setHeader("Content-Type",c.contentType),l&&b.setHeader("Content-Length",Buffer.byteLength(l)),"HEAD"===a.method)?void b.end(null):null!==l?void b.end(l):void await c.pipeToNodeResponse(b)}},21509:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{CachedRouteKind:function(){return c},IncrementalCacheKind:function(){return d}});var c=function(a){return a.APP_PAGE="APP_PAGE",a.APP_ROUTE="APP_ROUTE",a.PAGES="PAGES",a.FETCH="FETCH",a.REDIRECT="REDIRECT",a.IMAGE="IMAGE",a}({}),d=function(a){return a.APP_PAGE="APP_PAGE",a.APP_ROUTE="APP_ROUTE",a.PAGES="PAGES",a.FETCH="FETCH",a.IMAGE="IMAGE",a}({})},23403:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"pathHasPrefix",{enumerable:!0,get:function(){return e}});let d=c(34435);function e(a,b){if("string"!=typeof a)return!1;let{pathname:c}=(0,d.parsePath)(a);return c===b||c.startsWith(b+"/")}},25080:a=>{"use strict";var b=Object.defineProperty,c=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyNames,e=Object.prototype.hasOwnProperty,f={};function g(a){var b;let c=["path"in a&&a.path&&`Path=${a.path}`,"expires"in a&&(a.expires||0===a.expires)&&`Expires=${("number"==typeof a.expires?new Date(a.expires):a.expires).toUTCString()}`,"maxAge"in a&&"number"==typeof a.maxAge&&`Max-Age=${a.maxAge}`,"domain"in a&&a.domain&&`Domain=${a.domain}`,"secure"in a&&a.secure&&"Secure","httpOnly"in a&&a.httpOnly&&"HttpOnly","sameSite"in a&&a.sameSite&&`SameSite=${a.sameSite}`,"partitioned"in a&&a.partitioned&&"Partitioned","priority"in a&&a.priority&&`Priority=${a.priority}`].filter(Boolean),d=`${a.name}=${encodeURIComponent(null!=(b=a.value)?b:"")}`;return 0===c.length?d:`${d}; ${c.join("; ")}`}function h(a){let b=new Map;for(let c of a.split(/; */)){if(!c)continue;let a=c.indexOf("=");if(-1===a){b.set(c,"true");continue}let[d,e]=[c.slice(0,a),c.slice(a+1)];try{b.set(d,decodeURIComponent(null!=e?e:"true"))}catch{}}return b}function i(a){if(!a)return;let[[b,c],...d]=h(a),{domain:e,expires:f,httponly:g,maxage:i,path:l,samesite:m,secure:n,partitioned:o,priority:p}=Object.fromEntries(d.map(([a,b])=>[a.toLowerCase().replace(/-/g,""),b]));{var q,r,s={name:b,value:decodeURIComponent(c),domain:e,...f&&{expires:new Date(f)},...g&&{httpOnly:!0},..."string"==typeof i&&{maxAge:Number(i)},path:l,...m&&{sameSite:j.includes(q=(q=m).toLowerCase())?q:void 0},...n&&{secure:!0},...p&&{priority:k.includes(r=(r=p).toLowerCase())?r:void 0},...o&&{partitioned:!0}};let a={};for(let b in s)s[b]&&(a[b]=s[b]);return a}}((a,c)=>{for(var d in c)b(a,d,{get:c[d],enumerable:!0})})(f,{RequestCookies:()=>l,ResponseCookies:()=>m,parseCookie:()=>h,parseSetCookie:()=>i,stringifyCookie:()=>g}),a.exports=((a,f,g,h)=>{if(f&&"object"==typeof f||"function"==typeof f)for(let i of d(f))e.call(a,i)||i===g||b(a,i,{get:()=>f[i],enumerable:!(h=c(f,i))||h.enumerable});return a})(b({},"__esModule",{value:!0}),f);var j=["strict","lax","none"],k=["low","medium","high"],l=class{constructor(a){this._parsed=new Map,this._headers=a;let b=a.get("cookie");if(b)for(let[a,c]of h(b))this._parsed.set(a,{name:a,value:c})}[Symbol.iterator](){return this._parsed[Symbol.iterator]()}get size(){return this._parsed.size}get(...a){let b="string"==typeof a[0]?a[0]:a[0].name;return this._parsed.get(b)}getAll(...a){var b;let c=Array.from(this._parsed);if(!a.length)return c.map(([a,b])=>b);let d="string"==typeof a[0]?a[0]:null==(b=a[0])?void 0:b.name;return c.filter(([a])=>a===d).map(([a,b])=>b)}has(a){return this._parsed.has(a)}set(...a){let[b,c]=1===a.length?[a[0].name,a[0].value]:a,d=this._parsed;return d.set(b,{name:b,value:c}),this._headers.set("cookie",Array.from(d).map(([a,b])=>g(b)).join("; ")),this}delete(a){let b=this._parsed,c=Array.isArray(a)?a.map(a=>b.delete(a)):b.delete(a);return this._headers.set("cookie",Array.from(b).map(([a,b])=>g(b)).join("; ")),c}clear(){return this.delete(Array.from(this._parsed.keys())),this}[Symbol.for("edge-runtime.inspect.custom")](){return`RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(a=>`${a.name}=${encodeURIComponent(a.value)}`).join("; ")}},m=class{constructor(a){var b,c,d;this._parsed=new Map,this._headers=a;let e=null!=(d=null!=(c=null==(b=a.getSetCookie)?void 0:b.call(a))?c:a.get("set-cookie"))?d:[];for(let a of Array.isArray(e)?e:function(a){if(!a)return[];var b,c,d,e,f,g=[],h=0;function i(){for(;h=a.length)&&g.push(a.substring(b,a.length))}return g}(e)){let b=i(a);b&&this._parsed.set(b.name,b)}}get(...a){let b="string"==typeof a[0]?a[0]:a[0].name;return this._parsed.get(b)}getAll(...a){var b;let c=Array.from(this._parsed.values());if(!a.length)return c;let d="string"==typeof a[0]?a[0]:null==(b=a[0])?void 0:b.name;return c.filter(a=>a.name===d)}has(a){return this._parsed.has(a)}set(...a){let[b,c,d]=1===a.length?[a[0].name,a[0].value,a[0]]:a,e=this._parsed;return e.set(b,function(a={name:"",value:""}){return"number"==typeof a.expires&&(a.expires=new Date(a.expires)),a.maxAge&&(a.expires=new Date(Date.now()+1e3*a.maxAge)),(null===a.path||void 0===a.path)&&(a.path="/"),a}({name:b,value:c,...d})),function(a,b){for(let[,c]of(b.delete("set-cookie"),a)){let a=g(c);b.append("set-cookie",a)}}(e,this._headers),this}delete(...a){let[b,c]="string"==typeof a[0]?[a[0]]:[a[0].name,a[0]];return this.set({...c,name:b,value:"",expires:new Date(0)})}[Symbol.for("edge-runtime.inspect.custom")](){return`ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(g).join("; ")}}},25397:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{formatUrl:function(){return f},formatWithValidation:function(){return h},urlObjectKeys:function(){return g}});let d=c(3147)._(c(54779)),e=/https?|ftp|gopher|file/;function f(a){let{auth:b,hostname:c}=a,f=a.protocol||"",g=a.pathname||"",h=a.hash||"",i=a.query||"",j=!1;b=b?encodeURIComponent(b).replace(/%3A/i,":")+"@":"",a.host?j=b+a.host:c&&(j=b+(~c.indexOf(":")?"["+c+"]":c),a.port&&(j+=":"+a.port)),i&&"object"==typeof i&&(i=String(d.urlQueryToSearchParams(i)));let k=a.search||i&&"?"+i||"";return f&&!f.endsWith(":")&&(f+=":"),a.slashes||(!f||e.test(f))&&!1!==j?(j="//"+(j||""),g&&"/"!==g[0]&&(g="/"+g)):j||(j=""),h&&"#"!==h[0]&&(h="#"+h),k&&"?"!==k[0]&&(k="?"+k),""+f+j+(g=g.replace(/[?#]/g,encodeURIComponent))+(k=k.replace("#","%23"))+h}let g=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function h(a){return f(a)}},30012:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{allowedStatusCodes:function(){return e},getRedirectStatus:function(){return f},modifyRouteRegex:function(){return g}});let d=c(13866),e=new Set([301,302,303,307,308]);function f(a){return a.statusCode||(a.permanent?d.RedirectStatusCode.PermanentRedirect:d.RedirectStatusCode.TemporaryRedirect)}function g(a,b){return b&&(a=a.replace(/\^/,`^(?!${b.map(a=>a.replace(/\//g,"\\/")).join("|")})`)),a=a.replace(/\$$/,"(?:\\/)?$")}},32072:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{ACTION_SUFFIX:function(){return o},APP_DIR_ALIAS:function(){return I},CACHE_ONE_YEAR:function(){return A},DOT_NEXT_ALIAS:function(){return G},ESLINT_DEFAULT_DIRS:function(){return aa},GSP_NO_RETURNED_VALUE:function(){return W},GSSP_COMPONENT_MEMBER_ERROR:function(){return Z},GSSP_NO_RETURNED_VALUE:function(){return X},HTML_CONTENT_TYPE_HEADER:function(){return d},INFINITE_CACHE:function(){return B},INSTRUMENTATION_HOOK_FILENAME:function(){return E},JSON_CONTENT_TYPE_HEADER:function(){return e},MATCHED_PATH_HEADER:function(){return h},MIDDLEWARE_FILENAME:function(){return C},MIDDLEWARE_LOCATION_REGEXP:function(){return D},NEXT_BODY_SUFFIX:function(){return r},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return z},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return t},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return u},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return y},NEXT_CACHE_TAGS_HEADER:function(){return s},NEXT_CACHE_TAG_MAX_ITEMS:function(){return w},NEXT_CACHE_TAG_MAX_LENGTH:function(){return x},NEXT_DATA_SUFFIX:function(){return p},NEXT_INTERCEPTION_MARKER_PREFIX:function(){return g},NEXT_META_SUFFIX:function(){return q},NEXT_QUERY_PARAM_PREFIX:function(){return f},NEXT_RESUME_HEADER:function(){return v},NON_STANDARD_NODE_ENV:function(){return $},PAGES_DIR_ALIAS:function(){return F},PRERENDER_REVALIDATE_HEADER:function(){return i},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return j},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return Q},ROOT_DIR_ALIAS:function(){return H},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return P},RSC_ACTION_ENCRYPTION_ALIAS:function(){return O},RSC_ACTION_PROXY_ALIAS:function(){return L},RSC_ACTION_VALIDATE_ALIAS:function(){return K},RSC_CACHE_WRAPPER_ALIAS:function(){return M},RSC_DYNAMIC_IMPORT_WRAPPER_ALIAS:function(){return N},RSC_MOD_REF_PROXY_ALIAS:function(){return J},RSC_PREFETCH_SUFFIX:function(){return k},RSC_SEGMENTS_DIR_SUFFIX:function(){return l},RSC_SEGMENT_SUFFIX:function(){return m},RSC_SUFFIX:function(){return n},SERVER_PROPS_EXPORT_ERROR:function(){return V},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return S},SERVER_PROPS_SSG_CONFLICT:function(){return T},SERVER_RUNTIME:function(){return ab},SSG_FALLBACK_EXPORT_ERROR:function(){return _},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return R},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return U},TEXT_PLAIN_CONTENT_TYPE_HEADER:function(){return c},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return Y},WEBPACK_LAYERS:function(){return ad},WEBPACK_RESOURCE_QUERIES:function(){return ae}});let c="text/plain",d="text/html; charset=utf-8",e="application/json; charset=utf-8",f="nxtP",g="nxtI",h="x-matched-path",i="x-prerender-revalidate",j="x-prerender-revalidate-if-generated",k=".prefetch.rsc",l=".segments",m=".segment.rsc",n=".rsc",o=".action",p=".json",q=".meta",r=".body",s="x-next-cache-tags",t="x-next-revalidated-tags",u="x-next-revalidate-tag-token",v="next-resume",w=128,x=256,y=1024,z="_N_T_",A=31536e3,B=0xfffffffe,C="middleware",D=`(?:src/)?${C}`,E="instrumentation",F="private-next-pages",G="private-dot-next",H="private-next-root-dir",I="private-next-app-dir",J="private-next-rsc-mod-ref-proxy",K="private-next-rsc-action-validate",L="private-next-rsc-server-reference",M="private-next-rsc-cache-wrapper",N="private-next-rsc-track-dynamic-import",O="private-next-rsc-action-encryption",P="private-next-rsc-action-client-wrapper",Q="You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict",R="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",S="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",T="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",U="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",V="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",W="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",X="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",Y="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",Z="can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member",$='You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env',_="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",aa=["app","pages","components","lib","src"],ab={edge:"edge",experimentalEdge:"experimental-edge",nodejs:"nodejs"},ac={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",apiNode:"api-node",apiEdge:"api-edge",middleware:"middleware",instrument:"instrument",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser",pagesDirBrowser:"pages-dir-browser",pagesDirEdge:"pages-dir-edge",pagesDirNode:"pages-dir-node"},ad={...ac,GROUP:{builtinReact:[ac.reactServerComponents,ac.actionBrowser],serverOnly:[ac.reactServerComponents,ac.actionBrowser,ac.instrument,ac.middleware],neutralTarget:[ac.apiNode,ac.apiEdge],clientOnly:[ac.serverSideRendering,ac.appPagesBrowser],bundled:[ac.reactServerComponents,ac.actionBrowser,ac.serverSideRendering,ac.appPagesBrowser,ac.shared,ac.instrument,ac.middleware],appPages:[ac.reactServerComponents,ac.serverSideRendering,ac.appPagesBrowser,ac.actionBrowser]}},ae={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}},33134:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{NextRequestAdapter:function(){return l},ResponseAborted:function(){return i},ResponseAbortedName:function(){return h},createAbortController:function(){return j},signalFromNodeResponse:function(){return k}});let d=c(35124),e=c(39833),f=c(41801),g=c(65131),h="ResponseAborted";class i extends Error{constructor(...a){super(...a),this.name=h}}function j(a){let b=new AbortController;return a.once("close",()=>{a.writableFinished||b.abort(new i)}),b}function k(a){let{errored:b,destroyed:c}=a;if(b||c)return AbortSignal.abort(b??new i);let{signal:d}=j(a);return d}class l{static fromBaseNextRequest(a,b){if((0,g.isNodeNextRequest)(a))return l.fromNodeNextRequest(a,b);throw Object.defineProperty(Error("Invariant: Unsupported NextRequest type"),"__NEXT_ERROR_CODE",{value:"E345",enumerable:!1,configurable:!0})}static fromNodeNextRequest(a,b){let c,g=null;if("GET"!==a.method&&"HEAD"!==a.method&&a.body&&(g=a.body),a.url.startsWith("http"))c=new URL(a.url);else{let b=(0,d.getRequestMeta)(a,"initURL");c=b&&b.startsWith("http")?new URL(a.url,b):new URL(a.url,"http://n")}return new f.NextRequest(c,{method:a.method,headers:(0,e.fromNodeOutgoingHttpHeaders)(a.headers),duplex:"half",signal:b,...b.aborted?{}:{body:g}})}static fromWebNextRequest(a){let b=null;return"GET"!==a.method&&"HEAD"!==a.method&&(b=a.body),new f.NextRequest(a.url,{method:a.method,headers:(0,e.fromNodeOutgoingHttpHeaders)(a.headers),duplex:"half",signal:a.request.signal,...a.request.signal.aborted?{}:{body:b}})}}},33830:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"HTML_LIMITED_BOT_UA_RE",{enumerable:!0,get:function(){return c}});let c=/[\w-]+-Google|Google-[\w-]+|Chrome-Lighthouse|Slurp|DuckDuckBot|baiduspider|yandex|sogou|bitlybot|tumblr|vkShare|quora link preview|redditbot|ia_archiver|Bingbot|BingPreview|applebot|facebookexternalhit|facebookcatalog|Twitterbot|LinkedInBot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|Yeti|googleweblight/i},33873:a=>{"use strict";a.exports=require("path")},34435:(a,b)=>{"use strict";function c(a){let b=a.indexOf("#"),c=a.indexOf("?"),d=c>-1&&(b<0||c-1?{pathname:a.substring(0,d?c:b),query:d?a.substring(c,b>-1?b:void 0):"",hash:b>-1?a.slice(b):""}:{pathname:a,query:"",hash:""}}Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"parsePath",{enumerable:!0,get:function(){return c}})},35124:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{NEXT_REQUEST_META:function(){return c},addRequestMeta:function(){return f},getRequestMeta:function(){return d},removeRequestMeta:function(){return g},setRequestMeta:function(){return e}});let c=Symbol.for("NextInternalRequestMeta");function d(a,b){let d=a[c]||{};return"string"==typeof b?d[b]:d}function e(a,b){return a[c]=b,b}function f(a,b,c){let f=d(a);return f[b]=c,e(a,f)}function g(a,b){let c=d(a);return delete c[b],e(a,c)}},36006:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{default:function(){return p},defaultHead:function(){return l}});let d=c(87020),e=c(3147),f=c(8732),g=e._(c(82015)),h=d._(c(14157)),i=c(57043),j=c(1523),k=c(72974);function l(a){void 0===a&&(a=!1);let b=[(0,f.jsx)("meta",{charSet:"utf-8"},"charset")];return a||b.push((0,f.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")),b}function m(a,b){return"string"==typeof b||"number"==typeof b?a:b.type===g.default.Fragment?a.concat(g.default.Children.toArray(b.props.children).reduce((a,b)=>"string"==typeof b||"number"==typeof b?a:a.concat(b),[])):a.concat(b)}c(68532);let n=["name","httpEquiv","charSet","itemProp"];function o(a,b){let{inAmpMode:c}=b;return a.reduce(m,[]).reverse().concat(l(c).reverse()).filter(function(){let a=new Set,b=new Set,c=new Set,d={};return e=>{let f=!0,g=!1;if(e.key&&"number"!=typeof e.key&&e.key.indexOf("$")>0){g=!0;let b=e.key.slice(e.key.indexOf("$")+1);a.has(b)?f=!1:a.add(b)}switch(e.type){case"title":case"base":b.has(e.type)?f=!1:b.add(e.type);break;case"meta":for(let a=0,b=n.length;a{let c=a.key||b;return g.default.cloneElement(a,{key:c})})}let p=function(a){let{children:b}=a,c=(0,g.useContext)(i.AmpStateContext),d=(0,g.useContext)(j.HeadManagerContext);return(0,f.jsx)(h.default,{reduceComponentsToState:o,headManager:d,inAmpMode:(0,k.isInAmpMode)(c),children:b})};("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},36732:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"getNextPathnameInfo",{enumerable:!0,get:function(){return g}});let d=c(56629),e=c(66537),f=c(23403);function g(a,b){var c,g;let{basePath:h,i18n:i,trailingSlash:j}=null!=(c=b.nextConfig)?c:{},k={pathname:a,trailingSlash:"/"!==a?a.endsWith("/"):j};h&&(0,f.pathHasPrefix)(k.pathname,h)&&(k.pathname=(0,e.removePathPrefix)(k.pathname,h),k.basePath=h);let l=k.pathname;if(k.pathname.startsWith("/_next/data/")&&k.pathname.endsWith(".json")){let a=k.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/");k.buildId=a[0],l="index"!==a[1]?"/"+a.slice(1).join("/"):"/",!0===b.parseData&&(k.pathname=l)}if(i){let a=b.i18nProvider?b.i18nProvider.analyze(k.pathname):(0,d.normalizeLocalePath)(k.pathname,i.locales);k.locale=a.detectedLocale,k.pathname=null!=(g=a.pathname)?g:k.pathname,!a.detectedLocale&&k.buildId&&(a=b.i18nProvider?b.i18nProvider.analyze(l):(0,d.normalizeLocalePath)(l,i.locales)).detectedLocale&&(k.locale=a.detectedLocale)}return k}},39833:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{fromNodeOutgoingHttpHeaders:function(){return e},normalizeNextQueryParam:function(){return i},splitCookiesString:function(){return f},toNodeOutgoingHttpHeaders:function(){return g},validateURL:function(){return h}});let d=c(32072);function e(a){let b=new Headers;for(let[c,d]of Object.entries(a))for(let a of Array.isArray(d)?d:[d])void 0!==a&&("number"==typeof a&&(a=a.toString()),b.append(c,a));return b}function f(a){var b,c,d,e,f,g=[],h=0;function i(){for(;h=a.length)&&g.push(a.substring(b,a.length))}return g}function g(a){let b={},c=[];if(a)for(let[d,e]of a.entries())"set-cookie"===d.toLowerCase()?(c.push(...f(e)),b[d]=1===c.length?c[0]:c):b[d]=e;return b}function h(a){try{return String(new URL(String(a)))}catch(b){throw Object.defineProperty(Error(`URL is malformed "${String(a)}". Please use only absolute URLs - https://nextjs.org/docs/messages/middleware-relative-urls`,{cause:b}),"__NEXT_ERROR_CODE",{value:"E61",enumerable:!1,configurable:!0})}}function i(a){for(let b of[d.NEXT_QUERY_PARAM_PREFIX,d.NEXT_INTERCEPTION_MARKER_PREFIX])if(a!==b&&a.startsWith(b))return a.substring(b.length);return null}},40361:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},41801:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{INTERNALS:function(){return h},NextRequest:function(){return i}});let d=c(12569),e=c(39833),f=c(68176),g=c(56347),h=Symbol("internal request");class i extends Request{constructor(a,b={}){let c="string"!=typeof a&&"url"in a?a.url:String(a);(0,e.validateURL)(c),b.body&&"half"!==b.duplex&&(b.duplex="half"),a instanceof Request?super(a,b):super(c,b);let f=new d.NextURL(c,{headers:(0,e.toNodeOutgoingHttpHeaders)(this.headers),nextConfig:b.nextConfig});this[h]={cookies:new g.RequestCookies(this.headers),nextUrl:f,url:f.toString()}}[Symbol.for("edge-runtime.inspect.custom")](){return{cookies:this.cookies,nextUrl:this.nextUrl,url:this.url,bodyUsed:this.bodyUsed,cache:this.cache,credentials:this.credentials,destination:this.destination,headers:Object.fromEntries(this.headers),integrity:this.integrity,keepalive:this.keepalive,method:this.method,mode:this.mode,redirect:this.redirect,referrer:this.referrer,referrerPolicy:this.referrerPolicy,signal:this.signal}}get cookies(){return this[h].cookies}get nextUrl(){return this[h].nextUrl}get page(){throw new f.RemovedPageError}get ua(){throw new f.RemovedUAError}get url(){return this[h].url}}},42956:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{fnv1a52:function(){return c},generateETag:function(){return d}});let c=a=>{let b=a.length,c=0,d=0,e=8997,f=0,g=33826,h=0,i=40164,j=0,k=52210;for(;c>>16,e=65535&d,h+=f>>>16,g=65535&f,k=j+(h>>>16)&65535,i=65535&h;return(15&k)*0x1000000000000+0x100000000*i+65536*g+(e^k>>4)},d=(a,b=!1)=>(b?'W/"':'"')+c(a).toString(36)+a.length.toString(36)+'"'},44346:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"ENCODED_TAGS",{enumerable:!0,get:function(){return c}});let c={OPENING:{HTML:new Uint8Array([60,104,116,109,108]),BODY:new Uint8Array([60,98,111,100,121])},CLOSED:{HEAD:new Uint8Array([60,47,104,101,97,100,62]),BODY:new Uint8Array([60,47,98,111,100,121,62]),HTML:new Uint8Array([60,47,104,116,109,108,62]),BODY_AND_HTML:new Uint8Array([60,47,98,111,100,121,62,60,47,104,116,109,108,62])},META:{ICON_MARK:new Uint8Array([60,109,101,116,97,32,110,97,109,101,61,34,194,171,110,120,116,45,105,99,111,110,194,187,34])}}},46060:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external.js")},49326:(a,b)=>{"use strict";function c(a,b,c){if(a)for(let f of(c&&(c=c.toLowerCase()),a)){var d,e;if(b===(null==(d=f.domain)?void 0:d.split(":",1)[0].toLowerCase())||c===f.defaultLocale.toLowerCase()||(null==(e=f.locales)?void 0:e.some(a=>a.toLowerCase()===c)))return f}}Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"detectDomainLocale",{enumerable:!0,get:function(){return c}})},50996:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{chainStreams:function(){return n},continueDynamicHTMLResume:function(){return E},continueDynamicPrerender:function(){return C},continueFizzStream:function(){return B},continueStaticPrerender:function(){return D},createBufferedTransformStream:function(){return s},createDocumentClosingStream:function(){return F},createRootLayoutValidatorStream:function(){return A},renderToInitialFizzStream:function(){return u},streamFromBuffer:function(){return p},streamFromString:function(){return o},streamToBuffer:function(){return q},streamToString:function(){return r}});let d=c(12410),e=c(70772),f=c(73367),g=c(91504),h=c(44346),i=c(92329),j=c(68643),k=c(6479);function l(){}let m=new TextEncoder;function n(...a){if(0===a.length)return new ReadableStream({start(a){a.close()}});if(1===a.length)return a[0];let{readable:b,writable:c}=new TransformStream,d=a[0].pipeTo(c,{preventClose:!0}),e=1;for(;eb.pipeTo(c,{preventClose:!0}))}let f=a[e];return(d=d.then(()=>f.pipeTo(c))).catch(l),b}function o(a){return new ReadableStream({start(b){b.enqueue(m.encode(a)),b.close()}})}function p(a){return new ReadableStream({start(b){b.enqueue(a),b.close()}})}async function q(a){let b=a.getReader(),c=[];for(;;){let{done:a,value:d}=await b.read();if(a)break;c.push(d)}return Buffer.concat(c)}async function r(a,b){let c=new TextDecoder("utf-8",{fatal:!0}),d="";for await(let e of a){if(null==b?void 0:b.aborted)return d;d+=c.decode(e,{stream:!0})}return d+c.decode()}function s(){let a,b=[],c=0;return new TransformStream({transform(d,e){b.push(d),c+=d.byteLength,(d=>{if(a)return;let e=new f.DetachedPromise;a=e,(0,g.scheduleImmediate)(()=>{try{let a=new Uint8Array(c),e=0;for(let c=0;ca.renderToReadableStream(b,c))}function v(a){let b=-1,c=!1;return new TransformStream({async transform(d,e){let f=-1,g=-1;if(b++,c)return void e.enqueue(d);let j=0;if(-1===f){if(-1===(f=(0,i.indexOfUint8Array)(d,h.ENCODED_TAGS.META.ICON_MARK)))return void e.enqueue(d);47===d[f+(j=h.ENCODED_TAGS.META.ICON_MARK.length)]?j+=2:j++}if(0===b){if(g=(0,i.indexOfUint8Array)(d,h.ENCODED_TAGS.CLOSED.HEAD),-1!==f){if(f-1){if(a=!0,b.length===h.ENCODED_TAGS.CLOSED.BODY_AND_HTML.length)return;let e=b.slice(0,d);if(c.enqueue(e),b.length>h.ENCODED_TAGS.CLOSED.BODY_AND_HTML.length+d){let a=b.slice(d+h.ENCODED_TAGS.CLOSED.BODY_AND_HTML.length);c.enqueue(a)}}else c.enqueue(b)},flush(a){a.enqueue(h.ENCODED_TAGS.CLOSED.BODY_AND_HTML)}})}function A(){let a=!1,b=!1;return new TransformStream({async transform(c,d){!a&&(0,i.indexOfUint8Array)(c,h.ENCODED_TAGS.OPENING.HTML)>-1&&(a=!0),!b&&(0,i.indexOfUint8Array)(c,h.ENCODED_TAGS.OPENING.BODY)>-1&&(b=!0),d.enqueue(c)},flush(c){let d=[];a||d.push("html"),b||d.push("body"),d.length&&c.enqueue(m.encode(`